updates
This commit is contained in:
parent
8d8daff390
commit
b87bfa32c3
|
@ -125,6 +125,8 @@ def detect(save_txt=False, save_img=False):
|
||||||
# Stream results
|
# Stream results
|
||||||
if view_img:
|
if view_img:
|
||||||
cv2.imshow(p, im0)
|
cv2.imshow(p, im0)
|
||||||
|
if cv2.waitKey(1) == ord('q'): # q to quit
|
||||||
|
raise StopIteration
|
||||||
|
|
||||||
# Save results (image with detections)
|
# Save results (image with detections)
|
||||||
if save_img:
|
if save_img:
|
||||||
|
|
Loading…
Reference in New Issue