Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ def process_video(input_video):
|
|
| 99 |
|
| 100 |
# Resize the frame to 640x640 before passing to the model
|
| 101 |
resized_frame = cv2.resize(frame, (640, 640))
|
| 102 |
-
|
| 103 |
gray_frame = cv2.cvtColor(resized_frame, cv2.COLOR_BGR2GRAY)
|
| 104 |
input_frame = cv2.merge([gray_frame, gray_frame, gray_frame])
|
| 105 |
|
|
|
|
| 99 |
|
| 100 |
# Resize the frame to 640x640 before passing to the model
|
| 101 |
resized_frame = cv2.resize(frame, (640, 640))
|
| 102 |
+
print(resized_frame.shape)
|
| 103 |
gray_frame = cv2.cvtColor(resized_frame, cv2.COLOR_BGR2GRAY)
|
| 104 |
input_frame = cv2.merge([gray_frame, gray_frame, gray_frame])
|
| 105 |
|