Files
rapidocr/python/rapidOCR.sh
T
2021-12-18 11:10:49 +08:00

13 lines
518 B
Bash

#! /bin/bash
# The img_path can be file path or folder path.
img_path="test_images/det_images/1.jpg"
keys_path="ch_ppocr_mobile_v2_rec/ppocr_keys_v1.txt"
python rapidOCR.py --det_model_path models/ch_PP-OCRv2_det_infer.onnx \
--cls_model_path models/ch_ppocr_mobile_v2.0_cls_infer.onnx \
--rec_model_path models/ch_ppocr_mobile_v2.0_rec_infer.onnx \
--image_path ${img_path} \
--text_score 0.5 \
--keys_path ${keys_path}