Files
enginex-bi_series-paddleocr/README.md
2025-08-29 14:54:34 +08:00

27 lines
802 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# enginex-bi_series-paddleocr
## Build docker image
```bash
docker build -t paddleocr:bi .
```
## 测试
### 下载模型
支持 PP-OCRv4及以下版本
PP-OCRv4模型
- det: https://paddleocr.bj.bcebos.com/PP-OCRv4/chinese/ch_PP-OCRv4_det_infer.tar
- rec: https://paddleocr.bj.bcebos.com/PP-OCRv4/chinese/ch_PP-OCRv4_rec_infer.tar
- cls: https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_cls_infer.tar
### 测试
模型放在`/mnt/contest_ceph/zhanghao/models/ocr/`下,运行下面的测试程序,可以识别出示例图片中的文字
```bash
./run_in_docker.sh python3 test.py
```
## OCR API Server
提供了一个`http` API server可以通过服务的方式加载模型以及进行图片识别启动命令如下
```bash
./run_in_docker.sh python3 app.py
```