{"id":1015510,"date":"2024-12-27T12:08:13","date_gmt":"2024-12-27T04:08:13","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1015510.html"},"modified":"2024-12-27T12:08:16","modified_gmt":"2024-12-27T04:08:16","slug":"python%e5%a6%82%e4%bd%95%e6%88%aa%e5%8f%96%e5%b1%8f%e5%b9%95%e6%96%87%e5%ad%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1015510.html","title":{"rendered":"python\u5982\u4f55\u622a\u53d6\u5c4f\u5e55\u6587\u5b57"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25095336\/692b5759-6954-4de0-a85d-09d4c26383a6.webp\" alt=\"python\u5982\u4f55\u622a\u53d6\u5c4f\u5e55\u6587\u5b57\" \/><\/p>\n<p><p> <strong>\u8981\u5728Python\u4e2d\u622a\u53d6\u5c4f\u5e55\u6587\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528OCR\u6280\u672f\u5bf9\u5c4f\u5e55\u622a\u56fe\u8fdb\u884c\u6587\u5b57\u8bc6\u522b\u3001\u5229\u7528Python\u5e93\u5982Pillow\u548cPyAutoGUI\u8fdb\u884c\u622a\u56fe\u3001\u7ed3\u5408Tesseract\u8fdb\u884c\u6587\u5b57\u8bc6\u522b\u3002<\/strong> \u5176\u4e2d\uff0c\u7ed3\u5408\u4f7f\u7528Pillow\u6216PyAutoGUI\u8fdb\u884c\u622a\u56fe\uff0c\u518d\u901a\u8fc7Tesseract\u8fdb\u884c\u6587\u5b57\u8bc6\u522b\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u3002Tesseract\u662f\u4e00\u6b3e\u5f00\u6e90\u7684OCR\u5f15\u64ce\uff0c\u53ef\u4ee5\u8bc6\u522b\u4ece\u56fe\u7247\u4e2d\u63d0\u53d6\u7684\u6587\u672c\u3002<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u8be6\u7ec6\u5730\u8bf4\u660e\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u4e0b\u9762\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u548c\u5e93\u6765\u622a\u53d6\u5c4f\u5e55\u6587\u5b57\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528PYTHON\u5e93\u8fdb\u884c\u5c4f\u5e55\u622a\u56fe<\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u4e2a\u5e93\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u65b9\u4fbf\u5730\u622a\u53d6\u5c4f\u5e55\u6216\u90e8\u5206\u533a\u57df\u7684\u622a\u56fe\u3002\u6700\u5e38\u7528\u7684\u5e93\u5305\u62ecPillow\u548cPyAutoGUI\u3002<\/p>\n<\/p>\n<p><h4>1\u3001Pillow\u5e93\u7684\u4f7f\u7528<\/h4>\n<\/p>\n<p><p>Pillow\u662fPython Imaging Library\uff08PIL\uff09\u7684\u4e00\u4e2a\u5206\u652f\uff0c\u662fPython\u4e2d\u5904\u7406\u56fe\u50cf\u7684\u5f3a\u5927\u5de5\u5177\u3002\u901a\u8fc7Pillow\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u622a\u53d6\u5c4f\u5e55\u622a\u56fe\u5e76\u4fdd\u5b58\u4e3a\u4e0d\u540c\u683c\u5f0f\u7684\u56fe\u7247\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u8981\u5f00\u59cb\u4f7f\u7528Pillow\u5e93\uff0c\u4f60\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pillow<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u6765\u622a\u53d6\u5c4f\u5e55\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import ImageGrab<\/p>\n<h2><strong>\u622a\u53d6\u6574\u4e2a\u5c4f\u5e55<\/strong><\/h2>\n<p>screenshot = ImageGrab.grab()<\/p>\n<h2><strong>\u4fdd\u5b58\u622a\u56fe<\/strong><\/h2>\n<p>screenshot.save(&quot;screenshot.png&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001PyAutoGUI\u5e93\u7684\u4f7f\u7528<\/h4>\n<\/p>\n<p><p>PyAutoGUI\u662f\u4e00\u4e2a\u7528\u4e8e\u81ea\u52a8\u5316\u56fe\u5f62\u7528\u6237\u754c\u9762\u7684Python\u5e93\uff0c\u652f\u6301\u8de8\u5e73\u53f0\u64cd\u4f5c\u3002\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u7528\u6765\u622a\u53d6\u5c4f\u5e55\uff0c\u8fd8\u53ef\u4ee5\u6a21\u62df\u9f20\u6807\u548c\u952e\u76d8\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u8981\u4f7f\u7528PyAutoGUI\u8fdb\u884c\u5c4f\u5e55\u622a\u56fe\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pyautogui<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u8fdb\u884c\u622a\u56fe\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pyautogui<\/p>\n<h2><strong>\u622a\u53d6\u6574\u4e2a\u5c4f\u5e55<\/strong><\/h2>\n<p>screenshot = pyautogui.screenshot()<\/p>\n<h2><strong>\u4fdd\u5b58\u622a\u56fe<\/strong><\/h2>\n<p>screenshot.save(&quot;screenshot.png&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528TESSERACT\u8fdb\u884cOCR\u8bc6\u522b<\/h3>\n<\/p>\n<p><p>\u4e00\u65e6\u6211\u4eec\u83b7\u5f97\u4e86\u5c4f\u5e55\u622a\u56fe\uff0c\u4e0b\u4e00\u6b65\u5c31\u662f\u4f7f\u7528OCR\u6280\u672f\u4ece\u56fe\u50cf\u4e2d\u63d0\u53d6\u6587\u5b57\u3002Tesseract\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5f00\u6e90OCR\u5f15\u64ce\uff0c\u652f\u6301\u591a\u79cd\u8bed\u8a00\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5Tesseract<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5728\u7cfb\u7edf\u4e0a\u5b89\u88c5Tesseract\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>Windows<\/strong>: \u4e0b\u8f7d<a href=\"https:\/\/github.com\/UB-Mannheim\/tesseract\/wiki\">Tesseract\u5b89\u88c5\u5305<\/a>\u5e76\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Mac<\/strong>: \u4f7f\u7528Homebrew\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">brew install tesseract<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>Linux<\/strong>: \u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt-get install tesseract-ocr<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<p><h4>2\u3001Python\u4e2d\u4f7f\u7528Tesseract<\/h4>\n<\/p>\n<p><p>\u5728Python\u4e2d\u4f7f\u7528Tesseract\u9700\u8981\u501f\u52a9pytesseract\u5e93\u3002\u9996\u5148\u5b89\u88c5pytesseract\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pytesseract<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u8fdb\u884c\u6587\u5b57\u8bc6\u522b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image<\/p>\n<p>import pytesseract<\/p>\n<h2><strong>\u5982\u679c\u9700\u8981\uff0c\u6307\u5b9aTesseract\u7684\u8def\u5f84<\/strong><\/h2>\n<h2><strong>pytesseract.pytesseract.tesseract_cmd = r&#39;C:\\Program Files\\Tesseract-OCR\\tesseract.exe&#39;<\/strong><\/h2>\n<h2><strong>\u6253\u5f00\u622a\u56fe<\/strong><\/h2>\n<p>screenshot = Image.open(&quot;screenshot.png&quot;)<\/p>\n<h2><strong>\u8fdb\u884cOCR\u8bc6\u522b<\/strong><\/h2>\n<p>text = pytesseract.image_to_string(screenshot)<\/p>\n<p>print(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u6574\u5408\u4ee5\u4e0a\u65b9\u6cd5\u5b9e\u73b0\u5b8c\u6574\u6d41\u7a0b<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u5b9e\u73b0\u4ece\u5c4f\u5e55\u622a\u53d6\u6587\u5b57\u7684\u5b8c\u6574\u6d41\u7a0b\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u622a\u56fe\u548cOCR\u8bc6\u522b\u7684\u6b65\u9aa4\u6574\u5408\u5230\u4e00\u8d77\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pyautogui<\/p>\n<p>from PIL import Image<\/p>\n<p>import pytesseract<\/p>\n<h2><strong>\u622a\u53d6\u5c4f\u5e55\u5e76\u4fdd\u5b58<\/strong><\/h2>\n<p>screenshot = pyautogui.screenshot()<\/p>\n<p>screenshot.save(&quot;screenshot.png&quot;)<\/p>\n<h2><strong>\u8fdb\u884cOCR\u8bc6\u522b<\/strong><\/h2>\n<p>text = pytesseract.image_to_string(screenshot)<\/p>\n<h2><strong>\u8f93\u51fa\u8bc6\u522b\u7684\u6587\u5b57<\/strong><\/h2>\n<p>print(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u63d0\u9ad8OCR\u8bc6\u522b\u7387\u7684\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>OCR\u8bc6\u522b\u7684\u51c6\u786e\u6027\u53ef\u80fd\u53d7\u5230\u591a\u79cd\u56e0\u7d20\u7684\u5f71\u54cd\uff0c\u5982\u56fe\u50cf\u7684\u6e05\u6670\u5ea6\u3001\u6587\u5b57\u7684\u5b57\u4f53\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u63d0\u9ad8\u8bc6\u522b\u7387\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u9884\u5904\u7406\u56fe\u50cf<\/h4>\n<\/p>\n<p><p>\u5728\u8fdb\u884cOCR\u4e4b\u524d\uff0c\u5bf9\u56fe\u50cf\u8fdb\u884c\u9884\u5904\u7406\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u8bc6\u522b\u7387\u3002\u5e38\u89c1\u7684\u9884\u5904\u7406\u64cd\u4f5c\u5305\u62ec\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u7070\u5ea6\u5316<\/strong>\uff1a\u5c06\u5f69\u8272\u56fe\u50cf\u8f6c\u6362\u4e3a\u7070\u5ea6\u56fe\u50cf\u3002<\/li>\n<li><strong>\u4e8c\u503c\u5316<\/strong>\uff1a\u5c06\u7070\u5ea6\u56fe\u50cf\u8f6c\u6362\u4e3a\u9ed1\u767d\u56fe\u50cf\u3002<\/li>\n<li><strong>\u53bb\u566a<\/strong>\uff1a\u53bb\u9664\u56fe\u50cf\u4e2d\u7684\u566a\u58f0\uff0c\u63d0\u9ad8\u6587\u5b57\u7684\u6e05\u6670\u5ea6\u3002<\/li>\n<\/ul>\n<p><p>\u4f7f\u7528Pillow\u5e93\u8fdb\u884c\u9884\u5904\u7406\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import ImageFilter<\/p>\n<h2><strong>\u8f6c\u6362\u4e3a\u7070\u5ea6\u56fe\u50cf<\/strong><\/h2>\n<p>gray_screenshot = screenshot.convert(&quot;L&quot;)<\/p>\n<h2><strong>\u5e94\u7528\u4e8c\u503c\u5316<\/strong><\/h2>\n<p>threshold = 128<\/p>\n<p>binarized_screenshot = gray_screenshot.point(lambda x: 0 if x &lt; threshold else 255, &#39;1&#39;)<\/p>\n<h2><strong>\u5e94\u7528\u53bb\u566a\u6ee4\u6ce2\u5668<\/strong><\/h2>\n<p>filtered_screenshot = binarized_screenshot.filter(ImageFilter.MedianFilter(size=3))<\/p>\n<h2><strong>\u8fdb\u884cOCR\u8bc6\u522b<\/strong><\/h2>\n<p>text = pytesseract.image_to_string(filtered_screenshot)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u8bed\u8a00\u5305<\/h4>\n<\/p>\n<p><p>Tesseract\u652f\u6301\u591a\u79cd\u8bed\u8a00\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u53ef\u80fd\u65e0\u6cd5\u8bc6\u522b\u67d0\u4e9b\u7279\u6b8a\u8bed\u8a00\u6216\u5b57\u4f53\u3002\u4f60\u53ef\u4ee5\u4e0b\u8f7d\u5e76\u5b89\u88c5\u7279\u5b9a\u8bed\u8a00\u7684\u8bad\u7ec3\u6570\u636e\u4ee5\u63d0\u9ad8\u8bc6\u522b\u51c6\u786e\u6027\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># \u4e0b\u8f7d\u5e76\u5b89\u88c5\u4e2d\u6587\u8bed\u8a00\u5305\u4e3a\u4f8b<\/p>\n<p>sudo apt-get install tesseract-ocr-chi-sim<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u5728Python\u4ee3\u7801\u4e2d\u6307\u5b9a\u8bed\u8a00\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = pytesseract.image_to_string(screenshot, lang=&#39;chi_sim&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5904\u7406OCR\u7ed3\u679c<\/h3>\n<\/p>\n<p><p>OCR\u8bc6\u522b\u7684\u7ed3\u679c\u53ef\u80fd\u5305\u542b\u591a\u4f59\u7684\u7a7a\u683c\u3001\u6362\u884c\u7b26\u6216\u9519\u8bef\u7684\u5b57\u7b26\u3002\u4e3a\u4e86\u66f4\u597d\u5730\u5904\u7406\u8bc6\u522b\u7ed3\u679c\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u6e05\u7406\u548c\u683c\u5f0f\u5316\u6587\u672c\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u53bb\u9664\u591a\u4f59\u7a7a\u683c\u548c\u6362\u884c\u7b26<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528Python\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\u6765\u53bb\u9664\u591a\u4f59\u7684\u7a7a\u683c\u548c\u6362\u884c\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u53bb\u9664\u591a\u4f59\u7a7a\u683c\u548c\u6362\u884c\u7b26<\/p>\n<p>cleaned_text = &quot; &quot;.join(text.split())<\/p>\n<p>print(cleaned_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u683c\u5f0f\u5316<\/h4>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u7528\u4e8e\u66f4\u590d\u6742\u7684\u6587\u672c\u5904\u7406\u9700\u6c42\uff0c\u4f8b\u5982\u63d0\u53d6\u7279\u5b9a\u683c\u5f0f\u7684\u5185\u5bb9\u6216\u4fee\u6b63\u5e38\u89c1\u7684OCR\u9519\u8bef\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<h2><strong>\u793a\u4f8b\uff1a\u63d0\u53d6\u7535\u8bdd\u53f7\u7801<\/strong><\/h2>\n<p>phone_numbers = re.findall(r&#39;\\b\\d{3}[-.]?\\d{3}[-.]?\\d{4}\\b&#39;, text)<\/p>\n<p>print(phone_numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u7ed3\u5408\u8fd9\u4e9b\u6280\u672f\u548c\u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u5728Python\u4e2d\u5b9e\u73b0\u4ece\u5c4f\u5e55\u622a\u53d6\u5e76\u8bc6\u522b\u6587\u5b57\u7684\u5b8c\u6574\u6d41\u7a0b\u3002\u8fd9\u4e9b\u65b9\u6cd5\u9002\u7528\u4e8e\u591a\u79cd\u5e94\u7528\u573a\u666f\uff0c\u5982\u81ea\u52a8\u5316\u6570\u636e\u5f55\u5165\u3001\u6587\u6863\u6570\u5b57\u5316\u7b49\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u622a\u53d6\u5c4f\u5e55\u4e0a\u7684\u6587\u5b57\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528Python\u7684\u7b2c\u4e09\u65b9\u5e93\uff0c\u5982Pytesseract\u548cPillow\uff0c\u6765\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u3002Pytesseract\u662f\u4e00\u4e2aOCR\uff08\u5149\u5b66\u5b57\u7b26\u8bc6\u522b\uff09\u5de5\u5177\uff0c\u53ef\u4ee5\u4ece\u56fe\u7247\u4e2d\u63d0\u53d6\u6587\u672c\u3002\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5Pillow\u548cPytesseract\u5e93\uff0c\u4ee5\u53caTesseract OCR\u5f15\u64ce\u3002\u622a\u53d6\u5c4f\u5e55\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u4f7f\u7528Pillow\u7684ImageGrab\u6a21\u5757\u622a\u53d6\u5c4f\u5e55\u56fe\u50cf\uff0c\u7136\u540e\u5c06\u5176\u4f20\u9012\u7ed9Pytesseract\u8fdb\u884c\u6587\u5b57\u8bc6\u522b\u3002<\/p>\n<p><strong>\u6709\u54ea\u4e9bPython\u5e93\u53ef\u4ee5\u5e2e\u52a9\u622a\u53d6\u5c4f\u5e55\u6587\u5b57\uff1f<\/strong><br \/>\u5e38\u7528\u7684Python\u5e93\u5305\u62ecPytesseract\uff08\u7528\u4e8eOCR\uff09\uff0cPillow\uff08\u7528\u4e8e\u56fe\u50cf\u5904\u7406\uff09\uff0c\u4ee5\u53capyautogui\uff08\u7528\u4e8e\u622a\u5c4f\uff09\u3002Pytesseract\u7ed3\u5408Pillow\u53ef\u4ee5\u9ad8\u6548\u5730\u4ece\u5c4f\u5e55\u622a\u56fe\u4e2d\u63d0\u53d6\u6587\u5b57\u3002pyautogui\u53ef\u4ee5\u7528\u4e8e\u81ea\u52a8\u5316\u622a\u53d6\u6574\u4e2a\u5c4f\u5e55\u6216\u6307\u5b9a\u533a\u57df\u7684\u56fe\u50cf\u3002<\/p>\n<p><strong>\u622a\u53d6\u5c4f\u5e55\u6587\u5b57\u7684\u5e94\u7528\u573a\u666f\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\u622a\u53d6\u5c4f\u5e55\u6587\u5b57\u7684\u5e94\u7528\u573a\u666f\u975e\u5e38\u5e7f\u6cdb\uff0c\u5305\u62ec\u4f46\u4e0d\u9650\u4e8e\uff1a\u81ea\u52a8\u5316\u6570\u636e\u5f55\u5165\u3001\u4ece\u56fe\u7247\u4e2d\u63d0\u53d6\u4fe1\u606f\u3001\u7ffb\u8bd1\u6587\u672c\u3001\u8bc6\u522b\u9a8c\u8bc1\u7801\u7b49\u3002\u7279\u522b\u662f\u5728\u9700\u8981\u5904\u7406\u5927\u91cf\u6587\u6863\u6216\u56fe\u50cf\u65f6\uff0c\u8fd9\u79cd\u6280\u672f\u80fd\u591f\u663e\u8457\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728Python\u4e2d\u622a\u53d6\u5c4f\u5e55\u6587\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528OCR\u6280\u672f\u5bf9\u5c4f\u5e55\u622a\u56fe\u8fdb\u884c\u6587\u5b57\u8bc6\u522b\u3001\u5229\u7528Python\u5e93 [&hellip;]","protected":false},"author":3,"featured_media":1015516,"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\/1015510"}],"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=1015510"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1015510\/revisions"}],"predecessor-version":[{"id":1015517,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1015510\/revisions\/1015517"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1015516"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1015510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1015510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1015510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}