Draw smallest polygon around contours
Question:
I’m trying to draw the smallest polygon around a collection of contous. I’m able to draw the smallest rectangle around them using numpy
but I’m unable to come up with an algorithm for the smallest polygon. Can anyone advise?
Answers:
Try using the convex hull in opencv:
https://docs.opencv.org/4.1.0/d5/d45/tutorial_py_contours_more_functions.html
I’m trying to draw the smallest polygon around a collection of contous. I’m able to draw the smallest rectangle around them using numpy
but I’m unable to come up with an algorithm for the smallest polygon. Can anyone advise?
Try using the convex hull in opencv:
https://docs.opencv.org/4.1.0/d5/d45/tutorial_py_contours_more_functions.html