{"id":16359348,"url":"https://github.com/gaborvecsei/emotion-recognition","last_synced_at":"2025-08-27T04:03:40.369Z","repository":{"id":84266125,"uuid":"77789346","full_name":"gaborvecsei/Emotion-Recognition","owner":"gaborvecsei","description":"Emotion recognition from face","archived":false,"fork":false,"pushed_at":"2017-05-11T08:17:17.000Z","size":76534,"stargazers_count":17,"open_issues_count":1,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-04T11:36:52.605Z","etag":null,"topics":["emotion","emotion-detection","emotion-recognition","opencv","opencv-python","python","real-time"],"latest_commit_sha":null,"homepage":"https://gaborvecsei.wordpress.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gaborvecsei.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":"2017-01-01T17:39:36.000Z","updated_at":"2024-04-30T15:06:50.000Z","dependencies_parsed_at":"2023-05-24T04:45:26.190Z","dependency_job_id":null,"html_url":"https://github.com/gaborvecsei/Emotion-Recognition","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gaborvecsei/Emotion-Recognition","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaborvecsei%2FEmotion-Recognition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaborvecsei%2FEmotion-Recognition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaborvecsei%2FEmotion-Recognition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaborvecsei%2FEmotion-Recognition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gaborvecsei","download_url":"https://codeload.github.com/gaborvecsei/Emotion-Recognition/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gaborvecsei%2FEmotion-Recognition/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272288910,"owners_count":24907772,"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","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["emotion","emotion-detection","emotion-recognition","opencv","opencv-python","python","real-time"],"created_at":"2024-10-11T02:08:09.856Z","updated_at":"2025-08-27T04:03:40.292Z","avatar_url":"https://github.com/gaborvecsei.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Emotion recognition from face\n\nEmotion recognition from faces with Deep Learning CNN network.\n\n## Setup\n\nYou will need:\n\n- Python 3 and the following packages:\n    - OpenCV 3\n    - Keras (with Tensorflow backend)\n    - Tensorflow\n    - Numpy\n    - Seaborn\n\n- Try it out:\n    1. prepare data\n    2. train model\n    3. test it\n        1. `predict_emotion.py` script\n        2. real time emotion recognition from webcam with `real_time_emotion.py`\n\n## Prepare data\n\nWe have to prepare the data for the training\n\n- Download the `fer2013.csv` ([source](https://www.kaggle.com/c/challenges-in-representation-learning-facial-expression-recognition-challenge/data))\n    - Move it to `data` folder and rename it to `fer2013.csv` if it is necessary\n        - OR\n    - Edit the `config.ini` file\n- Run the `prepare_data.py` script\n- Now you have the data for the training which you can find in the `data` folder\n\n- *X_train* shape: `(nb_samples, 48, 48)`\n- *y_train* shape: `(nb_samples,)`\n\nAfter this you can start the training!\n\n## Training\n\nRun `train_emotion_recognizer.py`\n\nThis will run the training and evaluate the trained model with the test data.\n\n## Predict data (Try it out)\n\nYou can easily try the trained model with `predict_emotion.py` script\n\n## Real time prediction\n\nTODO\n\n## About\n\nGábor Vecsei\n\n- [Personal Blog](https://gaborvecsei.wordpress.com/)\n- [LinkedIn](https://www.linkedin.com/in/gaborvecsei)\n- [Twitter](https://twitter.com/GAwesomeBE)\n- [Github](https://github.com/gaborvecsei)\n- vecseigabor.x@gmail.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaborvecsei%2Femotion-recognition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaborvecsei%2Femotion-recognition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaborvecsei%2Femotion-recognition/lists"}