프로젝트
GitHub에서 보기
Sousannah/hand-tracking-using-mediapipe
소개
This Python script utilizes the MediaPipe library to perform hand tracking in real-time using your webcam. It detects hand landmarks and draws connections between them, allowing you to visualize hand movements.
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalHand Tracking using MediaPipe
This Python script utilizes the MediaPipe library to perform hand tracking in real-time using your webcam. It detects hand landmarks and draws connections between them, allowing you to visualize hand movements.
Sample Output
![]()
Prerequisites
Before running the script, ensure you have the following installed:
- Python (version 3.7 or higher)
- OpenCV (
opencv-pythonpackage) - MediaPipe (
mediapipepackage)
You can install the required packages using pip:
pip install opencv-python mediapipe==0.10.18
Note: Newer versions of mediapipe may cause errors with this project.
Usage
- Clone this repository to your local machine.
- Navigate to the directory containing the script.
- Run the script using Python:
python hand_tracking.py
- A window will pop up displaying your webcam feed with hand tracking overlay.
- Press 'q' to exit the program.
Code Explanation
- The script captures video input from your webcam (
cv2.VideoCapture). - It utilizes MediaPipe's
Handsmodel to detect hand landmarks in each frame. - Detected landmarks are used to draw circles at specific key points on the hand (e.g., fingertips, base).
- Hand connections are drawn between landmarks to visualize hand structure.
- The script calculates and displays frames per second (FPS) to monitor performance.
- Pressing 'q' quits the application.
Mediapipe Hand Landmarks
![]()
관련 프로젝트 살펴보기
불러오는 중…