The Blinkit is a fun interactive game built using Python that tests your ability to keep your eyes open while your face is detected through a webcam. The game uses facial landmark detection to calculate the Eye Aspect Ratio (EAR) and tracks the player's score based on their ability to avoid blinking.
- Real-time face detection and blink tracking using the webcam.
- Engaging user interface built with CustomTkinter.
- Score tracking to challenge your friends and family.
- High score saving for tracking performance over time.
- Simple restart and quit functionality.
To run the game, you'll need to run the following command:
To install the required packages, run the following command:
pip install -r requirements.txt
- Clone the repository:
git clone https://github.com/Fuad-san/Blinkit.git cd Blinkit
- Create a virtual environment (recommended):
Copy code python -m venv venv source venv/bin/activate # On Windows use: venv\Scripts\activate
- Install the required packages:
pip install -r requirements.txt
python Blinkit.py
- Start Game: Click the "Start Game" button to begin.
- Restart: After the game ends, click the "Restart" button to play again.
- Quit: Click the "Quit" button to exit the game.
If you'd like to contribute to this project, feel free to fork the repository and submit a pull request. Any improvements or suggestions are welcome!
This project is licensed under the MIT License .
- Dlib for the facial landmark detection.
- OpenCV for real-time image processing.
- CustomTkinter for the modern user interface.