Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def predict_emotion(frame):
|
|
38 |
|
39 |
# Overlay a box over the detected face
|
40 |
cv2.putText(frame, label, (fX, fY - 10),
|
41 |
-
cv2.FONT_HERSHEY_DUPLEX,
|
42 |
cv2.rectangle(frame, (fX, fY), (fX + fW, fY + fH),
|
43 |
(238, 164, 64), 2)
|
44 |
|
|
|
38 |
|
39 |
# Overlay a box over the detected face
|
40 |
cv2.putText(frame, label, (fX, fY - 10),
|
41 |
+
cv2.FONT_HERSHEY_DUPLEX, 0.5, (238, 164, 64), 1, cv2.LINE_AA)
|
42 |
cv2.rectangle(frame, (fX, fY), (fX + fW, fY + fH),
|
43 |
(238, 164, 64), 2)
|
44 |
|