https://github.com/prashver/hand-landmark-recognition-using-mediapipe
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.
https://github.com/prashver/hand-landmark-recognition-using-mediapipe
computer-vision hand-tracking mediapipe open-cv python
Last synced: 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/prashver/hand-landmark-recognition-using-mediapipe
- Owner: prashver
- Created: 2024-02-16T19:04:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-16T19:52:11.000Z (over 1 year ago)
- Last Synced: 2025-01-14T11:29:49.632Z (9 months ago)
- Topics: computer-vision, hand-tracking, mediapipe, open-cv, python
- Language: Python
- Homepage:
- Size: 15.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
- MediaPipeInstall the required dependencies using the following command:
```bash
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:
```bash
python hand_tracking_static.py --image_path
```Replace `` with the path to the input image you want to analyze.
*Demo :-*
Input :
Output :
### 2. Hand Landmark Recognition on Input Video
To perform hand landmark recognition on an input video, run the following command:
```bash
python hand_tracking_video.py --video_path
```Replace `` with the path to the input video you want to analyze.
*Demo :-*
https://github.com/prashver/hand-landmark-recognition-using-mediapipe/assets/84378440/120cff33-71df-4975-bbff-b7bf17243ede
### 3. Hand Landmark Recognition using Webcam
To perform hand landmark recognition using the webcam, run the following command:
```bash
python hand_tracking_cam.py
```This will start the webcam and perform hand landmark recognition in real-time.
*Demo :-*
https://github.com/prashver/hand-landmark-recognition-using-mediapipe/assets/84378440/8d7d2255-dc9c-4f20-b48d-63dd6550db5b
## 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:
- [MediaPipe](https://mediapipe.dev/)
- [OpenCV](https://opencv.org/)## License
This project is licensed under the [MIT License](LICENSE).