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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for rapidocr_onnxruntime-1.1.27-py3-none-any.whl
Algorithm Hash digest
SHA256 fd6b4fc7b020e8b5e75838b4b2bd141650db6fcf9d0270ab89f3f2a4e7be2d9c
MD5 97de4d100fc8fc94471705fb45da999a
BLAKE2b-256 fd9d15ad90eb7f44a5dbf00f679034abe56b3fbb9a62e18fd9e95529e9fb6025

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