Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rapidocr_openvinogpu-0.0.8.tar.gz (50.0 MB view hashes)

Uploaded Source

Built Distribution

rapidocr_openvinogpu-0.0.8-py3-none-any.whl (50.0 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page