Skip to content

Commit

Permalink
Update detect.py (ultralytics#2167)
Browse files Browse the repository at this point in the history
Without this cv2.imshow opens a window but nothing is visible
  • Loading branch information
ab-101 authored Feb 9, 2021
1 parent 3c9c786 commit 41de703
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def detect(save_img=False):
# Stream results
if view_img:
cv2.imshow(str(p), im0)
cv2.waitKey(1) # 1 millisecond

# Save results (image with detections)
if save_img:
Expand Down

0 comments on commit 41de703

Please sign in to comment.