forked from Cha-lim/chalim-ai
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.sh
More file actions
30 lines (26 loc) · 859 Bytes
/
run.sh
File metadata and controls
30 lines (26 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <path>"
exit 1
fi
path="$1"
lang="$2"
python3 ./predict_system.py \
--image_dir="$path"/image \
--det_algorithm="DB++" \
--det_model_dir="../model/detection" \
--rec_model_dir="../model/recognition" \
--rec_image_shape="3, 48, 320" \
--draw_img_save_dir="$path"/inference_results/menu \
--rec_char_dict_path="./ppocr/utils/korean_dict.txt" \
--use_gpu=False
python3 ./predict_system_num.py \
--image_dir="$path"/image \
--det_model_dir='../model/det_nummodel_dir/' \
--rec_model_dir='../model/rec_nummodel_dir/' \
--rec_image_shape="3, 48, 320" \
--draw_img_save_dir="$path"/inference_results/number \
--rec_char_dict_path="./ppocr/utils/en_dict.txt" \
--use_gpu=False
python3 ./merge_result.py \
--language=$lang \
--file_path="$path" \