浏览代码
Update detect.py (#2167)
Without this cv2.imshow opens a window but nothing is visible
5.0
ab-101
GitHub
3 年前
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有
1 个文件被更改,包括
1 次插入 和
0 次删除
-
detect.py
|
|
@@ -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: |