更新测试代码

This commit is contained in:
Fiber 2024-10-21 08:37:51 +08:00
parent ea0f0829b1
commit 22e4778dce

View File

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