简体   繁体   中英

How to make a Global Contour around White Pixels - Python Open CV?

In the picture, you can see that Red Contours have been drawn around individual White Pixels. Is there any method I can draw a Global Contour across all the Pixels (White Pixels)?
图片

I think you are looking for the convex hull of the points.

This is an opencv tutorial on how to draw the convex hull of groups of points.

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