Skip to content

ayushmk7/FaceDetection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

On Windows use venv\Scripts\activate instead.

How to run

Make sure your virtual environment is active, then run:

python face_detection.py

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors