Files
rapidocr/python/ch_ppocr_server_v2_rec/run.sh
T
2021-05-22 11:14:17 +08:00

9 lines
312 B
Bash

#! /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}