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
Close
Hashes for rapidocr_onnxruntime-1.1.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 900f2590ddc6deb12f099a4ddf402bba61932978c378604f1552aa5e10512757 |
|
MD5 | 37cce92b3844278ccb9f056f859453b5 |
|
BLAKE2b-256 | 7263cd4fdb75e65d3c3284075309542fc6e821e18ecf367fddecb6fa50b21980 |