PaddleOCR使用笔记
Linux环境下
PaddleOCR develop版本安装及使用(第二次尝试)(成功)
检测模型转推理模型
python3 tools/export_model.py -c configs/det/det_mv3_east.yml -o Global.checkpoints=output/det_east_mv3/best_accuracy Global.save_inference_dir=./inference/det_mv3_east
识别模型转推理模型
python3 tools/export_model.py -c configs/rec/multi_languages/rec_en_number_lite_train.yml -o Global.checkpoints=output/rec_en_number_lite_crown/best_accuracy Global.save_inference_dir=./inference/rec_en_number_lite_crown
python3 tools/export_model.py -c configs/rec/multi_languages/rec_en_number_lite_train2.yml -o Global.checkpoints=output/rec_aug_en_number_lite_crown/best_accuracy Global.save_inference_dir=./inference/rec_aug_en_number_lite_crown
方向分类模型转推理模型
python3 tools/export_model.py -c configs/cls/cls_mv3.yml -o Global.checkpoints=output/cls_mv3/best_accuracy Global.save_inference_dir=./inference/cls_crown
检测推理模型预测
python3 tools/infer/predict_det.py --det_algorithm="EAST" --image_dir="./doc/imgs_crown_test/" --det_model_dir="./inference/det_mv3_east/"
识别推理模型预测
python3 tools/infer/predict_rec.py --image_dir="./doc/imgs_crown_crop_test/" --rec_model_dir="./inference/rec_en_number_lite_crown" --rec_char_type="ch" --rec_char_dict_path="ppocr/utils/dict/en_dict.txt" --use_space_char=False
python3 tools/infer/predict_rec.py --image_dir="./doc/aug_rec_crown_test/" --rec_model_dir="./inference/rec_aug_en_number_lite_crown" --rec_char_type="ch" --rec_char_dict_path="ppocr/utils/dict/en_dict.txt" --use_space_char=False
方向分类推理模型预测
python3 tools/infer/predict_cls.py --image_dir="./doc/cls_crown_test/" --cls_model_dir="./inference/cls_crown/"
检测识别推理模型串联预测
python3 tools/infer/predict_system.py --image_dir="./doc/imgs_crown_test/" --det_model_dir="./inference/det_mv3_east/" --rec_model_dir="./inference/rec_en_number_lite_crown/" --use_angle_cls=false --use_space_char=False --rec_char_type="ch" --det_algorithm="EAST" --rec_char_dict_path='ppocr/utils/dict/en_dict.txt'
python3 tools/infer/predict_system.py --image_dir="./train_data/crown_dataset/det_crown/test/" --det_model_dir="./inference/det_mv3_east/" --rec_model_dir="./inference/rec_en_number_lite_crown/" --use_angle_cls=false --use_space_char=False --rec_char_type="ch" --det_algorithm="EAST" --rec_char_dict_path='ppocr/utils/dict/en_dict.txt'
python3 tools/infer/predict_system.py --image_dir="./train_data/crown_dataset/det_crown/test/" --det_model_dir="./inference/det_mv3_east/" --rec_model_dir="./inference/rec_aug_en_number_lite_crown/" --use_angle_cls=false --use_space_char=False --rec_char_type="ch" --det_algorithm="EAST" --rec_char_dict_path='ppocr/utils/dict/en_dict.txt'
检测识别方向分类推理模型串联预测
python3 tools/infer/predict_system.py --image_dir="./doc/det_rec_cls_data_test/" --det_model_dir="./inference/det_mv3_east/" --rec_model_dir="./inference/rec_aug_en_number_lite_crown/" --cls_model_dir="./inference/cls_crown/" --use_angle_cls=true --use_space_char=False --rec_char_type="ch" --det_algorithm="EAST" --rec_char_dict_path='ppocr/utils/dict/en_dict.txt'
创作不易,喜欢的话加个关注点个赞,❤谢谢谢谢❤