Skip to content

Commit

Permalink
[Fix] fix gui VideoSlider bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Z-Fran committed May 31, 2023
1 parent 3c5bd83 commit f77b146
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/gui/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f77b146

Please sign in to comment.