Skip to content

Commit c32b0af

Browse files
authored
Update detect.py (#2167)
Without this cv2.imshow opens a window but nothing is visible
1 parent a5359f6 commit c32b0af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

detect.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def detect(save_img=False):
118118
# Stream results
119119
if view_img:
120120
cv2.imshow(str(p), im0)
121+
cv2.waitKey(1) # 1 millisecond
121122

122123
# Save results (image with detections)
123124
if save_img:

0 commit comments

Comments
 (0)