Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,9 +80,8 @@ def live_feed_generator(video_type, confidence_threshold=0.9):
|
|
| 80 |
# Draw detections on frame
|
| 81 |
annotated_frame = video_service.draw_detections(frame, detections)
|
| 82 |
annotated_frame_rgb = cv2.cvtColor(annotated_frame, cv2.COLOR_BGR2RGB)
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
print(f"Annotated frame shape: {annotated_frame_rgb.shape}")
|
| 87 |
|
| 88 |
# Update state
|
|
|
|
| 80 |
# Draw detections on frame
|
| 81 |
annotated_frame = video_service.draw_detections(frame, detections)
|
| 82 |
annotated_frame_rgb = cv2.cvtColor(annotated_frame, cv2.COLOR_BGR2RGB)
|
| 83 |
+
cv2.imshow("Debug Frame", annotated_frame_rgb)
|
| 84 |
+
cv2.waitKey(1)
|
|
|
|
| 85 |
print(f"Annotated frame shape: {annotated_frame_rgb.shape}")
|
| 86 |
|
| 87 |
# Update state
|