v6 文字检测和识别问题
作者: lasifea创建于 2026年9月21日更新于 2026年9月21日
Python 3.12.10
PaddleOCR 3.7.0from paddleocr import PaddleOCR
ocr = PaddleOCR(
use_doc_orientation_classify=False, # set use_doc_orientation_classify to False to disable the document orientation classification model
use_doc_unwarping=False, # set use_doc_unwarping to False to disable the text image warping model
use_textline_orientation=True, # set use_textline_orientation to False to disable the textline orientation classification model
device='cpu',
engine='onnxruntime',
)
img_path = '20.png'
result = ocr.predict(img_path)
for res in result:
res.print()
res.save_to_img("output")内容来源: PaddlePaddle/PaddleOCR