arshtech commited on
Commit
cdee45c
·
verified ·
1 Parent(s): 7055129

Create hand_tracker.py

Browse files
Files changed (1) hide show
  1. 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
+ )