π Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
ζ·»ε ζ§θ‘θζ¬
SWHL4404b1bed5d4
diff --git a/python/ch_ppocr_mobile_v2_cls/run.sh b/python/ch_ppocr_mobile_v2_cls/run.shnew file mode 100644index 0000000..963d8e3--- /dev/null+++ b/python/ch_ppocr_mobile_v2_cls/run.sh@@ -0,0 +1,9 @@+#! /bin/bash+set -e errexit++root_path=$(cd $(dirname $0); pwd)+image_path=${root_path}"/test_images/rec_images/2021-01-18_14-22-32.png"+model_path=${root_path}"/models/ch_ppocr_mobile_v2.0_cls_infer.onnx"++python text_cls.py --image_path ${image_path} \+ --model_path ${model_path}\ No newline at end of filediff --git a/python/ch_ppocr_mobile_v2_det/run.sh b/python/ch_ppocr_mobile_v2_det/run.shnew file mode 100644index 0000000..99fc806--- /dev/null+++ b/python/ch_ppocr_mobile_v2_det/run.sh@@ -0,0 +1,9 @@+#! /bin/bash+set -e errexit++root_path=$(cd $(dirname $0); pwd)+image_path=${root_path}"/test_images/det_images/1.jpg"+model_path=${root_path}"/models/ch_ppocr_mobile_v2.0_det_infer.onnx"++python text_detect.py --image_path ${image_path} \+ --model_path ${model_path}\ No newline at end of filediff --git a/python/ch_ppocr_mobile_v2_rec/run.sh b/python/ch_ppocr_mobile_v2_rec/run.shnew file mode 100644index 0000000..f519b8b--- /dev/null+++ b/python/ch_ppocr_mobile_v2_rec/run.sh@@ -0,0 +1,9 @@+#! /bin/bash+set -e errexit++root_path=$(cd $(dirname $0); pwd)+image_path=${root_path}"/test_images/rec_images/2021-01-18_14-22-32.png"+model_path=${root_path}"/models/ch_ppocr_mobile_v2.0_rec_infer.onnx"++python text_recognize.py --image_path ${image_path} \+ --model_path ${model_path}\ No newline at end of filediff --git a/python/ch_ppocr_server_v2_det/run.sh b/python/ch_ppocr_server_v2_det/run.shnew file mode 100644index 0000000..6fd4f40--- /dev/null+++ b/python/ch_ppocr_server_v2_det/run.sh@@ -0,0 +1,9 @@+#! /bin/bash+set -e errexit++root_path=$(cd $(dirname $0); pwd)+image_path=${root_path}"/test_images/det_images/1.jpg"+model_path=${root_path}"/models/ch_ppocr_server_v2.0_det_infer.onnx"++python text_detect.py --image_path ${image_path} \+ --model_path ${model_path}\ No newline at end of filediff --git a/python/ch_ppocr_server_v2_rec/run.sh b/python/ch_ppocr_server_v2_rec/run.shnew file mode 100644index 0000000..f519b8b--- /dev/null+++ b/python/ch_ppocr_server_v2_rec/run.sh@@ -0,0 +1,9 @@+#! /bin/bash+set -e errexit++root_path=$(cd $(dirname $0); pwd)+image_path=${root_path}"/test_images/rec_images/2021-01-18_14-22-32.png"+model_path=${root_path}"/models/ch_ppocr_mobile_v2.0_rec_infer.onnx"++python text_recognize.py --image_path ${image_path} \+ --model_path ${model_path}\ No newline at end of file