Replies: 1 comment
-
根据您描述的问题以及提供的代码与结果分析,手写体数字识别准确率不高可能由以下几个原因引起: 1. OCR产线对手写体识别效果的局限性
2. 手写体数字的检测问题
3. 手写数字的特征复杂性
4. 图片预处理问题
5. 手写体数字与印刷体混合场景的处理
6. 代码建议您的代码片段中调用了默认的PaddleOCR管线,并未针对手写体场景进行调整。可尝试以下优化: from paddlex import create_pipeline
# 创建OCR管线
pipeline = create_pipeline(pipeline="OCR")
# 加载图片并预测
output = pipeline.predict("imgs/test02.jpg")
# 增加输出调试信息
for res in output:
res.print()
# 保存检测框及识别结果到本地
res.save_to_img("output/test02.jpg")
# 调整参数,例如增大检测框比例
pipeline.set_config(det_db_unclip_ratio=2.0, det_db_box_thresh=0.3) 7. 最终建议的优化流程
希望以上建议能帮助您解决问题!如果有进一步需要帮助的地方,请随时提出! 😊 Response generated by feifei-bot | chatgpt-4o-latest |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
您好!我目前想利用OCR产线在印刷体和手写体的图片中,识别手写体的数字。但是我发现手写体的汉字识别效果还可以,但手写体数字的识别不能将图像内所有数字识别到,是否是我没用好产线(如下是产线代码)
`from paddlex import create_pipeline
pipeline = create_pipeline(pipeline="OCR")
output = pipeline.predict("imgs/test02.jpg")
for res in output:
res.print()
res.save_to_img("output/test02.jpg")`
或者可能是其他什么原因导致的?需要怎么才能解决这个问题?

如下是产线识别的结果图:
然后在此基础上,我用opencv库将上图文本的红色数字提取,转变成如下图进行识别,效果也是不理想,手写的数字没有完全识别出来。

因此我想知道:OCR产线是否能对预处理后的文本图片进行识别?OCR如果对手写体数字检测和识别准确率不高,我应该怎么做才能识别图片内每一个手写数字呢?如果准确率高,那么我这样应用产线是否存在问题?希望大佬能指点指点🙏🙏🙏
Beta Was this translation helpful? Give feedback.
All reactions