{"id":99269,"date":"2022-03-19T13:03:40","date_gmt":"2022-03-19T05:03:40","guid":{"rendered":"http:\/\/www.zhushiyao.com\/?p=99269"},"modified":"2022-03-19T13:04:03","modified_gmt":"2022-03-19T05:04:03","slug":"e8261eb847","status":"publish","type":"post","link":"http:\/\/www.zhushiyao.com\/?p=99269","title":{"rendered":"\u7528 Python \u5199\u4e86\u4e00\u4e2a\u56fe\u50cf\u6587\u5b57\u8bc6\u522b OCR \u5de5\u5177"},"content":{"rendered":"<div class=\"bpp-post-content\">\n<section style=\"margin-top: 55px; margin-bottom: 35px;\">\n<section style=\"font-weight: bold; font-size: 22px; line-height: 1.5em; margin-top: 55px; margin-bottom: 35px;\">\n<p style=\"line-height: 1.5em; margin-bottom: 35px; text-align: left;\"><span style=\"font-size: 17px; display: inline-block; background-image: linear-gradient(#ffffff 62%, #70afa8 38%); background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: #515151; padding: 2px 13px; margin-right: 3px; height: 500%;\">\u5f15\u8a00<\/span><\/p>\n<\/section>\n<section>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u6700\u8fd1\u804a\u5230\u4e00\u4e2a\u5173\u4e8e\u56fe\u50cf\u6587\u5b57\u8bc6\u522b\u7684\u9700\u6c42\uff0c\u5728\u5de5\u4f5c\u3001\u751f\u6d3b\u4e2d\u5e38\u5e38\u4f1a\u7528\u5230\uff0c\u6bd4\u5982<strong style=\"color: black;\">\u7968\u636e\u3001\u6f2b\u753b\u3001\u626b\u63cf\u4ef6\u3001\u7167\u7247\u7684\u6587\u672c\u63d0\u53d6<\/strong>\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u535a\u4e3b\u57fa\u4e8e PyQt + labelme + PaddleOCR \u5199\u4e86\u4e00\u4e2a\u684c\u9762\u7aef\u7684OCR\u5de5\u5177\uff0c\u7528\u4e8e\u5feb\u901f\u5b9e\u73b0\u56fe\u7247\u4e2d<strong><span style=\"color: #007aaa;\">\u6587\u672c\u533a\u57df\u81ea\u52a8\u68c0\u6d4b+\u6587\u672c\u81ea\u52a8\u8bc6\u522b<\/span><\/strong>\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u8bc6\u522b\u6548\u679c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"display: block; margin-right: auto; margin-left: auto; height: auto !important;\" title=\"\u7528 Python \u5199\u4e86\u4e00\u4e2a\u56fe\u50cf\u6587\u5b57\u8bc6\u522b OCR \u5de5\u5177\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/03\/6-1647666220.gif\" alt=\"\u7528 Python \u5199\u4e86\u4e00\u4e2a\u56fe\u50cf\u6587\u5b57\u8bc6\u522b OCR \u5de5\u5177\" \/><figcaption style=\"margin-top: 5px; text-align: center; color: #888888; padding-bottom: 15px; font-size: 12px; font-family: PingFangSC-Light;\">\u25b2OCR\u5de5\u5177\u8bc6\u522b\u6548\u679c<\/figcaption><\/figure>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u6240\u6709\u6846\u9009\u533a\u57df\u4e3aOCR\u7b97\u6cd5\u81ea\u52a8\u68c0\u6d4b\uff0c\u53f3\u4fa7\u5217\u8868\u6709\u6bcf\u4e2a\u6846\u5bf9\u5e94\u7684\u6587\u5b57\u5185\u5bb9\uff1b\u70b9\u51fb\u53f3\u4fa7\u201c\u8bc6\u522b\u7ed3\u679c\u201d\u4e2d\u7684\u6587\u672c\u8bb0\u5f55\uff0c\u7136\u540e\u70b9\u51fb\u201c\u590d\u5236\u5230\u526a\u8d34\u677f\u201d\u5373\u53ef\u590d\u5236\u8be5\u6587\u672c\u5185\u5bb9\u3002<\/p>\n<h2 style=\"font-weight: bold; font-size: 22px; line-height: 1.5em; margin-top: 55px; margin-bottom: 35px;\"><span style=\"font-size: 17px; display: inline-block; background-image: linear-gradient(#ffffff 62%, #70afa8 38%); background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: #515151; padding: 2px 13px; margin-right: 3px; height: 500%;\">\u529f\u80fd\u5217\u8868<\/span><\/h2>\n<ul class=\"list-paddingleft-1\" style=\"margin-top: 8px; margin-bottom: 8px; padding-left: 25px; font-size: 13px; color: #595959; list-style-type: square;\">\n<li>\n<section style=\"line-height: 26px; color: #010101; margin-top: 10px; margin-bottom: 10px; font-size: 14px;\">\u6587\u672c\u533a\u57df\u68c0\u6d4b+\u6587\u5b57\u8bc6\u522b<\/section>\n<\/li>\n<li>\n<section style=\"line-height: 26px; color: #010101; margin-top: 10px; margin-bottom: 10px; font-size: 14px;\">\u6587\u672c\u533a\u57df\u53ef\u89c6\u5316<\/section>\n<\/li>\n<li>\n<section style=\"line-height: 26px; color: #010101; margin-top: 10px; margin-bottom: 10px; font-size: 14px;\">\u6587\u5b57\u5185\u5bb9\u5217\u8868<\/section>\n<\/li>\n<li>\n<section style=\"line-height: 26px; color: #010101; margin-top: 10px; margin-bottom: 10px; font-size: 14px;\">\u56fe\u50cf\u3001\u6587\u4ef6\u5939\u52a0\u8f7d<\/section>\n<\/li>\n<li>\n<section style=\"line-height: 26px; color: #010101; margin-top: 10px; margin-bottom: 10px; font-size: 14px;\">\u56fe\u50cf\u6eda\u8f6e\u7f29\u653e\u67e5\u770b<\/section>\n<\/li>\n<li>\n<section style=\"line-height: 26px; color: #010101; margin-top: 10px; margin-bottom: 10px; font-size: 14px;\">\u7ed8\u5236\u533a\u57df\u3001\u7f16\u8f91\u533a\u57df<\/section>\n<\/li>\n<li>\n<section style=\"line-height: 26px; color: #010101; margin-top: 10px; margin-bottom: 10px; font-size: 14px;\">\u590d\u5236\u6240\u9009\u6587\u672c\u8bc6\u522b\u7ed3\u679c<\/section>\n<\/li>\n<\/ul>\n<h2 style=\"font-weight: bold; font-size: 22px; line-height: 1.5em; margin-top: 55px; margin-bottom: 35px;\"><span style=\"font-size: 17px; display: inline-block; background-image: linear-gradient(#ffffff 62%, #70afa8 38%); background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: #515151; padding: 2px 13px; margin-right: 3px; height: 500%;\">OCR\u90e8\u5206<\/span><\/h2>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u56fe\u50cf\u6587\u5b57\u68c0\u6d4b+\u6587\u5b57\u8bc6\u522b\u7b97\u6cd5\uff0c\u4e3b\u8981\u501f\u52a9 <code style=\"overflow-wrap: break-word; font-size: 14px; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #1e6bb8; background-color: rgba(27, 31, 35, 0.05); font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all;\">paddleocr<\/code> \u5b9e\u73b0\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u521b\u5efa\u6216\u8005\u9009\u62e9\u4e00\u4e2a\u865a\u62df\u73af\u5883\uff0c\u5b89\u88c5\u9700\u8981\u7528\u5230\u7684\u7b2c\u4e09\u65b9\u5e93\u3002<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px;\"><code style=\"overflow-x: auto; padding: 16px; background: #272822; color: #ddd; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;\">conda\u00a0create\u00a0-n\u00a0ocr\nconda\u00a0activate\u00a0ocr\n<\/code><\/pre>\n<h3 style=\"line-height: 1.5em; margin-top: 30px; margin-bottom: 15px; font-weight: bold; font-size: 20px;\"><span style=\"font-size: 16px; display: inline-block; margin-left: 8px; color: #323232; margin-top: 10px; margin-bottom: 15px;\">\u5b89\u88c5\u6846\u67b6<\/span><\/h3>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u5982\u679c\u4f60\u6ca1\u6709NVIDIA GPU\uff0c\u6216GPU\u4e0d\u652f\u6301CUDA\uff0c\u53ef\u4ee5\u5b89\u88c5CPU\u7248\u672c\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px;\"><code style=\"overflow-x: auto; padding: 16px; background: #272822; color: #ddd; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;\"><span style=\"color: #75715e; line-height: 26px;\">#<\/span><span style=\"line-height: 26px;\">\u00a0CPU\u7248\u672c<\/span>\npip\u00a0install\u00a0paddlepaddle==2.1.0\u00a0-i\u00a0https:\/\/mirror.baidu.com\/pypi\/simple\u00a0\n<\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u5982\u679c\u4f60\u7684GPU\u5b89\u88c5\u8fc7CUDA9\u6216CUDA10\uff0ccuDNN 7.6+\uff0c\u53ef\u4ee5\u9009\u62e9\u4e0b\u9762\u8fd9\u4e2aGPU\u7248\u672c\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px;\"><code style=\"overflow-x: auto; padding: 16px; background: #272822; color: #ddd; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;\"><span style=\"color: #75715e; line-height: 26px;\">#<\/span><span style=\"line-height: 26px;\">\u00a0GPU\u7248\u672c<\/span>\npython3\u00a0-m\u00a0pip\u00a0install\u00a0paddlepaddle-gpu==2.1.0\u00a0-i\u00a0https:\/\/mirror.baidu.com\/pypi\/simple\n<\/code><\/pre>\n<h3 style=\"line-height: 1.5em; margin-top: 30px; margin-bottom: 15px; font-weight: bold; font-size: 20px;\"><span style=\"font-size: 16px; display: inline-block; margin-left: 8px; color: #323232; margin-top: 10px; margin-bottom: 15px;\">\u5b89\u88c5 PaddleOCR<\/span><\/h3>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u5b89\u88c5paddleocr\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px;\"><code style=\"overflow-x: auto; padding: 16px; background: #272822; color: #ddd; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;\">pip\u00a0install\u00a0\"paddleocr&gt;=2.0.1\"\u00a0#\u00a0\u63a8\u8350\u4f7f\u75282.0.1+\u7248\u672c\n<\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u7248\u9762\u5206\u6790\uff0c\u9700\u8981\u5b89\u88c5 Layout-Parser\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px;\"><code style=\"overflow-x: auto; padding: 16px; background: #272822; color: #ddd; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;\">pip3\u00a0install\u00a0-U\u00a0https:\/\/paddleocr.bj.bcebos.com\/whl\/layoutparser-0.0.0-py3-none-any.whl\n<\/code><\/pre>\n<h3 style=\"line-height: 1.5em; margin-top: 30px; margin-bottom: 15px; font-weight: bold; font-size: 20px;\"><span style=\"font-size: 16px; display: inline-block; margin-left: 8px; color: #323232; margin-top: 10px; margin-bottom: 15px;\">\u6d4b\u8bd5\u5b89\u88c5\u662f\u5426\u6210\u529f<\/span><\/h3>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6d4b\u8bd5\u4e00\u5f20\u56fe\u7247<code style=\"overflow-wrap: break-word; font-size: 14px; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #1e6bb8; background-color: rgba(27, 31, 35, 0.05); font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all;\">--image_dir .\/imgs\/11.jpg<\/code>\uff0c\u91c7\u7528\u4e2d\u82f1\u6587\u68c0\u6d4b+\u65b9\u5411\u5206\u7c7b\u5668+\u8bc6\u522b\u5168\u6d41\u7a0b\uff1a<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px;\"><code style=\"overflow-x: auto; padding: 16px; background: #272822; color: #ddd; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;\">paddleocr\u00a0--image_dir\u00a0.\/imgs\/11.jpg\u00a0--use_angle_cls\u00a0true\u00a0--use_gpu\u00a0false\n<\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u8f93\u51fa\u4e00\u4e2alist\uff1a<\/p>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"display: block; margin-right: auto; margin-left: auto; height: auto !important;\" title=\"\u7528 Python \u5199\u4e86\u4e00\u4e2a\u56fe\u50cf\u6587\u5b57\u8bc6\u522b OCR \u5de5\u5177\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/03\/2-1647666220.png\" alt=\"\u7528 Python \u5199\u4e86\u4e00\u4e2a\u56fe\u50cf\u6587\u5b57\u8bc6\u522b OCR \u5de5\u5177\" \/><\/figure>\n<h3 style=\"line-height: 1.5em; margin-top: 30px; margin-bottom: 15px; font-weight: bold; font-size: 20px;\"><span style=\"font-size: 16px; display: inline-block; margin-left: 8px; color: #323232; margin-top: 10px; margin-bottom: 15px;\">\u5728python\u4e2d\u8c03\u7528<\/span><\/h3>\n<pre style=\"margin-top: 10px; margin-bottom: 10px;\"><code style=\"overflow-x: auto; padding: 16px; background: #272822; color: #ddd; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;\"><span style=\"color: #f92672; font-weight: bold; line-height: 26px;\">from<\/span>\u00a0paddleocr\u00a0<span style=\"color: #f92672; font-weight: bold; line-height: 26px;\">import<\/span>\u00a0PaddleOCR,\u00a0draw_ocr\n\n<span style=\"color: #75715e; line-height: 26px;\">#\u00a0Paddleocr\u76ee\u524d\u652f\u6301\u7684\u591a\u8bed\u8a00\u8bed\u79cd\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539lang\u53c2\u6570\u8fdb\u884c\u5207\u6362<\/span>\n<span style=\"color: #75715e; line-height: 26px;\">#\u00a0\u4f8b\u5982`ch`,\u00a0`en`,\u00a0`fr`,\u00a0`german`,\u00a0`korean`,\u00a0`japan`<\/span>\nocr\u00a0=\u00a0PaddleOCR(use_angle_cls=<span style=\"color: #f92672; font-weight: bold; line-height: 26px;\">True<\/span>,\u00a0lang=<span style=\"color: #a6e22e; line-height: 26px;\">\"ch\"<\/span>)\u00a0\u00a0<span style=\"color: #75715e; line-height: 26px;\">#\u00a0need\u00a0to\u00a0run\u00a0only\u00a0once\u00a0to\u00a0download\u00a0and\u00a0load\u00a0model\u00a0into\u00a0memory<\/span>\nimg_path\u00a0=\u00a0<span style=\"color: #a6e22e; line-height: 26px;\">'.\/imgs\/11.jpg'<\/span>\nresult\u00a0=\u00a0ocr.ocr(img_path,\u00a0cls=<span style=\"color: #f92672; font-weight: bold; line-height: 26px;\">True<\/span>)\n<span style=\"color: #f92672; font-weight: bold; line-height: 26px;\">for<\/span>\u00a0line\u00a0<span style=\"color: #f92672; font-weight: bold; line-height: 26px;\">in<\/span>\u00a0result:\n\u00a0\u00a0\u00a0\u00a0print(line)\n<\/code><\/pre>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u8f93\u51fa\u7ed3\u679c\u662f\u4e00\u4e2alist\uff0c\u6bcf\u4e2aitem\u5305\u542b\u4e86\u6587\u672c\u6846\uff0c\u6587\u5b57\u548c\u8bc6\u522b\u7f6e\u4fe1\u5ea6\uff1a<\/p>\n<blockquote style=\"border-top: none; border-right: none; border-bottom: none; font-size: 0.9em; overflow: auto; border-left-color: rgba(0, 0, 0, 0.4); background: rgba(0, 0, 0, 0.05); color: #6a737d; padding: 10px 10px 10px 20px; margin-bottom: 20px; margin-top: 20px;\">\n<p style=\"padding-top: 8px; padding-bottom: 8px; letter-spacing: 1px; word-spacing: 2px; font-size: 13px; color: black; line-height: 26px;\">[[[24.0, 36.0], [304.0, 34.0], [304.0, 72.0], [24.0, 74.0]], [&#8216;\u7eaf\u81fb\u8425\u517b\u62a4\u53d1\u7d20&#8217;, 0.964739]] [[[24.0, 80.0], [172.0, 80.0], [172.0, 104.0], [24.0, 104.0]], [&#8216;\u4ea7\u54c1\u4fe1\u606f\/\u53c2\u6570&#8217;, 0.98069626]] [[[24.0, 109.0], [333.0, 109.0], [333.0, 136.0], [24.0, 136.0]], [&#8216;\uff0845\u5143\/\u6bcf\u516c\u65a4\uff0c100\u516c\u65a4\u8d77\u8ba2\uff09&#8217;, 0.9676722]] &#8230;&#8230;<\/p>\n<\/blockquote>\n<h2 style=\"font-weight: bold; font-size: 22px; line-height: 1.5em; margin-top: 55px; margin-bottom: 35px;\"><span style=\"font-size: 17px; display: inline-block; background-image: linear-gradient(#ffffff 62%, #70afa8 38%); background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: #515151; padding: 2px 13px; margin-right: 3px; height: 500%;\">\u754c\u9762\u90e8\u5206<\/span><\/h2>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u754c\u9762\u90e8\u5206\u57fa\u4e8epyqt5\u5b9e\u73b0\uff0c\u5176\u4e2dpyqt GUI\u7a0b\u5e8f\u5f00\u53d1\u5165\u95e8\u548c\u73af\u5883\u914d\u7f6e\uff0c\u8be6\u89c1\u4e00\u7bc7\u535a\u5ba2(\u5177\u4f53\u89c1\u6587\u672b)\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u4e3b\u8981\u6b65\u9aa4\uff1a<\/p>\n<h3 style=\"line-height: 1.5em; margin-top: 30px; margin-bottom: 15px; font-weight: bold; font-size: 20px;\"><span style=\"font-size: 16px; display: inline-block; margin-left: 8px; color: #323232; margin-top: 10px; margin-bottom: 15px;\">\u754c\u9762\u5e03\u5c40\u8bbe\u8ba1<\/span><\/h3>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u5728QtDesigner\u4e2d\u62d6\u62fd\u63a7\u4ef6\uff0c\u5b8c\u6210\u7a0b\u5e8f\u754c\u9762\u5e03\u5c40\uff0c\u5e76\u4fdd\u5b58<code style=\"overflow-wrap: break-word; font-size: 14px; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #1e6bb8; background-color: rgba(27, 31, 35, 0.05); font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all;\">*.ui<\/code>\u6587\u4ef6\u3002<\/p>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"display: block; margin-right: auto; margin-left: auto; height: auto !important;\" title=\"\u7528 Python \u5199\u4e86\u4e00\u4e2a\u56fe\u50cf\u6587\u5b57\u8bc6\u522b OCR \u5de5\u5177\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/03\/0-1647666220.png\" alt=\"\u7528 Python \u5199\u4e86\u4e00\u4e2a\u56fe\u50cf\u6587\u5b57\u8bc6\u522b OCR \u5de5\u5177\" \/><\/figure>\n<h3 style=\"line-height: 1.5em; margin-top: 30px; margin-bottom: 15px; font-weight: bold; font-size: 20px;\"><span style=\"font-size: 16px; display: inline-block; margin-left: 8px; color: #323232; margin-top: 10px; margin-bottom: 15px;\">\u5229\u7528 pyuic \u81ea\u52a8\u751f\u6210\u754c\u9762\u4ee3\u7801<\/span><\/h3>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u5728 pycharm \u7684\u9879\u76ee\u6587\u4ef6\u7ed3\u6784\u4e2d\u627e\u5230<code style=\"overflow-wrap: break-word; font-size: 14px; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #1e6bb8; background-color: rgba(27, 31, 35, 0.05); font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all;\">*.ui<\/code>\u6587\u4ef6\uff0c\u53f3\u952e\u2014\u2014External Tools\u2014\u2014pyuic\uff0c\u4f1a\u5728ui\u6587\u4ef6\u540c\u7ea7\u76ee\u5f55\u4e0b\u81ea\u52a8\u751f\u6210\u754c\u9762 ui \u7684 Python \u4ee3\u7801\u3002<\/p>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"display: block; margin-right: auto; margin-left: auto; height: auto !important;\" title=\"\u7528 Python \u5199\u4e86\u4e00\u4e2a\u56fe\u50cf\u6587\u5b57\u8bc6\u522b OCR \u5de5\u5177\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/03\/7-1647666220.png\" alt=\"\u7528 Python \u5199\u4e86\u4e00\u4e2a\u56fe\u50cf\u6587\u5b57\u8bc6\u522b OCR \u5de5\u5177\" \/><\/figure>\n<h3 style=\"line-height: 1.5em; margin-top: 30px; margin-bottom: 15px; font-weight: bold; font-size: 20px;\"><span style=\"font-size: 16px; display: inline-block; margin-left: 8px; color: #323232; margin-top: 10px; margin-bottom: 15px;\">\u7f16\u5199\u754c\u9762\u4e1a\u52a1\u7c7b<\/span><\/h3>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u4e1a\u52a1\u7c7b MainWindow \u5b9e\u73b0\u7a0b\u5e8f\u903b\u8f91\u548c\u7b97\u6cd5\u529f\u80fd\uff0c\u4e0e\u524d\u9762\u7b2c2\u6b65\u751f\u6210\u7684ui\u5b9e\u73b0\u89e3\u8026\uff0c\u907f\u514d\u6bcf\u6b21\u4fee\u6539ui\u6587\u4ef6\u4f1a\u5f71\u54cd\u4e1a\u52a1\u4ee3\u7801\u3002ui\u754c\u9762\u4e0a\u7684\u63a7\u4ef6\u53ef\u4ee5\u901a\u8fc7<code style=\"overflow-wrap: break-word; font-size: 14px; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #1e6bb8; background-color: rgba(27, 31, 35, 0.05); font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all;\">self._ui.xxxObjectName<\/code> \u8bbf\u95ee\u3002<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px;\"><code style=\"overflow-x: auto; padding: 16px; background: #272822; color: #ddd; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;\"><span style=\"line-height: 26px;\"><span style=\"color: #f92672; font-weight: bold; line-height: 26px;\">class<\/span>\u00a0<span style=\"font-weight: bold; color: white; line-height: 26px;\">MainWindow<\/span><span style=\"line-height: 26px;\">(QMainWindow)<\/span>:<\/span>\n\u00a0FIT_WINDOW,\u00a0FIT_WIDTH,\u00a0MANUAL_ZOOM\u00a0=\u00a0<span style=\"line-height: 26px;\">0<\/span>,\u00a0<span style=\"line-height: 26px;\">1<\/span>,\u00a0<span style=\"line-height: 26px;\">2<\/span>\n\n\u00a0<span style=\"line-height: 26px;\"><span style=\"color: #f92672; font-weight: bold; line-height: 26px;\">def<\/span>\u00a0<span style=\"color: #a6e22e; font-weight: bold; line-height: 26px;\">__init__<\/span><span style=\"line-height: 26px;\">(self)<\/span>:<\/span>\n\u00a0\u00a0super().__init__()\u00a0\u00a0<span style=\"color: #75715e; line-height: 26px;\">#\u00a0\u8c03\u7528\u7236\u7c7b\u6784\u9020\u51fd\u6570\uff0c\u521b\u5efaQWidget\u7a97\u4f53<\/span>\n\u00a0\u00a0self._ui\u00a0=\u00a0Ui_MainWindow()\u00a0\u00a0<span style=\"color: #75715e; line-height: 26px;\">#\u00a0\u521b\u5efaui\u5bf9\u8c61<\/span>\n\u00a0\u00a0self._ui.setupUi(self)\u00a0\u00a0<span style=\"color: #75715e; line-height: 26px;\">#\u00a0\u6784\u9020ui<\/span>\n\u00a0\u00a0self.setWindowTitle(__appname__)\n\n\u00a0\u00a0<span style=\"color: #75715e; line-height: 26px;\">#\u00a0\u52a0\u8f7d\u9ed8\u8ba4\u914d\u7f6e<\/span>\n\u00a0\u00a0config\u00a0=\u00a0get_config()\n\u00a0\u00a0self._config\u00a0=\u00a0config\u00a0\u00a0\u00a0\u00a0\n\u00a0\u00a0\n\u00a0\u00a0<span style=\"color: #75715e; line-height: 26px;\">#\u00a0\u5355\u9009\u6309\u94ae\u7ec4<\/span>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0self.checkBtnGroup\u00a0=\u00a0QButtonGroup(self)\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0self.checkBtnGroup.addButton(self._ui.checkBox_ocr)\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0self.checkBtnGroup.addButton(self._ui.checkBox_det)\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0self.checkBtnGroup.addButton(self._ui.checkBox_recog)\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0self.checkBtnGroup.addButton(self._ui.checkBox_layoutparser)\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0self.checkBtnGroup.setExclusive(<span style=\"color: #f92672; font-weight: bold; line-height: 26px;\">True<\/span>)\u00a0\u00a0\u00a0\u00a0\u00a0\n<\/code><\/pre>\n<h3 style=\"line-height: 1.5em; margin-top: 30px; margin-bottom: 15px; font-weight: bold; font-size: 20px;\"><span style=\"font-size: 16px; display: inline-block; margin-left: 8px; color: #323232; margin-top: 10px; margin-bottom: 15px;\">\u5b9e\u73b0\u754c\u9762\u4e1a\u52a1\u903b\u8f91<\/span><\/h3>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u5bf9\u4e3b\u754c\u9762\u4e0a\u7684\u6309\u94ae\u3001\u5217\u8868\u3001\u7ed8\u56fe\u63a7\u4ef6\u8fdb\u884c<strong style=\"color: black;\">\u4fe1\u53f7\u69fd\u8fde\u63a5<\/strong>\u3002\u81ea\u5b9a\u4e49\u7684\u69fd\u51fd\u6570\u4e0d\u7528\u4e13\u95e8\u58f0\u660e\uff0c\u5982\u679c\u662f\u81ea\u5b9a\u4e49\u7684\u4fe1\u53f7\uff0c\u9700\u8981\u5728\u7c7b__init__()\u524d\u52a0\u4e0a <code style=\"overflow-wrap: break-word; font-size: 14px; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #1e6bb8; background-color: rgba(27, 31, 35, 0.05); font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all;\">yourSignal= pyqtSignal(args)<\/code>\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u8fd9\u91cc\u4ee5\u6309\u94ae\u54cd\u5e94\u51fd\u6570\u3001\u5217\u8868\u54cd\u5e94\u51fd\u6570\u4e3a\u4f8b\u3002\u6309\u94ae\u70b9\u51fb\u7684\u4fe1\u53f7\u662f <code style=\"overflow-wrap: break-word; font-size: 14px; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #1e6bb8; background-color: rgba(27, 31, 35, 0.05); font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all;\">clicked<\/code>\uff0clistWidget\u5217\u8868\u5207\u6362\u9009\u62e9\u7684\u4fe1\u53f7\u662f <code style=\"overflow-wrap: break-word; font-size: 14px; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #1e6bb8; background-color: rgba(27, 31, 35, 0.05); font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all;\">itemSelectionChanged<\/code> \u3002<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px;\"><code style=\"overflow-x: auto; padding: 16px; background: #272822; color: #ddd; display: -webkit-box; font-family: Operator Mono, Consolas, Monaco, Menlo, monospace; border-radius: 0px; font-size: 12px; -webkit-overflow-scrolling: touch;\"><span style=\"color: #75715e; line-height: 26px;\">#\u00a0\u6309\u94ae\u54cd\u5e94\u51fd\u6570<\/span>\nself._ui.btnOpenImg.clicked.connect(self.openFile)\nself._ui.btnOpenDir.clicked.connect(self.openDirDialog)\nself._ui.btnNext.clicked.connect(self.openNextImg)\nself._ui.btnPrev.clicked.connect(self.openPrevImg)\nself._ui.btnStartProcess.clicked.connect(self.startProcess)\nself._ui.btnCopyAll.clicked.connect(self.copyToClipboard)\nself._ui.btnSaveAll.clicked.connect(self.saveToFile)\nself._ui.listWidgetResults.itemSelectionChanged.connect(self.onItemResultClicked)\n<\/code><\/pre>\n<h3 style=\"line-height: 1.5em; margin-top: 30px; margin-bottom: 15px; font-weight: bold; font-size: 20px;\"><span style=\"font-size: 16px; display: inline-block; margin-left: 8px; color: #323232; margin-top: 10px; margin-bottom: 15px;\">5. \u8fd0\u884c\u770b\u770b\u6548\u679c<\/span><\/h3>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u8fd0\u884c <code style=\"overflow-wrap: break-word; font-size: 14px; padding: 2px 4px; border-radius: 4px; margin-right: 2px; margin-left: 2px; color: #1e6bb8; background-color: rgba(27, 31, 35, 0.05); font-family: 'Operator Mono', Consolas, Monaco, Menlo, monospace; word-break: break-all;\">python main.py<\/code> \u5373\u53ef\u542f\u52a8GUI\u7a0b\u5e8f\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u6253\u5f00\u56fe\u7247\u2192\u9009\u62e9\u8bed\u8a00\u6a21\u578bch\uff08\u4e2d\u6587\uff09\u2192\u9009\u62e9\u6587\u672c\u68c0\u6d4b+\u8bc6\u522b\u2192\u70b9\u51fb\u5f00\u59cb\uff0c\u68c0\u6d4b\u5b8c\u7684\u6587\u672c\u533a\u57df\u4f1a\u81ea\u52a8\u753b\u6846\uff0c\u5e76\u5728\u53f3\u4fa7\u8bc6\u522b\u7ed3\u679c\u2014\u2014\u6587\u672cTab\u9875\u7684\u5217\u8868\u4e2d\u663e\u793a\u3002<\/p>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"display: block; margin-right: auto; margin-left: auto; height: auto !important;\" title=\"\u7528 Python \u5199\u4e86\u4e00\u4e2a\u56fe\u50cf\u6587\u5b57\u8bc6\u522b OCR \u5de5\u5177\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/03\/2-1647666220-1.png\" alt=\"\u7528 Python \u5199\u4e86\u4e00\u4e2a\u56fe\u50cf\u6587\u5b57\u8bc6\u522b OCR \u5de5\u5177\" \/><\/figure>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u6240\u6709\u68c0\u6d4b\u51fa\u6587\u672c\u7684\u533a\u57df\u5217\u8868\uff0c\u5728\u8bc6\u522b\u7ed3\u679c\u2014\u2014\u533a\u57dfTab\u9875\uff1a<\/p>\n<figure style=\"margin-top: 10px; margin-bottom: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" style=\"display: block; margin-right: auto; margin-left: auto; height: auto !important;\" title=\"\u7528 Python \u5199\u4e86\u4e00\u4e2a\u56fe\u50cf\u6587\u5b57\u8bc6\u522b OCR \u5de5\u5177\" src=\"http:\/\/www.zhushiyao.com\/wp-content\/uploads\/2022\/03\/2-1647666220-2.png\" alt=\"\u7528 Python \u5199\u4e86\u4e00\u4e2a\u56fe\u50cf\u6587\u5b57\u8bc6\u522b OCR \u5de5\u5177\" \/><\/figure>\n<h2 style=\"font-weight: bold; font-size: 22px; line-height: 1.5em; margin-top: 55px; margin-bottom: 35px;\"><span style=\"font-size: 17px; display: inline-block; background-image: linear-gradient(#ffffff 62%, #70afa8 38%); background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: #515151; padding: 2px 13px; margin-right: 3px; height: 500%;\">\u8f6f\u4ef6\u4ee3\u7801<\/span><\/h2>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u7531\u4e8e\u65f6\u95f4\u6709\u9650\uff0c\u8f6f\u4ef6\u7ec6\u8282\u529f\u80fd\u8fd8\u9700\u8fdb\u4e00\u6b65\u5b8c\u5584\u3002\u4ee3\u7801\u5df2\u5f00\u6e90\u5230 gitee \u4e0a\uff0c\u6b22\u8fce\u611f\u5174\u8da3\u7684\u670b\u53cb\u63d0pull request\uff0c\u5171\u540c\u4fee\u6539\u5b8c\u5584\u3002<\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u4ee3\u7801\u5f00\u6e90\u5730\u5740\uff1a<em style=\"color: #065279; letter-spacing: -1px;\">https:\/\/gitee.com\/signal926\/ocr-gui-demo<\/em><\/p>\n<h2 style=\"font-weight: bold; font-size: 22px; line-height: 1.5em; margin-top: 55px; margin-bottom: 35px;\"><span style=\"font-size: 17px; display: inline-block; background-image: linear-gradient(#ffffff 62%, #70afa8 38%); background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: #515151; padding: 2px 13px; margin-right: 3px; height: 500%;\">\u53c2\u8003\u94fe\u63a5<\/span><\/h2>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u753b\u6846\u3001\u533a\u57df\u5217\u8868\uff1a<em style=\"color: #065279; letter-spacing: -1px;\">https:\/\/github.com\/wkentaro\/labelme<\/em><\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">icons\uff1a<em style=\"color: #065279; letter-spacing: -1px;\">https:\/\/github.com\/google\/material-design-icons<\/em><\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\"><em style=\"color: #065279; letter-spacing: -1px;\">https:\/\/gitee.com\/paddlepaddle\/PaddleOCR\/blob\/release\/2.3\/doc\/doc_ch\/quickstart.md<\/em><\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\"><em style=\"color: #065279; letter-spacing: -1px;\">https:\/\/blog.csdn.net\/Bit_Coders\/article\/details\/119304488<\/em><\/p>\n<p style=\"padding-top: 8px; padding-bottom: 8px; line-height: 26px; color: #282828; margin-top: 10px; margin-bottom: 10px; letter-spacing: 1px; font-size: 15px; word-spacing: 2px;\">\u5982\u679c\u672c\u6587\u5bf9\u4f60\u6709\u5e2e\u52a9\u7684\u8bdd\uff0c\u6b22\u8fce\u70b9\u8d5e\u3001\u6536\u85cf~<\/p>\n<p style=\"white-space: normal;\">\n<p style=\"white-space: normal; text-align: center;\"><span style=\"font-size: 15px; color: #888888;\">&#8211; EOF &#8211;<\/span><\/p>\n<section style=\"margin-top: 1em; margin-bottom: 1em; white-space: normal; text-align: start; max-width: 100%; caret-color: #000000; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important; border: 0px initial initial;\"><\/section>\n<p style=\"white-space: normal; text-align: right;\">\u8f6c\u81ea\uff1ahttps:\/\/mp.weixin.qq.com\/s\/6pME6eYhY5-Ms2XsfNH9-w<\/p>\n<\/section>\n<\/section>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5f15\u8a00 \u6700\u8fd1\u804a\u5230\u4e00\u4e2a\u5173\u4e8e\u56fe\u50cf\u6587\u5b57\u8bc6\u522b\u7684\u9700\u6c42\uff0c\u5728\u5de5\u4f5c\u3001\u751f\u6d3b\u4e2d\u5e38\u5e38\u4f1a\u7528\u5230\uff0c\u6bd4\u5982\u7968\u636e\u3001\u6f2b\u753b\u3001\u626b\u63cf\u4ef6\u3001\u7167\u7247\u7684\u6587\u672c\u63d0\u53d6\u3002  &hellip; <a href=\"http:\/\/www.zhushiyao.com\/?p=99269\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u7528 Python \u5199\u4e86\u4e00\u4e2a\u56fe\u50cf\u6587\u5b57\u8bc6\u522b OCR \u5de5\u5177\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[8],"_links":{"self":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/99269"}],"collection":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=99269"}],"version-history":[{"count":2,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/99269\/revisions"}],"predecessor-version":[{"id":99287,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=\/wp\/v2\/posts\/99269\/revisions\/99287"}],"wp:attachment":[{"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=99269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=99269"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zhushiyao.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=99269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}