Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,10 +10,11 @@ import os
|
|
10 |
try:
|
11 |
mp_face_mesh = mp.solutions.face_mesh
|
12 |
face_mesh = mp_face_mesh.FaceMesh(
|
13 |
-
static_image_mode=
|
14 |
max_num_faces=1,
|
15 |
refine_landmarks=True,
|
16 |
-
min_detection_confidence=0.8
|
|
|
17 |
)
|
18 |
print("MediaPipe Face Mesh initialized successfully.")
|
19 |
except (ImportError, AttributeError):
|
|
|
10 |
try:
|
11 |
mp_face_mesh = mp.solutions.face_mesh
|
12 |
face_mesh = mp_face_mesh.FaceMesh(
|
13 |
+
static_image_mode=False,
|
14 |
max_num_faces=1,
|
15 |
refine_landmarks=True,
|
16 |
+
min_detection_confidence=0.8,
|
17 |
+
min_tracking_confidence=0.8
|
18 |
)
|
19 |
print("MediaPipe Face Mesh initialized successfully.")
|
20 |
except (ImportError, AttributeError):
|