KAHRAMAN42 commited on
Commit
6e7b469
·
verified ·
1 Parent(s): e272ac6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
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,