RapidOCR
Project description
rapidocr-onnxruntime Package
Install package by pypi.
pip install rapidocr-onnxruntime
Download the models and config yaml.
wget https://github.com/RapidAI/RapidOCR/releases/download/v1.0.0/required_for_whl_v1.0.0.zip
# or by gitee
# wget https://gitee.com/RapidAI/RapidOCR/attach_files/1126710/download/required_for_whl_v1.0.0.zip
unzip required_for_whl_v1.0.0.zip
cd required_for_whl_v1.0.0
- The final directory of the folder:
required_for_whl_v1.0.0/
├── config.yaml
├── README.md
├── test_demo.py
├── resources
│ ├── models
│ │ ├── ch_ppocr_mobile_v2.0_cls_infer.onnx
│ │ ├── ch_PP-OCRv3_det_infer.onnx
│ │ └── ch_PP-OCRv3_rec_infer.onnx
│ └── rec_dict
│ └── ppocr_keys_v1.txt
└── test_images
└── ch_en_num.jpg
Use by python script.
import cv2
from rapidocr_onnxruntime import TextSystem
text_sys = TextSystem('config.yaml')
img = cv2.imread('test_images/ch_en_num.jpg')
dt_boxes, rec_res = text_sys(img)
print(rec_res)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for rapidocr_onnxruntime-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d7e792dd528d599b6b077a32dd281d3e92b30a5190651a21cac2857790122c2 |
|
MD5 | d6213c9ccbba35bc266fe67cd2d684ca |
|
BLAKE2b-256 | b88d6246b94396a7d40b1cd59384ea5845898bff82cbe76b387d9842f2546821 |