maxineattobrah commited on
Commit
e92e867
·
1 Parent(s): 89c0b05

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def predict_emotion(frame):
30
  prediction = model.predict(face)
31
  if any(prob >.5 for prob in prediction[0]):
32
  emotion = emotions[np.argmax(prediction)]
33
- cv2.putText(frame, emotion, (x, y - 10), cv2.FONT_HERSHEY_SIMPLEX, 1, (128, 128, 0), 2)
34
  cv2.rectangle(frame, (x, y), (x + w, y + h), (0, 0, 0), 2)
35
  else:
36
  cv2.putText(frame, low_confidence_alert, (x, y - 10), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 0),
 
30
  prediction = model.predict(face)
31
  if any(prob >.5 for prob in prediction[0]):
32
  emotion = emotions[np.argmax(prediction)]
33
+ cv2.putText(frame, emotion, (x, y - 10), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 0), 2)
34
  cv2.rectangle(frame, (x, y), (x + w, y + h), (0, 0, 0), 2)
35
  else:
36
  cv2.putText(frame, low_confidence_alert, (x, y - 10), cv2.FONT_HERSHEY_SIMPLEX, 1, (0, 255, 0),