a workbench for OCR
- tensorflow-cpu == 1.5
- python == 3.6
- download model file
- download OpenVINO lib Linux version or Windows version
- download testinput file
Linux
- edit sh file,change INSTALLDIR to openvino folder (!!! absolute path)
cd openvino/bin
vim setupvars.sh
INSTALLDIR=<user_directory>/openvino
- option1. temporarily set your environment variables
source <user_directory>/openvino/bin/setupvars.sh
- option2. permanently set your environment variables
- Open the .bashrc file:
vi .bashrc
- Add this line to the end of the file:
source <user_directory>/openvino/bin/setupvars.sh
- Save and close the file: press the Esc key and type :wq
- To test your change, open a new terminal. You will see [setupvars.sh] OpenVINO environment initialized.
more guide in intel OpenVINO
Windows
Linux
python3 ocr-video-demo/save_key_events.py -i testinput/1080p.mp4 -m ./east_icdar2015_resnet_v1_50_rbox/FP32/96_512/frozen_model_temp.xml -d CPU -l ./openvino/deployment_tools/inference_engine/lib/intel64/libcpu_extension.so -o output/
Windows
python3 ocr-video-demo/save_key_events.py -i testinput/1080p.mp4 -m ./east_icdar2015_resnet_v1_50_rbox/FP32/96_512/frozen_model_temp.xml -d CPU -l ./openvino/deployment_tools/inference_engine/lib/intel64/Release/cpu_extension.dll -o output/