v6文字检测和识别问题
Author: lasifeaCreated Sep 21, 2026Updated Sep 21, 2026
Search before asking
- I have searched the PaddleOCR Docs and found no similar bug report.
- I have searched the PaddleOCR Issues and found no similar bug report.
- I have searched the PaddleOCR Discussions and found no similar bug report.
Bug (问题描述)
我测试图片时发现检测模型容易把手写字的印迹判读为文字,然后再经过识别模型,会识别成不相关的文字。识别结果如下:
六国灭亡了,天下统一了,蜀 地的山秃了,阿房宫建成了。 它覆盖三百多里地,遮蔽 天日。阿房宫从骊山北边建 起,折而向西,一直通向 咸阳射多善外县淋浪输 柔款解自耳公:真
即使我设置了识别置信度为0.7,还是无法很好解决这个问题。测试原图:
♂️ Environment (运行环境)
Python 3.12.10
PaddleOCR 3.7.0Minimal Reproducible Example (最小可复现问题的Demo)
from paddleocr import PaddleOCR
ocr = PaddleOCR(
use_doc_orientation_classify=False, # 通过 use_doc_orientation_classify 参数指定不使用文档方向分类模型
use_doc_unwarping=False, # 通过 use_doc_unwarping 参数指定不使用文本图像矫正模型
use_textline_orientation=True, # 通过 use_textline_orientation 参数指定不使用文本行方向分类模型
device='cpu',
engine='onnxruntime',
)
img_path = '20.png'
result = ocr.predict(img_path)
for res in result:
res.print()
res.save_to_img("output")
Source: PaddlePaddle/PaddleOCR