# deepSystem **Repository Path**: 1099186831/deep-system ## Basic Information - **Project Name**: deepSystem - **Description**: 图像差异智能感知系统PyQt界面 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-01-22 - **Last Updated**: 2022-01-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # deepSystem 项目包含一个深度学习前后端检测系统,分为两个部分,`deepSystemFront`和`deepSystemEnd` 运行项目前需要下载下面的文件并解压,放在`deepSystemEnd`下,具体形式为`/deepSystemEnd/flaskPredict`: ``` 链接: https://pan.baidu.com/s/14xrM9WNeM3myh201eQ8WtQ 密码: 8f6e ``` ## deepSystemFront ### 所需环境: `pyqt5`, `opencv-python`,使用PIP安装方法: ``` pip3 install PyQt5 pip3 install opencv-contrib-python pip3 install -r requirements.txt ``` ### 使用方法 1. 配置`deepSystem/cfg/conf.yaml`文件 ``` # 差异检测的baseimg change_baseimg_path: baseimg_path #../deepSystemEnd/flaskPredict/data/in000474.jpg ``` 2. 运行界面 ``` python3 deepsystem.py ``` ### PyQt5 Icon and Resouces * https://doc.qt.io/qt-5/resources.html * https://blog.csdn.net/wn0112/article/details/47973953 stage 1: Install tools ``` sudo apt install pyqt5-dev-tools ``` stage 2: Create `qrc` file (`AppResource.qrc`) ``` doc/images/icon_newProject.png doc/images/icon_loadProject.png doc/images/icon_save.png doc/images/icon_detect.png doc/images/icon_train.png ``` stage 4: create resource file: ``` pyrcc5 -o AppResource.py AppResource.qrc ``` ### 报错 1. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/lsc/anaconda3/envs/label/lib/python3.6/site-packages/cv2/qt/plugins" even though it was found. opencv和PyQt5版本不匹配 ```pip install opencv-python==4.3.0.36 PyQt5==5.15.2 pip install opencv-python==4.3.0.36 PyQt5==5.15.2 ``` 2. config_dict = yaml.load(f.read()) TypeError: load() missing 1 required positional argument: 'Loader' 当前`pyyaml` 版本 `6.0` 与当前程序导入包的方式不兼容。只需将 pyyaml 版本降级到与当前 Google Colab 导入方式兼容的 5.4.1。使用这个命令降级 `pyyaml` ```pip install pyyaml==5.4.1 pip install pyyaml==5.4.1 ``` ## deepSystemEnd ### 所需环境: 通过`requirements.txt`文件一键安装 ``` pip3 install -r requirements.txt ``` ### 使用方法 ``` python3 flask_fusenet_server.py ``` ### 目前功能: 1. 打开服务器后使用网页上传图片,网址为http://127.0.0.1:5000/ 2. 通过deepSystem交互界面检测图片