NihalGazi commited on
Commit
fec3313
·
verified ·
1 Parent(s): 87164f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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=True,
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):