Browse Source
Update detect.py (#2167)
Without this cv2.imshow opens a window but nothing is visible
5.0
ab-101
GitHub
3 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
detect.py
|
|
|
|
|
|
|
|
# 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: |