https://github.com/udityamerit/emotion-detector
https://github.com/udityamerit/emotion-detector
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/udityamerit/emotion-detector
- Owner: udityamerit
- Created: 2025-01-11T04:59:24.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-11T05:12:36.000Z (9 months ago)
- Last Synced: 2025-01-21T22:16:33.427Z (9 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Guess the Emotion Game ๐ฎ
## Introduction
**Guess the Emotion** is a fun and interactive game where players can test their ability to recognize emotions. The game uses AI to detect emotions in images captured via a webcam and compares them with the playerโs guess. It's an engaging way to learn about AI/ML applications while having fun!---
## Features
- **Emotion Detection:** Detects emotions like happy, sad, angry, surprise, and neutral.
- **User Interaction:** Players guess the emotion before the AI prediction.
- **Real-Time Feedback:** Points are awarded based on the correctness of the guess.
- **Webcam Integration:** Capture images directly using the webcam.
- **Simple UI:** Built using Streamlit for ease of use.---
## How to Run the Game
### Prerequisites
1. Python 3.7 or higher
2. Install the required dependencies:
```bash
pip install -r requirements.txt
```### Steps to Play
1. Clone the repository or download the code files.
2. Install the dependencies using the provided `requirements.txt` file:
```bash
pip install -r requirements.txt
```
3. Run the game using Streamlit:
```bash
streamlit run game.py
```
4. Follow the on-screen instructions to:
- Guess the emotion.
- Capture your image using the webcam.
- See if your guess matches the AIโs prediction.---
## File Structure
```
๐ Guess-the-Emotion-Game
โโโ Emotion_ditector.py # Main game script
โโโ requirements.txt # List of dependencies
โโโ README.md # This file
```---
## Technologies Used
- **Python**: Core programming language.
- **Streamlit**: For building the user interface.
- **OpenCV**: For image processing and webcam integration.
- **FER**: Pre-trained facial emotion recognition model.---
## Sample Screenshot
---
## Future Enhancements
- Add a leaderboard to track player scores.
- Include more emotions for detection.
- Multiplayer mode.
- Provide tips for players to mimic specific emotions.---
## License
This project is open-source and available under the [MIT License](https://opensource.org/licenses/MIT).---
## Contributing
Contributions are welcome! Feel free to fork the repository and submit a pull request with your improvements.---
## Author
Developed by **[Uditya Narayan Tiwari](https://github.com/udityamerit)**.