Skip to main content

RapidOCR

Project description

rapidocr-openvino Package

1. Install package by pypi.

pip install rapidocr-openvino

2. Download the models and config yaml.

wget https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/required_for_whl_v1.1.0.zip

# or by gitee
# wget https://gitee.com/RapidAI/RapidOCR/releases/download/v1.1.0/required_for_whl_v1.1.0.zip

unzip required_for_whl_v1.1.0.zip
cd required_for_whl_v1.1.0
  • The final directory of the folder:
    required_for_whl_v1.1.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
    └── test_images
        └── ch_en_num.jpg
    

3. Use.

import cv2
from rapidocr_openvino 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

If you're not sure about the file name format, learn more about wheel file names.

rapidocr_openvino-0.0.3-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file rapidocr_openvino-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for rapidocr_openvino-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e08428f49b4c3b14aafbf5f3726332e10c493d13eaba46587b4a3f44dbc0faaa
MD5 3be74f8a8a3902095307e014857f78ca
BLAKE2b-256 9f33d725445cf83e1c7ebf3295f66e24c99aa60eec87ab7730b127f19622e404

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page