Spaces:
Running
Running
abrar-adnan
commited on
Commit
•
33bf45e
1
Parent(s):
961c5fc
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ def video_processing(video_file, encoded_video):
|
|
81 |
resized_face_image = cv2.resize(face_image, (128,128))
|
82 |
|
83 |
try:
|
84 |
-
|
85 |
total_emotion += 1
|
86 |
except Exception as e:
|
87 |
pass
|
|
|
81 |
resized_face_image = cv2.resize(face_image, (128,128))
|
82 |
|
83 |
try:
|
84 |
+
emotion = DeepFace.analyze(color_image,actions=['emotion'],detector_backend = backends[2],enforce_detection = False)# 2,3, 4 works
|
85 |
total_emotion += 1
|
86 |
except Exception as e:
|
87 |
pass
|