From 89b70a8fab60cb9d2ec2c7d74ae229f431f1f836 Mon Sep 17 00:00:00 2001 From: Fiber Date: Fri, 18 Oct 2024 18:40:55 +0800 Subject: [PATCH] change --- README.md | 6 +++++- src/esd_bleeding_view_tool/__init__.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 68f0e6b..a96ca39 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/esd_bleeding_view_tool/__init__.py b/src/esd_bleeding_view_tool/__init__.py index c7e9116..301e66e 100644 --- a/src/esd_bleeding_view_tool/__init__.py +++ b/src/esd_bleeding_view_tool/__init__.py @@ -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)