Skip to main content

rapidocr-openvino Package

1. Install package by pypi.

$ pip install rapidocr-openvino

2. Use.

  • Run by script.

    import cv2
    from rapidocr_openvino import RapidOCR
    
    rapid_ocr = RapidOCR()
    
    img_path = 'tests/test_files/ch_en_num.jpg'
    
    # str
    result = rapid_ocr(img_path)
    
    # np.ndarray
    img = cv2.imread('tests/test_files/ch_en_num.jpg')
    result = rapid_ocr(img)
    
    # bytes
    with open(img_path, 'rb') as f:
        result = rapid_ocr(f.read())
    
    # Path
    result = rapid_ocr(Path(img_path))
    print(result)
    
    # result: [[dt_boxes], txt, score]
    # 示例:[[左上, 右上, 右下, 左下], '小明', '0.99']
    
    # elapse_list: [det_elapse, cls_elapse, rec_elapse]
    # all_elapse = det_elapse + cls_elapse + rec_elapse
    
  • Run by command line.

    $ rapidocr_openvino -h
      usage: rapidocr_openvino [-h] [-img IMG_PATH] [-p]
    
      optional arguments:
      -h, --help            show this help message and exit
      -img IMG_PATH, --img_path IMG_PATH
      -p, --print_cost
    
    $ rapidocr_openvino -img tests/test_files/ch_en_num.jpg
    

Metadata

Release files for rapidocr-openvino 1.1.29

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for rapidocr-openvino 1.1.29
File Interpreter ABI Platform Actions
rapidocr_openvino-1.1.29-py3-none-any.whl Python 3 none any Details for rapidocr_openvino-1.1.29-py3-none-any.whl

Release files / rapidocr_openvino-1.1.29-py3-none-any.whl

Download URL rapidocr_openvino-1.1.29-py3-none-any.whl
Size 12.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
880829f76bc3f186edb9f7fed5a7cc3c1c1665919eb25b729be7d7838aa8eac1
BLAKE2b-256 checksum
How to use checksums
fc10f6028e5788b71f9a1d5daeb206ef571e343095cddb590f8a554f3fd8f3d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for rapidocr-openvino 1.1.29

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.29 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page