\n\n\n\n\n<\/section>\n\n\u5728\u4e0a\u7bc7\u4e2d\uff0c\u6211\u4eec\u5bf9\u626b\u63cf\u5168\u80fd\u738b\u548cDoc2X\u8fd9\u4e24\u6b3eOCR\u5de5\u5177\u8fdb\u884c\u4e86\u4ecb\u7ecd\uff0c\u5b83\u4eec\u7684\u51fa\u8272\u6027\u80fd\u548c\u5b9e\u7528\u529f\u80fd\u4f7f\u5176\u6210\u4e3a\u4f17\u591a\u7528\u6237\u7684\u5fc5\u5907\u5de5\u5177\u3002\u7ee7\u7eed\u8fd9\u4e2a\u7cfb\u5217\uff0c\u6211\u4eec\u5c06\u5728\u4e2d\u7bc7\u4e2d\u805a\u7126\u4e8e<\/span>PaddleOCR<\/span>\u3001OCRmyPDF\u3001Simple-ocr-opencv\u548c<\/span><\/span>EasyOCR<\/span>\uff0c\u8fd9\u56db\u6b3e\u5de5\u5177\u5404\u6709\u7279\u8272\uff0c\u6db5\u76d6\u5404\u79cd\u7528\u6237\u9700\u6c42\uff0c\u4e3a\u6587\u5b57\u8bc6\u522b\u9886\u57df\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/span><\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n\n\n\n<\/section>\n\nPaddleOCR<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\nPaddleOCR\u662f\u767e\u5ea6\u5f00\u6e90\u7684\u4e00\u5957OCR\u5de5\u5177\u5e93\uff0c\u652f\u6301\u591a\u79cd\u8bed\u8a00\uff0c\u8bc6\u522b\u51c6\u786e\u7387\u9ad8\u3001\u901f\u5ea6\u5feb\u3001\u652f\u6301\u591a\u79cd\u6a21\u578b\u548c\u53c2\u6570\u914d\u7f6e\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5927\u591a\u6570\u7528\u6237\u7684\u9700\u6c42\u3002\u4f46\u5176\u6a21\u578b\u6587\u4ef6\u8f83\u5927\uff0c\u8d44\u6e90\u6d88\u8017\u8f83\u9ad8\uff0c\u9700\u8981\u4e00\u5b9a\u7684\u5b58\u50a8\u7a7a\u95f4\u548cCPU\/GPU\u8d44\u6e90\u3002<\/span><\/section>\n\n\n- \n\n
\u5b98\u65b9\u5730\u5740\uff1a<\/strong><\/span><\/p>\n<\/section>\n<\/li>\n<\/ul>\n<\/section>\nhttps:\/\/github.com\/PaddlePaddle\/PaddleOCR<\/span><\/section>\n\n\n- \n\n
\u5b89<\/strong><\/span>\u88c5<\/strong><\/span>\u547d\u4ee4\uff1a<\/strong><\/span>pip install paddleocr<\/span><\/p>\n<\/section>\n<\/li>\n- \n\n
\u4f7f\u7528\u793a\u4f8b\uff1a<\/strong><\/span><\/p>\n<\/section>\n<\/li>\n<\/ul>\n<\/section>\nimport paddleocr<\/span><\/p>\n# \u00a0\u521d\u59cb\u5316\u8bc6\u522b\u5668<\/span><\/p>\nocr = paddleocr.OCR()<\/span><\/p>\n# \u00a0\u8bfb\u53d6\u56fe\u50cf\u6587\u4ef6<\/span><\/p>\nimg_path = ‘\/path\/to\/image.png’<\/span><\/p>\nimg = paddleocr.read_image(img_path)<\/span><\/p>\n# \u00a0\u8fdb\u884c<\/span>OCR\u8bc6\u522b<\/span><\/span><\/p>\nresult = ocr.ocr(img)<\/span><\/p>\n# \u00a0\u8f93\u51fa\u8bc6\u522b\u7ed3\u679c<\/span><\/p>\nfor line in result:<\/span><\/p>\nprint(l<\/span>ine)<\/span><\/p>\n