PaddleOCR2Pytorch icon indicating copy to clipboard operation
PaddleOCR2Pytorch copied to clipboard

使用英文模型, 识别结果为中文的情况

Open yaoing opened this issue 3 years ago • 2 comments

作者好, 我尝试用 ./tools/infer/predict_system.py 来串联识别英文, 检测模型用的是en_ptocr_v3_det_infer.pth, 识别模型分别试用了en_ptocr_v3_rec_infer.pthen_number_mobile_v2.0_rec_infer.pth, 但是返回的结果都是中文~

dt_boxes num : 2, elapse : 0.0470426082611084
rec_res num  : 2, elapse : 0.06331539154052734
Predict time of ../tess_train/data/1.jpg: 0.112s
房韵, 0.996
rec_res num  : 2, elapse : 0.06833672523498535
Predict time of ../tess_train/data/1.jpg: 0.127s
房韵, 0.755

求助~

yaoing avatar Aug 15 '22 14:08 yaoing

需要设置字库为相应的英文字库,--rec_char_dict_path

frotms avatar Aug 16 '22 12:08 frotms

好的, 明白~

yaoing avatar Aug 16 '22 12:08 yaoing