{"id":25171178,"url":"https://github.com/basemax/face-emotion-detection-web-live","last_synced_at":"2026-02-09T17:02:19.661Z","repository":{"id":270019413,"uuid":"909151641","full_name":"BaseMax/face-emotion-detection-web-live","owner":"BaseMax","description":"This is a simple web-based application that detects emotions from video feeds or images using face-api.js. It leverages pre-trained deep learning models to analyze facial expressions and categorize them into emotions such as happy, sad, surprised, angry, and more.","archived":false,"fork":false,"pushed_at":"2024-12-27T21:59:26.000Z","size":10843,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T11:57:26.771Z","etag":null,"topics":["camera","emotion","emotion-analysis","emotion-classification","emotion-detection","emotion-recognition","javascript","js","real-time","real-time-camera","realtime-emotion-recognition"],"latest_commit_sha":null,"homepage":"https://basemax.github.io/face-emotion-detection-web-live","language":"JavaScript","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/BaseMax.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-12-27T21:39:42.000Z","updated_at":"2025-08-31T19:42:45.000Z","dependencies_parsed_at":"2024-12-27T22:55:22.275Z","dependency_job_id":null,"html_url":"https://github.com/BaseMax/face-emotion-detection-web-live","commit_stats":null,"previous_names":["basemax/face-emotion-detection-web-live"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BaseMax/face-emotion-detection-web-live","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fface-emotion-detection-web-live","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fface-emotion-detection-web-live/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fface-emotion-detection-web-live/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fface-emotion-detection-web-live/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/face-emotion-detection-web-live/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fface-emotion-detection-web-live/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29273139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T13:47:44.167Z","status":"ssl_error","status_checked_at":"2026-02-09T13:47:43.721Z","response_time":56,"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":["camera","emotion","emotion-analysis","emotion-classification","emotion-detection","emotion-recognition","javascript","js","real-time","real-time-camera","realtime-emotion-recognition"],"created_at":"2025-02-09T09:19:30.279Z","updated_at":"2026-02-09T17:02:19.645Z","avatar_url":"https://github.com/BaseMax.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real-Time Emotion Detection\n\nThis is a simple web-based application that detects emotions from video feeds or images using **face-api.js**. It leverages pre-trained deep learning models to analyze facial expressions and categorize them into emotions such as **happy**, **sad**, **surprised**, **angry**, and more.\n\n![Real-Time Emotion Detection](demo.jpg)\n\n## Features\n\n- **Real-Time Emotion Detection**: Detect emotions directly from the webcam feed.\n- **Multiple Emotions**: Displays the emotion with the highest confidence score and overlays detected faces on the video feed.\n- **Error Handling**: Provides a warning message if the webcam is unavailable or permission is denied.\n\n## Technology Stack\n\n- **HTML5**: For the webpage structure.\n- **CSS3**: For styling the app.\n- **JavaScript**: For handling video feed and emotion detection logic.\n- **face-api.js**: A library for face detection and emotion recognition based on deep learning.\n\n## Setup Instructions\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/BaseMax/face-emotion-detection-web-live.git\ncd face-emotion-detection-web-live\n```\n\n### 2. Install a Local Web Server\n\nTo run this app locally, you will need to serve the files using a local web server.\n\n**Using http-server (via npm):**\n\nIf you have Node.js installed, you can use http-server to serve the app.\n\n```bash\nnpm install -g http-server\nhttp-server .\n```\n\n### 3. Download the Models\n\nThe app uses pre-trained models from `face-api.js`. You need to download these models and place them in a models folder in the root directory.\n\nGo to the face-api.js model directory.\n\nDownload the following models:\n- ssdMobilenetv1\n- faceLandmark68Net\n- faceRecognitionNet (optional)\n- ageGenderNet (optional)\n- faceExpressionNet\n\nAfter downloading the models from the `/weights` directory (https://github.com/justadudewhohacks/face-api.js), place them in the `/models` folder within your project directory.\n\n### 4. Run the Application\n\nOnce you have the models in place and the server running, open your browser and navigate to:\n\n```bash\nhttp://localhost:8080\n```\n\nYou should be able to upload an image and see the emotion detected from the face.\n\n## How It Works\n\n- The user uploads an image using the file input.\n- The image is processed using the `face-api.js` library.\n- The library detects the face(s) in the image, processes the facial landmarks, and analyzes the emotion.\n- The detected emotion with the highest confidence score is displayed.\n\n## Emotion Detection\n\nThe following emotions can be detected:\n\n- Happy\n- Sad\n- Surprised\n- Angry\n- Disgusted\n- Fearful\n\n### Contributing\n\nIf you would like to contribute to this project, feel free to fork the repository, create a branch, and submit a pull request. Make sure to follow these steps:\n\n- Fork the repository.\n- Create a new branch.\n- Make your changes.\n- Create a pull request.\n\n### License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\nCopyright 2024, Max Base\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fface-emotion-detection-web-live","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fface-emotion-detection-web-live","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fface-emotion-detection-web-live/lists"}