Skip to content

kotomiDu/OCR-Tool-R

Repository files navigation

OCR-Tool-R

a workbench for OCR

Installation

  1. tensorflow-cpu == 1.5
  2. python == 3.6

Download

  1. download model file
  2. download OpenVINO lib Linux version or Windows version
  3. download testinput file

set OpenVINO environment

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
  1. Open the .bashrc file:
vi .bashrc
  1. Add this line to the end of the file:
source <user_directory>/openvino/bin/setupvars.sh
  1. Save and close the file: press the Esc key and type :wq
  2. To test your change, open a new terminal. You will see [setupvars.sh] OpenVINO environment initialized.

more guide in intel OpenVINO

Windows

Run video demo

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/

About

a workbench for OCR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages