23A475R commited on
Commit
fbe49c2
1 Parent(s): c430995

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 - 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)
 
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)