{"id":47954,"date":"2023-09-27T12:41:07","date_gmt":"2023-09-27T04:41:07","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=47954"},"modified":"2023-09-27T12:41:07","modified_gmt":"2023-09-27T04:41:07","slug":"orjsjsjgyylj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/47954.html","title":{"rendered":"OpenCV FindContours\uff1a\u8ba9\u8ba1\u7b97\u673a\u89c6\u89c9\u66f4\u6613\u4e8e\u7406\u89e3"},"content":{"rendered":"

  OpenCV FindContours\u662f\u8ba1\u7b97\u673a\u89c6\u89c9\u6280\u672f\u4e2d\u4e00\u79cd\u91cd\u8981\u7684\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u8ba1\u7b97\u673a\u5feb\u901f\u8bc6\u522b\u548c\u8ddf\u8e2a\u7269\u4f53\u7684\u8f6e\u5ed3\uff0c\u4ece\u800c\u63d0\u9ad8\u8ba1\u7b97\u673a\u89c6\u89c9\u7cfb\u7edf\u7684\u51c6\u786e\u6027\u548c\u6548\u7387\u3002\u672c\u6587\u5c06\u4ecb\u7ecdOpenCV FindContours\u7684\u57fa\u672c\u539f\u7406\uff0c\u4ee5\u53ca\u5b83\u5728\u8ba1\u7b97\u673a\u89c6\u89c9\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528\u3002<\/p>\n

\u4ec0\u4e48\u662fOpenCV FindContours\uff1f<\/h2>\n

  OpenCV FindContours\u662f\u4e00\u79cd\u8ba1\u7b97\u673a\u89c6\u89c9\u6280\u672f\uff0c\u5b83\u80fd\u591f\u5e2e\u52a9\u8ba1\u7b97\u673a\u5feb\u901f\u8bc6\u522b\u548c\u8ddf\u8e2a\u7269\u4f53\u7684\u8f6e\u5ed3\u3002\u5b83\u53ef\u4ee5\u8ba9\u8ba1\u7b97\u673a\u89c6\u89c9\u7cfb\u7edf\u66f4\u52a0\u7cbe\u786e\u548c\u9ad8\u6548\uff0c\u4ece\u800c\u63d0\u9ad8\u8ba1\u7b97\u673a\u89c6\u89c9\u7cfb\u7edf\u7684\u51c6\u786e\u6027\u548c\u6548\u7387\u3002<\/p>\n

OpenCV FindContours\u7684\u539f\u7406<\/h2>\n

  OpenCV FindContours\u7684\u539f\u7406\u662f\u901a\u8fc7\u5bf9\u56fe\u50cf\u8fdb\u884c\u8fb9\u7f18\u68c0\u6d4b\uff0c\u4ece\u800c\u627e\u5230\u56fe\u50cf\u4e2d\u7684\u8f6e\u5ed3\u3002\u5b83\u4f7f\u7528\u4e00\u79cd\u79f0\u4e3a\u201cCanny\u8fb9\u7f18\u68c0\u6d4b\u201d\u7684\u7b97\u6cd5\u6765\u5b9e\u73b0\u8fd9\u4e00\u76ee\u7684\uff0c\u8be5\u7b97\u6cd5\u53ef\u4ee5\u4ece\u56fe\u50cf\u4e2d\u68c0\u6d4b\u51fa\u5f3a\u5ea6\u53d8\u5316\u8f83\u5927\u7684\u8fb9\u7f18\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u8f6e\u5ed3\u3002<\/p>\n

  Canny\u8fb9\u7f18\u68c0\u6d4b\u7b97\u6cd5<\/h3>\n

  Canny\u8fb9\u7f18\u68c0\u6d4b\u7b97\u6cd5\u662fOpenCV FindContours\u7684\u6838\u5fc3\u7b97\u6cd5\uff0c\u5b83\u80fd\u591f\u4ece\u56fe\u50cf\u4e2d\u68c0\u6d4b\u51fa\u5f3a\u5ea6\u53d8\u5316\u8f83\u5927\u7684\u8fb9\u7f18\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u8f6e\u5ed3\u3002\u5b83\u4f7f\u7528\u4e00\u79cd\u79f0\u4e3a\u201c\u9ad8\u65af\u6ee4\u6ce2\u201d\u7684\u6280\u672f\u6765\u51cf\u5c11\u56fe\u50cf\u4e2d\u7684\u566a\u58f0\uff0c\u4ece\u800c\u63d0\u9ad8\u8fb9\u7f18\u68c0\u6d4b\u7684\u51c6\u786e\u6027\u3002\u6b64\u5916\uff0c\u5b83\u8fd8\u4f7f\u7528\u4e00\u79cd\u79f0\u4e3a\u201c\u53cc\u9608\u503c\u68c0\u6d4b\u201d\u7684\u6280\u672f\u6765\u68c0\u6d4b\u51fa\u56fe\u50cf\u4e2d\u7684\u8f6e\u5ed3\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u53ef\u8bc6\u522b\u7684\u5f62\u72b6\u3002<\/p>\n

  OpenCV FindContours\u7684\u5e94\u7528<\/h3>\n

  OpenCV FindContours\u6280\u672f\u53ef\u4ee5\u5e94\u7528\u4e8e\u8bb8\u591a\u4e0d\u540c\u7684\u8ba1\u7b97\u673a\u89c6\u89c9\u7cfb\u7edf\uff0c\u5982\u673a\u5668\u89c6\u89c9\u3001\u81ea\u52a8\u9a7e\u9a76\u7b49\u3002\u5b83\u53ef\u4ee5\u5e2e\u52a9\u8ba1\u7b97\u673a\u89c6\u89c9\u7cfb\u7edf\u5feb\u901f\u8bc6\u522b\u548c\u8ddf\u8e2a\u7269\u4f53\u7684\u8f6e\u5ed3\uff0c\u4ece\u800c\u63d0\u9ad8\u8ba1\u7b97\u673a\u89c6\u89c9\u7cfb\u7edf\u7684\u51c6\u786e\u6027\u548c\u6548\u7387\u3002\u6b64\u5916\uff0cOpenCV FindContours\u8fd8\u53ef\u4ee5\u7528\u4e8e\u56fe\u50cf\u5206\u5272\u3001\u56fe\u50cf\u5206\u7c7b\u3001\u56fe\u50cf\u68c0\u7d22\u7b49\u8ba1\u7b97\u673a\u89c6\u89c9\u4efb\u52a1\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  OpenCV FindContours\u662f\u4e00\u79cd\u91cd\u8981\u7684\u8ba1\u7b97\u673a\u89c6\u89c9\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u8ba1\u7b97\u673a\u5feb\u901f\u8bc6\u522b\u548c\u8ddf\u8e2a\u7269\u4f53\u7684\u8f6e\u5ed3\uff0c\u4ece\u800c\u63d0\u9ad8\u8ba1\u7b97\u673a\u89c6\u89c9\u7cfb\u7edf\u7684\u51c6\u786e\u6027\u548c\u6548\u7387\u3002<\/strong>\u5b83\u4f7f\u7528Canny\u8fb9\u7f18\u68c0\u6d4b\u7b97\u6cd5\u6765\u68c0\u6d4b\u56fe\u50cf\u4e2d\u7684\u8f6e\u5ed3\uff0c\u5e76\u53ef\u7528\u4e8e\u8bb8\u591a\u4e0d\u540c\u7684\u8ba1\u7b97\u673a\u89c6\u89c9\u7cfb\u7edf\uff0c\u5982\u673a\u5668\u89c6\u89c9\u3001\u81ea\u52a8\u9a7e\u9a76\u7b49\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

OpenCVFindContours\u662f\u8ba1\u7b97\u673a\u89c6\u89c9\u6280\u672f\u4e2d\u4e00\u79cd\u91cd\u8981\u7684\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u8ba1\u7b97\u673a\u5feb\u901f\u8bc6\u522b\u548c\u8ddf\u8e2a\u7269\u4f53\u7684\u8f6e\u5ed3\uff0c\u4ece\u800c\u63d0\u9ad8\u8ba1\u7b97\u673a\u89c6\u89c9\u7cfb\u7edf\u7684\u51c6\u786e\u6027\u548c\u6548\u7387\u3002\u672c\u6587\u5c06\u4ecb\u7ecdOpen<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-47954","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/47954"}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=47954"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/47954\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=47954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=47954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=47954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}