change
This commit is contained in:
parent
f733f866f5
commit
89b70a8fab
@ -12,7 +12,6 @@ python3 -m pip install pdm
|
||||
运行代码(第一次运行)
|
||||
```shell
|
||||
pdm install
|
||||
export PDM_IGNORE_ACTIVE_VENV=1 //如果使用虚拟环境的话
|
||||
pdm run main
|
||||
```
|
||||
|
||||
@ -21,6 +20,11 @@ pdm run main
|
||||
pdm run main
|
||||
```
|
||||
|
||||
使用conda环境
|
||||
```shell
|
||||
pdm export -
|
||||
```
|
||||
|
||||
安装gui环境(如没有问题请跳过)
|
||||
```shell
|
||||
sudo apt-get update
|
||||
|
@ -104,7 +104,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
|
||||
img = self.video.read(self.now) # 读入opencv视频流
|
||||
y, x = img.shape[:-1]
|
||||
#视频帧如果过大需要在此进行缩放,如
|
||||
max_width = 1500
|
||||
max_width = 1000
|
||||
if x > max_width:
|
||||
mult = max_width/x
|
||||
img = cv2.resize(img, (0, 0), fx=mult, fy=mult, interpolation=cv2.INTER_NEAREST)
|
||||
|
Loading…
x
Reference in New Issue
Block a user