PaddleOCR改进识别推理效果对比【废弃】

代码地址:PaddlePaddle/PaddleOCR
这篇博客请忽略吧,忘了当时实验的具体前因后果了。

1 中文测试

python3 tools/infer/predict_rec.py \
    --image_dir doc/imgs_words/ch \
    --rec_model_dir inference/ch_rec_mv3_crnn \
    --rec_image_shaoe "3, 32, 320" \
    --rec_char_type ch \
    --rec_batch_num 30 \
    --rec_algorithm CRNN \
    --rec_char_dict_path ./ppocr/utils/ppocr_keys_v1.txt

原效果:

Predicts of doc/imgs_words/ch/word_5.jpg:['西湾监管', 0.9652789]
Predicts of doc/imgs_words/ch/word_4.jpg:['实力活力', 0.94463724]
Predicts of doc/imgs_words/ch/word_3.jpg:['电话:15952301928', 0.99584234]
Predicts of doc/imgs_words/ch/word_2.jpg:['汉阳鹦鹉家居建材市场E区25-26号', 0.95212066]
Predicts of doc/imgs_words/ch/word_1.jpg:['韩国小馆', 0.98803014]
Total predict time for 5 images:0.106

改进效果:

Predicts of doc/imgs_words/ch/word_5.jpg:['西湾监管', 0.9652789]
Predicts of doc/imgs_words/ch/word_4.jpg:['实力活力', 0.94463724]
Predicts of doc/imgs_words/ch/word_3.jpg:['电话:15952301928', 0.99584234]
Predicts of doc/imgs_words/ch/word_2.jpg:['汉阳鹦鹉家居建材市场E区25-26号', 0.95212066]
Predicts of doc/imgs_words/ch/word_1.jpg:['韩国小馆', 0.98803014]
Total predict time for 5 images:0.103

2 英文测试

python3 tools/infer/predict_rec.py \
    --image_dir doc/imgs_words_en \
    --rec_model_dir inference/ch_rec_mv3_crnn \
    --rec_image_shaoe "3, 32, 320" \
    --rec_char_type en \
    --rec_batch_num 30 \
    --rec_algorithm CRNN \
    --rec_char_dict_path ./ppocr/utils/ppocr_keys_v1.txt

原效果:

Predicts of doc/imgs_words_en/word_116.png:['QBhon', 0.60810107]
Predicts of doc/imgs_words_en/word_461.png:['烟国', 0.46494332]
Predicts of doc/imgs_words_en/word_52.png:['Fute', 0.6243137]
Predicts of doc/imgs_words_en/word_201.png:['HOUSE', 0.99250346]
Predicts of doc/imgs_words_en/word_401.png:['lna', 0.5072811]
Predicts of doc/imgs_words_en/word_19.png:['SLOW', 0.8475923]
Predicts of doc/imgs_words_en/word_545.png:['佳', 0.08702037]
Predicts of doc/imgs_words_en/word_10.png:['PAIN', 0.9786783]
Predicts of doc/imgs_words_en/word_308.png:['LITTLE', 0.9917827]
Predicts of doc/imgs_words_en/word_336.png:['6OPER', 0.6035349]
Total predict time for 10 images:0.060

改进效果:

Predicts of doc/imgs_words_en/word_116.png:['QBhon', 0.60810107]
Predicts of doc/imgs_words_en/word_461.png:['烟国', 0.46494332]
Predicts of doc/imgs_words_en/word_52.png:['Fute', 0.6243137]
Predicts of doc/imgs_words_en/word_201.png:['HOUSE', 0.99250346]
Predicts of doc/imgs_words_en/word_401.png:['lna', 0.5072811]
Predicts of doc/imgs_words_en/word_19.png:['SLOW', 0.8475923]
Predicts of doc/imgs_words_en/word_545.png:['佳', 0.08702037]
Predicts of doc/imgs_words_en/word_10.png:['PAIN', 0.9786783]
Predicts of doc/imgs_words_en/word_308.png:['LITTLE', 0.9917827]
Predicts of doc/imgs_words_en/word_336.png:['6OPER', 0.6035349]
Total predict time for 10 images:0.060
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 6
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

张欣-男

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值