Unverified 提交 c32b0aff authored 作者: ab-101's avatar ab-101 提交者: GitHub

Update detect.py (#2167)

Without this cv2.imshow opens a window but nothing is visible
上级 a5359f6c
...@@ -118,6 +118,7 @@ def detect(save_img=False): ...@@ -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:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论