Face Mesh Detection
A simple computer vision app that tracks your face in real-time using your webcam. It detects 468 facial landmarks and draws them on your face as you move.
What you need
- Python 3.7 or newer
- A webcam
- Any OS like macOS, Windows, or Linux
How to install
Create a virtual environment and install the packages:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtOn Windows use venv\Scripts\activate instead.
How to run
Make sure your virtual environment is active, then run:
python face_detection.pyPress Q to quit the app.
What it does
The app uses MediaPipe to detect your face and track facial features like your eyes, nose, mouth, and face contours. It shows a green "Face Detected" message when it finds your face, or a red "FACE NOT FOUND" message when it doesn't. The FPS counter shows how fast it's running.
The camera view is mirrored so it feels natural, like looking in a mirror.