{"id":23009766,"url":"https://github.com/anish202020/computer-graphics-mini-project2","last_synced_at":"2026-04-24T16:36:03.850Z","repository":{"id":244006846,"uuid":"814034483","full_name":"Anish202020/Computer-Graphics-Mini-Project2","owner":"Anish202020","description":"Builded a Real-Time Emotion Detection Website Using Streamlit with Python Libraries (opencv-python, tensorflow, keras, mtcnn, fer) to Analyze Facial Expressions via Camera","archived":false,"fork":false,"pushed_at":"2024-07-15T11:05:00.000Z","size":27445,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T06:44:12.296Z","etag":null,"topics":["opencv-python-tensorflow-keras-mtcnn-fer","python","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anish202020.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-12T08:06:27.000Z","updated_at":"2024-07-15T11:05:02.000Z","dependencies_parsed_at":"2024-07-15T13:09:11.250Z","dependency_job_id":null,"html_url":"https://github.com/Anish202020/Computer-Graphics-Mini-Project2","commit_stats":null,"previous_names":["anish202020/computer-graphics-mini-project2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anish202020%2FComputer-Graphics-Mini-Project2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anish202020%2FComputer-Graphics-Mini-Project2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anish202020%2FComputer-Graphics-Mini-Project2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anish202020%2FComputer-Graphics-Mini-Project2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anish202020","download_url":"https://codeload.github.com/Anish202020/Computer-Graphics-Mini-Project2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246847137,"owners_count":20843444,"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":["opencv-python-tensorflow-keras-mtcnn-fer","python","streamlit"],"created_at":"2024-12-15T09:15:30.298Z","updated_at":"2026-04-24T16:35:58.811Z","avatar_url":"https://github.com/Anish202020.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real-Time Emotion Detection Website Documentation\n## Overview\nA comprehensive guide to building a real-time emotion detection website using Streamlit and various Python libraries. The website analyzes facial expressions via a camera to detect emotions in real-time.\n\n\u003cimg src=\"https://i.ibb.co/3TTJVSw/Screenshot-98.png\"\u003e\n\n## Purpose\nThe primary purpose of this website is to detect emotions in real-time using facial expressions captured via a camera.\n\n## Prerequisites\nBefore setting up the development environment, ensure you have the following:\n\n- Python installed\n- Required libraries installed:\n    - `opencv-python` \n    - `tensorflow` \n    - `keras` \n    - `mtcnn` \n    - `fer` \n- Streamlit installed\n- A webcam or camera\n## Setup Instructions\n### Step 1: Install Python and Required Libraries\nEnsure Python is installed on your system. Install the required libraries using pip:\n\n```sh\npip install opencv-python tensorflow keras mtcnn fer streamlit\n```\n### Step 2: Set Up Streamlit\nStreamlit is used to create the web interface for real-time emotion detection. Ensure Streamlit is installed:\n\n```sh\npip install streamlit\n```\n### Step 3: Configure the Webcam\nEnsure your webcam or camera is properly configured and accessible by your system.\n\n### Step 4: Run the Streamlit Application\nCreate a Python script (e.g., `app.py`) with the necessary code to set up the Streamlit application and integrate the emotion detection functionality. Run the application using:\n\n```sh\nstreamlit run app.py\n```\n\n\n## Conclusion\nThis documentation provides the necessary steps to set up and run a real-time emotion detection website using Streamlit and various Python libraries. Follow the setup instructions and use the provided code structure to build and customize your application.\n\n\n\n### Key Points:\n- **FER Initialization**: The FER library is initialized with the `mtcnn=True`  parameter to use the MTCNN face detector, which is more robust.\n- **Webcam Initialization**: The webcam is initialized using OpenCV's `VideoCapture` .\n- **Text Drawing Function**: The `draw_text`  function is defined to draw text with a background rectangle on the video frames.\n- **Main Loop**:\n    - The webcam captures each frame.\n    - The frame is converted from BGR to RGB since the FER library requires RGB input.\n    - Emotions are detected in the frame using the FER library.\n    - For each detected face, a rectangle is drawn around the face, and the dominant emotion is displayed on the frame.\n- **Exit Condition**: Pressing the 'q' key will exit the loop and release the webcam resources.\n## Team Members\nAnish Kumar 1AY21CS028\n\nAditya Arun Kumar 1AY21CS016\n\nAditya Jyoti Sahu 1AY21CS017\n\nAditya Kshatriya 1AY21CS018\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanish202020%2Fcomputer-graphics-mini-project2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanish202020%2Fcomputer-graphics-mini-project2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanish202020%2Fcomputer-graphics-mini-project2/lists"}