|
|
2 tháng trước cách đây | |
|---|---|---|
| .. | ||
| onnxocr | 2 tháng trước cách đây | |
| result_img | 2 tháng trước cách đây | |
| static | 2 tháng trước cách đây | |
| templates | 2 tháng trước cách đây | |
| .gitignore | 2 tháng trước cách đây | |
| Dockerfile | 2 tháng trước cách đây | |
| LICENSE | 2 tháng trước cách đây | |
| Readme.md | 2 tháng trước cách đây | |
| Readme_cn.md | 2 tháng trước cách đây | |
| app-service.py | 2 tháng trước cách đây | |
| draw_ocr.jpg | 2 tháng trước cách đây | |
| test_ocr.py | 2 tháng trước cách đây | |
| webui.py | 2 tháng trước cách đây | |
English | 简体中文 |

A High-Performance Multilingual OCR Engine Based on ONNX
python>=3.6
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
Note:
onnxocr/models/ppocrv5 and requires no download;det and rec models in ./models/ppocrv5/ to replace the existing ones.python test_ocr.py
python app-service.py
curl -X POST http://localhost:5005/ocr \
-H "Content-Type: application/json" \
-d '{"image": "base64_encoded_image_data"}'
{
"processing_time": 0.456,
"results": [
{
"text": "Name",
"confidence": 0.9999361634254456,
"bounding_box": [[4.0, 8.0], [31.0, 8.0], [31.0, 24.0], [4.0, 24.0]]
},
{
"text": "Header",
"confidence": 0.9998759031295776,
"bounding_box": [[233.0, 7.0], [258.0, 7.0], [258.0, 23.0], [233.0, 23.0]]
}
]
}
docker build -t ocr-service .
docker run -itd --name onnxocr-service-v3 -p 5006:5005 onnxocr-service:v3
url: ip:5006/ocr
{
"processing_time": 0.456,
"results": [
{
"text": "Name",
"confidence": 0.9999361634254456,
"bounding_box": [[4.0, 8.0], [31.0, 8.0], [31.0, 24.0], [4.0, 24.0]]
},
{
"text": "Header",
"confidence": 0.9998759031295776,
"bounding_box": [[233.0, 7.0], [258.0, 7.0], [258.0, 23.0], [233.0, 23.0]]
}
]
}
| Example 1 | Example 2 |
|-----------|-----------|
|
|
|
| Example 3 | Example 4 |
|-----------|-----------|
|
|
|
| Example 5 | Example 6 |
|-----------|-----------|
|
|
|
I am currently seeking job opportunities. Welcome to connect!

Thanks to PaddleOCR for technical support!
I am passionate about open source and AI technology, believing they can bring convenience and help to those in need, making the world a better place. If you recognize this project, you can support it via Alipay or WeChat Pay (please note "Support OnnxOCR" in the remarks).
Welcome to submit Issues and Pull Requests to improve the project together!