Spaces:
Build error
Build error
Update sleep_detection.py
Browse files- sleep_detection.py +1 -1
sleep_detection.py
CHANGED
|
@@ -101,7 +101,7 @@ def process_image(image_path):
|
|
| 101 |
new_height = int(height * (max_display_size / width))
|
| 102 |
img_rgb = cv2.resize(img_rgb, (new_width, new_height))
|
| 103 |
|
| 104 |
-
#
|
| 105 |
img_with_boxes, sleepy_faces = classify_faces(img_rgb)
|
| 106 |
|
| 107 |
# Converting back to BGR for saving with OpenCV
|
|
|
|
| 101 |
new_height = int(height * (max_display_size / width))
|
| 102 |
img_rgb = cv2.resize(img_rgb, (new_width, new_height))
|
| 103 |
|
| 104 |
+
# Classifying faces and retrieving image with bounding boxes
|
| 105 |
img_with_boxes, sleepy_faces = classify_faces(img_rgb)
|
| 106 |
|
| 107 |
# Converting back to BGR for saving with OpenCV
|