mirror of
https://github.com/yakhyo/uniface.git
synced 2025-12-30 09:02:25 +00:00
feat: Add face emotion model
This commit is contained in:
@@ -22,7 +22,7 @@ def extract_reference_embedding(detector, recognizer, image_path):
|
||||
return embedding
|
||||
|
||||
|
||||
def run_video(detector, recognizer, ref_embedding, threshold=0.45):
|
||||
def run_video(detector, recognizer, ref_embedding, threshold=0.30):
|
||||
cap = cv2.VideoCapture(0)
|
||||
if not cap.isOpened():
|
||||
raise RuntimeError("Webcam could not be opened.")
|
||||
|
||||
Reference in New Issue
Block a user