Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Facial Landmark Detection with MediaPipe

Features

  • Real-time facial landmark detection (468 points)
  • Webcam integration in Google Colab
  • Visualizes face mesh tessellation and contours
  • Customizable drawing styles

Requirements

  • Google Colab (recommended) or Jupyter Notebook
  • Modern web browser (Chrome recommended)
  • Webcam access

Usage

  1. Run the first cell to initialize the face detection model
  2. Allow camera access when prompted by your browser
  3. Click the "Capture" button to take a photo
  4. The program will:
    • Detect facial landmarks
    • Draw the face mesh on your image
    • Display the processed image

Customization

mp_drawing.DrawingSpec(color=(0,255,0), thickness=1) # Green contours

Adjust detection parameters

mp_face_mesh.FaceMesh( max_num_faces=1, # Maximum faces to detect refine_landmarks=True, # Get more precise landmarks min_detection_confidence=0.5, # Detection confidence threshold min_tracking_confidence=0.5 # Tracking confidence threshold )

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages