diff --git a/code/crane/crane-api/crane-test/src/main/java/com/crane/test/Test.java b/code/crane/crane-api/crane-test/src/main/java/com/crane/test/Test.java index fd4c2712..9b5b887b 100644 --- a/code/crane/crane-api/crane-test/src/main/java/com/crane/test/Test.java +++ b/code/crane/crane-api/crane-test/src/main/java/com/crane/test/Test.java @@ -12,7 +12,7 @@ import java.util.Base64; public class Test{ public static void main(String[] args) throws IOException { String API_URL = "http://localhost:8866/ocr"; - String imagePath = "D:\\workspace\\code\\crane\\crane-api\\crane-test\\src\\main\\java\\com\\crane\\test\\tempImageNYfUPw-750x563.webp"; + String imagePath = "D:\\workspace\\code\\crane\\crane-api\\crane-test\\src\\main\\java\\com\\crane\\test\\namorni-preprava-namorni-doprava-kamionova-doprava-kontejneru-2-1024x768.jpg"; File file = new File(imagePath); long base64StartTime = System.nanoTime(); diff --git a/notes/后端开发/paddlepaddle/paddlelabel.md b/notes/后端开发/paddlepaddle/paddlelabel.md new file mode 100644 index 00000000..d021ed35 --- /dev/null +++ b/notes/后端开发/paddlepaddle/paddlelabel.md @@ -0,0 +1,4 @@ +# 相关网站 + +- github:https://github.com/PaddleCV-SIG/PaddleLabel +- 官网: \ No newline at end of file diff --git a/notes/软件工具/assets/标注工具/0cea5d0928af789071db2756e1651a25.png b/notes/软件工具/assets/标注工具/0cea5d0928af789071db2756e1651a25.png new file mode 100644 index 00000000..4dac64d4 Binary files /dev/null and b/notes/软件工具/assets/标注工具/0cea5d0928af789071db2756e1651a25.png differ diff --git a/notes/软件工具/assets/标注工具/18e76d4498f8da5b0113fe89da2a3809.png b/notes/软件工具/assets/标注工具/18e76d4498f8da5b0113fe89da2a3809.png new file mode 100644 index 00000000..a9bdd2ca Binary files /dev/null and b/notes/软件工具/assets/标注工具/18e76d4498f8da5b0113fe89da2a3809.png differ diff --git a/notes/软件工具/assets/标注工具/ccf75e7381f40c3d3c0438abf4b4bc83.png b/notes/软件工具/assets/标注工具/ccf75e7381f40c3d3c0438abf4b4bc83.png new file mode 100644 index 00000000..03793f49 Binary files /dev/null and b/notes/软件工具/assets/标注工具/ccf75e7381f40c3d3c0438abf4b4bc83.png differ diff --git a/notes/软件工具/assets/标注工具/image-20250702110516138.png b/notes/软件工具/assets/标注工具/image-20250702110516138.png new file mode 100644 index 00000000..8544e374 Binary files /dev/null and b/notes/软件工具/assets/标注工具/image-20250702110516138.png differ diff --git a/notes/软件工具/标注工具.md b/notes/软件工具/标注工具.md new file mode 100644 index 00000000..e3c07acf --- /dev/null +++ b/notes/软件工具/标注工具.md @@ -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/) + +点击下载【下载生成工具】,并打开。 + +![在这里插入图片描述](./assets/%E6%A0%87%E6%B3%A8%E5%B7%A5%E5%85%B7/ccf75e7381f40c3d3c0438abf4b4bc83.png) + +接着在Workloads中,点击选择【C++ build tools】 + +![在这里插入图片描述](./assets/%E6%A0%87%E6%B3%A8%E5%B7%A5%E5%85%B7/18e76d4498f8da5b0113fe89da2a3809.png) + +![在这里插入图片描述](./assets/%E6%A0%87%E6%B3%A8%E5%B7%A5%E5%85%B7/0cea5d0928af789071db2756e1651a25.png) + +并选择单个组件的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 +``` + +出现以下页面即代表启动成功 + +![image-20250702110516138](./assets/%E6%A0%87%E6%B3%A8%E5%B7%A5%E5%85%B7/image-20250702110516138.png) + +## 打包 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 +``` +