Update utils/emotion_detection_brainai.py
Browse files
utils/emotion_detection_brainai.py
CHANGED
|
@@ -62,7 +62,7 @@ class EmotionModel:
|
|
| 62 |
|
| 63 |
return boxes
|
| 64 |
|
| 65 |
-
def detect_emotions(self,
|
| 66 |
for box in boxes:
|
| 67 |
xmin, ymin, xmax, ymax = box
|
| 68 |
emotion_input = uploaded_img_cv[ymin:ymax,xmin:xmax]
|
|
|
|
| 62 |
|
| 63 |
return boxes
|
| 64 |
|
| 65 |
+
def detect_emotions(self, uploaded_img_cv, boxes):
|
| 66 |
for box in boxes:
|
| 67 |
xmin, ymin, xmax, ymax = box
|
| 68 |
emotion_input = uploaded_img_cv[ymin:ymax,xmin:xmax]
|