{"id":64593,"date":"2026-01-23T19:56:35","date_gmt":"2026-01-23T11:56:35","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/64593.html"},"modified":"2026-01-23T19:56:35","modified_gmt":"2026-01-23T11:56:35","slug":"opencv%e8%ae%a1%e7%ae%97%e6%9c%ba%e8%a7%86%e8%a7%89-%e5%9b%be%e5%bd%a2%e6%97%8b%e8%bd%ac%e5%9b%be%e5%bd%a2%e5%8f%af%e8%a7%86%e5%8c%96%e5%9d%87%e8%a1%a1%e5%8c%96","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/64593.html","title":{"rendered":"opencv\u8ba1\u7b97\u673a\u89c6\u89c9--\u56fe\u5f62\u65cb\u8f6c&amp;\u56fe\u5f62\u53ef\u89c6\u5316&amp;\u5747\u8861\u5316"},"content":{"rendered":"<h3>\u4e00\u3001\u56fe\u5f62\u65cb\u8f6c<\/h3>\n<h4>1.\u00a0NumPy\u7684np.rot90()\u65b9\u6cd5<\/h4>\n<ul>\n<li>\n<p>\u529f\u80fd&#xff1a;\u4e13\u95e8\u7528\u4e8e90\u5ea6\u500d\u6570\u7684\u65cb\u8f6c<\/p>\n<\/li>\n<li>\n<p>\u53c2\u6570k\u7684\u542b\u4e49&#xff1a;<\/p>\n<ul>\n<li>\n<p>k&#061;1&#xff1a;\u9006\u65f6\u9488\u65cb\u8f6c90\u5ea6<\/p>\n<\/li>\n<li>\n<p>k&#061;-1&#xff1a;\u987a\u65f6\u9488\u65cb\u8f6c90\u5ea6<\/p>\n<\/li>\n<li>\n<p>k&#061;2&#xff1a;\u65cb\u8f6c180\u5ea6&#xff08;\u987a\u65f6\u9488\u6216\u9006\u65f6\u9488\u6548\u679c\u76f8\u540c&#xff09;<\/p>\n<\/li>\n<li>\n<p>k&#061;3&#xff1a;\u987a\u65f6\u9488\u65cb\u8f6c270\u5ea6&#xff08;\u7b49\u540c\u4e8e\u9006\u65f6\u948890\u5ea6&#xff09;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7279\u70b9&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u901a\u8fc7\u6570\u7ec4\u8f6c\u7f6e\u548c\u7ffb\u8f6c\u5b9e\u73b0<\/p>\n<\/li>\n<li>\n<p>\u53ea\u80fd\u505a90\u5ea6\u7684\u6574\u6570\u500d\u65cb\u8f6c<\/p>\n<\/li>\n<li>\n<p>\u65cb\u8f6c\u4e2d\u5fc3\u662f\u56fe\u50cf\u4e2d\u5fc3<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>import cv2<br \/>\nimport numpy as np<\/p>\n<p># \u65b9\u6cd5\u4e00<br \/>\nimg &#061; cv2.imread(&#039;.\/kele.png&#039;)<br \/>\n# \u65cb\u8f6c90\u5ea6&#xff0c;k&#061;-1\u8868\u793a\u987a\u65f6\u9488\u65cb\u8f6c90\u5ea6<br \/>\nrotated_image1 &#061; np.rot90(img, k&#061;-1)<br \/>\n# \u65cb\u8f6c90\u5ea6&#xff0c;k&#061;1\u8868\u793a\u9006\u65f6\u9488\u65cb\u8f6c90\u5ea6<br \/>\nrotated_image2 &#061; np.rot90(img, k&#061;1)<\/p>\n<p>cv2.imshow(&#039;yuantu&#039;, img)<br \/>\ncv2.waitKey(0)<br \/>\ncv2.imshow(&#039;rotated_image1&#039;, rotated_image1)<br \/>\ncv2.waitKey(0)<br \/>\ncv2.imshow(&#039;rotated_image2&#039;, rotated_image2)<br \/>\ncv2.waitKey(0)<br \/>\ncv2.destroyAllWindows()<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"660\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260123115629-697361ed3be34.png\" width=\"1870\" \/><\/p>\n<h4>2.\u00a0OpenCV\u7684cv2.rotate()\u65b9\u6cd5<\/h4>\n<ul>\n<li>\n<p>\u529f\u80fd&#xff1a;\u63d0\u4f9b\u6807\u51c6\u5316\u7684\u65cb\u8f6c\u64cd\u4f5c<\/p>\n<\/li>\n<li>\n<p>\u4e09\u79cd\u9884\u5b9a\u4e49\u65cb\u8f6c\u6a21\u5f0f&#xff1a;<\/p>\n<ul>\n<li>\n<p>cv2.ROTATE_90_CLOCKWISE&#xff1a;\u987a\u65f6\u948890\u5ea6<\/p>\n<\/li>\n<li>\n<p>cv2.ROTATE_90_COUNTERCLOCKWISE&#xff1a;\u9006\u65f6\u948890\u5ea6<\/p>\n<\/li>\n<li>\n<p>cv2.ROTATE_180&#xff1a;\u65cb\u8f6c180\u5ea6<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7279\u70b9&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u63a5\u53e3\u66f4\u76f4\u89c2<\/p>\n<\/li>\n<li>\n<p>\u5e95\u5c42\u53ef\u80fd\u4f18\u5316\u4e86\u6027\u80fd<\/p>\n<\/li>\n<li>\n<p>\u8bed\u4e49\u66f4\u6e05\u6670<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>import cv2<br \/>\nimport numpy as np<br \/>\nimg &#061; cv2.imread(&#039;.\/kele.png&#039;)<br \/>\ncv2.imshow(&#039;yuan&#039;,img)<br \/>\ncv2.waitKey(0)<br \/>\nrotated_image &#061; cv2.rotate(img, cv2.ROTATE_90_CLOCKWISE)  # \u987a\u65f6\u948890\u5ea6<br \/>\nrotated_image1 &#061; cv2.rotate(img, cv2.ROTATE_90_COUNTERCLOCKWISE)  # \u9006\u65f6\u948890\u5ea6<br \/>\nrotated_image2 &#061; cv2.rotate(img, cv2.ROTATE_180)  # \u65cb\u8f6c180\u5ea6<br \/>\ncv2.imshow(&#039;shun90&#039;, rotated_image)<br \/>\ncv2.waitKey(0)<br \/>\ncv2.imshow(&#039;ni90&#039;, rotated_image1)<br \/>\ncv2.waitKey(0)<br \/>\ncv2.imshow(&#039;180&#039;, rotated_image2)<br \/>\ncv2.waitKey(0)<br \/>\ncv2.destroyAllWindows()<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"990\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260123115630-697361ee87084.png\" width=\"1854\" \/><\/p>\n<h4>3.\u65cb\u8f6c\u7684\u6570\u5b66\u6982\u5ff5<\/h4>\n<h5>1.\u00a0\u4e8c\u7ef4\u65cb\u8f6c\u77e9\u9635<\/h5>\n<p>\u5bf9\u4e8e90\u5ea6\u65cb\u8f6c&#xff0c;\u6570\u5b66\u4e0a\u5bf9\u5e94&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u987a\u65f6\u948890\u5ea6&#xff1a;(x&#039;, y&#039;) &#061; (y, -x)<\/p>\n<\/li>\n<li>\n<p>\u9006\u65f6\u948890\u5ea6&#xff1a;(x&#039;, y&#039;) &#061; (-y, x)<\/p>\n<\/li>\n<li>\n<p>180\u5ea6&#xff1a;(x&#039;, y&#039;) &#061; (-x, -y)<\/p>\n<\/li>\n<\/ul>\n<h5>2.\u00a0\u56fe\u50cf\u5750\u6807\u7cfb<\/h5>\n<ul>\n<li>\n<p>OpenCV\u56fe\u50cf\u5750\u6807\u7cfb&#xff1a;\u539f\u70b9\u5728\u5de6\u4e0a\u89d2<\/p>\n<\/li>\n<li>\n<p>x\u8f74\u5411\u53f3\u4e3a\u6b63&#xff0c;y\u8f74\u5411\u4e0b\u4e3a\u6b63<\/p>\n<\/li>\n<li>\n<p>\u65cb\u8f6c\u65f6\u9700\u8981\u8003\u8651\u5750\u6807\u7cfb\u65b9\u5411<\/p>\n<\/li>\n<\/ul>\n<h5>3.\u4e24\u79cd\u65b9\u6cd5\u7684\u533a\u522b<\/h5>\n<table>\n<tr>\u7279\u6027np.rot90()cv2.rotate()<\/tr>\n<tbody>\n<tr>\n<td>\u7075\u6d3b\u6027<\/td>\n<td>\u53ef\u901a\u8fc7k\u53c2\u6570\u63a7\u5236\u4efb\u610f90\u5ea6\u500d\u6570\u65cb\u8f6c<\/td>\n<td>\u53ea\u6709\u4e09\u79cd\u56fa\u5b9a\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>\u53ef\u8bfb\u6027<\/td>\n<td>\u53c2\u6570\u9700\u8981\u8bb0\u5fc6&#xff08;k\u7684\u6b63\u8d1f\u542b\u4e49&#xff09;<\/td>\n<td>\u8bed\u4e49\u66f4\u660e\u786e<\/td>\n<\/tr>\n<tr>\n<td>\u6027\u80fd<\/td>\n<td>NumPy\u6570\u7ec4\u64cd\u4f5c&#xff0c;\u901a\u5e38\u5f88\u5feb<\/td>\n<td>OpenCV\u4f18\u5316&#xff0c;\u53ef\u80fd\u66f4\u5feb<\/td>\n<\/tr>\n<tr>\n<td>\u9002\u7528\u6027<\/td>\n<td>\u9002\u5408\u9700\u8981\u52a8\u6001\u8ba1\u7b97\u65cb\u8f6c\u6b21\u6570\u7684\u573a\u666f<\/td>\n<td>\u9002\u5408\u56fa\u5b9a\u7684\u6807\u51c6\u65cb\u8f6c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>4.\u6ce8\u610f\u4e8b\u9879<\/h5>\n<li>\n<p>\u63d2\u503c\u95ee\u9898&#xff1a;\u8fd9\u4e24\u79cd\u65b9\u6cd5\u90fd\u662f\u7cbe\u786e\u768490\u5ea6\u500d\u6570\u65cb\u8f6c&#xff0c;\u4e0d\u9700\u8981\u63d2\u503c\u8ba1\u7b97<\/p>\n<\/li>\n<li>\n<p>\u8fb9\u754c\u5904\u7406&#xff1a;\u65cb\u8f6c\u540e\u56fe\u50cf\u8fb9\u754c\u5b8c\u6574\u4fdd\u7559<\/p>\n<\/li>\n<li>\n<p>\u989c\u8272\u901a\u9053&#xff1a;RGB\/BGR\u989c\u8272\u901a\u9053\u4fe1\u606f\u5b8c\u5168\u4fdd\u7559<\/p>\n<\/li>\n<li>\n<p>\u5185\u5b58\u5e03\u5c40&#xff1a;\u65cb\u8f6c\u540e\u50cf\u7d20\u6570\u636e\u91cd\u65b0\u6392\u5217&#xff0c;\u4f46\u6570\u503c\u4e0d\u53d8<\/p>\n<\/li>\n<h3>\u4e8c\u3001\u56fe\u5f62\u53ef\u89c6\u5316<\/h3>\n<h4>1\u3001\u53ef\u89c6\u5316\u5c42\u6b21\u5206\u6790<\/h4>\n<h5>1&#xff09;\u50cf\u7d20\u7ea7\u6570\u636e\u53ef\u89c6\u5316<\/h5>\n<ul>\n<li>\n<p>people.ravel()&#xff1a;\u5c06\u4e8c\u7ef4\u56fe\u50cf\u77e9\u9635\u5c55\u5e73\u4e3a\u4e00\u7ef4\u6570\u7ec4<\/p>\n<\/li>\n<li>\n<p>\u628a\u56fe\u50cf\u7684\u7a7a\u95f4\u7ed3\u6784\u4fe1\u606f\u8f6c\u6362\u4e3a\u6570\u503c\u5206\u5e03\u4fe1\u606f<\/p>\n<\/li>\n<li>\n<p>\u8fd9\u662f\u4ece\u7a7a\u95f4\u57df\u5230\u7edf\u8ba1\u57df\u7684\u8f6c\u6362<\/p>\n<\/li>\n<\/ul>\n<h5>2&#xff09;\u00a0\u7edf\u8ba1\u5206\u5e03\u53ef\u89c6\u5316&#xff08;\u76f4\u65b9\u56fe&#xff09;<\/h5>\n<ul>\n<li>\n<p>\u76f4\u65b9\u56fe\u5c55\u793a\u50cf\u7d20\u503c\u7684\u9891\u7387\u5206\u5e03<\/p>\n<\/li>\n<li>\n<p>bins&#xff08;\u533a\u95f4&#xff09;\u7684\u6982\u5ff5&#xff1a;256\u4e2a\u533a\u95f4 vs 16\u4e2a\u533a\u95f4<\/p>\n<ul>\n<li>\n<p>256 bins&#xff1a;\u7cbe\u7ec6\u5206\u5e03&#xff0c;\u663e\u793a\u6bcf\u4e2a\u50cf\u7d20\u503c\u7684\u5177\u4f53\u9891\u7387<\/p>\n<\/li>\n<li>\n<p>16 bins&#xff1a;\u6982\u89c8\u5206\u5e03&#xff0c;\u663e\u793a\u50cf\u7d20\u503c\u8303\u56f4\u7684\u8d8b\u52bf<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>2\u3001\u989c\u8272\u901a\u9053\u53ef\u89c6\u5316<\/h4>\n<p>color&#061;(&#039;b&#039;,&#039;g&#039;,&#039;r&#039;)  # \u84dd\u3001\u7eff\u3001\u7ea2<\/p>\n<ul>\n<li>\n<p>\u901a\u9053\u5206\u79bb&#xff1a;\u5c06\u5f69\u8272\u56fe\u50cf\u7684BGR\u901a\u9053\u5206\u522b\u63d0\u53d6<\/p>\n<\/li>\n<li>\n<p>\u989c\u8272\u7f16\u7801&#xff1a;\u7528\u5bf9\u5e94\u901a\u9053\u989c\u8272\u7ed8\u5236\u5176\u76f4\u65b9\u56fe<\/p>\n<\/li>\n<li>\n<p>\u591a\u53d8\u91cf\u5bf9\u6bd4&#xff1a;\u540c\u65f6\u5c55\u793a\u4e09\u4e2a\u76f8\u5173\u53d8\u91cf\u7684\u5206\u5e03<\/p>\n<\/li>\n<\/ul>\n<h4>3\u3001\u7a7a\u95f4\u9009\u62e9\u6027\u53ef\u89c6\u5316&#xff08;\u63a9\u7801\u6280\u672f&#xff09;<\/h4>\n<h5>\u533a\u57df\u9009\u62e9\u7684\u53ef\u89c6\u5316&#xff1a;<\/h5>\n<li>\n<p>\u63a9\u7801\u521b\u5efa&#xff1a;\u5b9a\u4e49\u611f\u5174\u8da3\u533a\u57df&#xff08;ROI&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u533a\u57df\u63d0\u53d6&#xff1a;bitwise_and\u64cd\u4f5c\u9694\u79bb\u7279\u5b9a\u533a\u57df<\/p>\n<\/li>\n<li>\n<p>\u5c40\u90e8\u7edf\u8ba1&#xff1a;\u53ea\u5206\u6790\u9009\u5b9a\u533a\u57df\u7684\u50cf\u7d20\u5206\u5e03<\/p>\n<\/li>\n<h5>\u8fd9\u79cd\u53ef\u89c6\u5316\u4f53\u73b0\u4e86&#xff1a;<\/h5>\n<ul>\n<li>\n<p>\u5168\u5c40vs\u5c40\u90e8\u5bf9\u6bd4\u5206\u6790<\/p>\n<\/li>\n<li>\n<p>\u7a7a\u95f4\u7ea6\u675f\u4e0b\u7684\u6570\u636e\u5206\u5e03<\/p>\n<\/li>\n<li>\n<p>\u4ea4\u4e92\u5f0f\u5206\u6790\u7684\u601d\u60f3&#xff1a;\u7528\u6237\u53ef\u4ee5\u5b9a\u4e49\u5206\u6790\u533a\u57df<\/p>\n<\/li>\n<\/ul>\n<h4>4\u3001\u53ef\u89c6\u5316\u4f20\u8fbe\u7684\u4fe1\u606f<\/h4>\n<h5>\u901a\u8fc7\u76f4\u65b9\u56fe\u53ef\u4ee5\u5224\u65ad&#xff1a;<\/h5>\n<li>\n<p>\u56fe\u50cf\u5bf9\u6bd4\u5ea6&#xff1a;\u76f4\u65b9\u56fe\u7684\u5bbd\u5ea6<\/p>\n<\/li>\n<li>\n<p>\u56fe\u50cf\u4eae\u5ea6&#xff1a;\u76f4\u65b9\u56fe\u7684\u4e2d\u5fc3\u4f4d\u7f6e<\/p>\n<\/li>\n<li>\n<p>\u66dd\u5149\u60c5\u51b5&#xff1a;\u662f\u5426\u96c6\u4e2d\u5728\u67d0\u4e00\u6bb5<\/p>\n<\/li>\n<li>\n<p>\u989c\u8272\u5e73\u8861&#xff1a;\u5404\u901a\u9053\u5206\u5e03\u662f\u5426\u5747\u8861<\/p>\n<\/li>\n<li>\n<p>\u56fe\u50cf\u8d28\u91cf&#xff1a;\u662f\u5426\u6709\u8fc7\u591a\u566a\u58f0&#xff08;\u6bdb\u523a&#xff09;<\/p>\n<\/li>\n<p>import cv2<br \/>\nimport matplotlib.pyplot as plt<br \/>\nimport numpy as np<br \/>\npeople&#061;cv2.imread(&#039;peopleone.jpg&#039;,cv2.IMREAD_GRAYSCALE)<br \/>\na&#061;people.ravel()<\/p>\n<p>plt.hist(a,bins&#061;256)<br \/>\nplt.show()<br \/>\npeople_hist&#061;cv2.calcHist([people],[0],None,[16],[0,256])<br \/>\nplt.plot(people_hist)<br \/>\nplt.show()<\/p>\n<p>img&#061;cv2.imread(&#039;peopleone.jpg&#039;)<br \/>\ncolor&#061;(&#039;b&#039;,&#039;g&#039;,&#039;r&#039;)<\/p>\n<p>for i,col in enumerate(color):<br \/>\n    histr&#061;cv2.calcHist([img],[i],None,[256],[0,256])<br \/>\n    plt.plot(histr,color&#061;col)<br \/>\nplt.show()<\/p>\n<p>people&#061;cv2.imread(&#039;peopleone.jpg&#039;,cv2.IMREAD_GRAYSCALE)<br \/>\ncv2.imshow(&#039;people&#039;,people)<br \/>\ncv2.waitKey(0)<\/p>\n<p>mask&#061;np.zeros(people.shape[:2],np.uint8)<br \/>\nmask[50:600,50:700]&#061;255<br \/>\ncv2.imshow(&#039;mask&#039;,mask)<br \/>\ncv2.waitKey(0)<\/p>\n<p>people_mask&#061;cv2.bitwise_and(people,people,mask&#061;mask)<br \/>\ncv2.imshow(&#039;peolpe_mask&#039;,people_mask)<br \/>\ncv2.waitKey(0)<\/p>\n<p>people_hist_mask&#061;cv2.calcHist([people],[0],mask,[256],[0,256])<br \/>\nplt.plot(people_hist_mask)<br \/>\nplt.show()<br \/>\ncv2.destroyAllWindows()<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"881\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260123115632-697361f00ddf2.png\" width=\"1781\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"885\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260123115633-697361f10eb63.png\" width=\"1820\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"600\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260123115634-697361f200844.png\" width=\"800\" \/><\/p>\n<h3>\u4e09\u3001\u6574\u4f53\u76ee\u6807<\/h3>\n<p>\u901a\u8fc7\u76f4\u65b9\u56fe\u5747\u8861\u5316\u6280\u672f\u6539\u5584\u56fe\u50cf\u5bf9\u6bd4\u5ea6&#xff0c;\u5c55\u793a\u5168\u5c40\u548c\u5c40\u90e8\u5747\u8861\u5316\u7684\u6548\u679c\u5dee\u5f02\u3002<\/p>\n<h4>1.\u6838\u5fc3\u6982\u5ff5&#xff1a;\u76f4\u65b9\u56fe\u5747\u8861\u5316<\/h4>\n<h5>\u57fa\u672c\u539f\u7406&#xff1a;<\/h5>\n<p>\u91cd\u65b0\u5206\u5e03\u56fe\u50cf\u50cf\u7d20\u7684\u5f3a\u5ea6\u503c&#xff0c;\u4f7f\u76f4\u65b9\u56fe\u5728\u6574\u4e2a\u5f3a\u5ea6\u8303\u56f4\u5185\u66f4\u52a0\u5747\u5300&#xff0c;\u4ece\u800c\u589e\u5f3a\u56fe\u50cf\u5bf9\u6bd4\u5ea6\u3002<\/p>\n<h4>2.\u4ee3\u7801\u6267\u884c\u6d41\u7a0b\u5206\u6790<\/h4>\n<h5>1.\u00a0\u8bfb\u53d6\u548c\u663e\u793a\u539f\u59cb\u56fe\u50cf\u76f4\u65b9\u56fe<\/h5>\n<p>renwu &#061; cv2.imread(&#039;renwu.jpg&#039;, cv2.IMREAD_GRAYSCALE)<br \/>\nplt.hist(renwu.ravel(), bins&#061;256)<\/p>\n<ul>\n<li>\n<p>\u8bfb\u53d6\u7070\u5ea6\u56fe\u50cf<\/p>\n<\/li>\n<li>\n<p>\u663e\u793a\u539f\u59cb\u50cf\u7d20\u5f3a\u5ea6\u5206\u5e03<\/p>\n<\/li>\n<li>\n<p>\u901a\u5e38\u4f4e\u5bf9\u6bd4\u5ea6\u56fe\u50cf\u7684\u76f4\u65b9\u56fe\u4f1a\u96c6\u4e2d\u5728\u67d0\u4e2a\u72ed\u7a84\u8303\u56f4\u5185<\/p>\n<\/li>\n<\/ul>\n<h5>2.\u00a0\u5168\u5c40\u76f4\u65b9\u56fe\u5747\u8861\u5316<\/h5>\n<p>renwu_equalize &#061; cv2.equalizeHist(renwu)<br \/>\nplt.hist(renwu_equalize.ravel(), bins&#061;256)<\/p>\n<ul>\n<li>\n<p>cv2.equalizeHist()&#xff1a;\u5bf9\u6574\u4e2a\u56fe\u50cf\u5e94\u7528\u5747\u8861\u5316<\/p>\n<\/li>\n<li>\n<p>\u6548\u679c&#xff1a;\u5c06\u539f\u59cb\u76f4\u65b9\u56fe\u62c9\u4f38\u5230\u6574\u4e2a0-255\u8303\u56f4<\/p>\n<\/li>\n<li>\n<p>\u7f3a\u70b9&#xff1a;\u53ef\u80fd\u8fc7\u5ea6\u589e\u5f3a\u67d0\u4e9b\u533a\u57df\u7684\u5bf9\u6bd4\u5ea6&#xff0c;\u4e22\u5931\u7ec6\u8282<\/p>\n<\/li>\n<\/ul>\n<h5>3.\u00a0\u53ef\u89c6\u5316\u5bf9\u6bd4<\/h5>\n<p>res &#061; np.hstack((renwu, renwu_equalize))<\/p>\n<ul>\n<li>\n<p>\u5e76\u6392\u663e\u793a\u539f\u56fe\u548c\u5904\u7406\u540e\u56fe\u50cf<\/p>\n<\/li>\n<li>\n<p>\u76f4\u89c2\u5c55\u793a\u5bf9\u6bd4\u5ea6\u6539\u5584\u6548\u679c<\/p>\n<\/li>\n<\/ul>\n<h5>4.\u00a0\u81ea\u9002\u5e94\u76f4\u65b9\u56fe\u5747\u8861\u5316&#xff08;\u5c40\u90e8\u5904\u7406&#xff09;<\/h5>\n<p>clahe &#061; cv2.createCLAHE(clipLimit&#061;10, tileGridSize&#061;(8, 8))<br \/>\nrenwu_clahe &#061; clahe.apply(renwu)<\/p>\n<ul>\n<li>\n<p>CLAHE&#xff08;Contrast Limited Adaptive Histogram Equalization&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5de5\u4f5c\u539f\u7406&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5c06\u56fe\u50cf\u5206\u6210\u591a\u4e2a\u5c0f\u533a\u57df&#xff08;tileGridSize\u6307\u5b9a&#xff0c;\u59828\u00d78\u7f51\u683c&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5bf9\u6bcf\u4e2a\u5c0f\u533a\u57df\u72ec\u7acb\u8fdb\u884c\u76f4\u65b9\u56fe\u5747\u8861\u5316<\/p>\n<\/li>\n<li>\n<p>\u4f7f\u7528clipLimit\u9650\u5236\u5bf9\u6bd4\u5ea6\u589e\u5f3a\u7a0b\u5ea6&#xff0c;\u9632\u6b62\u566a\u58f0\u8fc7\u5ea6\u653e\u5927<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>5.\u00a0\u6700\u7ec8\u5bf9\u6bd4\u5c55\u793a<\/h5>\n<p>res &#061; np.hstack((renwu, renwu_equalize, renwu_clahe))<\/p>\n<ul>\n<li>\n<p>\u540c\u65f6\u663e\u793a&#xff1a;\u539f\u59cb\u56fe\u50cf\u3001\u5168\u5c40\u5747\u8861\u5316\u3001\u81ea\u9002\u5e94\u5747\u8861\u5316<\/p>\n<\/li>\n<li>\n<p>\u76f4\u89c2\u6bd4\u8f83\u4e09\u79cd\u5904\u7406\u6548\u679c<\/p>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"586\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260123115634-697361f231b85.png\" width=\"866\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"584\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260123115634-697361f27cce2.png\" width=\"1284\" \/><\/p>\n<h5>\u5b8c\u6574\u4ee3\u7801<\/h5>\n<p>import cv2<br \/>\nimport numpy as np<br \/>\nimport matplotlib.pyplot as plt<\/p>\n<p># \u8bfb\u53d6\u7070\u5ea6\u56fe\u50cf<br \/>\nrenwu &#061; cv2.imread(&#039;renwu.jpg&#039;, cv2.IMREAD_GRAYSCALE)<\/p>\n<p># \u663e\u793a\u539f\u56fe\u76f4\u65b9\u56fe<br \/>\nplt.hist(renwu.ravel(), bins&#061;256)  # numpy\u4e2d\u7684ravel\u5c06\u6570\u7ec4\u591a\u7ef4\u5ea6\u62c9\u6210\u4e00\u7ef4\u6570\u7ec4<br \/>\nplt.show()<\/p>\n<p># \u5168\u5c40\u76f4\u65b9\u56fe\u5747\u8861\u5316<br \/>\nrenwu_equalize &#061; cv2.equalizeHist(renwu)<\/p>\n<p># \u663e\u793a\u5747\u8861\u5316\u540e\u7684\u76f4\u65b9\u56fe<br \/>\nplt.hist(renwu_equalize.ravel(), bins&#061;256)<br \/>\nplt.show()<\/p>\n<p># \u5bf9\u6bd4\u539f\u56fe\u548c\u5747\u8861\u5316\u540e\u7684\u56fe\u50cf<br \/>\nres &#061; np.hstack((renwu, renwu_equalize))  # \u6a2a\u5411\u62fc\u63a5<br \/>\ncv2.imshow(&#039;renwu_rese&#039;, res)<br \/>\ncv2.waitKey(0)<\/p>\n<p># \u81ea\u9002\u5e94\u76f4\u65b9\u56fe\u5747\u8861\u5316(\u5c40\u90e8\u76f4\u65b9\u56fe\u5904\u7406)<br \/>\n# \u5f53\u9700\u8981\u4fdd\u5b58\u7ec6\u8282\u7279\u5f81&#xff0c;\u9700\u8981\u505a\u5c40\u90e8\u5904\u7406<br \/>\n# clipLimit: \u989c\u8272\u5bf9\u6bd4\u5ea6\u7684\u9608\u503c&#xff0c;\u53ef\u9009\u9879&#xff0c;\u9ed8\u8ba4\u503c 8<br \/>\n# tileGridSize: \u5c40\u90e8\u76f4\u65b9\u56fe\u5747\u8861\u5316\u7684\u6a21\u677f&#xff08;\u90bb\u57df&#xff09;\u5927\u5c0f&#xff0c;\u53ef\u9009\u9879&#xff0c;\u9ed8\u8ba4\u503c (8,8)<br \/>\nclahe &#061; cv2.createCLAHE(clipLimit&#061;10, tileGridSize&#061;(8, 8))  # \u521b\u5efa\u5c40\u90e8\u5747\u8861\u5316\u5bf9\u8c61<br \/>\nrenwu_clahe &#061; clahe.apply(renwu)<\/p>\n<p># \u5bf9\u6bd4\u4e09\u79cd\u56fe\u50cf<br \/>\nres &#061; np.hstack((renwu, renwu_equalize, renwu_clahe))<br \/>\ncv2.imshow(&#039;renwu_equalize&#039;, res)<br \/>\ncv2.waitKey(0)<br \/>\ncv2.destroyAllWindows()<\/p>\n<h4>3\u3001\u4e24\u79cd\u65b9\u6cd5\u7684\u5bf9\u6bd4<\/h4>\n<table>\n<tr>\u7279\u6027\u5168\u5c40\u5747\u8861\u5316\u81ea\u9002\u5e94\u5747\u8861\u5316&#xff08;CLAHE&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>\u5904\u7406\u8303\u56f4<\/td>\n<td>\u6574\u4e2a\u56fe\u50cf<\/td>\n<td>\u5c40\u90e8\u5c0f\u533a\u57df<\/td>\n<\/tr>\n<tr>\n<td>\u5bf9\u6bd4\u5ea6\u63a7\u5236<\/td>\n<td>\u65e0\u9650\u5236<\/td>\n<td>\u6709\u9650\u5236&#xff08;clipLimit&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u7ec6\u8282\u4fdd\u7559<\/td>\n<td>\u53ef\u80fd\u4e22\u5931<\/td>\n<td>\u8f83\u597d\u4fdd\u7559<\/td>\n<\/tr>\n<tr>\n<td>\u566a\u58f0\u5f71\u54cd<\/td>\n<td>\u53ef\u80fd\u653e\u5927\u566a\u58f0<\/td>\n<td>\u53d7\u63a7\u653e\u5927<\/td>\n<\/tr>\n<tr>\n<td>\u9002\u7528\u573a\u666f<\/td>\n<td>\u6574\u4f53\u4f4e\u5bf9\u6bd4\u5ea6\u56fe\u50cf<\/td>\n<td>\u5c40\u90e8\u5bf9\u6bd4\u5ea6\u5dee\u5f02\u5927\u7684\u56fe\u50cf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>4.\u5173\u952e\u53c2\u6570\u8bf4\u660e<\/h4>\n<h5>1.\u00a0clipLimit<\/h5>\n<ul>\n<li>\n<p>\u5bf9\u6bd4\u5ea6\u9650\u5236\u9608\u503c<\/p>\n<\/li>\n<li>\n<p>\u9632\u6b62\u5c40\u90e8\u533a\u57df\u5bf9\u6bd4\u5ea6\u8fc7\u5ea6\u589e\u5f3a<\/p>\n<\/li>\n<li>\n<p>\u503c\u8d8a\u5927&#xff0c;\u5bf9\u6bd4\u5ea6\u589e\u5f3a\u8d8a\u5f3a<\/p>\n<\/li>\n<li>\n<p>\u9ed8\u8ba4\u503c2-3&#xff0c;\u8fd9\u91cc\u8bbe\u4e3a10&#xff08;\u8f83\u5f3a\u589e\u5f3a&#xff09;<\/p>\n<\/li>\n<\/ul>\n<h5>2.\u00a0tileGridSize<\/h5>\n<ul>\n<li>\n<p>\u5212\u5206\u56fe\u50cf\u7684\u5c0f\u533a\u57df\u5927\u5c0f<\/p>\n<\/li>\n<li>\n<p>(8, 8)\u8868\u793a\u5c06\u56fe\u50cf\u5206\u4e3a8\u00d78&#061;64\u4e2a\u5c0f\u533a\u57df<\/p>\n<\/li>\n<li>\n<p>\u6bcf\u4e2a\u5c0f\u533a\u57df\u72ec\u7acb\u8fdb\u884c\u5747\u8861\u5316<\/p>\n<\/li>\n<\/ul>\n<h4>5.\u5b9e\u9645\u5e94\u7528\u6548\u679c<\/h4>\n<h5>\u5904\u7406\u540e\u7684\u76f4\u65b9\u56fe\u7279\u5f81&#xff1a;<\/h5>\n<li>\n<p>\u5168\u5c40\u5747\u8861\u5316&#xff1a;\u76f4\u65b9\u56fe\u5927\u81f4\u5747\u5300\u5206\u5e03\u5728\u6574\u4e2a0-255\u8303\u56f4<\/p>\n<\/li>\n<li>\n<p>\u81ea\u9002\u5e94\u5747\u8861\u5316&#xff1a;\u4fdd\u6301\u4e86\u539f\u59cb\u76f4\u65b9\u56fe\u7684\u67d0\u4e9b\u7279\u5f81&#xff0c;\u4f46\u6574\u4f53\u66f4\u52a0\u5747\u8861<\/p>\n<\/li>\n<h5>\u89c6\u89c9\u6539\u5584&#xff1a;<\/h5>\n<li>\n<p>\u6697\u90e8\u7ec6\u8282\u663e\u73b0&#xff1a;\u539f\u672c\u592a\u6697\u7684\u533a\u57df\u53d8\u4eae<\/p>\n<\/li>\n<li>\n<p>\u4eae\u90e8\u7ec6\u8282\u6062\u590d&#xff1a;\u539f\u672c\u592a\u4eae\u7684\u533a\u57df\u53d8\u6697<\/p>\n<\/li>\n<li>\n<p>\u6574\u4f53\u5bf9\u6bd4\u5ea6\u63d0\u5347&#xff1a;\u56fe\u50cf\u66f4\u52a0\u6e05\u6670<\/p>\n<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u56fe\u5f62\u65cb\u8f6c1.\u00a0NumPy\u7684np.rot90()\u65b9\u6cd5\u529f\u80fd&#xff1a;\u4e13\u95e8\u7528\u4e8e90\u5ea6\u500d\u6570\u7684\u65cb\u8f6c\u53c2\u6570k\u7684\u542b\u4e49&#xff1a;k1&#xff1a;\u9006\u65f6\u9488\u65cb\u8f6c90\u5ea6k-1&#xff1a;\u987a\u65f6\u9488\u65cb\u8f6c90\u5ea6k2&#xff1a;\u65cb\u8f6c180\u5ea6&#xff08;\u987a\u65f6\u9488\u6216\u9006\u65f6\u9488\u6548\u679c\u76f8\u540c&#xff09;k3&#xff1a;\u987a\u65f6\u9488\u65cb\u8f6c270\u5ea6&#xff08;\u7b49\u540c\u4e8e\u9006\u65f6\u948890\u5ea6&#xff09;\u7279\u70b9&#xff1a;\u901a\u8fc7\u6570\u7ec4\u8f6c\u7f6e\u548c\u7ffb\u8f6c\u5b9e\u73b0\u53ea\u80fd\u505a90\u5ea6\u7684\u6574\u6570\u500d\u65cb\u8f6c\u65cb\u8f6c\u4e2d\u5fc3\u662f\u56fe\u50cf\u4e2d\u5fc3import cv2<\/p>\n","protected":false},"author":2,"featured_media":64586,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6835,6834,6836,1460,81,50,523],"topic":[],"class_list":["post-64593","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-6835","tag-6834","tag-6836","tag-opencv","tag-python","tag-50","tag-523"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>opencv\u8ba1\u7b97\u673a\u89c6\u89c9-\u56fe\u5f62\u65cb\u8f6c&amp;\u56fe\u5f62\u53ef\u89c6\u5316&amp;\u5747\u8861\u5316 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/64593.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"opencv\u8ba1\u7b97\u673a\u89c6\u89c9-\u56fe\u5f62\u65cb\u8f6c&amp;\u56fe\u5f62\u53ef\u89c6\u5316&amp;\u5747\u8861\u5316 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u56fe\u5f62\u65cb\u8f6c1.\u00a0NumPy\u7684np.rot90()\u65b9\u6cd5\u529f\u80fd&#xff1a;\u4e13\u95e8\u7528\u4e8e90\u5ea6\u500d\u6570\u7684\u65cb\u8f6c\u53c2\u6570k\u7684\u542b\u4e49&#xff1a;k1&#xff1a;\u9006\u65f6\u9488\u65cb\u8f6c90\u5ea6k-1&#xff1a;\u987a\u65f6\u9488\u65cb\u8f6c90\u5ea6k2&#xff1a;\u65cb\u8f6c180\u5ea6&#xff08;\u987a\u65f6\u9488\u6216\u9006\u65f6\u9488\u6548\u679c\u76f8\u540c&#xff09;k3&#xff1a;\u987a\u65f6\u9488\u65cb\u8f6c270\u5ea6&#xff08;\u7b49\u540c\u4e8e\u9006\u65f6\u948890\u5ea6&#xff09;\u7279\u70b9&#xff1a;\u901a\u8fc7\u6570\u7ec4\u8f6c\u7f6e\u548c\u7ffb\u8f6c\u5b9e\u73b0\u53ea\u80fd\u505a90\u5ea6\u7684\u6574\u6570\u500d\u65cb\u8f6c\u65cb\u8f6c\u4e2d\u5fc3\u662f\u56fe\u50cf\u4e2d\u5fc3import cv2\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/64593.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-23T11:56:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260123115629-697361ed3be34.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/64593.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/64593.html\",\"name\":\"opencv\u8ba1\u7b97\u673a\u89c6\u89c9-\u56fe\u5f62\u65cb\u8f6c&amp;\u56fe\u5f62\u53ef\u89c6\u5316&amp;\u5747\u8861\u5316 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-23T11:56:35+00:00\",\"dateModified\":\"2026-01-23T11:56:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/64593.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/64593.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/64593.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"opencv\u8ba1\u7b97\u673a\u89c6\u89c9--\u56fe\u5f62\u65cb\u8f6c&amp;\u56fe\u5f62\u53ef\u89c6\u5316&amp;\u5747\u8861\u5316\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"opencv\u8ba1\u7b97\u673a\u89c6\u89c9-\u56fe\u5f62\u65cb\u8f6c&amp;\u56fe\u5f62\u53ef\u89c6\u5316&amp;\u5747\u8861\u5316 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/64593.html","og_locale":"zh_CN","og_type":"article","og_title":"opencv\u8ba1\u7b97\u673a\u89c6\u89c9-\u56fe\u5f62\u65cb\u8f6c&amp;\u56fe\u5f62\u53ef\u89c6\u5316&amp;\u5747\u8861\u5316 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001\u56fe\u5f62\u65cb\u8f6c1.\u00a0NumPy\u7684np.rot90()\u65b9\u6cd5\u529f\u80fd&#xff1a;\u4e13\u95e8\u7528\u4e8e90\u5ea6\u500d\u6570\u7684\u65cb\u8f6c\u53c2\u6570k\u7684\u542b\u4e49&#xff1a;k1&#xff1a;\u9006\u65f6\u9488\u65cb\u8f6c90\u5ea6k-1&#xff1a;\u987a\u65f6\u9488\u65cb\u8f6c90\u5ea6k2&#xff1a;\u65cb\u8f6c180\u5ea6&#xff08;\u987a\u65f6\u9488\u6216\u9006\u65f6\u9488\u6548\u679c\u76f8\u540c&#xff09;k3&#xff1a;\u987a\u65f6\u9488\u65cb\u8f6c270\u5ea6&#xff08;\u7b49\u540c\u4e8e\u9006\u65f6\u948890\u5ea6&#xff09;\u7279\u70b9&#xff1a;\u901a\u8fc7\u6570\u7ec4\u8f6c\u7f6e\u548c\u7ffb\u8f6c\u5b9e\u73b0\u53ea\u80fd\u505a90\u5ea6\u7684\u6574\u6570\u500d\u65cb\u8f6c\u65cb\u8f6c\u4e2d\u5fc3\u662f\u56fe\u50cf\u4e2d\u5fc3import cv2","og_url":"https:\/\/www.wsisp.com\/helps\/64593.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-23T11:56:35+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260123115629-697361ed3be34.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/64593.html","url":"https:\/\/www.wsisp.com\/helps\/64593.html","name":"opencv\u8ba1\u7b97\u673a\u89c6\u89c9-\u56fe\u5f62\u65cb\u8f6c&amp;\u56fe\u5f62\u53ef\u89c6\u5316&amp;\u5747\u8861\u5316 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-23T11:56:35+00:00","dateModified":"2026-01-23T11:56:35+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/64593.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/64593.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/64593.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"opencv\u8ba1\u7b97\u673a\u89c6\u89c9--\u56fe\u5f62\u65cb\u8f6c&amp;\u56fe\u5f62\u53ef\u89c6\u5316&amp;\u5747\u8861\u5316"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/64593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=64593"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/64593\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/64586"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=64593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=64593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=64593"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=64593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}