python-mpipinstallpaddlepaddle3.3.1-ihttps://www.paddlepaddle.org.cn/packages/stable/cpu/ python-mpipinstallpaddleocr[all]代码importos os.environ[PADDLE_PDX_ENABLE_MKLDNN_BYDEFAULT]0frompaddleocrimportPaddleOCRif__name____main__:ocrPaddleOCR(langkorean,use_doc_orientation_classifyFalse,# 通过 use_doc_orientation_classify 参数指定不使用文档方向分类模型use_doc_unwarpingFalse,# 通过 use_doc_unwarping 参数指定不使用文本图像矫正模型use_textline_orientationTrue,# 通过 use_textline_orientation 参数指定不使用文本行方向分类模型)img_pathC:\\Users\\zhoull\\Desktop\\MongoDB\\image-2026-9-24_13-48-51-1.pngresultocr.predict(img_path)forresinresult:res.print()res.save_to_json(C:\\Users\\zhoull\\Desktop\\MongoDB\\image-2026-9-24_13-48-51-1-v8.json)