23A475R commited on
Commit
61e9d71
1 Parent(s): 6931130

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -74,10 +74,9 @@ def predict_emotion(frame):
74
  label = EMOTIONS[preds.argmax()]
75
 
76
  # Overlay a box over the detected face
77
- cv2.putText(frame_clone, label, (fX, fY - 10),
78
  cv2.FONT_HERSHEY_DUPLEX, 0.5, (238, 164, 64), 1)
79
-
80
- cv2.rectangle(frame, (fX, fY), (fX + fW, fY + fH),
81
  (238, 164, 64), 2)
82
 
83
  return frame
 
74
  label = EMOTIONS[preds.argmax()]
75
 
76
  # Overlay a box over the detected face
77
+ cv2.putText(frame_clone, label, (fX, fY + 10),
78
  cv2.FONT_HERSHEY_DUPLEX, 0.5, (238, 164, 64), 1)
79
+ cv2.rectangle(frame_clone, (fX, fY), (fX + fW, fY + fH),
 
80
  (238, 164, 64), 2)
81
 
82
  return frame