Skip to content

This Python project utilizes MediaPipe to recognize hand landmarks in images, videos, and webcam streams. It detects and locates 21 key points on the hand, offering a simple and efficient solution for various applications requiring hand gesture analysis.

Notifications You must be signed in to change notification settings

prashver/hand-landmark-recognition-using-mediapipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hand Landmark Recognition using MediaPipe

This project is an implementation of hand landmark recognition using the MediaPipe library in Python. The project allows users to perform hand landmark recognition on input images, input videos, and webcam streams.

Requirements

  • Python 3.x
  • OpenCV
  • MediaPipe

Install the required dependencies using the following command:

pip install opencv-python mediapipe

Usage

1. Hand Landmark Recognition on Input Image

To perform hand landmark recognition on an input image, run the following command:

python hand_tracking_static.py --image_path <path_to_input_image>

Replace <path_to_input_image> with the path to the input image you want to analyze.

Demo :-

Input :
Hand Landmark Recognition

Output :
Hand Landmark RecognitionHand Landmark Recognition

2. Hand Landmark Recognition on Input Video

To perform hand landmark recognition on an input video, run the following command:

python hand_tracking_video.py --video_path <path_to_input_video>

Replace <path_to_input_video> with the path to the input video you want to analyze.

Demo :-

output_video.mp4

3. Hand Landmark Recognition using Webcam

To perform hand landmark recognition using the webcam, run the following command:

python hand_tracking_cam.py

This will start the webcam and perform hand landmark recognition in real-time.

Demo :-

demo.mp4

How it Works

The project utilizes the MediaPipe library, which provides pre-trained machine learning models for various tasks, including hand landmark recognition. The hand landmark model detects and localizes 21 key points (landmarks) on the hand, including fingertips, joints, and the palm.

The project processes input images or frames from videos/webcam using the hand landmark model provided by MediaPipe. It then draws the detected landmarks on the input image or frame, providing a visual representation of the hand's key points.

Acknowledgements

This project utilizes the following libraries:

License

This project is licensed under the MIT License.

About

This Python project utilizes MediaPipe to recognize hand landmarks in images, videos, and webcam streams. It detects and locates 21 key points on the hand, offering a simple and efficient solution for various applications requiring hand gesture analysis.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages