{"id":59763,"date":"2026-01-14T12:50:24","date_gmt":"2026-01-14T04:50:24","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/59763.html"},"modified":"2026-01-14T12:50:24","modified_gmt":"2026-01-14T04:50:24","slug":"%e5%bc%80%e6%ba%90ocr%e7%9c%81%e9%92%b1%e6%94%bb%e7%95%a5%ef%bc%9a%e5%85%8d%e8%b4%b9%e9%95%9c%e5%83%8f%e7%8e%b0%e6%9c%89%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%8d%b3%e5%8f%af%e8%bf%90%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/59763.html","title":{"rendered":"\u5f00\u6e90OCR\u7701\u94b1\u653b\u7565\uff1a\u514d\u8d39\u955c\u50cf+\u73b0\u6709\u670d\u52a1\u5668\u5373\u53ef\u8fd0\u884c"},"content":{"rendered":"<h2>\u5f00\u6e90OCR\u7701\u94b1\u653b\u7565&#xff1a;\u514d\u8d39\u955c\u50cf&#043;\u73b0\u6709\u670d\u52a1\u5668\u5373\u53ef\u8fd0\u884c<\/h2>\n<h3>&#x1f4d6; OCR \u6587\u5b57\u8bc6\u522b\u7684\u73b0\u5b9e\u9700\u6c42\u4e0e\u6210\u672c\u75db\u70b9<\/h3>\n<p>\u5728\u4f01\u4e1a\u65e5\u5e38\u8fd0\u8425\u4e2d&#xff0c;\u6587\u6863\u6570\u5b57\u5316\u3001\u53d1\u7968\u5f55\u5165\u3001\u5408\u540c\u5f52\u6863\u7b49\u573a\u666f\u5bf9\u6587\u5b57\u8bc6\u522b&#xff08;OCR&#xff09;\u80fd\u529b\u63d0\u51fa\u4e86\u9ad8\u9891\u4e14\u521a\u6027\u9700\u6c42\u3002\u4f20\u7edf\u65b9\u6848\u5f80\u5f80\u4f9d\u8d56\u963f\u91cc\u4e91\u3001\u767e\u5ea6\u667a\u80fd\u4e91\u7b49\u5382\u5546\u63d0\u4f9b\u7684OCR API\u670d\u52a1&#xff0c;\u867d\u7136\u96c6\u6210\u7b80\u5355&#xff0c;\u4f46\u957f\u671f\u4f7f\u7528\u6210\u672c\u9ad8\u6602\u2014\u2014\u5c24\u5176\u5bf9\u4e8e\u4e2d\u5c0f\u56e2\u961f\u6216\u4e2a\u4eba\u5f00\u53d1\u8005\u800c\u8a00&#xff0c;\u6bcf\u6708\u52a8\u8f84\u6570\u767e\u751a\u81f3\u4e0a\u5343\u5143\u7684\u8c03\u7528\u8d39\u7528\u96be\u4ee5\u627f\u53d7\u3002<\/p>\n<p>\u66f4\u5173\u952e\u7684\u662f&#xff0c;\u654f\u611f\u6570\u636e\u4e0a\u4f20\u81f3\u7b2c\u4e09\u65b9\u5e73\u53f0\u5b58\u5728\u9690\u79c1\u6cc4\u9732\u98ce\u9669&#xff0c;\u65e0\u6cd5\u6ee1\u8db3\u91d1\u878d\u3001\u533b\u7597\u3001\u653f\u52a1\u7b49\u884c\u4e1a\u7684\u5408\u89c4\u8981\u6c42\u3002\u56e0\u6b64&#xff0c;\u8d8a\u6765\u8d8a\u591a\u7684\u6280\u672f\u56e2\u961f\u5f00\u59cb\u5bfb\u6c42\u672c\u5730\u5316\u90e8\u7f72\u3001\u96f6\u8c03\u7528\u6210\u672c\u3001\u53ef\u81ea\u4e3b\u63a7\u5236\u7684OCR\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p>\u5e78\u8fd0\u7684\u662f&#xff0c;\u968f\u7740\u5f00\u6e90\u6a21\u578b\u548c\u8f7b\u91cf\u7ea7\u63a8\u7406\u6846\u67b6\u7684\u53d1\u5c55&#xff0c;\u6211\u4eec\u5b8c\u5168\u53ef\u4ee5\u5728\u5df2\u6709\u670d\u52a1\u5668\u8d44\u6e90\u4e0a&#xff0c;\u901a\u8fc7\u4e00\u4e2aDocker\u955c\u50cf&#xff0c;\u5feb\u901f\u642d\u5efa\u4e00\u5957\u9ad8\u7cbe\u5ea6\u3001\u4f4e\u5ef6\u8fdf\u7684OCR\u7cfb\u7edf&#xff0c;\u5b9e\u73b0\u201c\u4e00\u6b21\u90e8\u7f72&#xff0c;\u7ec8\u8eab\u514d\u8d39\u201d\u7684\u76ee\u6807\u3002<\/p>\n<hr \/>\n<h3>&#x1f441;\ufe0f \u9ad8\u7cbe\u5ea6\u901a\u7528 OCR \u6587\u5b57\u8bc6\u522b\u670d\u52a1 (CRNN\u7248)<\/h3>\n<h4>\u9879\u76ee\u7b80\u4ecb<\/h4>\n<p>\u672c\u955c\u50cf\u57fa\u4e8e ModelScope \u7ecf\u5178\u7684 CRNN (Convolutional Recurrent Neural Network) \u6a21\u578b\u6784\u5efa&#xff0c;\u4e13\u4e3a\u4e2d\u6587\u573a\u666f\u4f18\u5316&#xff0c;\u652f\u6301\u4e2d\u82f1\u6587\u6df7\u5408\u6587\u672c\u8bc6\u522b&#xff0c;\u9002\u7528\u4e8e\u53d1\u7968\u3001\u8868\u683c\u3001\u8def\u724c\u3001\u624b\u5199\u4f53\u7b49\u591a\u79cd\u590d\u6742\u56fe\u50cf\u3002<\/p>\n<p>\u76f8\u6bd4\u4e8e\u666e\u901a\u8f7b\u91cf\u7ea7OCR\u6a21\u578b&#xff08;\u5982PaddleOCR small\u3001EasyOCR lite&#xff09;&#xff0c;CRNN \u5728\u5e8f\u5217\u5efa\u6a21\u80fd\u529b\u4e0a\u66f4\u5177\u4f18\u52bf&#xff0c;\u80fd\u591f\u6709\u6548\u5904\u7406\u5b57\u7b26\u95f4\u8ddd\u4e0d\u5747\u3001\u80cc\u666f\u5e72\u6270\u4e25\u91cd\u3001\u5b57\u4f53\u53d8\u5f62\u7b49\u95ee\u9898&#xff0c;\u5c24\u5176\u5728\u4e2d\u6587\u624b\u5199\u4f53\u8bc6\u522b\u548c\u4f4e\u5206\u8fa8\u7387\u56fe\u50cf\u8fd8\u539f\u65b9\u9762\u8868\u73b0\u7a81\u51fa&#xff0c;\u662f\u5de5\u4e1a\u754c\u5e7f\u6cdb\u91c7\u7528\u7684\u7ecf\u5178OCR\u67b6\u6784\u4e4b\u4e00\u3002<\/p>\n<p>\u8be5\u670d\u52a1\u5df2\u96c6\u6210 Flask &#043; Bootstrap \u6784\u5efa\u7684WebUI\u754c\u9762&#xff0c;\u5e76\u63d0\u4f9b\u6807\u51c6 RESTful API \u63a5\u53e3&#xff0c;\u5f00\u7bb1\u5373\u7528\u3002\u6574\u4e2a\u7cfb\u7edf\u7ecf\u8fc7CPU\u63a8\u7406\u6df1\u5ea6\u4f18\u5316&#xff0c;\u65e0\u9700GPU\u5373\u53ef\u7a33\u5b9a\u8fd0\u884c&#xff0c;\u5e73\u5747\u54cd\u5e94\u65f6\u95f4 &lt; 1\u79d2&#xff0c;\u9002\u5408\u90e8\u7f72\u5728\u8001\u65e7\u670d\u52a1\u5668\u3001\u8fb9\u7f18\u8bbe\u5907\u6216\u4f4e\u6210\u672cVPS\u4e0a\u3002<\/p>\n<p>&#x1f4a1; \u6838\u5fc3\u4eae\u70b9<\/p>\n<ul>\n<li>\u6a21\u578b\u5347\u7ea7&#xff1a;\u4ece ConvNextTiny \u5207\u6362\u4e3a CRNN&#xff0c;\u663e\u8457\u63d0\u5347\u4e2d\u6587\u8bc6\u522b\u51c6\u786e\u7387\u4e0e\u9c81\u68d2\u6027<\/li>\n<li>\u667a\u80fd\u9884\u5904\u7406&#xff1a;\u5185\u7f6e OpenCV \u56fe\u50cf\u589e\u5f3a\u7b97\u6cd5&#xff08;\u81ea\u52a8\u7070\u5ea6\u5316\u3001\u5bf9\u6bd4\u5ea6\u62c9\u4f38\u3001\u5c3a\u5bf8\u5f52\u4e00\u5316&#xff09;<\/li>\n<li>\u6781\u901f\u63a8\u7406&#xff1a;\u7eafCPU\u73af\u5883\u8fd0\u884c&#xff0c;\u65e0\u663e\u5361\u4f9d\u8d56&#xff0c;\u5185\u5b58\u5360\u7528\u4f4e\u4e8e500MB<\/li>\n<li>\u53cc\u6a21\u652f\u6301&#xff1a;\u540c\u65f6\u63d0\u4f9b\u53ef\u89c6\u5316Web\u64cd\u4f5c\u754c\u9762\u4e0e\u7a0b\u5e8f\u5316API\u8c03\u7528\u65b9\u5f0f<\/li>\n<\/ul>\n<hr \/>\n<h3>&#x1f9e9; \u6280\u672f\u539f\u7406\u62c6\u89e3&#xff1a;\u4e3a\u4ec0\u4e48\u9009\u62e9CRNN&#xff1f;<\/h3>\n<h4>1. CRNN\u7684\u672c\u8d28&#xff1a;CNN &#043; RNN &#043; CTC \u7684\u4e09\u91cd\u534f\u540c<\/h4>\n<p>CRNN \u5e76\u975e\u7b80\u5355\u7684\u5377\u79ef\u7f51\u7edc&#xff0c;\u800c\u662f\u5c06\u5377\u79ef\u795e\u7ecf\u7f51\u7edc&#xff08;CNN&#xff09;\u3001\u5faa\u73af\u795e\u7ecf\u7f51\u7edc&#xff08;RNN&#xff09; \u548c CTC\u635f\u5931\u51fd\u6570&#xff08;Connectionist Temporal Classification&#xff09; \u6709\u673a\u7ed3\u5408\u7684\u7aef\u5230\u7aef\u5e8f\u5217\u8bc6\u522b\u6a21\u578b\u3002<\/p>\n<p>\u5176\u5de5\u4f5c\u6d41\u7a0b\u53ef\u5206\u4e3a\u4e09\u4e2a\u9636\u6bb5&#xff1a;<\/p>\n<li>\n<p>\u7279\u5f81\u63d0\u53d6&#xff08;CNN&#xff09; \u4f7f\u7528\u5377\u79ef\u5c42\u5c06\u8f93\u5165\u56fe\u50cf\u8f6c\u6362\u4e3a\u4e00\u7cfb\u5217\u9ad8\u5c42\u7279\u5f81\u56fe&#xff0c;\u4fdd\u7559\u7a7a\u95f4\u7ed3\u6784\u4fe1\u606f\u7684\u540c\u65f6\u538b\u7f29\u901a\u9053\u7ef4\u5ea6\u3002<\/p>\n<\/li>\n<li>\n<p>\u5e8f\u5217\u5efa\u6a21&#xff08;RNN&#xff09; \u5c06\u7279\u5f81\u56fe\u6309\u5217\u5207\u7247&#xff0c;\u9001\u5165\u53cc\u5411LSTM\u7f51\u7edc&#xff0c;\u6355\u6349\u5b57\u7b26\u95f4\u7684\u4e0a\u4e0b\u6587\u4f9d\u8d56\u5173\u7cfb&#xff0c;\u89e3\u51b3\u8fde\u7b14\u3001\u6a21\u7cca\u7b49\u95ee\u9898\u3002<\/p>\n<\/li>\n<li>\n<p>\u6807\u7b7e\u5bf9\u9f50&#xff08;CTC&#xff09; \u5f15\u5165CTC\u89e3\u7801\u673a\u5236&#xff0c;\u65e0\u9700\u9884\u5148\u5206\u5272\u5b57\u7b26&#xff0c;\u76f4\u63a5\u8f93\u51fa\u5b8c\u6574\u6587\u672c\u5e8f\u5217&#xff0c;\u6781\u5927\u7b80\u5316\u4e86\u8bad\u7ec3\u4e0e\u63a8\u7406\u6d41\u7a0b\u3002<\/p>\n<\/li>\n<p>\u8fd9\u79cd\u8bbe\u8ba1\u7279\u522b\u9002\u5408\u5904\u7406\u4e0d\u5b9a\u957f\u6587\u672c\u884c\u8bc6\u522b\u4efb\u52a1&#xff0c;\u4f8b\u5982\u626b\u63cf\u6587\u6863\u4e2d\u7684\u6bb5\u843d\u3001\u8857\u8fb9\u5e7f\u544a\u724c\u7b49\u81ea\u7136\u573a\u666f\u6587\u5b57\u3002<\/p>\n<h4>2. \u76f8\u6bd4YOLO-Oriented OCR\u7684\u4f18\u52bf<\/h4>\n<p>\u90e8\u5206\u73b0\u4ee3OCR\u7cfb\u7edf\u91c7\u7528\u201c\u68c0\u6d4b&#043;\u8bc6\u522b\u201d\u4e24\u9636\u6bb5\u6a21\u5f0f&#xff08;\u5982PaddleOCR&#xff09;&#xff0c;\u5148\u5b9a\u4f4d\u6587\u5b57\u533a\u57df\u518d\u9010\u4e2a\u8bc6\u522b\u3002\u8fd9\u79cd\u65b9\u5f0f\u7cbe\u5ea6\u9ad8\u4f46\u8ba1\u7b97\u5f00\u9500\u5927&#xff0c;\u4e14\u9700\u8981GPU\u52a0\u901f\u3002<\/p>\n<p>\u800c\u672c\u9879\u76ee\u91c7\u7528\u7684\u662f\u5355\u9636\u6bb5\u6587\u672c\u884c\u8bc6\u522b\u7b56\u7565&#xff0c;\u5047\u8bbe\u8f93\u5165\u56fe\u7247\u5df2\u88c1\u526a\u51fa\u6e05\u6670\u7684\u6587\u5b57\u533a\u57df&#xff08;\u5982\u53d1\u7968\u91d1\u989d\u680f\u3001\u8bc1\u4ef6\u59d3\u540d\u6846&#xff09;\u3002\u5728\u8fd9\u79cd\u524d\u63d0\u4e0b&#xff0c;CRNN\u4e0d\u4ec5\u901f\u5ea6\u5feb&#xff0c;\u800c\u4e14\u5728\u5c0f\u6837\u672c\u3001\u4f4e\u7b97\u529b\u73af\u5883\u4e0b\u4ecd\u80fd\u4fdd\u6301\u826f\u597d\u6027\u80fd\u3002<\/p>\n<p>| \u5bf9\u6bd4\u7ef4\u5ea6 | CRNN&#xff08;\u672c\u65b9\u6848&#xff09; | YOLO&#043;Recognition&#xff08;\u4e24\u9636\u6bb5&#xff09; | |&#8212;&#8212;&#8212;&#8212;&#8212;-|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-| | \u662f\u5426\u9700GPU | \u274c \u652f\u6301\u7eafCPU | \u2705 \u5efa\u8bae\u914d\u5907GPU | | \u63a8\u7406\u901f\u5ea6 | \u26a1 &lt; 1s&#xff08;CPU&#xff09; | &#x1f422; 1~3s&#xff08;CPU\u8f83\u6162&#xff09; | | \u5185\u5b58\u5360\u7528 | ~400MB | &gt;1GB | | \u4e2d\u6587\u8bc6\u522b\u51c6\u786e\u7387 | 92%~96%&#xff08;\u6e05\u6670\u56fe&#xff09; | 95%~98% | | \u90e8\u7f72\u590d\u6742\u5ea6 | \u5355\u6a21\u578b&#xff0c;\u6613\u7ef4\u62a4 | \u591a\u6a21\u5757\u8026\u5408&#xff0c;\u8c03\u8bd5\u56f0\u96be |<\/p>\n<p>&#x1f4cc; \u9002\u7528\u7ed3\u8bba&#xff1a;\u5982\u679c\u4f60\u7684\u5e94\u7528\u573a\u666f\u4e3b\u8981\u662f\u56fa\u5b9a\u683c\u5f0f\u8868\u5355\u8bc6\u522b\u3001\u7ed3\u6784\u5316\u56fe\u50cfOCR\u3001\u5df2\u6709\u6587\u5b57\u533a\u57df\u88c1\u526a\u7ed3\u679c&#xff0c;\u90a3\u4e48CRNN\u662f\u6027\u4ef7\u6bd4\u6781\u9ad8\u7684\u9009\u62e9\u3002<\/p>\n<hr \/>\n<h3>&#x1f680; \u5feb\u901f\u90e8\u7f72\u6307\u5357&#xff1a;\u4e09\u6b65\u542f\u52a8\u4f60\u7684\u79c1\u6709OCR\u670d\u52a1<\/h3>\n<h4>\u6b65\u9aa41&#xff1a;\u51c6\u5907\u8fd0\u884c\u73af\u5883<\/h4>\n<p>\u672c\u670d\u52a1\u4ee5 Docker\u955c\u50cf \u5f62\u5f0f\u53d1\u5e03&#xff0c;\u652f\u6301x86_64\u67b6\u6784\u7684Linux\/Windows\/MacOS\u7cfb\u7edf\u3002\u786e\u4fdd\u4f60\u7684\u670d\u52a1\u5668\u5df2\u5b89\u88c5&#xff1a;<\/p>\n<ul>\n<li>Docker Engine \u2265 20.10<\/li>\n<li>Python 3.7&#043;&#xff08;\u4ec5\u7528\u4e8eAPI\u6d4b\u8bd5&#xff09;<\/li>\n<li>\u81f3\u5c112\u6838CPU\u30012GB\u5185\u5b58<\/li>\n<\/ul>\n<p># \u62c9\u53d6\u955c\u50cf&#xff08;\u5047\u8bbe\u955c\u50cf\u6258\u7ba1\u4e8e\u516c\u5f00\u4ed3\u5e93&#xff09;<br \/>\ndocker pull ocr-service\/crnn-ocr:cpu-latest<\/p>\n<p># \u542f\u52a8\u5bb9\u5668&#xff0c;\u6620\u5c04Web\u7aef\u53e38080<br \/>\ndocker run -d &#8211;name crnn-ocr \\\\<br \/>\n  -p 8080:8080 \\\\<br \/>\n  ocr-service\/crnn-ocr:cpu-latest<\/p>\n<p>\u542f\u52a8\u6210\u529f\u540e&#xff0c;\u53ef\u901a\u8fc7 docker logs -f crnn-ocr \u67e5\u770b\u65e5\u5fd7&#xff0c;\u786e\u8ba4\u6a21\u578b\u52a0\u8f7d\u5b8c\u6210\u3002<\/p>\n<hr \/>\n<h4>\u6b65\u9aa42&#xff1a;\u4f7f\u7528WebUI\u8fdb\u884c\u56fe\u5f62\u5316\u8bc6\u522b<\/h4>\n<li>\u6d4f\u89c8\u5668\u8bbf\u95ee http:\/\/&lt;your-server-ip&gt;:8080<\/li>\n<li>\u70b9\u51fb\u5de6\u4fa7 \u201c\u4e0a\u4f20\u56fe\u7247\u201d \u6309\u94ae&#xff0c;\u652f\u6301 JPG\/PNG\/BMP \u683c\u5f0f<\/li>\n<li>\u53ef\u8bc6\u522b\u5178\u578b\u573a\u666f\u5305\u62ec&#xff1a;<\/li>\n<li>\u53d1\u7968\u62ac\u5934\u4e0e\u91d1\u989d<\/li>\n<li>\u8eab\u4efd\u8bc1\u59d3\u540d\u4e0e\u53f7\u7801<\/li>\n<li>\u8857\u9053\u8def\u724c\u6807\u8bc6<\/li>\n<li>\u624b\u5199\u7b14\u8bb0\u7247\u6bb5<\/li>\n<li>\u70b9\u51fb \u201c\u5f00\u59cb\u9ad8\u7cbe\u5ea6\u8bc6\u522b\u201d&#xff0c;\u53f3\u4fa7\u5b9e\u65f6\u663e\u793a\u8bc6\u522b\u7ed3\u679c<\/li>\n<p><img decoding=\"async\" alt=\"WebUI\u754c\u9762\u793a\u610f\u56fe\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114045023-6967208f85599.png\" \/><\/p>\n<p>&#x1f50d; \u56fe\u50cf\u9884\u5904\u7406\u8bf4\u660e&#xff1a;\u4e0a\u4f20\u540e\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6267\u884c\u4ee5\u4e0b\u589e\u5f3a\u64cd\u4f5c&#xff1a;<\/p>\n<ul>\n<li>\u81ea\u52a8\u7070\u5ea6\u5316&#xff08;\u51cf\u5c11\u8272\u5f69\u566a\u58f0&#xff09;<\/li>\n<li>\u81ea\u9002\u5e94\u76f4\u65b9\u56fe\u5747\u8861\u5316&#xff08;\u63d0\u5347\u5bf9\u6bd4\u5ea6&#xff09;<\/li>\n<li>\u56fe\u50cf\u7f29\u653e\u81f3\u9ad8\u5ea632px&#xff0c;\u5bbd\u5ea6\u7b49\u6bd4\u62c9\u4f38&#xff08;\u9002\u914d\u6a21\u578b\u8f93\u5165&#xff09;<\/li>\n<li>\u8fb9\u7f18\u586b\u5145\u81f3\u7edf\u4e00\u5c3a\u5bf8&#xff08;\u907f\u514d\u5f62\u53d8&#xff09;<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u5904\u7406\u663e\u8457\u63d0\u5347\u4e86\u6a21\u7cca\u3001\u66dd\u5149\u4e0d\u8db3\u6216\u80cc\u5149\u56fe\u50cf\u7684\u53ef\u8bfb\u6027\u3002<\/p>\n<hr \/>\n<h4>\u6b65\u9aa43&#xff1a;\u901a\u8fc7API\u96c6\u6210\u5230\u4e1a\u52a1\u7cfb\u7edf<\/h4>\n<p>\u9664\u4e86Web\u754c\u9762&#xff0c;\u4f60\u8fd8\u53ef\u4ee5\u5c06OCR\u80fd\u529b\u5d4c\u5165\u5230\u81ea\u52a8\u5316\u811a\u672c\u3001\u5ba1\u6279\u6d41\u7cfb\u7edf\u6216\u79fb\u52a8\u7aef\u540e\u53f0\u4e2d\u3002<\/p>\n<h5>&#x1f539; API\u63a5\u53e3\u5b9a\u4e49<\/h5>\n<ul>\n<li>\u5730\u5740&#xff1a;POST http:\/\/&lt;your-server-ip&gt;:8080\/api\/ocr<\/li>\n<li>Content-Type&#xff1a;multipart\/form-data<\/li>\n<li>\u53c2\u6570&#xff1a;<\/li>\n<li>image: \u56fe\u7247\u6587\u4ef6&#xff08;\u5fc5\u586b&#xff09;<\/li>\n<li>rotate: \u662f\u5426\u81ea\u52a8\u65cb\u8f6c\u6821\u6b63&#xff08;\u53ef\u9009&#xff0c;\u9ed8\u8ba4false&#xff09;<\/li>\n<\/ul>\n<h5>&#x1f539; Python\u8c03\u7528\u793a\u4f8b<\/h5>\n<p>import requests<\/p>\n<p>def ocr_recognition(image_path):<br \/>\n    url &#061; &#034;http:\/\/your-server-ip:8080\/api\/ocr&#034;<\/p>\n<p>    with open(image_path, &#039;rb&#039;) as f:<br \/>\n        files &#061; {&#039;image&#039;: (&#039;upload.jpg&#039;, f, &#039;image\/jpeg&#039;)}<br \/>\n        data &#061; {&#039;rotate&#039;: &#039;true&#039;}<\/p>\n<p>        response &#061; requests.post(url, files&#061;files, data&#061;data)<\/p>\n<p>    if response.status_code &#061;&#061; 200:<br \/>\n        result &#061; response.json()<br \/>\n        print(&#034;\u2705 \u8bc6\u522b\u6210\u529f&#xff01;&#034;)<br \/>\n        for item in result[&#039;text_lines&#039;]:<br \/>\n            print(f&#034;\u6587\u5b57: {item[&#039;text&#039;]}, \u7f6e\u4fe1\u5ea6: {item[&#039;confidence&#039;]:.3f}&#034;)<br \/>\n    else:<br \/>\n        print(f&#034;\u274c \u8bf7\u6c42\u5931\u8d25: {response.status_code}, {response.text}&#034;)<\/p>\n<p># \u8c03\u7528\u793a\u4f8b<br \/>\nocr_recognition(&#034;.\/invoice_sample.jpg&#034;)<\/p>\n<h5>&#x1f539; \u8fd4\u56deJSON\u7ed3\u6784\u8bf4\u660e<\/h5>\n<p>{<br \/>\n  &#034;success&#034;: true,<br \/>\n  &#034;text_lines&#034;: [<br \/>\n    {<br \/>\n      &#034;text&#034;: &#034;\u5317\u4eac\u5e02\u671d\u9633\u533a\u5efa\u56fd\u95e8\u5916\u5927\u88571\u53f7&#034;,<br \/>\n      &#034;confidence&#034;: 0.976,<br \/>\n      &#034;box&#034;: [120, 45, 320, 60]<br \/>\n    },<br \/>\n    {<br \/>\n      &#034;text&#034;: &#034;\u53d1\u7968\u4ee3\u7801&#xff1a;110023456789&#034;,<br \/>\n      &#034;confidence&#034;: 0.982,<br \/>\n      &#034;box&#034;: [110, 70, 280, 85]<br \/>\n    }<br \/>\n  ],<br \/>\n  &#034;total_time&#034;: 0.87<br \/>\n}<\/p>\n<p>\u5b57\u6bb5\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>text: \u8bc6\u522b\u51fa\u7684\u6587\u672c\u5185\u5bb9<\/li>\n<li>confidence: \u7f6e\u4fe1\u5ea6&#xff08;0~1&#xff09;&#xff0c;\u53ef\u7528\u4e8e\u8fc7\u6ee4\u4f4e\u8d28\u91cf\u7ed3\u679c<\/li>\n<li>box: \u6587\u672c\u6240\u5728\u5750\u6807\u6846&#xff08;\u5de6\u4e0ax,y&#xff0c;\u53f3\u4e0bx,y&#xff09;<\/li>\n<li>total_time: \u6574\u4f53\u5904\u7406\u8017\u65f6&#xff08;\u79d2&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<h3>\u2699\ufe0f \u6027\u80fd\u4f18\u5316\u4e0e\u5e38\u89c1\u95ee\u9898\u5e94\u5bf9<\/h3>\n<h4>1. \u63d0\u5347\u8bc6\u522b\u51c6\u786e\u7387\u7684\u5b9e\u7528\u6280\u5de7<\/h4>\n<p>\u5c3d\u7ba1CRNN\u672c\u8eab\u5177\u5907\u8f83\u5f3a\u6cdb\u5316\u80fd\u529b&#xff0c;\u4f46\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u4ecd\u53ef\u80fd\u9047\u5230\u8bc6\u522b\u9519\u8bef\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u6709\u6548\u7684\u4f18\u5316\u624b\u6bb5&#xff1a;<\/p>\n<p>| \u95ee\u9898\u7c7b\u578b | \u89e3\u51b3\u65b9\u6848 | |&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;| | \u56fe\u50cf\u6a21\u7cca | \u524d\u7aef\u589e\u52a0\u8d85\u5206\u9884\u5904\u7406&#xff08;\u53ef\u7528ESRGAN\u8f7b\u91cf\u6a21\u578b&#xff09; | | \u5b57\u4f53\u8fc7\u5c0f&#xff08;&lt;8pt&#xff09; | \u5728\u4e0a\u4f20\u524d\u653e\u5927\u56fe\u50cf2\u500d | | \u80cc\u666f\u6742\u4e71 | \u624b\u52a8\u88c1\u526a\u4ec5\u542b\u6587\u5b57\u533a\u57df | | \u624b\u5199\u4f53\u6f66\u8349 | \u542f\u7528rotate&#061;true\u5c1d\u8bd5\u89d2\u5ea6\u6821\u6b63 |<\/p>\n<p>&#x1f4a1; \u5efa\u8bae&#xff1a;\u5bf9\u4e8e\u56fa\u5b9a\u6a21\u677f\u7c7b\u6587\u6863&#xff08;\u5982\u62a5\u9500\u5355\u3001\u5de5\u5355&#xff09;&#xff0c;\u53ef\u7ed3\u5408\u89c4\u5219\u5f15\u64ce\u505a\u540e\u5904\u7406&#xff0c;\u4f8b\u5982\u7528\u6b63\u5219\u5339\u914d\u8eab\u4efd\u8bc1\u53f7\u3001\u624b\u673a\u53f7\u683c\u5f0f&#xff0c;\u8fdb\u4e00\u6b65\u63d0\u9ad8\u7ed3\u6784\u5316\u63d0\u53d6\u51c6\u786e\u7387\u3002<\/p>\n<hr \/>\n<h4>2. CPU\u6027\u80fd\u8c03\u4f18\u5efa\u8bae<\/h4>\n<p>\u7531\u4e8e\u5168\u7a0b\u8fd0\u884c\u5728CPU\u4e0a&#xff0c;\u5408\u7406\u914d\u7f6e\u80fd\u663e\u8457\u6539\u5584\u5e76\u53d1\u80fd\u529b&#xff1a;<\/p>\n<ul>\n<li>\u542f\u7528ONNX Runtime\u4f18\u5316&#xff1a;\u5c06PyTorch\u6a21\u578b\u8f6c\u4e3aONNX\u683c\u5f0f&#xff0c;\u5e76\u4f7f\u7528onnxruntime-cpu\u8fd0\u884c\u65f6&#xff0c;\u63d0\u901f\u7ea630%<\/li>\n<li>\u6279\u5904\u7406\u63a8\u7406&#xff1a;\u82e5\u6709\u591a\u5f20\u56fe\u7247\u5f85\u8bc6\u522b&#xff0c;\u5408\u5e76\u4e3abatch\u8f93\u5165&#xff0c;\u964d\u4f4eI\/O\u5f00\u9500<\/li>\n<li>\u9650\u5236\u7ebf\u7a0b\u6570&#xff1a;\u8bbe\u7f6eOMP_NUM_THREADS&#061;4\u9632\u6b62\u8fc7\u5ea6\u62a2\u5360\u8d44\u6e90<\/li>\n<\/ul>\n<p>\u4fee\u6539Docker\u542f\u52a8\u547d\u4ee4\u5982\u4e0b&#xff1a;<\/p>\n<p>docker run -d &#8211;name crnn-ocr \\\\<br \/>\n  -p 8080:8080 \\\\<br \/>\n  -e OMP_NUM_THREADS&#061;4 \\\\<br \/>\n  ocr-service\/crnn-ocr:onnx-cpu<\/p>\n<hr \/>\n<h4>3. \u5b89\u5168\u4e0e\u6743\u9650\u63a7\u5236&#xff08;\u8fdb\u9636&#xff09;<\/h4>\n<p>\u9ed8\u8ba4\u955c\u50cf\u672a\u5f00\u542f\u8ba4\u8bc1\u673a\u5236&#xff0c;\u82e5\u90e8\u7f72\u5728\u516c\u7f51\u73af\u5883&#xff0c;\u5efa\u8bae\u6dfb\u52a0\u53cd\u5411\u4ee3\u7406\u5c42\u8fdb\u884c\u4fdd\u62a4&#xff1a;<\/p>\n<p># Nginx\u914d\u7f6e\u7247\u6bb5<br \/>\nlocation \/ {<br \/>\n    auth_basic &#034;Private OCR Service&#034;;<br \/>\n    auth_basic_user_file \/etc\/nginx\/.htpasswd;<br \/>\n    proxy_pass http:\/\/127.0.0.1:8080;<br \/>\n}<\/p>\n<p>\u751f\u6210\u5bc6\u7801\u6587\u4ef6&#xff1a;<\/p>\n<p>htpasswd -c \/etc\/nginx\/.htpasswd admin<\/p>\n<p>\u9632\u6b62\u672a\u6388\u6743\u8bbf\u95ee\u5bfc\u81f4\u8d44\u6e90\u6ee5\u7528\u3002<\/p>\n<hr \/>\n<h3>&#x1f4a1; \u5b9e\u9645\u5e94\u7528\u573a\u666f\u63a8\u8350<\/h3>\n<p>\u8fd9\u5957OCR\u7cfb\u7edf\u5df2\u5728\u591a\u4e2a\u771f\u5b9e\u9879\u76ee\u4e2d\u9a8c\u8bc1\u53ef\u884c\u6027&#xff0c;\u63a8\u8350\u4ee5\u4e0b\u4f4e\u6210\u672c\u843d\u5730\u573a\u666f&#xff1a;<\/p>\n<h4>\u2705 \u573a\u666f1&#xff1a;\u4e2d\u5c0f\u4f01\u4e1a\u7535\u5b50\u6863\u6848\u7ba1\u7406<\/h4>\n<ul>\n<li>\u626b\u63cf\u7eb8\u8d28\u5408\u540c \u2192 \u81ea\u52a8\u63d0\u53d6\u7b7e\u7f72\u65b9\u540d\u79f0\u3001\u65e5\u671f \u2192 \u5b58\u5165\u6570\u636e\u5e93<\/li>\n<li>\u6210\u672c\u8282\u7ea6&#xff1a;\u66ff\u4ee3\u6bcf\u5e74\u6570\u5343\u5143\u7684SaaS OCR\u8ba2\u9605\u8d39<\/li>\n<\/ul>\n<h4>\u2705 \u573a\u666f2&#xff1a;\u6821\u56ed\u6559\u52a1\u7cfb\u7edf\u8f85\u52a9\u5f55\u5165<\/h4>\n<ul>\n<li>\u5b66\u751f\u624b\u5199\u7533\u8bf7\u8868\u62cd\u7167\u4e0a\u4f20 \u2192 \u63d0\u53d6\u5173\u952e\u5b57\u6bb5 \u2192 \u81ea\u52a8\u751f\u6210Excel<\/li>\n<li>\u6570\u636e\u5b89\u5168&#xff1a;\u6240\u6709\u4fe1\u606f\u4fdd\u7559\u5728\u6821\u5185\u670d\u52a1\u5668&#xff0c;\u7b26\u5408\u6559\u80b2\u6570\u636e\u89c4\u8303<\/li>\n<\/ul>\n<h4>\u2705 \u573a\u666f3&#xff1a;\u793e\u533a\u57fa\u5c42\u6cbb\u7406\u53f0\u8d26\u6570\u5b57\u5316<\/h4>\n<ul>\n<li>\u5c45\u6c11\u767b\u8bb0\u8868\u3001\u5de1\u67e5\u8bb0\u5f55\u62cd\u7167 \u2192 \u5feb\u901f\u8f6c\u6587\u5b57 \u2192 \u5f52\u6863\u68c0\u7d22<\/li>\n<li>\u8bbe\u5907\u517c\u5bb9&#xff1a;\u53ef\u5728\u6811\u8393\u6d3e\u6216\u8001\u65e7\u53f0\u5f0f\u673a\u4e0a\u8fd0\u884c<\/li>\n<\/ul>\n<hr \/>\n<h3>&#x1f3af; \u603b\u7ed3&#xff1a;\u5982\u4f55\u6700\u5927\u5316\u5229\u7528\u73b0\u6709\u8d44\u6e90\u6253\u9020OCR\u80fd\u529b<\/h3>\n<p>\u672c\u6587\u4ecb\u7ecd\u4e86\u4e00\u79cd\u6781\u5177\u6027\u4ef7\u6bd4\u7684OCR\u843d\u5730\u8def\u5f84&#xff1a;\u5229\u7528\u5f00\u6e90CRNN\u6a21\u578b &#043; \u514d\u8d39Docker\u955c\u50cf &#043; \u73b0\u6709\u670d\u52a1\u5668\u8d44\u6e90&#xff0c;\u5b9e\u73b0\u96f6\u6210\u672c\u3001\u9ad8\u53ef\u7528\u7684\u6587\u5b57\u8bc6\u522b\u670d\u52a1\u3002<\/p>\n<p>&#x1f4cc; \u6838\u5fc3\u4ef7\u503c\u603b\u7ed3<\/p>\n<ul>\n<li>\u7ecf\u6d4e\u6027&#xff1a;\u4e00\u6b21\u6027\u90e8\u7f72&#xff0c;\u6c38\u4e45\u514d\u53bbAPI\u8c03\u7528\u8d39\u7528<\/li>\n<li>\u5b89\u5168\u6027&#xff1a;\u6570\u636e\u4e0d\u51fa\u5185\u7f51&#xff0c;\u675c\u7edd\u9690\u79c1\u6cc4\u9732\u98ce\u9669<\/li>\n<li>\u5b9e\u7528\u6027&#xff1a;\u652f\u6301Web\u4e0eAPI\u53cc\u6a21\u5f0f&#xff0c;\u6613\u4e8e\u96c6\u6210<\/li>\n<li>\u8f7b\u91cf\u5316&#xff1a;\u7eafCPU\u8fd0\u884c&#xff0c;\u8001\u65e7\u8bbe\u5907\u4e5f\u80fd\u627f\u8f7d<\/li>\n<\/ul>\n<p>\u5bf9\u4e8e\u9884\u7b97\u6709\u9650\u4f46\u53c8\u6709\u6301\u7eedOCR\u9700\u6c42\u7684\u56e2\u961f\u6765\u8bf4&#xff0c;\u8fd9\u662f\u4e00\u6761\u503c\u5f97\u5c1d\u8bd5\u7684\u6280\u672f\u8def\u7ebf\u3002\u672a\u6765\u4e5f\u53ef\u5728\u6b64\u57fa\u7840\u4e0a\u6269\u5c55\u66f4\u591a\u529f\u80fd&#xff0c;\u5982PDF\u6279\u91cf\u89e3\u6790\u3001\u591a\u8bed\u8a00\u652f\u6301\u3001\u8868\u683c\u7ed3\u6784\u8fd8\u539f\u7b49\u3002<\/p>\n<hr \/>\n<h3>&#x1f4da; \u4e0b\u4e00\u6b65\u5b66\u4e60\u5efa\u8bae<\/h3>\n<p>\u5982\u679c\u4f60\u60f3\u6df1\u5165\u5b9a\u5236\u6216\u4f18\u5316\u8be5OCR\u7cfb\u7edf&#xff0c;\u63a8\u8350\u4ee5\u4e0b\u5b66\u4e60\u8def\u5f84&#xff1a;<\/p>\n<li>\u638c\u63e1CRNN\u6e90\u7801\u5b9e\u73b0&#xff1a;\u9605\u8bfb ModelScope OCR \u793a\u4f8b \u4e2d\u7684\u8bad\u7ec3\u4ee3\u7801<\/li>\n<li>\u5b66\u4e60ONNX\u6a21\u578b\u8f6c\u6362&#xff1a;\u4e86\u89e3\u5982\u4f55\u5c06PyTorch\u6a21\u578b\u5bfc\u51fa\u5e76\u4f18\u5316<\/li>\n<li>\u63a2\u7d22Layout Parser&#xff1a;\u7ed3\u5408\u5e03\u5c40\u5206\u6790\u6a21\u578b&#xff0c;\u5b9e\u73b0\u6574\u9875\u6587\u6863\u7406\u89e3<\/li>\n<li>\u52a0\u5165\u793e\u533a\u8d21\u732e&#xff1a;\u8be5\u9879\u76ee\u901a\u5e38\u5f00\u6e90\u5728GitHub&#xff0c;\u53ef\u63d0\u4ea4\u9884\u5904\u7406\u7b97\u6cd5\u6539\u8fdb<\/li>\n<p>&#x1f517; \u83b7\u53d6\u955c\u50cf\u4e0e\u6e90\u7801&#xff1a;\u8bf7\u641c\u7d22 crnn-ocr-cpu-docker \u6216\u8054\u7cfb\u4f5c\u8005\u83b7\u53d6\u6700\u65b0\u7248\u672c\u94fe\u63a5<\/p>\n<p>\u8ba9\u6bcf\u4e00\u5206IT\u6295\u5165\u90fd\u4ea7\u751f\u6700\u5927\u56de\u62a5\u2014\u2014\u8fd9\u624d\u662f\u6280\u672f\u4eba\u7684\u7701\u94b1\u667a\u6167\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f00\u6e90OCR\u7701\u94b1\u653b\u7565&#xff1a;\u514d\u8d39\u955c\u50cf\u73b0\u6709\u670d\u52a1\u5668\u5373\u53ef\u8fd0\u884c<br \/>\n&#x1f4d6; OCR \u6587\u5b57\u8bc6\u522b\u7684\u73b0\u5b9e\u9700\u6c42\u4e0e\u6210\u672c\u75db\u70b9<br \/>\n\u5728\u4f01\u4e1a\u65e5\u5e38\u8fd0\u8425\u4e2d&#xff0c;\u6587\u6863\u6570\u5b57\u5316\u3001\u53d1\u7968\u5f55\u5165\u3001\u5408\u540c\u5f52\u6863\u7b49\u573a\u666f\u5bf9\u6587\u5b57\u8bc6\u522b&#xff08;OCR&#xff09;\u80fd\u529b\u63d0\u51fa\u4e86\u9ad8\u9891\u4e14\u521a\u6027\u9700\u6c42\u3002\u4f20\u7edf\u65b9\u6848\u5f80\u5f80\u4f9d\u8d56\u963f\u91cc\u4e91\u3001\u767e\u5ea6\u667a\u80fd\u4e91\u7b49\u5382\u5546\u63d0\u4f9b\u7684OCR API\u670d\u52a1&#xff0c;\u867d\u7136\u96c6\u6210\u7b80\u5355&#xff0c;\u4f46\u957f\u671f\u4f7f\u7528\u6210\u672c\u9ad8\u6602\u2014\u2014\u5c24\u5176\u5bf9\u4e8e\u4e2d\u5c0f\u56e2\u961f\u6216\u4e2a\u4eba\u5f00\u53d1\u8005\u800c\u8a00&#xff0c;\u6bcf\u6708\u52a8\u8f84\u6570\u767e\u751a\u81f3\u4e0a\u5343\u5143\u7684\u8c03\u7528\u8d39\u7528\u96be\u4ee5<\/p>\n","protected":false},"author":2,"featured_media":59762,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-59763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5f00\u6e90OCR\u7701\u94b1\u653b\u7565\uff1a\u514d\u8d39\u955c\u50cf+\u73b0\u6709\u670d\u52a1\u5668\u5373\u53ef\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/59763.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5f00\u6e90OCR\u7701\u94b1\u653b\u7565\uff1a\u514d\u8d39\u955c\u50cf+\u73b0\u6709\u670d\u52a1\u5668\u5373\u53ef\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5f00\u6e90OCR\u7701\u94b1\u653b\u7565&#xff1a;\u514d\u8d39\u955c\u50cf\u73b0\u6709\u670d\u52a1\u5668\u5373\u53ef\u8fd0\u884c &#x1f4d6; OCR \u6587\u5b57\u8bc6\u522b\u7684\u73b0\u5b9e\u9700\u6c42\u4e0e\u6210\u672c\u75db\u70b9 \u5728\u4f01\u4e1a\u65e5\u5e38\u8fd0\u8425\u4e2d&#xff0c;\u6587\u6863\u6570\u5b57\u5316\u3001\u53d1\u7968\u5f55\u5165\u3001\u5408\u540c\u5f52\u6863\u7b49\u573a\u666f\u5bf9\u6587\u5b57\u8bc6\u522b&#xff08;OCR&#xff09;\u80fd\u529b\u63d0\u51fa\u4e86\u9ad8\u9891\u4e14\u521a\u6027\u9700\u6c42\u3002\u4f20\u7edf\u65b9\u6848\u5f80\u5f80\u4f9d\u8d56\u963f\u91cc\u4e91\u3001\u767e\u5ea6\u667a\u80fd\u4e91\u7b49\u5382\u5546\u63d0\u4f9b\u7684OCR API\u670d\u52a1&#xff0c;\u867d\u7136\u96c6\u6210\u7b80\u5355&#xff0c;\u4f46\u957f\u671f\u4f7f\u7528\u6210\u672c\u9ad8\u6602\u2014\u2014\u5c24\u5176\u5bf9\u4e8e\u4e2d\u5c0f\u56e2\u961f\u6216\u4e2a\u4eba\u5f00\u53d1\u8005\u800c\u8a00&#xff0c;\u6bcf\u6708\u52a8\u8f84\u6570\u767e\u751a\u81f3\u4e0a\u5343\u5143\u7684\u8c03\u7528\u8d39\u7528\u96be\u4ee5\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/59763.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-14T04:50:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114045023-6967208f85599.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/59763.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/59763.html\",\"name\":\"\u5f00\u6e90OCR\u7701\u94b1\u653b\u7565\uff1a\u514d\u8d39\u955c\u50cf+\u73b0\u6709\u670d\u52a1\u5668\u5373\u53ef\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-14T04:50:24+00:00\",\"dateModified\":\"2026-01-14T04:50:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/59763.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/59763.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/59763.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5f00\u6e90OCR\u7701\u94b1\u653b\u7565\uff1a\u514d\u8d39\u955c\u50cf+\u73b0\u6709\u670d\u52a1\u5668\u5373\u53ef\u8fd0\u884c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5f00\u6e90OCR\u7701\u94b1\u653b\u7565\uff1a\u514d\u8d39\u955c\u50cf+\u73b0\u6709\u670d\u52a1\u5668\u5373\u53ef\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/59763.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5f00\u6e90OCR\u7701\u94b1\u653b\u7565\uff1a\u514d\u8d39\u955c\u50cf+\u73b0\u6709\u670d\u52a1\u5668\u5373\u53ef\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5f00\u6e90OCR\u7701\u94b1\u653b\u7565&#xff1a;\u514d\u8d39\u955c\u50cf\u73b0\u6709\u670d\u52a1\u5668\u5373\u53ef\u8fd0\u884c &#x1f4d6; OCR \u6587\u5b57\u8bc6\u522b\u7684\u73b0\u5b9e\u9700\u6c42\u4e0e\u6210\u672c\u75db\u70b9 \u5728\u4f01\u4e1a\u65e5\u5e38\u8fd0\u8425\u4e2d&#xff0c;\u6587\u6863\u6570\u5b57\u5316\u3001\u53d1\u7968\u5f55\u5165\u3001\u5408\u540c\u5f52\u6863\u7b49\u573a\u666f\u5bf9\u6587\u5b57\u8bc6\u522b&#xff08;OCR&#xff09;\u80fd\u529b\u63d0\u51fa\u4e86\u9ad8\u9891\u4e14\u521a\u6027\u9700\u6c42\u3002\u4f20\u7edf\u65b9\u6848\u5f80\u5f80\u4f9d\u8d56\u963f\u91cc\u4e91\u3001\u767e\u5ea6\u667a\u80fd\u4e91\u7b49\u5382\u5546\u63d0\u4f9b\u7684OCR API\u670d\u52a1&#xff0c;\u867d\u7136\u96c6\u6210\u7b80\u5355&#xff0c;\u4f46\u957f\u671f\u4f7f\u7528\u6210\u672c\u9ad8\u6602\u2014\u2014\u5c24\u5176\u5bf9\u4e8e\u4e2d\u5c0f\u56e2\u961f\u6216\u4e2a\u4eba\u5f00\u53d1\u8005\u800c\u8a00&#xff0c;\u6bcf\u6708\u52a8\u8f84\u6570\u767e\u751a\u81f3\u4e0a\u5343\u5143\u7684\u8c03\u7528\u8d39\u7528\u96be\u4ee5","og_url":"https:\/\/www.wsisp.com\/helps\/59763.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-14T04:50:24+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260114045023-6967208f85599.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/59763.html","url":"https:\/\/www.wsisp.com\/helps\/59763.html","name":"\u5f00\u6e90OCR\u7701\u94b1\u653b\u7565\uff1a\u514d\u8d39\u955c\u50cf+\u73b0\u6709\u670d\u52a1\u5668\u5373\u53ef\u8fd0\u884c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-14T04:50:24+00:00","dateModified":"2026-01-14T04:50:24+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/59763.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/59763.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/59763.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5f00\u6e90OCR\u7701\u94b1\u653b\u7565\uff1a\u514d\u8d39\u955c\u50cf+\u73b0\u6709\u670d\u52a1\u5668\u5373\u53ef\u8fd0\u884c"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/59763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=59763"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/59763\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/59762"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=59763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=59763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=59763"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=59763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}