{"id":60782,"date":"2026-01-16T11:09:47","date_gmt":"2026-01-16T03:09:47","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/60782.html"},"modified":"2026-01-16T11:09:47","modified_gmt":"2026-01-16T03:09:47","slug":"opencv-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%ef%bc%9a%e8%be%b9%e7%bc%98%e6%a3%80%e6%b5%8b-%e9%9c%8d%e5%a4%ab%e5%8f%98%e6%8d%a2%e7%b2%be%e5%87%86%e6%9f%a5%e6%89%be%e7%9b%b4%e7%ba%bf","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/60782.html","title":{"rendered":"Opencv \u5b66\u4e60\u7b14\u8bb0\uff1a\u8fb9\u7f18\u68c0\u6d4b + \u970d\u592b\u53d8\u6362\u7cbe\u51c6\u67e5\u627e\u76f4\u7ebf"},"content":{"rendered":"<p>\u00a0 \u00a0 \u00a0 \u00a0 \u5728\u5de5\u4e1a\u68c0\u6d4b\u3001\u6587\u6863\u5206\u6790\u7b49\u573a\u666f\u4e2d&#xff0c;\u4ece\u56fe\u50cf\u4e2d\u63d0\u53d6\u8fb9\u7f18\u5e76\u7cbe\u51c6\u67e5\u627e\u76f4\u7ebf\u662f\u6838\u5fc3\u9700\u6c42\u3002\u672c\u6587\u901a\u8fc7 \u201cCanny \u8fb9\u7f18\u68c0\u6d4b &#043; \u5f62\u6001\u5b66\u95ed\u8fd0\u7b97 &#043; \u970d\u592b\u53d8\u6362\u201d \u7684\u7ec4\u5408\u6d41\u7a0b&#xff0c;\u6f14\u793a\u76f4\u7ebf\u63d0\u53d6\u7684\u5b8c\u6574\u5b9e\u73b0&#xff0c;\u65b0\u624b\u53ef\u76f4\u63a5\u590d\u7528\u3002<\/p>\n<h3>\u6838\u5fc3\u4ee3\u7801\u5b9e\u73b0<\/h3>\n<p>import cv2 as cv<br \/>\nimport numpy as np<\/p>\n<p># 1. \u8bfb\u53d6\u56fe\u50cf\u5e76\u8f6c\u7070\u5ea6<br \/>\nsrc &#061; cv.imread(&#039;.\\\\image\\\\11.bmp&#039;)<br \/>\nif src is None:<br \/>\n    print(&#039;could not load image&#039;)<br \/>\n    exit()<br \/>\ngray &#061; cv.cvtColor(src, cv.COLOR_BGR2GRAY)<\/p>\n<p># 2. Canny\u8fb9\u7f18\u68c0\u6d4b&#xff08;\u53cc\u9608\u503c&#xff1a;100\/200&#xff09;<br \/>\nthreshold1 &#061; 100<br \/>\nedges &#061; cv.Canny(gray, threshold1, threshold1*2, apertureSize&#061;3)<\/p>\n<p># 3. \u95ed\u8fd0\u7b97\u4f18\u5316\u8fb9\u7f18&#xff1a;\u586b\u8865\u8fb9\u7f18\u65ad\u88c2&#xff0c;\u5f3a\u5316\u76f4\u7ebf\u7279\u5f81<br \/>\nkernel &#061; cv.getStructuringElement(cv.MORPH_RECT, (5, 3))<br \/>\nclosed1 &#061; cv.morphologyEx(edges, cv.MORPH_CLOSE, kernel)<\/p>\n<p># 4. \u6982\u7387\u970d\u592b\u53d8\u6362\u67e5\u627e\u76f4\u7ebf<br \/>\nlines &#061; cv.HoughLinesP(closed1, 1, np.pi\/180, 10, minLineLength&#061;200, maxLineGap&#061;100)<\/p>\n<p># 5. \u521b\u5efa\u7eaf\u767d\u753b\u5e03\u7ed8\u5236\u68c0\u6d4b\u5230\u7684\u76f4\u7ebf<br \/>\noutimage &#061; np.zeros((src.shape[0], src.shape[1]), np.uint8)<br \/>\noutimage.fill(255)<\/p>\n<p># 6. \u7ed8\u5236\u76f4\u7ebf\u5e76\u663e\u793a<br \/>\ncv.imshow(&#039;edges&#039;, closed1)<br \/>\nprint(f&#034;\u68c0\u6d4b\u5230\u7684\u76f4\u7ebf\u6570\u91cf&#xff1a;{len(lines)}&#034;)  # \u6253\u5370\u76f4\u7ebf\u6570\u91cf\u4fbf\u4e8e\u8c03\u8bd5<\/p>\n<p>if lines is not None:<br \/>\n    for line in lines:<br \/>\n        x1, y1, x2, y2 &#061; line[0]<br \/>\n        cv.line(outimage, (x1, y1), (x2, y2), (0, 0, 0), 2)  # \u9ed1\u8272\u76f4\u7ebf\u66f4\u6e05\u6670<\/p>\n<p># \u81ea\u9002\u5e94\u7a97\u53e3\u663e\u793a&#xff08;\u5339\u914d\u539f\u56fe\u5c3a\u5bf8&#xff09;<br \/>\ncv.namedWindow(&#039;outimage&#039;, cv.WINDOW_NORMAL)<br \/>\ncv.resizeWindow(&#039;outimage&#039;, src.shape[1], src.shape[0])<br \/>\ncv.imshow(&#039;outimage&#039;, outimage)<\/p>\n<p>cv.waitKeyEx(0)<br \/>\ncv.destroyAllWindows()<\/p>\n<h3>\u5173\u952e\u77e5\u8bc6\u70b9\u89e3\u6790<\/h3>\n<h4>1. \u6838\u5fc3\u6d41\u7a0b\u62c6\u89e3<\/h4>\n<table>\n<tr>\u6b65\u9aa4\u6838\u5fc3 API\u4f5c\u7528\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u8fb9\u7f18\u68c0\u6d4b<\/td>\n<td>cv.Canny()<\/td>\n<td>\u63d0\u53d6\u56fe\u50cf\u8fb9\u7f18&#xff0c;\u53cc\u9608\u503c&#xff08;1:2&#xff09;\u662f\u7ecf\u9a8c\u503c&#xff0c;apertureSize&#061;3 \u4e3a\u9ed8\u8ba4\u5377\u79ef\u6838<\/td>\n<\/tr>\n<tr>\n<td>\u8fb9\u7f18\u4f18\u5316<\/td>\n<td>cv.morphologyEx(&#8230;, MORPH_CLOSE)<\/td>\n<td>\u95ed\u8fd0\u7b97\u586b\u8865\u8fb9\u7f18\u65ad\u88c2&#xff0c;\u8ba9\u76f4\u7ebf\u7279\u5f81\u66f4\u8fde\u7eed<\/td>\n<\/tr>\n<tr>\n<td>\u76f4\u7ebf\u67e5\u627e<\/td>\n<td>cv.HoughLinesP()<\/td>\n<td>\u6982\u7387\u970d\u592b\u53d8\u6362&#xff0c;\u9ad8\u6548\u67e5\u627e\u76f4\u7ebf&#xff0c;\u907f\u514d\u4f20\u7edf\u970d\u592b\u53d8\u6362\u8ba1\u7b97\u91cf\u5927\u7684\u95ee\u9898<\/td>\n<\/tr>\n<tr>\n<td>\u76f4\u7ebf\u7ed8\u5236<\/td>\n<td>cv.line()<\/td>\n<td>\u5728\u7eaf\u767d\u753b\u5e03\u4e0a\u7ed8\u5236\u68c0\u6d4b\u5230\u7684\u76f4\u7ebf&#xff0c;\u76f4\u89c2\u5c55\u793a\u7ed3\u679c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>2. \u970d\u592b\u53d8\u6362\u5173\u952e\u53c2\u6570<\/h4>\n<ul>\n<li>rho&#061;1&#xff1a;\u8ddd\u79bb\u5206\u8fa8\u7387&#xff08;\u50cf\u7d20&#xff09;&#xff1b;<\/li>\n<li>theta&#061;np.pi\/180&#xff1a;\u89d2\u5ea6\u5206\u8fa8\u7387&#xff08;\u5f27\u5ea6&#xff09;&#xff1b;<\/li>\n<li>threshold&#061;10&#xff1a;\u68c0\u6d4b\u9608\u503c&#xff08;\u6295\u7968\u6570\u2265\u6b64\u503c\u624d\u5224\u5b9a\u4e3a\u76f4\u7ebf&#xff09;&#xff1b;<\/li>\n<li>minLineLength&#061;200&#xff1a;\u6700\u5c0f\u76f4\u7ebf\u957f\u5ea6&#xff08;\u8fc7\u6ee4\u77ed\u6742\u7ebf&#xff09;&#xff1b;<\/li>\n<li>maxLineGap&#061;100&#xff1a;\u76f4\u7ebf\u6bb5\u6700\u5927\u95f4\u9699&#xff08;\u95f4\u9699\u5185\u7684\u7ebf\u6bb5\u89c6\u4e3a\u540c\u4e00\u76f4\u7ebf&#xff09;\u3002<\/li>\n<\/ul>\n<h4>3. \u4f18\u5316\u4e0e\u907f\u5751\u70b9<\/h4>\n<ul>\n<li>Canny \u9608\u503c\u8c03\u6574&#xff1a;\u82e5\u8fb9\u7f18\u6f0f\u68c0&#xff0c;\u964d\u4f4e threshold1&#xff1b;\u82e5\u566a\u70b9\u591a&#xff0c;\u63d0\u9ad8 threshold1&#xff1b;<\/li>\n<li>\u95ed\u8fd0\u7b97\u6838\u5c3a\u5bf8&#xff1a;\u6838\u8d8a\u5927&#xff0c;\u8fb9\u7f18\u586b\u8865\u6548\u679c\u8d8a\u5f3a&#xff0c;\u9700\u6839\u636e\u76f4\u7ebf\u7c97\u7ec6\u8c03\u6574&#xff1b;<\/li>\n<li>\u7a7a\u503c\u5224\u65ad&#xff1a;\u65b0\u589eif lines is not None&#xff0c;\u907f\u514d\u65e0\u76f4\u7ebf\u65f6\u7d22\u5f15\u62a5\u9519&#xff1b;<\/li>\n<li>\u989c\u8272\u9002\u914d&#xff1a;\u7070\u5ea6\u753b\u5e03\u7528(0,0,0)&#xff08;\u9ed1\u8272&#xff09;\u7ed8\u5236\u76f4\u7ebf&#xff0c;\u6bd4\u7eff\u8272\u66f4\u6e05\u6670\u3002<\/li>\n<\/ul>\n<h3>\u603b\u7ed3<\/h3>\n<li>\u76f4\u7ebf\u63d0\u53d6\u6838\u5fc3\u6d41\u7a0b&#xff1a;Canny \u8fb9\u7f18\u68c0\u6d4b\u2192\u95ed\u8fd0\u7b97\u4f18\u5316\u2192\u970d\u592b\u53d8\u6362\u67e5\u627e&#xff1b;<\/li>\n<li>\u970d\u592b\u53d8\u6362\u7684minLineLength\u548cmaxLineGap\u662f\u8fc7\u6ee4\u6742\u7ebf\u3001\u5408\u5e76\u7ebf\u6bb5\u7684\u5173\u952e&#xff1b;<\/li>\n<li>\u95ed\u8fd0\u7b97\u53ef\u6709\u6548\u586b\u8865\u8fb9\u7f18\u65ad\u88c2&#xff0c;\u5927\u5e45\u63d0\u5347\u76f4\u7ebf\u68c0\u6d4b\u51c6\u786e\u7387\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5de5\u4e1a\u68c0\u6d4b\u3001\u6587\u6863\u5206\u6790\u7b49\u573a\u666f\u4e2d&#xff0c;\u4ece\u56fe\u50cf\u4e2d\u63d0\u53d6\u8fb9\u7f18\u5e76\u7cbe\u51c6\u67e5\u627e\u76f4\u7ebf\u662f\u6838\u5fc3\u9700\u6c42\u3002\u672c\u6587\u901a\u8fc7 \u201cCanny \u8fb9\u7f18\u68c0\u6d4b  \u5f62\u6001\u5b66\u95ed\u8fd0\u7b97  \u970d\u592b\u53d8\u6362\u201d \u7684\u7ec4\u5408\u6d41\u7a0b&#xff0c;\u6f14\u793a\u76f4\u7ebf\u63d0\u53d6\u7684\u5b8c\u6574\u5b9e\u73b0&#xff0c;\u65b0\u624b\u53ef\u76f4\u63a5\u590d\u7528\u3002\u6838\u5fc3\u4ee3\u7801\u5b9e\u73b0import cv2 as cv<br \/>\nimport numpy as np# 1. \u8bfb\u53d6\u56fe\u50cf\u5e76\u8f6c\u7070\u5ea6<br \/>\nsrc  cv.imread(.\\\\image\\\\11.bmp)<br \/>\nif src is None:print(could not load ima<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1460,371,305],"topic":[],"class_list":["post-60782","post","type-post","status-publish","format-standard","hentry","category-server","tag-opencv","tag-371","tag-305"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Opencv \u5b66\u4e60\u7b14\u8bb0\uff1a\u8fb9\u7f18\u68c0\u6d4b + \u970d\u592b\u53d8\u6362\u7cbe\u51c6\u67e5\u627e\u76f4\u7ebf - \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\/60782.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Opencv \u5b66\u4e60\u7b14\u8bb0\uff1a\u8fb9\u7f18\u68c0\u6d4b + \u970d\u592b\u53d8\u6362\u7cbe\u51c6\u67e5\u627e\u76f4\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u5de5\u4e1a\u68c0\u6d4b\u3001\u6587\u6863\u5206\u6790\u7b49\u573a\u666f\u4e2d&#xff0c;\u4ece\u56fe\u50cf\u4e2d\u63d0\u53d6\u8fb9\u7f18\u5e76\u7cbe\u51c6\u67e5\u627e\u76f4\u7ebf\u662f\u6838\u5fc3\u9700\u6c42\u3002\u672c\u6587\u901a\u8fc7 \u201cCanny \u8fb9\u7f18\u68c0\u6d4b \u5f62\u6001\u5b66\u95ed\u8fd0\u7b97 \u970d\u592b\u53d8\u6362\u201d \u7684\u7ec4\u5408\u6d41\u7a0b&#xff0c;\u6f14\u793a\u76f4\u7ebf\u63d0\u53d6\u7684\u5b8c\u6574\u5b9e\u73b0&#xff0c;\u65b0\u624b\u53ef\u76f4\u63a5\u590d\u7528\u3002\u6838\u5fc3\u4ee3\u7801\u5b9e\u73b0import cv2 as cv import numpy as np# 1. \u8bfb\u53d6\u56fe\u50cf\u5e76\u8f6c\u7070\u5ea6 src cv.imread(.\\image\\11.bmp) if src is None:print(could not load ima\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/60782.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-16T03:09:47+00:00\" \/>\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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/60782.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/60782.html\",\"name\":\"Opencv \u5b66\u4e60\u7b14\u8bb0\uff1a\u8fb9\u7f18\u68c0\u6d4b + \u970d\u592b\u53d8\u6362\u7cbe\u51c6\u67e5\u627e\u76f4\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-16T03:09:47+00:00\",\"dateModified\":\"2026-01-16T03:09:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/60782.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/60782.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/60782.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Opencv \u5b66\u4e60\u7b14\u8bb0\uff1a\u8fb9\u7f18\u68c0\u6d4b + \u970d\u592b\u53d8\u6362\u7cbe\u51c6\u67e5\u627e\u76f4\u7ebf\"}]},{\"@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 \u5b66\u4e60\u7b14\u8bb0\uff1a\u8fb9\u7f18\u68c0\u6d4b + \u970d\u592b\u53d8\u6362\u7cbe\u51c6\u67e5\u627e\u76f4\u7ebf - \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\/60782.html","og_locale":"zh_CN","og_type":"article","og_title":"Opencv \u5b66\u4e60\u7b14\u8bb0\uff1a\u8fb9\u7f18\u68c0\u6d4b + \u970d\u592b\u53d8\u6362\u7cbe\u51c6\u67e5\u627e\u76f4\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u5de5\u4e1a\u68c0\u6d4b\u3001\u6587\u6863\u5206\u6790\u7b49\u573a\u666f\u4e2d&#xff0c;\u4ece\u56fe\u50cf\u4e2d\u63d0\u53d6\u8fb9\u7f18\u5e76\u7cbe\u51c6\u67e5\u627e\u76f4\u7ebf\u662f\u6838\u5fc3\u9700\u6c42\u3002\u672c\u6587\u901a\u8fc7 \u201cCanny \u8fb9\u7f18\u68c0\u6d4b \u5f62\u6001\u5b66\u95ed\u8fd0\u7b97 \u970d\u592b\u53d8\u6362\u201d \u7684\u7ec4\u5408\u6d41\u7a0b&#xff0c;\u6f14\u793a\u76f4\u7ebf\u63d0\u53d6\u7684\u5b8c\u6574\u5b9e\u73b0&#xff0c;\u65b0\u624b\u53ef\u76f4\u63a5\u590d\u7528\u3002\u6838\u5fc3\u4ee3\u7801\u5b9e\u73b0import cv2 as cv import numpy as np# 1. \u8bfb\u53d6\u56fe\u50cf\u5e76\u8f6c\u7070\u5ea6 src cv.imread(.\\image\\11.bmp) if src is None:print(could not load ima","og_url":"https:\/\/www.wsisp.com\/helps\/60782.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-16T03:09:47+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/60782.html","url":"https:\/\/www.wsisp.com\/helps\/60782.html","name":"Opencv \u5b66\u4e60\u7b14\u8bb0\uff1a\u8fb9\u7f18\u68c0\u6d4b + \u970d\u592b\u53d8\u6362\u7cbe\u51c6\u67e5\u627e\u76f4\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-16T03:09:47+00:00","dateModified":"2026-01-16T03:09:47+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/60782.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/60782.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/60782.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Opencv \u5b66\u4e60\u7b14\u8bb0\uff1a\u8fb9\u7f18\u68c0\u6d4b + \u970d\u592b\u53d8\u6362\u7cbe\u51c6\u67e5\u627e\u76f4\u7ebf"}]},{"@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\/60782","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=60782"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/60782\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=60782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=60782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=60782"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=60782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}