简体   繁体   中英

python library to find outline of image

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.

Thanks!

There are similar questions here on Stack Overflow which may be of use... ? Essentially you're trying to do edge detection ; try searching for that..

OpenCV has a function called FindContours which does what I want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM