Skip to content

The following Python code uses the MediaPipe library to detect both hands and faces.

Notifications You must be signed in to change notification settings

Adarshagupta/Python-Hand-Face-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python-Hand-Face-Detector

The following Python code uses the MediaPipe library to detect both hands and faces.

This code captures video from the default camera (specified by the 0 argument to cv2.VideoCapture()) and processes each frame with the MediaPipe hand detection and face detection modules. The resulting hand landmark map and face bounding boxes are drawn on the image using the drawing utilities of MediaPipe. The resulting image is displayed in a window named "Hand and Face Detection". The program exits when the Esc key is pressed.

Note that the program assumes that you have installed the MediaPipe library and its dependencies. You can install it using pip: pip install mediapipe.

Just 'python detector.py' and you are good to go

Happy Coding

About

The following Python code uses the MediaPipe library to detect both hands and faces.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages