From 1b6153b0ea2b2be963096d49f81e26b5a605d355 Mon Sep 17 00:00:00 2001 From: Pandapowr <144907656+PandapowrTR@users.noreply.github.com> Date: Thu, 18 Jan 2024 22:12:29 +0300 Subject: [PATCH] Add files via upload --- Data/Collect/CollectImage.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Data/Collect/CollectImage.py b/Data/Collect/CollectImage.py index 65f2be4..59b8acd 100644 --- a/Data/Collect/CollectImage.py +++ b/Data/Collect/CollectImage.py @@ -199,8 +199,7 @@ def collectFromVideo(videoPath: str, saveToPath: str, i: int = 0, printInfo:bool ) cv2.imshow("Video", frame) except: - cv2.imshow("Video", blackImage) - pass + break # Release the video capture and close the window cap.release()