{"id":1069079,"date":"2024-12-31T16:48:52","date_gmt":"2024-12-31T08:48:52","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1069079.html"},"modified":"2024-12-31T16:48:54","modified_gmt":"2024-12-31T08:48:54","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e4%b8%80%e5%bc%a0%e5%9b%be%e7%89%87%e6%97%8b%e8%bd%ac","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1069079.html","title":{"rendered":"python\u5982\u4f55\u5c06\u4e00\u5f20\u56fe\u7247\u65cb\u8f6c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/9f1973b2-a2ea-45d6-a055-503a9f7dc838.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u5c06\u4e00\u5f20\u56fe\u7247\u65cb\u8f6c\" \/><\/p>\n<p><p> <strong>Python\u63d0\u4f9b\u4e86\u51e0\u79cd\u65b9\u6cd5\u6765\u65cb\u8f6c\u56fe\u7247\uff0c\u5305\u62ec\u4f7f\u7528Pillow\u5e93\u3001OpenCV\u5e93\u548cscikit-image\u5e93\uff0c\u6700\u5e38\u7528\u7684\u662fPillow\u5e93\u3002<\/strong><\/p>\n<\/p>\n<p><p><strong>Pillow\u5e93\u64cd\u4f5c\u7b80\u5355\u3001\u517c\u5bb9\u6027\u597d\u3001\u529f\u80fd\u5f3a\u5927<\/strong>\uff0c\u662f\u5904\u7406\u56fe\u50cf\u7684\u9996\u9009\u3002\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\uff0c\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Pillow\u5e93\u6765\u65cb\u8f6c\u56fe\u7247\uff0c\u5e76\u9644\u5e26\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5Pillow\u5e93<\/h3>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Pillow\u5e93\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u8be5\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\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><h3>\u4e8c\u3001\u52a0\u8f7d\u548c\u663e\u793a\u56fe\u7247<\/h3>\n<\/p>\n<p><p>\u5728\u65cb\u8f6c\u56fe\u7247\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u5148\u52a0\u8f7d\u56fe\u7247\u5e76\u663e\u793a\u51fa\u6765\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528Pillow\u5e93\u52a0\u8f7d\u548c\u663e\u793a\u56fe\u7247\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image<\/p>\n<h2><strong>\u52a0\u8f7d\u56fe\u7247<\/strong><\/h2>\n<p>image = Image.open(&#39;example.jpg&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u7247<\/strong><\/h2>\n<p>image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u65cb\u8f6c\u56fe\u7247<\/h3>\n<\/p>\n<p><p>Pillow\u5e93\u63d0\u4f9b\u4e86\u591a\u79cd\u65cb\u8f6c\u56fe\u7247\u7684\u65b9\u6cd5\uff0c\u4e0b\u9762\u5c06\u4ecb\u7ecd\u51e0\u79cd\u5e38\u7528\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528<code>rotate<\/code>\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p><code>rotate<\/code>\u65b9\u6cd5\u53ef\u4ee5\u6839\u636e\u6307\u5b9a\u7684\u89d2\u5ea6\u65cb\u8f6c\u56fe\u7247\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u56fe\u7247\u5bf9\u8c61\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528<code>rotate<\/code>\u65b9\u6cd5\u65cb\u8f6c\u56fe\u7247\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u65cb\u8f6c\u56fe\u7247\uff0c\u89d2\u5ea6\u4e3a45\u5ea6<\/p>\n<p>rotated_image = image.rotate(45)<\/p>\n<h2><strong>\u663e\u793a\u65cb\u8f6c\u540e\u7684\u56fe\u7247<\/strong><\/h2>\n<p>rotated_image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528<code>transpose<\/code>\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p><code>transpose<\/code>\u65b9\u6cd5\u53ef\u4ee5\u6839\u636e\u6307\u5b9a\u7684\u65b9\u5411\u7ffb\u8f6c\u6216\u65cb\u8f6c\u56fe\u7247\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528<code>transpose<\/code>\u65b9\u6cd5\u65cb\u8f6c\u56fe\u7247\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u65cb\u8f6c\u56fe\u7247\uff0c\u65b9\u5411\u4e3aImage.ROTATE_90\uff08\u987a\u65f6\u9488\u65cb\u8f6c90\u5ea6\uff09<\/p>\n<p>rotated_image = image.transpose(Image.ROTATE_90)<\/p>\n<h2><strong>\u663e\u793a\u65cb\u8f6c\u540e\u7684\u56fe\u7247<\/strong><\/h2>\n<p>rotated_image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4fdd\u5b58\u65cb\u8f6c\u540e\u7684\u56fe\u7247<\/h3>\n<\/p>\n<p><p>\u65cb\u8f6c\u56fe\u7247\u540e\uff0c\u53ef\u4ee5\u5c06\u65cb\u8f6c\u540e\u7684\u56fe\u7247\u4fdd\u5b58\u5230\u672c\u5730\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4fdd\u5b58\u65cb\u8f6c\u540e\u7684\u56fe\u7247\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4fdd\u5b58\u65cb\u8f6c\u540e\u7684\u56fe\u7247<\/p>\n<p>rotated_image.save(&#39;rotated_example.jpg&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5176\u4ed6\u5e38\u7528\u56fe\u50cf\u5904\u7406\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u65cb\u8f6c\u56fe\u7247\uff0cPillow\u5e93\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u5176\u4ed6\u5e38\u7528\u7684\u56fe\u50cf\u5904\u7406\u65b9\u6cd5\uff0c\u5982\u88c1\u526a\u3001\u8c03\u6574\u5927\u5c0f\u3001\u6ee4\u955c\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u56fe\u50cf\u5904\u7406\u65b9\u6cd5\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u88c1\u526a\u56fe\u7247<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u88c1\u526a\u56fe\u7247\uff0c\u533a\u57df\u4e3a(x1, y1, x2, y2)<\/p>\n<p>cropped_image = image.crop((100, 100, 400, 400))<\/p>\n<h2><strong>\u663e\u793a\u88c1\u526a\u540e\u7684\u56fe\u7247<\/strong><\/h2>\n<p>cropped_image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u8c03\u6574\u56fe\u7247\u5927\u5c0f<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8c03\u6574\u56fe\u7247\u5927\u5c0f\uff0c\u65b0\u7684\u5927\u5c0f\u4e3a(200, 200)<\/p>\n<p>resized_image = image.resize((200, 200))<\/p>\n<h2><strong>\u663e\u793a\u8c03\u6574\u5927\u5c0f\u540e\u7684\u56fe\u7247<\/strong><\/h2>\n<p>resized_image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u5e94\u7528\u6ee4\u955c<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import ImageFilter<\/p>\n<h2><strong>\u5e94\u7528\u6a21\u7cca\u6ee4\u955c<\/strong><\/h2>\n<p>blurred_image = image.filter(ImageFilter.BLUR)<\/p>\n<h2><strong>\u663e\u793a\u5e94\u7528\u6ee4\u955c\u540e\u7684\u56fe\u7247<\/strong><\/h2>\n<p>blurred_image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528OpenCV\u5e93\u65cb\u8f6c\u56fe\u7247<\/h3>\n<\/p>\n<p><p>\u9664\u4e86Pillow\u5e93\uff0cOpenCV\u5e93\u4e5f\u53ef\u4ee5\u7528\u6765\u65cb\u8f6c\u56fe\u7247\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528OpenCV\u5e93\u65cb\u8f6c\u56fe\u7247\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5OpenCV\u5e93<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install opencv-python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u52a0\u8f7d\u548c\u663e\u793a\u56fe\u7247<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import cv2<\/p>\n<h2><strong>\u52a0\u8f7d\u56fe\u7247<\/strong><\/h2>\n<p>image = cv2.imread(&#39;example.jpg&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u7247<\/strong><\/h2>\n<p>cv2.imshow(&#39;Original Image&#39;, image)<\/p>\n<p>cv2.w<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>tKey(0)<\/p>\n<p>cv2.destroyAllWindows()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u65cb\u8f6c\u56fe\u7247<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u83b7\u53d6\u56fe\u7247\u7684\u5c3a\u5bf8<\/p>\n<p>(h, w) = image.shape[:2]<\/p>\n<h2><strong>\u8ba1\u7b97\u65cb\u8f6c\u77e9\u9635<\/strong><\/h2>\n<p>center = (w \/\/ 2, h \/\/ 2)<\/p>\n<p>M = cv2.getRotationMatrix2D(center, 45, 1.0)<\/p>\n<h2><strong>\u65cb\u8f6c\u56fe\u7247<\/strong><\/h2>\n<p>rotated_image = cv2.warpAffine(image, M, (w, h))<\/p>\n<h2><strong>\u663e\u793a\u65cb\u8f6c\u540e\u7684\u56fe\u7247<\/strong><\/h2>\n<p>cv2.imshow(&#39;Rotated Image&#39;, rotated_image)<\/p>\n<p>cv2.waitKey(0)<\/p>\n<p>cv2.destroyAllWindows()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4\u3001\u4fdd\u5b58\u65cb\u8f6c\u540e\u7684\u56fe\u7247<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4fdd\u5b58\u65cb\u8f6c\u540e\u7684\u56fe\u7247<\/p>\n<p>cv2.imwrite(&#39;rotated_example.jpg&#39;, rotated_image)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u4f7f\u7528scikit-image\u5e93\u65cb\u8f6c\u56fe\u7247<\/h3>\n<\/p>\n<p><p>scikit-image\u5e93\u4e5f\u53ef\u4ee5\u7528\u6765\u65cb\u8f6c\u56fe\u7247\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528scikit-image\u5e93\u65cb\u8f6c\u56fe\u7247\u7684\u4ee3\u7801\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5scikit-image\u5e93<\/h4>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install scikit-image<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u52a0\u8f7d\u548c\u663e\u793a\u56fe\u7247<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">from skimage import io<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u52a0\u8f7d\u56fe\u7247<\/strong><\/h2>\n<p>image = io.imread(&#39;example.jpg&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u7247<\/strong><\/h2>\n<p>plt.imshow(image)<\/p>\n<p>plt.axis(&#39;off&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u65cb\u8f6c\u56fe\u7247<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">from skimage.transform import rotate<\/p>\n<h2><strong>\u65cb\u8f6c\u56fe\u7247\uff0c\u89d2\u5ea6\u4e3a45\u5ea6<\/strong><\/h2>\n<p>rotated_image = rotate(image, 45)<\/p>\n<h2><strong>\u663e\u793a\u65cb\u8f6c\u540e\u7684\u56fe\u7247<\/strong><\/h2>\n<p>plt.imshow(rotated_image)<\/p>\n<p>plt.axis(&#39;off&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4\u3001\u4fdd\u5b58\u65cb\u8f6c\u540e\u7684\u56fe\u7247<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">from skimage.io import imsave<\/p>\n<h2><strong>\u4fdd\u5b58\u65cb\u8f6c\u540e\u7684\u56fe\u7247<\/strong><\/h2>\n<p>imsave(&#39;rotated_example.jpg&#39;, rotated_image)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528Pillow\u5e93\u3001OpenCV\u5e93\u548cscikit-image\u5e93\u6765\u65cb\u8f6c\u56fe\u7247\uff0c\u5e76\u9644\u5e26\u4e86\u4ee3\u7801\u793a\u4f8b\u3002\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u65cb\u8f6c\u56fe\u7247\uff0c\u5e76\u5c06\u65cb\u8f6c\u540e\u7684\u56fe\u7247\u4fdd\u5b58\u5230\u672c\u5730\u3002\u6b64\u5916\uff0c\u672c\u6587\u8fd8\u4ecb\u7ecd\u4e86Pillow\u5e93\u7684\u4e00\u4e9b\u5176\u4ed6\u5e38\u7528\u56fe\u50cf\u5904\u7406\u65b9\u6cd5\uff0c\u5982\u88c1\u526a\u3001\u8c03\u6574\u5927\u5c0f\u3001\u6ee4\u955c\u7b49\u3002\u5e0c\u671b\u672c\u6587\u80fd\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff0c\u5982\u679c\u60a8\u6709\u4efb\u4f55\u95ee\u9898\u6216\u5efa\u8bae\uff0c\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u7559\u8a00\u3002<\/p>\n<\/p>\n<p><p><strong>\u603b\u4e4b\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u65cb\u8f6c\u56fe\u7247\uff0c\u5176\u4e2dPillow\u5e93\u64cd\u4f5c\u7b80\u5355\u3001\u517c\u5bb9\u6027\u597d\u3001\u529f\u80fd\u5f3a\u5927\uff0c\u662f\u5904\u7406\u56fe\u50cf\u7684\u9996\u9009\u3002<\/strong><\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528PIL\u5e93\u65cb\u8f6c\u56fe\u7247\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528PIL\uff08Pillow\uff09\u5e93\u6765\u65cb\u8f6c\u56fe\u7247\u3002\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5Pillow\u5e93\uff0c\u4f7f\u7528\u547d\u4ee4<code>pip install Pillow<\/code>\u8fdb\u884c\u5b89\u88c5\u3002\u63a5\u7740\uff0c\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u793a\u4f8b\u53ef\u4ee5\u5b9e\u73b0\u56fe\u7247\u65cb\u8f6c\uff1a<\/p>\n<pre><code class=\"language-python\">from PIL import Image\n\n# \u6253\u5f00\u56fe\u7247\nimage = Image.open(&#39;example.jpg&#39;)\n\n# \u65cb\u8f6c\u56fe\u7247\uff0c\u6307\u5b9a\u65cb\u8f6c\u89d2\u5ea6\nrotated_image = image.rotate(90)  # 90\u5ea6\u987a\u65f6\u9488\u65cb\u8f6c\n\n# \u4fdd\u5b58\u65cb\u8f6c\u540e\u7684\u56fe\u7247\nrotated_image.save(&#39;rotated_example.jpg&#39;)\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u65b9\u6cd5\u652f\u6301\u4efb\u610f\u89d2\u5ea6\u7684\u65cb\u8f6c\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8c03\u6574\u3002<\/p>\n<p><strong>\u5982\u4f55\u65cb\u8f6c\u56fe\u7247\u5e76\u4fdd\u6301\u5176\u539f\u59cb\u5c3a\u5bf8\uff1f<\/strong><br \/>\u5728\u65cb\u8f6c\u56fe\u7247\u65f6\uff0c\u56fe\u7247\u7684\u5c3a\u5bf8\u4f1a\u53d1\u751f\u53d8\u5316\u3002\u82e5\u5e0c\u671b\u4fdd\u6301\u539f\u59cb\u5c3a\u5bf8\uff0c\u53ef\u4ee5\u9009\u62e9\u5148\u8ba1\u7b97\u65cb\u8f6c\u540e\u56fe\u7247\u7684\u8fb9\u754c\u6846\uff0c\u7136\u540e\u5bf9\u5176\u8fdb\u884c\u88c1\u526a\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">from PIL import Image\n\nimage = Image.open(&#39;example.jpg&#39;)\nrotated_image = image.rotate(90, expand=True)\n\n# \u88c1\u526a\u5230\u539f\u59cb\u5c3a\u5bf8\nrotated_image_cropped = rotated_image.crop((0, 0, image.width, image.height))\nrotated_image_cropped.save(&#39;cropped_rotated_example.jpg&#39;)\n<\/code><\/pre>\n<p>\u6b64\u65b9\u6cd5\u786e\u4fdd\u65cb\u8f6c\u540e\u7684\u56fe\u7247\u80fd\u591f\u9002\u5e94\u539f\u6709\u7684\u5c3a\u5bf8\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u6279\u91cf\u65cb\u8f6c\u591a\u5f20\u56fe\u7247\uff1f<\/strong><br \/>\u82e5\u9700\u8981\u5bf9\u591a\u4e2a\u56fe\u7247\u8fdb\u884c\u65cb\u8f6c\uff0c\u53ef\u4ee5\u901a\u8fc7\u5faa\u73af\u5904\u7406\u6765\u6279\u91cf\u6267\u884c\u3002\u4ee5\u4e0b\u662f\u5904\u7406\u591a\u4e2a\u6587\u4ef6\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import os\nfrom PIL import Image\n\n# \u56fe\u7247\u6587\u4ef6\u5939\u8def\u5f84\nimage_folder = &#39;images\/&#39;\n\n# \u904d\u5386\u6587\u4ef6\u5939\u4e2d\u7684\u6bcf\u5f20\u56fe\u7247\nfor filename in os.listdir(image_folder):\n    if filename.endswith(&#39;.jpg&#39;):\n        image_path = os.path.join(image_folder, filename)\n        image = Image.open(image_path)\n        rotated_image = image.rotate(90)\n        rotated_image.save(os.path.join(image_folder, &#39;rotated_&#39; + filename))\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6709\u6548\u5730\u6279\u91cf\u5904\u7406\u6587\u4ef6\uff0c\u8282\u7701\u65f6\u95f4\u548c\u7cbe\u529b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u63d0\u4f9b\u4e86\u51e0\u79cd\u65b9\u6cd5\u6765\u65cb\u8f6c\u56fe\u7247\uff0c\u5305\u62ec\u4f7f\u7528Pillow\u5e93\u3001OpenCV\u5e93\u548cscikit-image\u5e93\uff0c\u6700\u5e38 [&hellip;]","protected":false},"author":3,"featured_media":1069087,"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\/1069079"}],"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=1069079"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1069079\/revisions"}],"predecessor-version":[{"id":1069092,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1069079\/revisions\/1069092"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1069087"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1069079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1069079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1069079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}