python库找到图像轮廓 [英] python library to find outline of image
本文介绍了python库找到图像轮廓的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Python和PyQt4。我正在寻找一个可以找到图像轮廓路径(位图)的库。 轮廓路径是指一个多边形,它将图像中间的填充(非透明)像素与周围的透明像素分开。
I am working with Python and PyQt4. I am looking a library with which I can find the outline path of an image (bitmap). With "outline path" I mean a polygon, which separates filled (non-transparent) pixels in the middle of the image from transparent pixels surrounding them.
我找不到任何通过谷歌,这让我想知道我是否使用正确的搜索条件。
I can not find anything via google, which kind of makes me wonder if I am using the correct search terms.
谢谢!
推荐答案
OpenCV有一个名为 FindContours的功能做我想做的事。
OpenCV has a function called FindContours which does what I want.
这篇关于python库找到图像轮廓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文