This project uses the MediaPipe library to detect faces in a video stream and count the number of times each face moves up or down. It provides a real-time count of upward and downward movements for each detected face.
- Python 3.6 or higher
- Install the required packages using
pip install -r requirements.txt
-
Clone the repository:
-
Install dependencies:
-
Run the application:
-
Press
q
to exit the application.
- Ensure your camera is properly connected and accessible.
- Adjust the detection confidence and movement thresholds in the
countblock.py
file according to your needs.