From 1f419b72181fd94fa862dc8ae07eb67716739171 Mon Sep 17 00:00:00 2001 From: ab-101 <56578530+ab-101@users.noreply.github.com> Date: Tue, 9 Feb 2021 11:11:27 +0500 Subject: [PATCH] Update detect.py Without this cv2.imshow opens a window but nothing is visible --- detect.py | 1 + 1 file changed, 1 insertion(+) diff --git a/detect.py b/detect.py index f9085e670916..3f1d6c521b67 100644 --- a/detect.py +++ b/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: