Skip to main content

A cross platform OCR Library based on OnnxRuntime.

Project description

rapidocr-onnxruntime Package

1. Install package by pypi.

$ pip install rapidocr-onnxruntime

2. Use.

import cv2
from rapidocr_onnxruntime import RapidOCR

rapid_ocr = RapidOCR()

img = cv2.imread('test_images/ch_en_num.jpg')

result, elapse_list = rapid_ocr(img)
print(result)
print(elapse_list)

# result: [[dt_boxes], txt, score]
# 示例:[[左上, 右上, 右下, 左下], '小明', '0.99']

# elapse_list: [det_elapse, cls_elapse, rec_elapse]
# all_elapse = det_elapse + cls_elapse + rec_elapse

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_onnxruntime-1.1.26-py3-none-any.whl (12.3 MB view details)

Uploaded Python 3

File details

Details for the file rapidocr_onnxruntime-1.1.26-py3-none-any.whl.

File metadata

File hashes

Hashes for rapidocr_onnxruntime-1.1.26-py3-none-any.whl
Algorithm Hash digest
SHA256 fea9a4b06dcbfc0836dc4102ab49ad0d16c4808fa175e3cf8a4875307c8c4772
MD5 da0ef59de9a61c6127c6eccb24e74f7f
BLAKE2b-256 d8544a992760dfe3163430cdadcb760f55824cbf690ae2c0b1717bd4f2181be5

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