From f77b1463b533ee48fa93c2fcf5efae0e846cc474 Mon Sep 17 00:00:00 2001 From: Z-Fran Date: Wed, 31 May 2023 13:55:48 +0800 Subject: [PATCH] [Fix] fix gui VideoSlider bug --- tools/gui/component.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/gui/component.py b/tools/gui/component.py index 54f1c490e1..89e9842d96 100644 --- a/tools/gui/component.py +++ b/tools/gui/component.py @@ -439,8 +439,8 @@ def run(self): num = self.num if self.num < self.total_frames2 \ else self.total_frames2 - 1 img2 = cv2.imread(self.v2[num]) - elif isinstance(self.v1, cv2.VideoCapture): - r, img2 = self.v1.read() + elif isinstance(self.v2, cv2.VideoCapture): + r, img2 = self.v2.read() if not r: self.v2, self.fps2, self.total_frames2 = self.setVideo( self.path2, self.fps2)