u
This commit is contained in:
1 parent
a54ecde32d
commit
d4f57850a1
7 files changed
+162
-1
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 156 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 450 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 116 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 570 KiB |
@@ -0,0 +1,157 @@
|
||||
# 通用错误
|
||||
|
||||
## Microsoft Visual C++ 14.0 or greater is required.
|
||||
|
||||
### 1. 下载Microsoft C++ Build Tools
|
||||
打开网址:[Microsoft C++ Build Tools](https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/)
|
||||
|
||||
点击下载【下载生成工具】,并打开。
|
||||
|
||||

|
||||
|
||||
接着在Workloads中,点击选择【C++ build tools】
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
并选择单个组件的C++工具开始下载。
|
||||
|
||||
### 2. 重启
|
||||
显示下载完成后,重启机器即可。
|
||||
|
||||
# [xclabel](https://gitee.com/Vanishi/xclabel)
|
||||
|
||||
## 环境
|
||||
|
||||
- python:3.10
|
||||
|
||||
## 安装
|
||||
|
||||
```bash
|
||||
git clone https://gitee.com/Vanishi/xclabel.git
|
||||
```
|
||||
|
||||
创建虚拟环境
|
||||
|
||||
```bash
|
||||
conda create -n xclabel python=3.10
|
||||
|
||||
conda activate xclabel
|
||||
|
||||
//更新pip
|
||||
python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
//安装requirements
|
||||
python -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
```
|
||||
|
||||
## 运行
|
||||
|
||||
- 环境安装完成后,启动服务: python manage.py runserver 0.0.0.0:9924
|
||||
- 访问服务:在浏览器输入 [http://127.0.0.1:9924](https://gitee.com/link?target=http%3A%2F%2F127.0.0.1%3A9924) 就可以开始了,默认账号 admin admin888
|
||||
|
||||
|
||||
|
||||
## 报错
|
||||
|
||||
### FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'E:\\'
|
||||
|
||||
修改 config.json 配置路径即可
|
||||
|
||||
```json
|
||||
{
|
||||
"host": "127.0.0.1",
|
||||
"port": 9924,
|
||||
"ffmpeg": "ffmpeg",
|
||||
"storageDir": "D:\\project\\bxc\\gitee\\xclabel\\static\\storage",
|
||||
"yolo8": {
|
||||
"install_dir": "D:\\project\\ai\\yolov8",
|
||||
"venv": "venv\\Scripts\\activate.bat",
|
||||
"name": "yolo",
|
||||
"model": "yolov8n.pt"
|
||||
},
|
||||
"yolo11": {
|
||||
"install_dir": "D:\\project\\ai\\yolov11",
|
||||
"venv": "venv\\Scripts\\activate.bat",
|
||||
"name": "yolo",
|
||||
"model": "yolo11n.pt"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
# [PPOCRLabel](https://github.com/PFCCLab/PPOCRLabel)
|
||||
|
||||
## 环境
|
||||
|
||||
- python:3.9
|
||||
- paddlepadle:3.0.0
|
||||
- ppocrlabel:3.1.1
|
||||
|
||||
## 安装
|
||||
|
||||
创建虚拟环境
|
||||
|
||||
```bash
|
||||
conda create -n ppocrlabel python=3.9
|
||||
conda activate ppocrlabel
|
||||
```
|
||||
|
||||
安装PaddlePaddle
|
||||
|
||||
```bash
|
||||
pip3 install --upgrade pip
|
||||
|
||||
python -m pip install paddlepaddle-gpu==3.0.0 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
|
||||
```
|
||||
|
||||
下载 [PPOCRLabel](https://github.com/PFCCLab/PPOCRLabel)
|
||||
|
||||
```bash
|
||||
git clone https://github.com/PFCCLab/PPOCRLabel.git
|
||||
```
|
||||
|
||||
安装相关依赖
|
||||
|
||||
```bash
|
||||
pip install pyproject.toml
|
||||
|
||||
|
||||
pip install openpyxl
|
||||
pip install opencv-python
|
||||
pip install PyQt5
|
||||
pip install pandas
|
||||
pip install paddleocr
|
||||
```
|
||||
|
||||
|
||||
|
||||
## 启动
|
||||
|
||||
```bash
|
||||
python PPOCRLabel.py --lang ch
|
||||
```
|
||||
|
||||
出现以下页面即代表启动成功
|
||||
|
||||

|
||||
|
||||
## 打包 exe
|
||||
|
||||
```bash
|
||||
cd ./PPOCRLabel
|
||||
# 安装pyinstaller
|
||||
pip install pyinstaller
|
||||
|
||||
# 重新生成资源
|
||||
pyrcc5 -o libs/resources.py resources.qrc
|
||||
|
||||
# 打包可执行程序
|
||||
pyinstaller -c PPOCRLabel.py --collect-all paddleocr --collect-all pyclipper --collect-all imghdr --collect-all skimage --collect-all imgaug --collect-all scipy.io --collect-all lmdb --collect-all paddle --hidden-import=pyqt5 -p ./libs -p ./ -p ./data -p ./resources -F
|
||||
|
||||
# 运行dist中的可执行程序,以windows为例
|
||||
PPOCRLabel.exe --lang ch
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user