更新测试代码
This commit is contained in:
parent
41524be8fc
commit
ea0f0829b1
@ -88,8 +88,8 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
|||||||
self.txt = ""
|
self.txt = ""
|
||||||
|
|
||||||
|
|
||||||
def show_video(self):
|
def show_video(self, now_frame=0):
|
||||||
img = self.video.read(self.now) # 读入opencv视频流
|
img = self.video.read(now_frame) # 读入opencv视频流
|
||||||
y, x = img.shape[:-1]
|
y, x = img.shape[:-1]
|
||||||
#视频帧如果过大需要在此进行缩放,如
|
#视频帧如果过大需要在此进行缩放,如
|
||||||
max_width = 1000
|
max_width = 1000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user