4

python图像处理(轮廓提取)_python图像轮廓提取_嵌入式-老费的博客-CSDN博客

 1 year ago
source link: https://feixiaoxing.blog.csdn.net/article/details/128808703
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

python图像处理(轮廓提取)

嵌入式-老费 于 2023-01-30 21:17:41 发布 261

【 声明:版权所有,欢迎转载,请勿用于商业用途。 联系信箱:feixiaoxing @163.com】

        对于fpga来说,大部分轮廓提取算法都不是很适合在fpga上面完成。比较适合复杂算法运行的还是cpu。但是对一个项目来说,轮廓提取却是图像处理很重要的一个环节。提取了轮廓,意味着图像得到了很好的分割,对进一步的识别和判断都是有好处的。

        以lena图像为例,一般轮廓提取是这个样子的,

b3977d4985da4ece8d6693463db96b33.png

         当然,上面的图像是严格按照模块外围进行搜索的,我们也可以标注对应的长方形轮廓,

022947ac5fa94356a22b225d9f6670e5.png

1、边缘提取

        目前边缘提取用到的方法主要还是opencv里面提到的cv2.findContours这个方法。如果要对contours里面的每一个外围进行显示的话,调用cv2.drawContours即可。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK