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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b582b9b623e0c742506c5523965465d362239cc3671b45493b40cb34237ca80 |
|
MD5 | a5ad9a7615d830a6576ae69d0c26152a |
|
BLAKE2b-256 | fcd0aae489b8148acf9d60834b115a965c542a4684587be9a28e156ca1f5a207 |
Hashes for rapidocr_openvinogpu-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd2f715b2000d87f56acceb53579f0ea77300afd8685fb83097094ab9fcccc07 |
|
MD5 | 19c3dfa5989e63bf008216cecc5f54e3 |
|
BLAKE2b-256 | 381faf29bd886828a5beac4b3b2226ff7e0142c93973057cb77a784639939fd8 |