Spaces:
Runtime error
Runtime error
Create hand_tracker.py
Browse files- hand_tracker.py +12 -0
hand_tracker.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import cv2
|
| 2 |
+
import mediapipe as mp
|
| 3 |
+
|
| 4 |
+
mp_hands = mp.solutions.hands
|
| 5 |
+
mp_draw = mp.solutions.drawing_utils
|
| 6 |
+
|
| 7 |
+
hands = mp_hands.Hands(
|
| 8 |
+
static_image_mode=False,
|
| 9 |
+
max_num_hands=1,
|
| 10 |
+
min_detection_confidence=0.7,
|
| 11 |
+
min_tracking_confidence=0.7
|
| 12 |
+
)
|