Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,8 +13,8 @@ mp_hands = mp.solutions.hands
|
|
| 13 |
hands = mp_hands.Hands(
|
| 14 |
static_image_mode=False, # Process a video stream
|
| 15 |
max_num_hands=1, # We'll track one hand for this application
|
| 16 |
-
min_detection_confidence=0.
|
| 17 |
-
min_tracking_confidence=0.
|
| 18 |
)
|
| 19 |
|
| 20 |
print("MediaPipe Hands model initialized successfully.")
|
|
|
|
| 13 |
hands = mp_hands.Hands(
|
| 14 |
static_image_mode=False, # Process a video stream
|
| 15 |
max_num_hands=1, # We'll track one hand for this application
|
| 16 |
+
min_detection_confidence=0.4, # Lowered confidence for better detection
|
| 17 |
+
min_tracking_confidence=0.3 # Minimum confidence value for tracking
|
| 18 |
)
|
| 19 |
|
| 20 |
print("MediaPipe Hands model initialized successfully.")
|