Skip to content

Blinkit is an interactive game that challenges players to keep their eyes open while a webcam tracks their facial movements. Utilizing advanced facial landmark detection, the game calculates the Eye Aspect Ratio (EAR) to monitor blinking behaviour.

License

Notifications You must be signed in to change notification settings

GhostPers0n/Blinkit

Repository files navigation

Blinkit

Overview

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.

Features

  • 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.

Requirements

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

Installation

  1. Clone the repository:
    git clone https://github.com/Fuad-san/Blinkit.git
    cd Blinkit
  2. Create a virtual environment (recommended):
    Copy code
    python -m venv venv
    source venv/bin/activate  # On Windows use: venv\Scripts\activate
  3. Install the required packages:
    pip install -r requirements.txt

Running the Game

python Blinkit.py

Controls

  • 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.

Contributing

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!

License

This project is licensed under the MIT License .

Acknowledgments

  • Dlib for the facial landmark detection.
  • OpenCV for real-time image processing.
  • CustomTkinter for the modern user interface.

About

Blinkit is an interactive game that challenges players to keep their eyes open while a webcam tracks their facial movements. Utilizing advanced facial landmark detection, the game calculates the Eye Aspect Ratio (EAR) to monitor blinking behaviour.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages