Skip to main content

RapidOCR

Project description

rapidocr-onnxruntime Package

1. Install package by pypi.

$ pip install rapidocr-onnxruntime

2. Use.

import cv2
from rapidocr_onnxruntime import RapidOCR

text_sys = RapidOCR()

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

result, elapse_list = text_sys(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.15-py3-none-any.whl (12.3 MB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for rapidocr_onnxruntime-1.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 01f6cfd32dbcd5af9a5aa9e4b02289ed66e8742aea14ce32835358680467fc7c
MD5 de1b64cf9c666ac0de1e0cd6b3200613
BLAKE2b-256 bec49871fc7a922431cc92dfedcd5d69c2314320be2d1d4e94769f0a259cf900

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