{"id":17705734,"url":"https://github.com/rahul1582/emotion-detector","last_synced_at":"2026-04-24T16:38:39.019Z","repository":{"id":39728599,"uuid":"254816132","full_name":"Rahul1582/Emotion-Detector","owner":"Rahul1582","description":"An Emotion Detector Using CNN","archived":false,"fork":false,"pushed_at":"2022-11-21T22:48:34.000Z","size":17606,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T05:17:05.109Z","etag":null,"topics":["cnn","data-augmentation","emotion-detector","fer2013","opencv"],"latest_commit_sha":null,"homepage":"https://nbviewer.jupyter.org/github/Rahul1582/Emotion-Detector/blob/master/src/emotions.py","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rahul1582.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":"2020-04-11T07:31:16.000Z","updated_at":"2020-06-21T20:54:41.000Z","dependencies_parsed_at":"2023-01-22T04:46:44.704Z","dependency_job_id":null,"html_url":"https://github.com/Rahul1582/Emotion-Detector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rahul1582/Emotion-Detector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahul1582%2FEmotion-Detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahul1582%2FEmotion-Detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahul1582%2FEmotion-Detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahul1582%2FEmotion-Detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rahul1582","download_url":"https://codeload.github.com/Rahul1582/Emotion-Detector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahul1582%2FEmotion-Detector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32231329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cnn","data-augmentation","emotion-detector","fer2013","opencv"],"created_at":"2024-10-24T22:41:56.960Z","updated_at":"2026-04-24T16:38:38.998Z","avatar_url":"https://github.com/Rahul1582.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Emotion-detection Using CNN\n\nThis project aims to classify the emotion on a person's face into one of **seven categories**, using deep convolutional neural networks.\nThe model is trained on the **FER-2013** dataset.\n\n## Dependencies\n\nTo install the required packages, run `pip install -r requirements.txt`.\n\n## Technologies Used\n```\n1.Python\n\n2.Convolution Neural Network(CNN)\n\n3.Open CV\n\n4.Data Augmentation\n```\n\n## To Run\n\nFirst, clone the repository and enter the folder src\n\nDownload the FER-2013 dataset from [here](https://drive.google.com/file/d/1X60B-uR3NtqPd4oosdotpbDgy8KOfUdr/view?usp=sharing) and unzip it inside the `src` folder. This will create the folder `data`.\n\nI had added the dataset into gitignore as it is a very big file.\n\nIf you want to train this model, use:  \ncd src\npython emotions.py --run train\n\n\nIf you want to view the predictions without training again, you can download the pre-trained model from [here](https://drive.google.com/file/d/1FUn0XNOzf-nQV7QjbBPA6-8GLoHNNgv-/view?usp=sharing).\n\nIf you want to use the web camera or give input as a video to detect emotions just run-\ncd src\npython emotions.py --run test\nwith USE_WEBCAM as True or False\n\nIf you want to detect emotions in a picture just run-\ncd src\npython emotions.py --run picture\n\nWith a simple 4-layer CNN, the test accuracy reached 63% in 50 epochs.\n\n \n## Data Preparation (optional)\n\nThe [original FER2013 dataset in Kaggle](https://www.kaggle.com/deadskull7/fer2013) is available as a single csv file.\n\n### Demo\n\nModel Summary--\n\u003cimg src=\"images/summary.PNG\" width=700 height=600\u003e\n\u003cbr\u003e\u003cbr\u003e\n\n\u003cimg src =\"images/happy.PNG\"  width=700 height=500\u003e\n\u003cbr\u003e\n\n\u003cimg src=\"images/surprised.PNG\" width=700 height=500\u003e\n\u003cbr\u003e\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahul1582%2Femotion-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahul1582%2Femotion-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahul1582%2Femotion-detector/lists"}