This project demonstrates real-time 3D face landmark detection using MediaPipe FaceMesh and OpenCV. The program draws the full face mesh, highlights the nose tip, eyes, and mouth, and displays the FPS counter.
- Capture live video from a webcam.
- Render the 468-point face mesh.
- Highlight the nose tip with a red circle.
- Highlight eyes in blue.
- Highlight mouth in orange.
- Show the FPS in the top-left corner.
- Mirror the video feed (natural mirror effect).
- Close the program with the
Esckey.
- Clone this repository or save the script locally.
- Install the required packages:
pip install -r requirements.txtLaunch the script with:
python SMP.pyOnce started, the webcam window will open showing:
- The face mesh overlay
- The red nose tip marker
- Eyes in blue
- Mouth in orange
- The FPS counter
Press Esc to exit.