{"id":1003428,"date":"2024-12-27T10:17:12","date_gmt":"2024-12-27T02:17:12","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1003428.html"},"modified":"2024-12-27T10:17:14","modified_gmt":"2024-12-27T02:17:14","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e6%98%be%e7%a4%ba%e5%9b%be%e5%83%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1003428.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u663e\u793a\u56fe\u50cf"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25080802\/5fb03c74-583a-4212-8c5f-bf5bc482fbcb.webp\" alt=\"python\u4e2d\u5982\u4f55\u663e\u793a\u56fe\u50cf\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u663e\u793a\u56fe\u50cf\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff1a\u4f7f\u7528Matplotlib\u5e93\u3001\u4f7f\u7528OpenCV\u5e93\u3001\u4f7f\u7528PIL\u5e93\u3002<\/strong>\u5728\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\uff0cMatplotlib\u548cOpenCV\u662f\u6700\u5e38\u7528\u7684\uff0cPIL\uff08Pillow\uff09\u4e5f\u63d0\u4f9b\u4e86\u7b80\u5355\u6709\u6548\u7684\u56fe\u50cf\u663e\u793a\u529f\u80fd\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e09\u79cd\u65b9\u6cd5\u8fdb\u884c\u56fe\u50cf\u663e\u793a\uff0c\u4ee5\u53ca\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\u548c\u9002\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001MATPLOTLIB\u5e93\u663e\u793a\u56fe\u50cf<\/p>\n<\/p>\n<p><p>Matplotlib\u662fPython\u4e2d\u975e\u5e38\u5e38\u7528\u7684\u7ed8\u56fe\u5e93\u4e4b\u4e00\uff0c\u5c24\u5176\u5728\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u53ef\u89c6\u5316\u9886\u57df\u3002\u5b83\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u7a97\u53e3\u4e2d\u663e\u793a\u56fe\u50cf\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528Matplotlib\u663e\u793a\u56fe\u50cf<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u5b89\u88c5\u4e86Matplotlib\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u4f7f\u7528Matplotlib\u663e\u793a\u56fe\u50cf\u7684\u57fa\u672c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>import matplotlib.image as mpimg<\/p>\n<h2><strong>\u8bfb\u53d6\u56fe\u50cf<\/strong><\/h2>\n<p>img = mpimg.imread(&#39;path\/to\/your\/image.jpg&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u50cf<\/strong><\/h2>\n<p>plt.imshow(img)<\/p>\n<p>plt.axis(&#39;off&#39;)  # \u4e0d\u663e\u793a\u5750\u6807\u8f74<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>Matplotlib\u663e\u793a\u56fe\u50cf\u7684\u4f18\u7f3a\u70b9<\/li>\n<\/ol>\n<p><p><strong>\u4f18\u70b9\uff1a<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u7b80\u5355\u6613\u7528\uff0c\u9002\u5408\u5feb\u901f\u663e\u793a\u56fe\u50cf\u3002<\/li>\n<li>\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u56fe\u50cf\u5904\u7406\u529f\u80fd\uff0c\u6bd4\u5982\u8c03\u6574\u8272\u5f69\u3001\u6dfb\u52a0\u6ce8\u91ca\u7b49\u3002<\/li>\n<li>\u80fd\u4e0e\u5176\u4ed6\u6570\u636e\u53ef\u89c6\u5316\u529f\u80fd\u65e0\u7f1d\u7ed3\u5408\u3002<\/li>\n<\/ul>\n<p><p><strong>\u7f3a\u70b9\uff1a<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u663e\u793a\u901f\u5ea6\u8f83\u6162\uff0c\u4e0d\u9002\u5408\u5b9e\u65f6\u56fe\u50cf\u5904\u7406\u3002<\/li>\n<li>\u4e3b\u8981\u7528\u4e8e\u5b66\u672f\u548c\u79d1\u5b66\u8ba1\u7b97\uff0c\u4e0d\u9002\u5408\u5de5\u4e1a\u7ea7\u5e94\u7528\u3002<\/li>\n<\/ul>\n<p><p>\u4e8c\u3001OPENCV\u5e93\u663e\u793a\u56fe\u50cf<\/p>\n<\/p>\n<p><p>OpenCV\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u8ba1\u7b97\u673a\u89c6\u89c9\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u8f6f\u4ef6\u5e93\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u56fe\u50cf\u548c\u89c6\u9891\u5904\u7406\u529f\u80fd\u3002OpenCV\u4e2d\u7684<code>imshow<\/code>\u51fd\u6570\u53ef\u4ee5\u5feb\u901f\u663e\u793a\u56fe\u50cf\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528OpenCV\u663e\u793a\u56fe\u50cf<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u5b89\u88c5\u4e86OpenCV\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install opencv-python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u4f7f\u7528OpenCV\u663e\u793a\u56fe\u50cf\u7684\u57fa\u672c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cv2<\/p>\n<h2><strong>\u8bfb\u53d6\u56fe\u50cf<\/strong><\/h2>\n<p>img = cv2.imread(&#39;path\/to\/your\/image.jpg&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u50cf<\/strong><\/h2>\n<p>cv2.imshow(&#39;Image&#39;, img)<\/p>\n<h2><strong>\u7b49\u5f85\u6309\u952e\u6309\u4e0b<\/strong><\/h2>\n<p>cv2.w<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>tKey(0)<\/p>\n<h2><strong>\u9500\u6bc1\u6240\u6709\u7a97\u53e3<\/strong><\/h2>\n<p>cv2.destroyAllWindows()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>OpenCV\u663e\u793a\u56fe\u50cf\u7684\u4f18\u7f3a\u70b9<\/li>\n<\/ol>\n<p><p><strong>\u4f18\u70b9\uff1a<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u663e\u793a\u901f\u5ea6\u5feb\uff0c\u9002\u5408\u5b9e\u65f6\u56fe\u50cf\u5904\u7406\u3002<\/li>\n<li>\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u56fe\u50cf\u5904\u7406\u548c\u5206\u6790\u529f\u80fd\u3002<\/li>\n<li>\u8de8\u5e73\u53f0\u652f\u6301\uff0c\u9002\u5408\u5de5\u4e1a\u5e94\u7528\u3002<\/li>\n<\/ul>\n<p><p><strong>\u7f3a\u70b9\uff1a<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u754c\u9762\u76f8\u5bf9\u7b80\u5355\uff0c\u7f3a\u4e4f\u9ad8\u7ea7\u53ef\u89c6\u5316\u529f\u80fd\u3002<\/li>\n<li>\u9700\u8981\u989d\u5916\u5b89\u88c5\u5e93\uff0c\u589e\u52a0\u4e86\u73af\u5883\u4f9d\u8d56\u3002<\/li>\n<\/ul>\n<p><p>\u4e09\u3001PIL\uff08Pillow\uff09\u5e93\u663e\u793a\u56fe\u50cf<\/p>\n<\/p>\n<p><p>PIL\uff08Python Imaging Library\uff09\u662fPython\u7684\u4e00\u4e2a\u56fe\u50cf\u5904\u7406\u5e93\uff0cPillow\u662fPIL\u7684\u4e00\u4e2a\u53cb\u597d\u5206\u652f\uff0c\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u652f\u6301\u548c\u7ef4\u62a4\u3002Pillow\u53ef\u4ee5\u8f7b\u677e\u5730\u8fdb\u884c\u56fe\u50cf\u7684\u6253\u5f00\u3001\u5904\u7406\u548c\u663e\u793a\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528Pillow\u663e\u793a\u56fe\u50cf<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u5b89\u88c5\u4e86Pillow\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\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\u4f7f\u7528Pillow\u663e\u793a\u56fe\u50cf\u7684\u57fa\u672c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image<\/p>\n<h2><strong>\u6253\u5f00\u56fe\u50cf<\/strong><\/h2>\n<p>img = Image.open(&#39;path\/to\/your\/image.jpg&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u50cf<\/strong><\/h2>\n<p>img.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>Pillow\u663e\u793a\u56fe\u50cf\u7684\u4f18\u7f3a\u70b9<\/li>\n<\/ol>\n<p><p><strong>\u4f18\u70b9\uff1a<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u7b80\u5355\u6613\u7528\uff0c\u9002\u5408\u521d\u5b66\u8005\u3002<\/li>\n<li>\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u56fe\u50cf\u5904\u7406\u529f\u80fd\uff0c\u5982\u526a\u88c1\u3001\u8c03\u6574\u5927\u5c0f\u3001\u65cb\u8f6c\u7b49\u3002<\/li>\n<li>\u4e0ePython\u6807\u51c6\u5e93\u96c6\u6210\u826f\u597d\u3002<\/li>\n<\/ul>\n<p><p><strong>\u7f3a\u70b9\uff1a<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u663e\u793a\u529f\u80fd\u8f83\u4e3a\u57fa\u7840\uff0c\u7f3a\u4e4f\u9ad8\u7ea7\u53ef\u89c6\u5316\u529f\u80fd\u3002<\/li>\n<li>\u663e\u793a\u901f\u5ea6\u4e0d\u5982OpenCV\u3002<\/li>\n<\/ul>\n<p><p>\u56db\u3001\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u4e3b\u8981\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u9700\u6c42\u548c\u573a\u666f\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5982\u679c\u4f60\u9700\u8981\u5feb\u901f\u663e\u793a\u56fe\u50cf\uff0c\u5e76\u4e14\u9700\u8981\u4e0e\u5176\u4ed6\u6570\u636e\u53ef\u89c6\u5316\u7ed3\u5408\uff0c\u9009\u62e9Matplotlib\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/strong> Matplotlib\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7ed8\u56fe\u529f\u80fd\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u5404\u79cd\u6ce8\u91ca\u548c\u6807\u8bb0\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5982\u679c\u4f60\u9700\u8981\u5b9e\u65f6\u5904\u7406\u56fe\u50cf\uff0c\u6bd4\u5982\u5728\u89c6\u9891\u6d41\u4e2d\u5904\u7406\u6bcf\u4e00\u5e27\uff0cOpenCV\u662f\u6700\u4f73\u9009\u62e9\u3002<\/strong> OpenCV\u4e0d\u4ec5\u63d0\u4f9b\u4e86\u5feb\u901f\u7684\u56fe\u50cf\u663e\u793a\u529f\u80fd\uff0c\u8fd8\u652f\u6301\u4e30\u5bcc\u7684\u56fe\u50cf\u5904\u7406\u548c\u8ba1\u7b97\u673a\u89c6\u89c9\u7b97\u6cd5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5982\u679c\u4f60\u9700\u8981\u8fdb\u884c\u7b80\u5355\u7684\u56fe\u50cf\u5904\u7406\uff0c\u5e76\u4e14\u5bf9\u9ad8\u7ea7\u53ef\u89c6\u5316\u529f\u80fd\u6ca1\u6709\u7279\u522b\u9700\u6c42\uff0cPillow\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/strong> Pillow\u7b80\u5355\u6613\u7528\uff0c\u9002\u5408\u521d\u5b66\u8005\u548c\u9700\u8981\u8fdb\u884c\u57fa\u672c\u56fe\u50cf\u5904\u7406\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u56fe\u50cf\u663e\u793a\u4e2d\u7684\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528\u8fd9\u4e9b\u5e93\u663e\u793a\u56fe\u50cf\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u989c\u8272\u901a\u9053\u987a\u5e8f\uff1a<\/strong> OpenCV\u9ed8\u8ba4\u4f7f\u7528BGR\u683c\u5f0f\uff0c\u800cMatplotlib\u548cPillow\u4f7f\u7528RGB\u683c\u5f0f\u3002\u5728\u4f7f\u7528OpenCV\u8bfb\u53d6\u56fe\u50cf\u540e\u663e\u793a\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u8f6c\u6362\u989c\u8272\u901a\u9053\u987a\u5e8f\uff0c\u4ee5\u786e\u4fdd\u989c\u8272\u663e\u793a\u6b63\u786e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8def\u5f84\u548c\u683c\u5f0f\uff1a<\/strong> \u786e\u4fdd\u56fe\u50cf\u6587\u4ef6\u8def\u5f84\u6b63\u786e\uff0c\u5e76\u4e14\u652f\u6301\u7684\u683c\u5f0f\u6b63\u786e\u3002\u5e38\u7528\u7684\u683c\u5f0f\u5305\u62ecJPEG\u3001PNG\u3001BMP\u7b49\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7a97\u53e3\u7ba1\u7406\uff1a<\/strong> \u5728\u4f7f\u7528OpenCV\u663e\u793a\u56fe\u50cf\u65f6\uff0c\u8bb0\u5f97\u8c03\u7528<code>cv2.waitKey(0)<\/code>\u548c<code>cv2.destroyAllWindows()<\/code>\u4ee5\u786e\u4fdd\u7a97\u53e3\u6b63\u5e38\u5173\u95ed\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\u548c\u6ce8\u610f\u4e8b\u9879\uff0c\u4f60\u53ef\u4ee5\u5728Python\u4e2d\u8f7b\u677e\u5b9e\u73b0\u56fe\u50cf\u7684\u8bfb\u53d6\u548c\u663e\u793a\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002\u65e0\u8bba\u662f\u8fdb\u884c\u6570\u636e\u5206\u6790\u8fd8\u662f\u5f00\u53d1\u8ba1\u7b97\u673a\u89c6\u89c9\u5e94\u7528\uff0c\u56fe\u50cf\u663e\u793a\u90fd\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u73af\u8282\u3002\u901a\u8fc7\u5408\u7406\u9009\u62e9\u5de5\u5177\u548c\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u66f4\u597d\u5730\u5b9e\u73b0\u56fe\u50cf\u7684\u53ef\u89c6\u5316\u548c\u5904\u7406\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bfb\u53d6\u548c\u663e\u793a\u56fe\u50cf\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u5e93\u6765\u8bfb\u53d6\u548c\u663e\u793a\u56fe\u50cf\u3002\u6700\u5e38\u7528\u7684\u5e93\u5305\u62ecOpenCV\u548cMatplotlib\u3002\u4f7f\u7528OpenCV\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>cv2.imread()<\/code>\u8bfb\u53d6\u56fe\u50cf\uff0c\u7136\u540e\u4f7f\u7528<code>cv2.imshow()<\/code>\u663e\u793a\u56fe\u50cf\u3002\u901a\u8fc7Matplotlib\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>plt.imread()<\/code>\u8bfb\u53d6\u56fe\u50cf\uff0c\u5e76\u901a\u8fc7<code>plt.imshow()<\/code>\u663e\u793a\u3002\u786e\u4fdd\u5728\u663e\u793a\u56fe\u50cf\u540e\u8c03\u7528<code>plt.show()<\/code>\u6765\u6e32\u67d3\u56fe\u50cf\u3002<\/p>\n<p><strong>\u5728Jupyter Notebook\u4e2d\u5982\u4f55\u663e\u793a\u56fe\u50cf\uff1f<\/strong><br \/>\u5728Jupyter Notebook\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Matplotlib\u5e93\u6765\u663e\u793a\u56fe\u50cf\u3002\u901a\u8fc7<code>%matplotlib inline<\/code>\u6307\u4ee4\u786e\u4fdd\u56fe\u50cf\u80fd\u591f\u5728Notebook\u4e2d\u76f4\u63a5\u663e\u793a\u3002\u8bfb\u53d6\u56fe\u50cf\u540e\uff0c\u4f7f\u7528<code>plt.imshow()<\/code>\u6765\u663e\u793a\u56fe\u50cf\uff0c\u5e76\u901a\u8fc7<code>plt.axis(&#39;off&#39;)<\/code>\u9690\u85cf\u5750\u6807\u8f74\uff0c\u8fd9\u6837\u56fe\u50cf\u770b\u8d77\u6765\u66f4\u5e72\u51c0\u3002<\/p>\n<p><strong>\u5982\u4f55\u8c03\u6574\u663e\u793a\u56fe\u50cf\u7684\u5c3a\u5bf8\u6216\u6bd4\u4f8b\uff1f<\/strong><br \/>\u5728\u4f7f\u7528Matplotlib\u663e\u793a\u56fe\u50cf\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>figsize<\/code>\u53c2\u6570\u6765\u8c03\u6574\u56fe\u50cf\u7684\u663e\u793a\u5c3a\u5bf8\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>plt.figure(figsize=(10, 5))<\/code>\u53ef\u4ee5\u8bbe\u7f6e\u56fe\u50cf\u7684\u5bbd\u5ea6\u548c\u9ad8\u5ea6\u3002\u5bf9\u4e8eOpenCV\uff0c\u53ef\u4ee5\u5728\u663e\u793a\u56fe\u50cf\u4e4b\u524d\u4f7f\u7528<code>cv2.resize()<\/code>\u51fd\u6570\u6765\u6539\u53d8\u56fe\u50cf\u7684\u5927\u5c0f\uff0c\u6307\u5b9a\u65b0\u7684\u5bbd\u5ea6\u548c\u9ad8\u5ea6\u540e\u518d\u663e\u793a\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u56fe\u50cf\u5728\u4e0d\u540c\u8bbe\u5907\u6216\u7a97\u53e3\u4e2d\u90fd\u80fd\u826f\u597d\u663e\u793a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u663e\u793a\u56fe\u50cf\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff1a\u4f7f\u7528Matplotlib\u5e93\u3001\u4f7f\u7528OpenCV\u5e93\u3001\u4f7f\u7528PIL\u5e93 [&hellip;]","protected":false},"author":3,"featured_media":1003439,"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\/1003428"}],"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=1003428"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1003428\/revisions"}],"predecessor-version":[{"id":1003440,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1003428\/revisions\/1003440"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1003439"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1003428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1003428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1003428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}