Update utils/emotion_detection_brainai.py
Browse files
utils/emotion_detection_brainai.py
CHANGED
|
@@ -95,7 +95,7 @@ class EmotionModel:
|
|
| 95 |
uploaded_img = PIL.Image.open(img)
|
| 96 |
uploaded_img_cv = np.array(uploaded_img)
|
| 97 |
|
| 98 |
-
boxes = self.detect_faces(uploaded_img_cv
|
| 99 |
self.detect_emotions(uploaded_img_cv, boxes)
|
| 100 |
|
| 101 |
return uploaded_img_cv
|
|
|
|
| 95 |
uploaded_img = PIL.Image.open(img)
|
| 96 |
uploaded_img_cv = np.array(uploaded_img)
|
| 97 |
|
| 98 |
+
boxes = self.detect_faces(uploaded_img_cv)
|
| 99 |
self.detect_emotions(uploaded_img_cv, boxes)
|
| 100 |
|
| 101 |
return uploaded_img_cv
|