更新测试代码

This commit is contained in:
Fiber 2024-10-21 08:35:50 +08:00
parent 41524be8fc
commit ea0f0829b1

View File

@ -88,8 +88,8 @@ class MainWindow(QMainWindow, Ui_MainWindow):
self.txt = ""
def show_video(self):
img = self.video.read(self.now) # 读入opencv视频流
def show_video(self, now_frame=0):
img = self.video.read(now_frame) # 读入opencv视频流
y, x = img.shape[:-1]
#视频帧如果过大需要在此进行缩放,如
max_width = 1000