{"id":360452,"date":"2021-02-16T17:12:52","date_gmt":"2021-02-16T09:12:52","guid":{"rendered":"http:\/\/4563.org\/?p=360452"},"modified":"2021-02-16T17:12:52","modified_gmt":"2021-02-16T09:12:52","slug":"tesseract-ocr-%e7%bc%96%e8%af%91-dll-%e6%b1%82%e5%8a%a9%ef%bc%81","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=360452","title":{"rendered":"tesseract-ocr \u7f16\u8bd1 dll \u6c42\u52a9\uff01"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  tesseract-ocr \u7f16\u8bd1 dll \u6c42\u52a9\uff01               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cool1205 <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u5c0f\u5f1f\u662f python \u5f00\u53d1\u5458\uff0c\u6700\u8fd1\u5728\u505a\u4e00\u4e2a ocr \u9879\u76ee\uff0c\u4f7f\u7528\u7684\u662f tesseract-ocr\uff0c\u4f7f\u7528\u7684\u662f 3.04 \u7248\u672c\uff0c\u76ee\u524d\u9047\u5230\u4e00\u4e2a\u95ee\u9898\uff0c\u60f3\u8bf7\u4e00\u4f4d\u5927\u54e5\u5e2e\u5fd9\uff0c\u5177\u4f53\u662f\u8fd9\u6837\u7684\uff0c\u6211\u5728\u8c03\u7528 tesseract \u7684 dll \u65f6\uff0c\u603b\u662f\u4f1a\u5728\u63a7\u5236\u53f0\u8f93\u51fa\u201cPage 1\u201d\u7684\u7ea2\u8272\u4fe1\u606f\uff0c\u76ee\u524d\u6211\u4e0d\u5e0c\u671b python \u63a7\u5236\u53f0\u4e0d\u8f93\u51fa\u8be5\u4fe1\u606f\uff0c\u53ea\u6709\u53bb tesseract \u5220\u9664\u5bf9\u5e94\u4ee3\u7801\u540e\u91cd\u65b0\u7f16\u8bd1\uff0c\u53ef\u6211\u4e0d\u4f1a\u7f16\u8bd1\uff0c\u60f3\u8bf7\u4e00\u4f4d\u5927\u54e5\u5e2e\u5fd9\u7f16\u8bd1\u4e00\u4e0b\u5bf9\u5e94\u7684 dll \uff01\u82e5\u80fd\u89e3\u51b3\uff0c\u5fc5\u6709\u91cd\u8c22\uff01      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5413703\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : v2exblog <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u4eec\u7528 tesseract-ocr \u662f\u8bc6\u522b\u4ec0\u4e48\u8bed\u79cd\u7684\u554a\uff1f\u5176\u5b9e\u6709\u6bd4\u8fd9\u4e2a\u66f4\u597d\u7684 python \u66ff\u4ee3\u65b9\u6848\uff0c\u6bd4\u5982 paddleocr \u548c easyocr\uff0cgithub \u53ef\u4ee5\u641c\u5230                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5413704\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nnnToTnnn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             orc \u6211\u8bb0\u5f97\u5f88\u591a\u554a~ \u7528 tesseract-ocr \u4e0d\u4e00\u5b9a\u662f\u6700\u597d\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5413705\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shm7 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6240\u4ee5\u7ea2\u8272\u4fe1\u606f\u662f\u5565\uff1f\u51fa\u9519\u4fe1\u606f\u662f\u5565\u3002\u636e\u6211\u4e86\u89e3 tesseract \u7684\u7f16\u8bd1\u8981\u548c\u672c\u5730\u7684\u5404\u79cd\u56fe\u50cf\u9a71\u52a8\u76f8\u5173\u7684\uff0c\u53ef\u80fd\u6709\u4e2a dll \u4e0d\u4e00\u5b9a\u591f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5413706\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : laqow <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             python \u597d\u50cf\u6709\u4e2a pytesseract \u8fd8\u662f\u4ec0\u4e48 tesseract \u7684\u58f3\uff0c\u5370\u8c61\u611f\u89c9\u6ca1\u6709\u8f93\u51fa\u4ec0\u4e48\u6765\u7740\uff0c\u770b\u770b\u90a3\u4e2a\u58f3\u600e\u4e48\u5199\u7684\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5413707\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dayeye2006199 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u5047\u8bbe\u4f60\u7528\u7684 pytesseract \u8fd9\u4e2a\u5957\u58f3\u5305\uff0c\u5b83\u5c31\u662f\u542f\u52a8\u4e86\u4e00\u4e2a subprocess\uff0c\u53eb\u4e86\u4e00\u4e0b\u7cfb\u7edf\u5185\u5b89\u88c5\u7684 tesseract \u3002\u6240\u4ee5\u4f60\u53ef\u4ee5\u627e\u5230\u8fd9\u884c\u4ee3\u7801\uff1a https:\/\/github.com\/madmaze\/pytesseract\/blob\/master\/pytesseract\/pytesseract.py#L255<\/p>\n<p>\u6539\u6210\uff1a<br \/>proc = subprocess.Popen(cmd_args, **subprocess_args(), stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)<\/p>\n<p>\u8fd9\u6837 stdout \u548c stderr \u5c31\u88ab\u91cd\u5b9a\u5411\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5413708\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sadfQED2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u4f60\u7528\u7684\u662f 5 \u8bf4\u5f97\u90a3\u4e2a\u5957\u58f3\u5305\u786e\u5b9e\u6539\u6539 py \u4ee3\u7801\u5c31\u884c<\/p>\n<p>\u6211\u5370\u8c61\u4e2d python tesseract \u8fd8\u6709\u53e6\u5916\u4e00\u4e2a\u5305\uff0c\u662f\u901a\u8fc7 cpython \u5b9e\u73b0\u7684\uff0c\u90a3\u4e2a\u5305\u53ef\u80fd\u786e\u5b9e\u9700\u8981\u91cd\u65b0\u7f16\u8bd1\uff0c\u5efa\u8bae\u522b\u81ea\u5df1\u6298\u817e\uff0c\u6362 4.1 \u7248\u672c\u8bd5\u8bd5\u5462\uff0c3.04 \u5df2\u7ecf\u5f88\u8001\u4e86\uff0c\u8bf4\u4e0d\u5b9a\u5347\u7ea7\u4e00\u6b21\u5c31\u89e3\u51b3\u4e86                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>tesseract-ocr \u7f16\u8bd1 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/360452"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=360452"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/360452\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=360452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=360452"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=360452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}