{"id":13480884,"url":"https://github.com/petercunha/Emotion","last_synced_at":"2025-03-27T11:31:06.503Z","repository":{"id":27251780,"uuid":"110563523","full_name":"petercunha/Emotion","owner":"petercunha","description":":smile: Recognizes human faces and their corresponding emotions from a video or webcam feed. Powered by OpenCV and Deep Learning.","archived":false,"fork":false,"pushed_at":"2021-12-30T19:36:09.000Z","size":9541,"stargazers_count":459,"open_issues_count":15,"forks_count":171,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-03-26T15:49:05.439Z","etag":null,"topics":["deep-learning","emotion-recognition","facial-recognition","opencv","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Python","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/petercunha.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}},"created_at":"2017-11-13T15:11:28.000Z","updated_at":"2025-03-20T10:14:20.000Z","dependencies_parsed_at":"2022-08-07T13:00:06.207Z","dependency_job_id":null,"html_url":"https://github.com/petercunha/Emotion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petercunha%2FEmotion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petercunha%2FEmotion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petercunha%2FEmotion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petercunha%2FEmotion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petercunha","download_url":"https://codeload.github.com/petercunha/Emotion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245836044,"owners_count":20680310,"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":["deep-learning","emotion-recognition","facial-recognition","opencv","tensorflow"],"created_at":"2024-07-31T17:00:46.230Z","updated_at":"2025-03-27T11:31:05.786Z","avatar_url":"https://github.com/petercunha.png","language":"Python","funding_links":[],"categories":["Behavioral","Python","Related"],"sub_categories":["Video-games"],"readme":"# Emotion\nThis software recognizes human faces and their corresponding emotions from a video or webcam feed. Powered by OpenCV and Deep Learning.\n\n![Demo](https://github.com/petercunha/Emotion/blob/master/demo/demo.gif?raw=true)\n\n\n## Installation\n\nClone the repository:\n```\ngit clone https://github.com/petercunha/Emotion.git\ncd Emotion/\n```\n\nInstall these dependencies with `pip3 install \u003cmodule name\u003e`\n-\ttensorflow\n-\tnumpy\n-\tscipy\n-\topencv-python\n-\tpillow\n-\tpandas\n-\tmatplotlib\n-\th5py\n-\tkeras\n\nOnce the dependencies are installed, you can run the project.\n`python3 emotions.py`\n\n\n## To train new models for emotion classification\n\n- Download the fer2013.tar.gz file from [here](https://www.kaggle.com/c/challenges-in-representation-learning-facial-expression-recognition-challenge/data)\n- Move the downloaded file to the datasets directory inside this repository.\n- Untar the file:\n`tar -xzf fer2013.tar`\n- Download train_emotion_classifier.py from orriaga's repo [here](https://github.com/oarriaga/face_classification/blob/master/src/train_emotion_classifier.py)\n- Run the train_emotion_classification.py file:\n`python3 train_emotion_classifier.py`\n\n\n## Deep Learning Model\n\nThe model used is from this [research paper](https://github.com/oarriaga/face_classification/blob/master/report.pdf) written by Octavio Arriaga, Paul G. Plöger, and Matias Valdenegro.\n\n![Model](https://i.imgur.com/vr9yDaF.png?1)\n\n\n## Credit\n\n* Computer vision powered by OpenCV.\n* Neural network scaffolding powered by Keras with Tensorflow.\n* Convolutional Neural Network (CNN) deep learning architecture is from this [research paper](https://github.com/oarriaga/face_classification/blob/master/report.pdf).\n* Pretrained Keras model and much of the OpenCV code provided by GitHub user [oarriaga](https://github.com/oarriaga).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetercunha%2FEmotion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetercunha%2FEmotion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetercunha%2FEmotion/lists"}