{"id":35322,"date":"2025-05-04T08:15:53","date_gmt":"2025-05-04T00:15:53","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/35322.html"},"modified":"2025-05-04T08:15:53","modified_gmt":"2025-05-04T00:15:53","slug":"paddle-serving%e9%83%a8%e7%bd%b2%e4%b8%80%e4%b8%aa%e8%87%aa%e5%b7%b1%e7%9a%84ocr%e8%af%86%e5%88%ab%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/35322.html","title":{"rendered":"Paddle Serving|\u90e8\u7f72\u4e00\u4e2a\u81ea\u5df1\u7684OCR\u8bc6\u522b\u670d\u52a1\u5668"},"content":{"rendered":"<h2>\u524d\u8a00<\/h2>\n<p>\u2003\u2003\u4e4b\u524d\u4f7f\u7528C&#043;&#043;\u90e8\u7f72\u4e86\u81ea\u5df1\u7684OCR\u8bc6\u522b\u670d\u52a1\u5668&#xff0c;Socket\u7f51\u7edc\u4f20\u8f93\u90e8\u5206\u662f\u81ea\u5df1\u5199\u7684&#xff0c;\u56de\u8fc7\u5934\u6765\u4e00\u770b&#xff0c;\u81ea\u5df1\u72af\u50bb\u4e86&#xff0c;PaddleOCR\u672c\u6765\u5c31\u6709\u81ea\u5df1\u7684OCR\u670d\u52a1\u5668\u9879\u76ee&#xff0c;\u53ebPaddleServing&#xff0c;\u8fd9\u91cc\u8bb0\u5f55\u4e00\u4e0b\u90e8\u7f72\u8fc7\u7a0b\u3002<\/p>\n<h2>1 \u4e0b\u8f7d\u4f9d\u8d56\u73af\u5883<\/h2>\n<h3>1.1 \u4e0b\u8f7dpython<\/h3>\n<p>\u5b98\u7f51\u8981\u6c42\u662fpython3.6\u4e4b\u4e0a\u5c31\u884c&#xff0c;\u6211\u8fd9\u91cc\u4e0b\u8f7dpython3.8\u3002<\/p>\n<p>conda create -n pdsrv <span class=\"token assign-left variable\">python<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token number\">3.8<\/span><\/p>\n<p>\u6ce8&#xff1a;\u8fd9\u91cc\u7528\u4e0d\u7528conda\u90fd\u53ef\u4ee5&#xff0c;\u6211\u8fd9\u91cc\u662f\u4e60\u60ef\u7528conda&#xff0c;\u53ea\u8981\u6709python\u73af\u5883\u5c31\u884c. \u4e0b\u8f7d\u5b8c\u6210\u4e4b\u540e&#xff0c;\u52a0\u5230\u73af\u5883\u53d8\u91cf\u91cc\u9762\u53bb&#xff0c;\u5e76\u4e14\u4f18\u5148\u7ea7\u8bbe\u7f6e\u6210\u6700\u9ad8&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504001551-6816b1b76cca7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>1.2 \u4e0b\u8f7dwget\u548cgit(\u53ef\u9009)<\/h3>\n<ul>\n<li>wget\u4e0b\u8f7d\u7f51\u5740\u4e3a&#xff1a;wget\u4e0b\u8f7d<\/li>\n<\/ul>\n<p>\u4e0b\u8f7d\u89e3\u538b(\u5b89\u88c5)\u5b8c\u6210\u540e&#xff0c;\u540c\u6837\u5c06\u5176\u6dfb\u52a0\u5230\u7cfb\u7edf\u53d8\u91cf\u4e2d&#xff0c;\u5982\u6b65\u9aa41.1\u7684\u56fe\u6700\u540e\u4e00\u884c\u6240\u793a&#xff0c;\u6211\u5df2\u7ecf\u6dfb\u52a0\u4e0a\u53bb\u4e86&#xff0c;\u4f18\u5148\u7ea7\u65e0\u6240\u8c13\u3002 wget\u9a8c\u8bc1&#xff1a; \u6253\u5f00powershell\u76f4\u63a5\u6253wget&#xff0c;\u8bbf\u95ee\u6210\u529f\u5373\u53ef&#xff0c;\u5982\u56fe\u6240\u793a: <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504001551-6816b1b785a74.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>git\u4e0b\u8f7d\u7f51\u5740\u4e3a&#xff1a;git\u4e0b\u8f7d git\u7684\u4f7f\u7528\u5c31\u4e0d\u8d58\u8ff0&#xff0c;\u6709\u624b\u5c31\u884c\u3002<\/li>\n<\/ul>\n<p>\u5982\u679c\u9009\u62e9\u4e86\u6b65\u9aa41.2&#xff0c;\u4e0b\u8f7dgit\u548cwget&#xff0c;\u5219\u9700\u8981\u4e0b\u8f7d\u6a21\u578b\u548c\u9879\u76ee&#xff0c;\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4e0b\u8f7d&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u4f7f\u7528git\u4e0b\u8f7dPaddleServing\u9879\u76ee<\/span><br \/>\n<span class=\"token function\">git<\/span> clone https:\/\/github.com\/paddlepaddle\/Serving<br \/>\n<span class=\"token comment\"># \u4f7f\u7528wget\u4e0b\u8f7d\u6a21\u578b<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> Serving\/examples\/C&#043;&#043;\/PaddleOCR\/ocr\/<br \/>\npython -m paddle_serving_app.package &#8211;get_model ocr_rec<br \/>\n<span class=\"token function\">tar<\/span> -xzvf ocr_rec.tar.gz<br \/>\npython -m paddle_serving_app.package &#8211;get_model ocr_det<br \/>\n<span class=\"token function\">tar<\/span> -xzvf ocr_det.tar.gz<\/p>\n<h3>1.3 \u4e0b\u8f7dPaddleServing\u4f9d\u8d56<\/h3>\n<p><span class=\"token comment\"># CPU\u7528\u6237\u4e0b\u8f7d\u547d\u4ee4<\/span><br \/>\npython -m pip <span class=\"token function\">install<\/span> -U paddle_serving_server paddle_serving_client paddle_serving_app paddlepaddle&#096;<br \/>\n<span class=\"token comment\"># GPU\u7528\u6237\u4e0b\u8f7d\u547d\u4ee4<\/span><br \/>\npython -m pip <span class=\"token function\">install<\/span> -U paddle_serving_server_gpu paddle_serving_client paddle_serving_app paddlepaddle-gpu<br \/>\n<span class=\"token comment\"># \u4e0b\u8f7d\u5176\u4f9d\u8d56<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> Serving<br \/>\npip <span class=\"token function\">install<\/span> -r python\/requirements_win.txt<\/p>\n<p>\u4e4b\u6240\u4ee5\u8bf4\u6b65\u9aa41.2\u662f\u53ef\u9009&#xff0c;\u662f\u56e0\u4e3a\u6211\u4e0a\u4f20\u4e86\u6e90\u7801(\u9700\u8981\u4f7f\u7528git\u4e0b\u8f7d\u7684\u90e8\u5206)\u548c\u6a21\u578b(\u9700\u8981\u4f7f\u7528wget\u4e0b\u8f7d\u7684\u90e8\u5206)&#xff0c;\u60ca\u4e0d\u60ca\u559c&#xff0c;\u610f\u4e0d\u610f\u5916&#xff01;&#xff01;&#xff01;<\/p>\n<h2>2 \u8fd0\u884cOCR\u8bc6\u522b\u670d\u52a1\u5668<\/h2>\n<h3>2.1 \u542f\u52a8OCR\u8bc6\u522b\u670d\u52a1\u5668&#xff1a;<\/h3>\n<p><span class=\"token comment\"># \u542f\u52a8\u670d\u52a1\u5668<\/span><br \/>\npython ocr_debugger_server.py cpu\/gpu<\/p>\n<p>\u542f\u52a8\u754c\u9762\u5927\u6982\u662f\u8fd9\u6837\u7684&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504001551-6816b1b78e745.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>2.2 \u542f\u52a8OCR\u5ba2\u6237\u7aef&#xff1a;<\/h3>\n<p>python ocr_web_client.py<\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u7ed3\u679c\u4e0eimgs\u8def\u5f84\u4e0b\u7684\u56fe\u7247\u5bf9\u6bd4&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504001551-6816b1b7d1f58.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504001552-6816b1b80a160.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u5982\u679c\u4e0d\u60f3\u4f7f\u7528\u8fd9\u4e2a\u811a\u672c&#xff0c;\u4e5f\u53ef\u4ee5\u4f7f\u7528\u6211\u5199\u7684python\u811a\u672c\u6d4b\u8bd5&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> requests<br \/>\n<span class=\"token keyword\">import<\/span> json<br \/>\n<span class=\"token keyword\">import<\/span> base64<\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">cv2_to_base64<\/span><span class=\"token punctuation\">(<\/span>image<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;\u5c06\u56fe\u7247\u8f6c\u6362\u4e3aBase64\u7f16\u7801&#034;&#034;&#034;<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> base64<span class=\"token punctuation\">.<\/span>b64encode<span class=\"token punctuation\">(<\/span>image<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>decode<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;utf8&#039;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">ocr_prediction<\/span><span class=\"token punctuation\">(<\/span>image_path<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;\u63a5\u53d7\u56fe\u7247\u6587\u4ef6\u7684\u7edd\u5bf9\u8def\u5f84&#xff0c;\u53d1\u9001OCR\u8bf7\u6c42\u5e76\u8fd4\u56de\u7ed3\u679c&#034;&#034;&#034;<\/span><br \/>\n    <span class=\"token comment\"># \u8bbe\u7f6e\u8bf7\u6c42\u5934\u548cURL<\/span><br \/>\n    headers <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;Content-type&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;application\/json&#034;<\/span><span class=\"token punctuation\">}<\/span><br \/>\n    url <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;http:\/\/127.0.0.1:9292\/ocr\/prediction&#034;<\/span><\/p>\n<p>    <span class=\"token comment\"># \u6253\u5f00\u56fe\u7247\u6587\u4ef6\u5e76\u8fdb\u884cBase64\u7f16\u7801<\/span><br \/>\n    <span class=\"token keyword\">with<\/span> <span class=\"token builtin\">open<\/span><span class=\"token punctuation\">(<\/span>image_path<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#039;rb&#039;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">as<\/span> <span class=\"token builtin\">file<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        image_data <span class=\"token operator\">&#061;<\/span> <span class=\"token builtin\">file<\/span><span class=\"token punctuation\">.<\/span>read<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    image_base64 <span class=\"token operator\">&#061;<\/span> cv2_to_base64<span class=\"token punctuation\">(<\/span>image_data<span class=\"token punctuation\">)<\/span><\/p>\n<p>    <span class=\"token comment\"># \u6784\u9020\u8bf7\u6c42\u6570\u636e<\/span><br \/>\n    data <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;feed&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;x&#034;<\/span><span class=\"token punctuation\">:<\/span> image_base64<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;fetch&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;res&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">type<\/span><span class=\"token punctuation\">(<\/span>data<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    data2 <span class=\"token operator\">&#061;<\/span> json<span class=\"token punctuation\">.<\/span>dumps<span class=\"token punctuation\">(<\/span>data<span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token builtin\">type<\/span><span class=\"token punctuation\">(<\/span>data2<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>data2<span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token comment\"># \u53d1\u9001POST\u8bf7\u6c42<\/span><br \/>\n    <span class=\"token keyword\">try<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        r <span class=\"token operator\">&#061;<\/span> requests<span class=\"token punctuation\">.<\/span>post<span class=\"token punctuation\">(<\/span>url<span class=\"token operator\">&#061;<\/span>url<span class=\"token punctuation\">,<\/span> headers<span class=\"token operator\">&#061;<\/span>headers<span class=\"token punctuation\">,<\/span> data<span class=\"token operator\">&#061;<\/span>data2<span class=\"token punctuation\">)<\/span><br \/>\n        r<span class=\"token punctuation\">.<\/span>raise_for_status<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># \u5982\u679c\u8bf7\u6c42\u5931\u8d25&#xff0c;\u629b\u51fa\u5f02\u5e38<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> r<span class=\"token punctuation\">.<\/span>json<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># \u8fd4\u56deOCR\u7ed3\u679c<\/span><br \/>\n    <span class=\"token keyword\">except<\/span> requests<span class=\"token punctuation\">.<\/span>exceptions<span class=\"token punctuation\">.<\/span>RequestException <span class=\"token keyword\">as<\/span> e<span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string-interpolation\"><span class=\"token string\">f&#034;\u8bf7\u6c42\u5931\u8d25: <\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>e<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">&#034;<\/span><\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token boolean\">None<\/span><\/p>\n<p><span class=\"token comment\"># \u8fd9\u91cc\u66ff\u6362\u4e3a\u4f60\u7684\u56fe\u7247\u6587\u4ef6\u7edd\u5bf9\u8def\u5f84<\/span><br \/>\nimage_path <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;xxx\/imgs\/bbb.jpg&#034;<\/span><br \/>\nresult <span class=\"token operator\">&#061;<\/span> ocr_prediction<span class=\"token punctuation\">(<\/span>image_path<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">if<\/span> result<span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>result<span class=\"token punctuation\">)<\/span><\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u672c\u6587\u4e3b\u8981\u7b80\u8981\u8bb0\u5f55\u4e86PaddleServing\u9879\u76ee\u7684\u90e8\u7f72\u8fc7\u7a0b&#xff0c;\u65e8\u5728\u5e2e\u52a9\u8bfb\u8005\u5feb\u901f\u4e86\u89e3\u5982\u4f55\u642d\u5efa\u548c\u914d\u7f6ePaddleServing\u670d\u52a1\u3002PaddleServing\u662f\u4e00\u4e2a\u57fa\u4e8ePaddlePaddle\u7684\u9ad8\u6548\u63a8\u7406\u670d\u52a1\u6846\u67b6&#xff0c;\u80fd\u591f\u5e2e\u52a9\u7528\u6237\u4fbf\u6377\u5730\u5c06\u8bad\u7ec3\u597d\u7684\u6a21\u578b\u90e8\u7f72\u4e3a\u53ef\u4f9b\u5b9e\u65f6\u9884\u6d4b\u7684\u670d\u52a1\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u90e8\u7f72\u8fc7\u7a0b\u7684\u6b65\u9aa4&#xff0c;\u5305\u62ec\u73af\u5883\u914d\u7f6e\u3001\u670d\u52a1\u542f\u52a8\u3001\u6a21\u578b\u52a0\u8f7d\u4ee5\u53caAPI\u8c03\u7528\u7b49\u65b9\u9762\u7684\u5185\u5bb9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb961\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u672c\u6587\u4e3b\u8981\u7b80\u8981\u8bb0\u5f55\u4e86PaddleServing\u9879\u76ee\u7684\u90e8\u7f72\u8fc7\u7a0b\uff0c\u65e8\u5728\u5e2e\u52a9\u8bfb\u8005\u5feb\u901f\u4e86\u89e3\u5982\u4f55\u642d\u5efa\u548c\u914d\u7f6ePaddleServing\u670d\u52a1\u3002PaddleServing\u662f\u4e00\u4e2a\u57fa\u4e8ePaddlePaddle\u7684\u9ad8\u6548\u63a8\u7406\u670d\u52a1\u6846\u67b6\uff0c\u80fd\u591f\u5e2e\u52a9\u7528\u6237\u4fbf\u6377\u5730\u5c06\u8bad\u7ec3\u597d\u7684\u6a21\u578b\u90e8\u7f72\u4e3a\u53ef\u4f9b\u5b9e\u65f6\u9884\u6d4b\u7684\u670d\u52a1\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u90e8\u7f72\u8fc7\u7a0b\u7684\u6b65\u9aa4\uff0c\u5305\u62ec\u73af\u5883\u914d\u7f6e\u3001\u670d\u52a1\u542f\u52a8\u3001\u6a21\u578b\u52a0\u8f7d\u4ee5\u53caAPI\u8c03\u7528\u7b49\u65b9\u9762\u7684\u5185\u5bb9\u3002<\/p>\n","protected":false},"author":2,"featured_media":35317,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[756,3023,43],"topic":[],"class_list":["post-35322","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ocr","tag-paddle","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Paddle Serving|\u90e8\u7f72\u4e00\u4e2a\u81ea\u5df1\u7684OCR\u8bc6\u522b\u670d\u52a1\u5668 - \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\/35322.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Paddle Serving|\u90e8\u7f72\u4e00\u4e2a\u81ea\u5df1\u7684OCR\u8bc6\u522b\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb961\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u672c\u6587\u4e3b\u8981\u7b80\u8981\u8bb0\u5f55\u4e86PaddleServing\u9879\u76ee\u7684\u90e8\u7f72\u8fc7\u7a0b\uff0c\u65e8\u5728\u5e2e\u52a9\u8bfb\u8005\u5feb\u901f\u4e86\u89e3\u5982\u4f55\u642d\u5efa\u548c\u914d\u7f6ePaddleServing\u670d\u52a1\u3002PaddleServing\u662f\u4e00\u4e2a\u57fa\u4e8ePaddlePaddle\u7684\u9ad8\u6548\u63a8\u7406\u670d\u52a1\u6846\u67b6\uff0c\u80fd\u591f\u5e2e\u52a9\u7528\u6237\u4fbf\u6377\u5730\u5c06\u8bad\u7ec3\u597d\u7684\u6a21\u578b\u90e8\u7f72\u4e3a\u53ef\u4f9b\u5b9e\u65f6\u9884\u6d4b\u7684\u670d\u52a1\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u90e8\u7f72\u8fc7\u7a0b\u7684\u6b65\u9aa4\uff0c\u5305\u62ec\u73af\u5883\u914d\u7f6e\u3001\u670d\u52a1\u542f\u52a8\u3001\u6a21\u578b\u52a0\u8f7d\u4ee5\u53caAPI\u8c03\u7528\u7b49\u65b9\u9762\u7684\u5185\u5bb9\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/35322.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-04T00:15:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504001551-6816b1b76cca7.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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/35322.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/35322.html\",\"name\":\"Paddle Serving|\u90e8\u7f72\u4e00\u4e2a\u81ea\u5df1\u7684OCR\u8bc6\u522b\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-04T00:15:53+00:00\",\"dateModified\":\"2025-05-04T00:15:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/35322.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/35322.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/35322.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Paddle Serving|\u90e8\u7f72\u4e00\u4e2a\u81ea\u5df1\u7684OCR\u8bc6\u522b\u670d\u52a1\u5668\"}]},{\"@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":"Paddle Serving|\u90e8\u7f72\u4e00\u4e2a\u81ea\u5df1\u7684OCR\u8bc6\u522b\u670d\u52a1\u5668 - \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\/35322.html","og_locale":"zh_CN","og_type":"article","og_title":"Paddle Serving|\u90e8\u7f72\u4e00\u4e2a\u81ea\u5df1\u7684OCR\u8bc6\u522b\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb961\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u672c\u6587\u4e3b\u8981\u7b80\u8981\u8bb0\u5f55\u4e86PaddleServing\u9879\u76ee\u7684\u90e8\u7f72\u8fc7\u7a0b\uff0c\u65e8\u5728\u5e2e\u52a9\u8bfb\u8005\u5feb\u901f\u4e86\u89e3\u5982\u4f55\u642d\u5efa\u548c\u914d\u7f6ePaddleServing\u670d\u52a1\u3002PaddleServing\u662f\u4e00\u4e2a\u57fa\u4e8ePaddlePaddle\u7684\u9ad8\u6548\u63a8\u7406\u670d\u52a1\u6846\u67b6\uff0c\u80fd\u591f\u5e2e\u52a9\u7528\u6237\u4fbf\u6377\u5730\u5c06\u8bad\u7ec3\u597d\u7684\u6a21\u578b\u90e8\u7f72\u4e3a\u53ef\u4f9b\u5b9e\u65f6\u9884\u6d4b\u7684\u670d\u52a1\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u90e8\u7f72\u8fc7\u7a0b\u7684\u6b65\u9aa4\uff0c\u5305\u62ec\u73af\u5883\u914d\u7f6e\u3001\u670d\u52a1\u542f\u52a8\u3001\u6a21\u578b\u52a0\u8f7d\u4ee5\u53caAPI\u8c03\u7528\u7b49\u65b9\u9762\u7684\u5185\u5bb9\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/35322.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-04T00:15:53+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250504001551-6816b1b76cca7.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/35322.html","url":"https:\/\/www.wsisp.com\/helps\/35322.html","name":"Paddle Serving|\u90e8\u7f72\u4e00\u4e2a\u81ea\u5df1\u7684OCR\u8bc6\u522b\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-04T00:15:53+00:00","dateModified":"2025-05-04T00:15:53+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/35322.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/35322.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/35322.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Paddle Serving|\u90e8\u7f72\u4e00\u4e2a\u81ea\u5df1\u7684OCR\u8bc6\u522b\u670d\u52a1\u5668"}]},{"@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\/35322","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=35322"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/35322\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/35317"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=35322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=35322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=35322"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=35322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}