Update detect.py (#2167)
Without this cv2.imshow opens a window but nothing is visible
This commit is contained in:
parent
a5359f6c32
commit
c32b0aff76
|
|
@ -118,6 +118,7 @@ def detect(save_img=False):
|
||||||
# Stream results
|
# Stream results
|
||||||
if view_img:
|
if view_img:
|
||||||
cv2.imshow(str(p), im0)
|
cv2.imshow(str(p), im0)
|
||||||
|
cv2.waitKey(1) # 1 millisecond
|
||||||
|
|
||||||
# Save results (image with detections)
|
# Save results (image with detections)
|
||||||
if save_img:
|
if save_img:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue