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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c24109820ef8ade6cb7eb5103854f4ffec9f12d5123658b7e09f14643fc31d65 |
|
MD5 | 1f6f3ccf16329a8ca1489ba5d0cdba0a |
|
BLAKE2b-256 | fd9cf0efd2ef471e8e08f252d3f8423599ae1e280a86f0eec579ce1444cc221e |
Hashes for rapidocr_openvinogpu-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 458fe962c32578f7034d16de32bcc1e31fc25779086f97f01e1420a76cb0bbb1 |
|
MD5 | 6db4d987679c3ed3ad4ef4e750cdc071 |
|
BLAKE2b-256 | c6473074b4bd56c0a9c4431c08e2f25b83a7e8e98e54f0e56457ca5a7765e1bc |