{"id":20652857,"url":"https://github.com/jwest951227/emotiondetect","last_synced_at":"2025-06-21T13:38:32.702Z","repository":{"id":248982971,"uuid":"793416948","full_name":"jwest951227/emotionDetect","owner":"jwest951227","description":"Humans are used to non verbal communication. The emotions expressed increases the clarity of any thoughts and ideas. It becoms quite interesting when a computer can capture this complex feature of humans, ie emotions. This topic talks about building a model which can detect an emotion from an image.","archived":false,"fork":false,"pushed_at":"2024-04-29T08:09:09.000Z","size":15734,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T00:36:41.410Z","etag":null,"topics":["keras","matplotlib","numpy","opencv","pandas","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jwest951227.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-29T07:23:51.000Z","updated_at":"2025-03-19T15:36:28.000Z","dependencies_parsed_at":"2024-07-18T08:56:35.080Z","dependency_job_id":null,"html_url":"https://github.com/jwest951227/emotionDetect","commit_stats":null,"previous_names":["libraiger/emotiondetect","degencap777/emotiondetect","jwest951227/emotiondetect"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jwest951227/emotionDetect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwest951227%2FemotionDetect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwest951227%2FemotionDetect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwest951227%2FemotionDetect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwest951227%2FemotionDetect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwest951227","download_url":"https://codeload.github.com/jwest951227/emotionDetect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwest951227%2FemotionDetect/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261130717,"owners_count":23114025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["keras","matplotlib","numpy","opencv","pandas","tensorflow"],"created_at":"2024-11-16T17:38:52.932Z","updated_at":"2025-06-21T13:38:27.687Z","avatar_url":"https://github.com/jwest951227.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Facial Recognition and Emotion Detection\n----------\n \u003cimg src=\"./Test_Images/demo.jpeg\" alt=\"index1\"/\u003e\n----------\n\n### Emotion Detection\n\nHumans are used to non verbal communication. The emotions expressed increases the clarity of any thoughts and ideas. It becoms quite interesting when a computer can capture this complex feature of humans, ie emotions. This topic talks about building a model which can detect an emotion from an image. There key points to be followed are:\n\n1. Data gathering and  augmentation\n\n   The dataset taken was **\"fer2013\"**. It can be downloaded through the link \"https://github.com/npinto/fer2013\". Image augmentation was performed on this data.\n\n2. Model building\n\n   The model architecture consists of CNN Layer, Max Pooling, Flatten and Dropout Layers.\n\n3. Training\n\n   The model was trained  by  using variants of above layers mentioned in model building and by varying hyperparameters. The best model was able to achieve 60.1% of validation accuracy.\n\n4. Testing\n\n   The model was tested with sample images. It can be seen below:\n\n   \u003cimg src=\"./Test_Images/happy.jpg\" alt=\"index1\" height=\"300px\"/\u003e\n   \u003cimg src=\"./Test_Images/neutral.jpg\" alt=\"index2\" height=\"300px\"/\u003e\n    \u003cimg src=\"./Test_Images/suprise.jpg\" alt=\"index3\" height=\"300px\"/\u003e\n\n#### The model will be able to detect 7 types of emotions:-\n #####  Angry , Sad ,  Neutral ,  Disgust ,  Surprise ,  Fear  , and   Happy\n\n## Usage:\n\n### For  Face Detection, and Emotion Detection Code\n\nRefer to the notebook /Emotion_Detection.ipynb.\u003cbr/\u003e\nI have trained an emotion detection model and put its trained weights at /Models\n\n### Train your Emotion Detection Model\nTo train your own emotion detection model, Refer to the notebook /facial_emotion_recognition.ipynb\n\n### For Emotion Detection  using Webcam \n#### Clone the repo:\nRun `pip install -r requirements.txt` \u003cbr/\u003e\n` python Emotion_Detection.py`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwest951227%2Femotiondetect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwest951227%2Femotiondetect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwest951227%2Femotiondetect/lists"}