RapidOCR OpenVINO GPU version (GPU version only)
Project description
Python RapidOCR OpenVINO with GPU (with GPU only)
This is a modified verison of RapidOCR (https://github.com/RapidAI/RapidOCR) to support OpenVINO GPU. Currently works only with for fixed size images (max len of 960) and also needs the image size to a multiple of 32.
Installation:
git clone https://github.com/jaggiK/rapidocr_openvinogpu.git
python3 setup.py install
cd rapidocr_openvinogpu
Inference:
Run inference for all the images in a given directory
python3 demo.py -d <absolute_path/to/directory>
Infering an image:
python3 demo.py -f <absolute_path/to/image.jpg>
To save inference results, use -v
flag:
python3 demo.py -d <absolute_path/to/directory> -v
# this saves the visualization in "./inference_results/" in the current folder
To save inference results in a desired folder, use -v
and -o
flag:
python3 demo.py -d <absolute_path/to/directory> -v -o <absolute_path/to/directory>
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 Distribution
Built Distribution
Hashes for rapidocr-openvinogpu-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4a1a9bc7ecc609a972a7463553269993078e5fa744635549d7c73ac12ac1f47 |
|
MD5 | a8162923219705ffd40c004c09785d3d |
|
BLAKE2b-256 | a0913a52134735d03142fc29fd43859e6a4b826f8bc3e128585a999b61b81ed3 |
Hashes for rapidocr_openvinogpu-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbea444b519f95e82dacf5218f942281999ec62ea6363e0ec4d76ac3783ee6b3 |
|
MD5 | e279df9f9ce5fffb195c3de18de00118 |
|
BLAKE2b-256 | fb7a0b4d57789a1b0c5db8688e0ab20dedbf69c4354b7073b1e50940c7c57740 |