{"id":303819,"date":"2024-05-20T19:08:39","date_gmt":"2024-05-20T11:08:39","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/303819.html"},"modified":"2024-05-20T19:08:55","modified_gmt":"2024-05-20T11:08:55","slug":"%e5%a6%82%e4%bd%95%e9%80%9a%e8%bf%87%e7%bc%96%e7%a8%8b%e8%b0%83%e7%94%a8qq%e9%87%8c%e7%9a%84%e5%9b%be%e7%89%87%e8%af%86%e5%88%ab%e6%96%87%e5%ad%97%e5%8a%9f%e8%83%bd","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/303819.html","title":{"rendered":"\u5982\u4f55\u901a\u8fc7\u7f16\u7a0b\u8c03\u7528QQ\u91cc\u7684\u56fe\u7247\u8bc6\u522b\u6587\u5b57\u529f\u80fd"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26220103\/5bb4f1eb-a533-4719-891a-abef499aa27f.webp\" alt=\"\u5982\u4f55\u901a\u8fc7\u7f16\u7a0b\u8c03\u7528QQ\u91cc\u7684\u56fe\u7247\u8bc6\u522b\u6587\u5b57\u529f\u80fd\" \/><\/p>\n<p><p>\u5982\u4f55\u901a\u8fc7\u7f16\u7a0b\u8c03\u7528QQ\u91cc\u7684\u56fe\u7247\u8bc6\u522b\u6587\u5b57\u529f\u80fd\uff1a<strong>\u8c03\u7528QQ\u4e2d\u7684\u56fe\u7247\u8bc6\u522b\u6587\u5b57\u529f\u80fd\u901a\u5e38\u6d89\u53ca\u7b2c\u4e09\u65b9OCR\uff08Optical Character Recognition\uff0c\u5373\u5149\u5b66\u5b57\u7b26\u8bc6\u522b\uff09\u63a5\u53e3\u7684\u4f7f\u7528<\/strong>\u3001<strong>API\u4e0e\u76f8\u5173\u5e93\u7684\u6574\u5408<\/strong>\uff0c\u4ee5\u53ca<strong>\u7f16\u5199\u9002\u5f53\u7684\u811a\u672c\u6216\u5e94\u7528\u7a0b\u5e8f<\/strong>\u3002\u4f46\u662f\uff0cQQ\u81ea\u5e26\u7684\u8fd9\u4e00\u529f\u80fd\u5e76\u6ca1\u6709\u5f00\u653e\u5b98\u65b9\u7684API\u63a5\u53e3\u4f9b\u7a0b\u5e8f\u8c03\u7528\uff0c\u56e0\u6b64\u9700\u8981\u4f7f\u7528\u5176\u4ed6\u7b2c\u4e09\u65b9\u7684OCR\u670d\u52a1\u3002\u4f8b\u5982\u817e\u8baf\u4e91\u548c\u767e\u5ea6\u4e91\uff0c\u5b83\u4eec\u63d0\u4f9b\u7684OCR\u670d\u52a1\u53ef\u4ee5\u5b9e\u73b0\u7c7b\u4f3cQQ\u4e2d\u7684\u56fe\u7247\u8bc6\u522b\u6587\u5b57\u529f\u80fd\u3002\u5177\u4f53\u65b9\u6cd5\u662f\u6ce8\u518c\u5e76\u4f7f\u7528\u76f8\u5173\u4e91\u670d\u52a1\u63d0\u4f9b\u7684OCR API\uff0c\u901a\u8fc7\u7f51\u7edc\u8bf7\u6c42\u53d1\u9001\u56fe\u7247\uff0c\u7136\u540e\u63a5\u6536\u5e76\u89e3\u6790\u8fd4\u56de\u7684\u542b\u6709\u8bc6\u522b\u6587\u5b57\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u6ce8\u518c\u4e0e\u7533\u8bf7API<\/p>\n<\/p>\n<p><p><strong>\u5728\u4f7f\u7528\u7b2c\u4e09\u65b9OCR\u670d\u52a1\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u5728\u76f8\u5e94\u7684\u4e91\u5e73\u53f0\u4e0a\u6ce8\u518c\u8d26\u53f7\uff0c\u5e76\u7533\u8bf7\u8bbf\u95eeOCR\u529f\u80fd\u7684API<\/strong>\u3002\u4ee5\u817e\u8baf\u4e91\u4e3a\u4f8b\uff0c\u7528\u6237\u9700\u8981\u521b\u5efa\u817e\u8baf\u4e91\u8d26\u53f7\u3001\u5f00\u901aOCR\u670d\u52a1\uff0c\u5e76\u5728\u63a7\u5236\u53f0\u83b7\u53d6\u76f8\u5173\u7684API\u5bc6\u94a5\u548c\u7aef\u70b9\u3002<\/p>\n<\/p>\n<ol>\n<li>\u521b\u5efa\u817e\u8baf\u4e91\u8d26\u53f7\u5e76\u767b\u5f55<\/li>\n<li>\u5f00\u901aOCR\u670d\u52a1\u5e76\u83b7\u53d6API\u5bc6\u94a5<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4e86\u89e3OCR API<\/p>\n<\/p>\n<p><p><strong>API\u901a\u5e38\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684HTTP\u63a5\u53e3\u4f9b\u5f00\u53d1\u8005\u8c03\u7528<\/strong>\uff0c\u5f00\u53d1\u8005\u9700\u8981\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\uff0c\u9009\u62e9\u5408\u9002\u7684OCR API\u63a5\u53e3\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e\u666e\u901a\u6587\u672c\u7684\u8bc6\u522b\uff0c\u53ef\u4ee5\u9009\u62e9\u201c\u901a\u7528\u6587\u5b57\u8bc6\u522b\u201d\u63a5\u53e3\u3002<\/p>\n<\/p>\n<ol>\n<li>API\u63a5\u53e3\u7684\u529f\u80fd\u5206\u7c7b<\/li>\n<li>\u9009\u62e9\u5408\u9002\u7684API\u63a5\u53e3<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u6574\u5408SDK\u6216\u7f16\u5199\u4ee3\u7801<\/p>\n<\/p>\n<p><p><strong>\u5bf9\u4e8e\u5927\u591a\u6570\u4e91\u5e73\u53f0\uff0c\u5b83\u4eec\u90fd\u63d0\u4f9b\u4e86\u65b9\u4fbf\u7684SDK\uff08Software Development Kit\uff0c\u8f6f\u4ef6\u5f00\u53d1\u5957\u4ef6\uff09<\/strong>\uff0c\u53ef\u4ee5\u7b80\u5316\u8c03\u7528API\u7684\u8fc7\u7a0b\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u5c06SDK\u96c6\u6210\u5230\u81ea\u5df1\u7684\u5e94\u7528\u4e2d\uff0c\u5982\u679c\u4e0d\u4f7f\u7528SDK\u4e5f\u9700\u8981\u81ea\u5df1\u7f16\u5199\u4ee3\u7801\u4ee5\u6784\u9020HTTP\u8bf7\u6c42\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528SDK\u6574\u5408API<\/li>\n<li>\u81ea\u884c\u7f16\u5199\u4ee3\u7801\u5b9e\u73b0API\u8c03\u7528<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u53d1\u9001\u8bf7\u6c42\u5e76\u83b7\u53d6\u7ed3\u679c<\/p>\n<\/p>\n<p><p>\u5f53\u5b8c\u6210\u63a5\u53e3\u7684\u6574\u5408\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u4ee3\u7801\u6765\u53d1\u9001HTTP\u8bf7\u6c42\uff0c\u8bf7\u6c42\u4e2d\u901a\u5e38\u8981\u5305\u62ec\u56fe\u7247\u7684\u5185\u5bb9\uff08\u901a\u5e38\u4e3aBase64\u7f16\u7801\u540e\u7684\u5b57\u7b26\u4e32\uff09\u548c\u5fc5\u8981\u7684API\u5bc6\u94a5\u4fe1\u606f\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6784\u9020HTTP\u8bf7\u6c42\u7684\u5185\u5bb9<\/li>\n<li>\u53d1\u9001\u8bf7\u6c42\u5e76\u5904\u7406\u8fd4\u56de\u7ed3\u679c<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u89e3\u6790\u7ed3\u679c<\/p>\n<\/p>\n<p><p><strong>\u8bc6\u522b\u540e\uff0c\u5f00\u53d1\u8005\u9700\u8981\u4ece\u8fd4\u56de\u7684JSON\u6216XML\u6570\u636e\u4e2d\u89e3\u6790\u51fa\u8bc6\u522b\u7684\u6587\u5b57<\/strong>\u3002\u8fd9\u4e00\u6b65\u9aa4\u53ef\u80fd\u6d89\u53ca\u5230\u5b57\u7b26\u4e32\u64cd\u4f5c\u548c\u6570\u636e\u7ed3\u6784\u7684\u8f6c\u6362\u3002<\/p>\n<\/p>\n<ol>\n<li>\u7406\u89e3\u8fd4\u56de\u6570\u636e\u7684\u683c\u5f0f<\/li>\n<li>\u63d0\u53d6\u5e76\u4f7f\u7528\u8bc6\u522b\u51fa\u7684\u6587\u5b57<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u9519\u8bef\u5904\u7406\u4e0e\u4f18\u5316<\/p>\n<\/p>\n<p><p><strong>\u5728\u7f16\u7a0b\u8c03\u7528API\u7684\u8fc7\u7a0b\u4e2d\uff0c\u9519\u8bef\u5904\u7406\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u73af<\/strong>\u3002\u7f51\u7edc\u95ee\u9898\u3001API\u8c03\u7528\u9891\u7387\u9650\u5236\u3001\u56fe\u7247\u4e0d\u6e05\u6670\u7b49\u90fd\u6709\u53ef\u80fd\u5bfc\u81f4\u8bc6\u522b\u5931\u8d25\u3002\u5f00\u53d1\u8005\u9700\u5bf9\u8fd9\u4e9b\u60c5\u51b5\u505a\u51fa\u76f8\u5e94\u7684\u5904\u7406\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5f02\u5e38\u60c5\u51b5\u7684\u5904\u7406<\/li>\n<li>\u8c03\u7528\u4f18\u5316\u4e0e\u6027\u80fd\u63d0\u5347<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f<\/p>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u5177\u4f53\u7684\u4ee3\u7801\u5b9e\u73b0\u4f1a\u6839\u636e\u5b9e\u9645\u7684\u5e94\u7528\u573a\u666f\u6709\u6240\u4e0d\u540c\u3002\u65e0\u8bba\u662f\u4e3a\u79fb\u52a8\u5e94\u7528\u63d0\u4f9b\u56fe\u7247\u4e0a\u4f20\u548c\u6587\u5b57\u8bc6\u522b\u670d\u52a1\uff0c\u8fd8\u662f\u5f00\u53d1\u684c\u9762\u7a0b\u5e8f\u8fdb\u884c\u6279\u91cf\u5904\u7406\uff0c\u90fd\u9700\u8981\u9488\u5bf9\u7279\u5b9a\u9700\u6c42\u8fdb\u884c\u7f16\u7a0b\u8bbe\u8ba1\u3002<\/p>\n<\/p>\n<ol>\n<li>\u79fb\u52a8\u5e94\u7528\u4e2d\u7684\u5e94\u7528<\/li>\n<li>\u684c\u9762\u7a0b\u5e8f\u7684\u96c6\u6210<\/li>\n<\/ol>\n<p><p>\u516b\u3001\u5b89\u5168\u6027\u4e0e\u9690\u79c1\u8003\u8651<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528\u5728\u7ebfOCR\u670d\u52a1\u65f6\uff0c<strong>\u5b89\u5168\u6027\u548c\u7528\u6237\u9690\u79c1\u4fdd\u62a4\u662f\u975e\u5e38\u91cd\u8981\u7684<\/strong>\u3002\u5f00\u53d1\u8005\u9700\u8981\u786e\u4fdd\u4f20\u8f93\u7684\u56fe\u7247\u6570\u636e\u52a0\u5bc6\uff0c\u5e76\u8003\u8651\u5982\u4f55\u5904\u7406\u4e2a\u4eba\u654f\u611f\u4fe1\u606f\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6570\u636e\u4f20\u8f93\u7684\u52a0\u5bc6<\/li>\n<li>\u7528\u6237\u9690\u79c1\u4fe1\u606f\u7684\u5904\u7406<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u5373\u4f7fQQ\u6ca1\u6709\u5f00\u653e\u5176\u56fe\u7247\u8bc6\u522b\u6587\u5b57\u7684\u5185\u90e8API\uff0c\u6211\u4eec\u4f9d\u7136\u53ef\u4ee5\u901a\u8fc7\u7f16\u7a0b\u8c03\u7528\u73b0\u6709\u7684\u7b2c\u4e09\u65b9OCR\u670d\u52a1\u6765\u5b9e\u73b0\u7c7b\u4f3c\u7684\u529f\u80fd\u3002\u4e0d\u8fc7\uff0c\u8fd9\u4e4b\u4e2d\u6709\u5f88\u591a\u7ec6\u8282\u9700\u8981\u6ce8\u610f\uff0c\u5982API\u9650\u989d\u3001\u8bc6\u522b\u51c6\u786e\u7387\u3001\u8bed\u8a00\u517c\u5bb9\u6027\u3001\u5904\u7406\u901f\u5ea6\u7b49\uff0c\u8fd9\u4e9b\u90fd\u9700\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u7ec6\u5fc3\u8003\u91cf\u548c\u8c03\u6574\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u6211\u8be5\u5982\u4f55\u4f7f\u7528\u7f16\u7a0b\u8c03\u7528QQ\u4e2d\u7684\u56fe\u7247\u8bc6\u522b\u6587\u5b57\u529f\u80fd\uff1f<\/strong><\/p>\n<p>\u4f7f\u7528\u7f16\u7a0b\u8c03\u7528QQ\u4e2d\u7684\u56fe\u7247\u8bc6\u522b\u6587\u5b57\u529f\u80fd\u975e\u5e38\u7b80\u5355\u3002\u9996\u5148\uff0c\u4f60\u9700\u8981\u5b89\u88c5QQ\u5e76\u767b\u5f55\u5230\u4f60\u7684\u8d26\u53f7\u3002\u7136\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528QQ\u7684\u5f00\u653e\u5e73\u53f0\u63d0\u4f9b\u7684API\u6765\u5b9e\u73b0\u56fe\u50cf\u8bc6\u522b\u3002\u901a\u8fc7\u8c03\u7528\u76f8\u5e94\u7684API\u63a5\u53e3\uff0c\u4f60\u53ef\u4ee5\u4e0a\u4f20\u56fe\u7247\u5e76\u83b7\u53d6\u8bc6\u522b\u540e\u7684\u6587\u5b57\u7ed3\u679c\u3002\u4f60\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528\u73b0\u6709\u7684\u7f16\u7a0b\u8bed\u8a00\uff08\u5982Python\u3001Java\u7b49\uff09\u6765\u5b9e\u73b0\u8c03\u7528API\u7684\u529f\u80fd\u3002<\/p>\n<p><strong>2. \u54ea\u4e9b\u7f16\u7a0b\u8bed\u8a00\u9002\u7528\u4e8e\u8c03\u7528QQ\u4e2d\u7684\u56fe\u7247\u8bc6\u522b\u6587\u5b57\u529f\u80fd\uff1f<\/strong><\/p>\n<p>QQ\u7684\u5f00\u653e\u5e73\u53f0\u63d0\u4f9b\u4e86\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u7684API SDK\uff0c\u4f8b\u5982Python\u3001Java\u3001JavaScript\u7b49\u3002\u56e0\u6b64\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u4f60\u559c\u6b22\u7684\u7f16\u7a0b\u8bed\u8a00\u6765\u8c03\u7528QQ\u4e2d\u7684\u56fe\u7247\u8bc6\u522b\u6587\u5b57\u529f\u80fd\u3002\u9009\u62e9\u4e00\u4e2a\u4f60\u719f\u6089\u4e14\u9002\u5408\u4f60\u9879\u76ee\u9700\u6c42\u7684\u8bed\u8a00\uff0c\u7136\u540e\u6309\u7167QQ\u5f00\u653e\u5e73\u53f0\u63d0\u4f9b\u7684\u6587\u6863\u8fdb\u884cAPI\u96c6\u6210\u548c\u8c03\u7528\u5373\u53ef\u3002<\/p>\n<p><strong>3. \u56fe\u7247\u8bc6\u522b\u6587\u5b57\u529f\u80fd\u80fd\u5728\u54ea\u4e9b\u573a\u666f\u4e0b\u4f7f\u7528\u7f16\u7a0b\u8c03\u7528\uff1f<\/strong><\/p>\n<p>\u56fe\u7247\u8bc6\u522b\u6587\u5b57\u529f\u80fd\u53ef\u4ee5\u5728\u591a\u79cd\u573a\u666f\u4e0b\u4f7f\u7528\u7f16\u7a0b\u8c03\u7528\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u5c06\u5176\u7528\u4e8e\u81ea\u52a8\u5316\u6587\u6863\u5904\u7406\uff0c\u53ef\u4ee5\u7f16\u5199\u7a0b\u5e8f\u81ea\u52a8\u5c06\u626b\u63cf\u7684\u6587\u6863\u56fe\u7247\u4e2d\u7684\u6587\u5b57\u63d0\u53d6\u51fa\u6765\uff0c\u7136\u540e\u81ea\u52a8\u751f\u6210\u53ef\u7f16\u8f91\u7684\u6587\u6863\u3002\u6b64\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u5c06\u5176\u7528\u4e8e\u793e\u4ea4\u5a92\u4f53\u5206\u6790\uff0c\u901a\u8fc7\u8c03\u7528API\u8bc6\u522b\u793e\u4ea4\u5a92\u4f53\u4e0a\u7684\u56fe\u7247\u4e2d\u7684\u6587\u5b57\uff0c\u5206\u6790\u7528\u6237\u7684\u5173\u6ce8\u70b9\u548c\u503e\u5411\u3002\u53e6\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u5c06\u5176\u7528\u4e8e\u56fe\u50cf\u641c\u7d22\uff0c\u901a\u8fc7\u8c03\u7528API\u5c06\u67d0\u4e2a\u5173\u952e\u8bcd\u4e0e\u56fe\u7247\u4e2d\u7684\u6587\u5b57\u5339\u914d\uff0c\u5b9e\u73b0\u66f4\u7cbe\u786e\u7684\u56fe\u50cf\u641c\u7d22\u529f\u80fd\u3002\u8fd9\u53ea\u662f\u5176\u4e2d\u51e0\u4e2a\u53ef\u4ee5\u4f7f\u7528\u56fe\u7247\u8bc6\u522b\u6587\u5b57\u529f\u80fd\u7684\u573a\u666f\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u4f60\u7684\u5b9e\u9645\u9700\u6c42\u8fdb\u884c\u8fdb\u4e00\u6b65\u7684\u5f00\u53d1\u548c\u521b\u65b0\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u901a\u8fc7\u7f16\u7a0b\u8c03\u7528QQ\u91cc\u7684\u56fe\u7247\u8bc6\u522b\u6587\u5b57\u529f\u80fd\uff1a\u8c03\u7528QQ\u4e2d\u7684\u56fe\u7247\u8bc6\u522b\u6587\u5b57\u529f\u80fd\u901a\u5e38\u6d89\u53ca\u7b2c\u4e09\u65b9OCR\uff08Optical C [&hellip;]","protected":false},"author":3,"featured_media":303847,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/303819"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=303819"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/303819\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/303847"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=303819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=303819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=303819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}