Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,13 +23,7 @@ def object_detection(video):
|
|
23 |
print(x1, y1, x2, y2)
|
24 |
cv2.rectangle(frame, (x1, y1), (x2, y2), (0, 255, 0), 2)
|
25 |
|
26 |
-
cv2.imshow("img", frame)
|
27 |
-
|
28 |
-
if cv2.waitKey(1) & 0xFF == ord("q"):
|
29 |
-
break
|
30 |
-
|
31 |
-
cap.release()
|
32 |
-
cv2.destroyAllWindows()
|
33 |
|
34 |
|
35 |
iface = gr.Interface(object_detection,
|
|
|
23 |
print(x1, y1, x2, y2)
|
24 |
cv2.rectangle(frame, (x1, y1), (x2, y2), (0, 255, 0), 2)
|
25 |
|
26 |
+
return cv2.imshow("img", frame)
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
|
29 |
iface = gr.Interface(object_detection,
|