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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4132c2dff86bbb161be80412dfeb75556b7b796e2828a3b20f0225734e93076 |
|
MD5 | c3509366379d826eec706c000f87555c |
|
BLAKE2b-256 | e664e0986faa460961de53f3ff80cbfbebdcdd12d83df9c4f850dc83c386e9ee |
Hashes for rapidocr_openvinogpu-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6abbb85520fd9e7a19e6ebcfd486acbd96d4c0c42632f66025471c25db41bc5c |
|
MD5 | cfab023fd698c53a866ca03d56a58e2c |
|
BLAKE2b-256 | 1adb92ff4bff20cd91baf8eebc4508db3aa4a8a3fca21b9f8ab19497e1b58588 |