Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def predict_emotion(frame):
|
|
42 |
label = EMOTIONS[preds.argmax()]
|
43 |
|
44 |
# Overlay a box over the detected face
|
45 |
-
cv2.putText(frame_clone, label, (fX, fY
|
46 |
cv2.FONT_HERSHEY_DUPLEX, 1, (238, 164, 64), 1)
|
47 |
cv2.rectangle(frame_clone, (fX, fY), (fX + fW, fY + fH),
|
48 |
(238, 164, 64), 2)
|
|
|
42 |
label = EMOTIONS[preds.argmax()]
|
43 |
|
44 |
# Overlay a box over the detected face
|
45 |
+
cv2.putText(frame_clone, label, (fX, fY + 10),
|
46 |
cv2.FONT_HERSHEY_DUPLEX, 1, (238, 164, 64), 1)
|
47 |
cv2.rectangle(frame_clone, (fX, fY), (fX + fW, fY + fH),
|
48 |
(238, 164, 64), 2)
|