Determine if Contour is symmetric OpenCV

I computed the contours from a binary image in OpenCV with matching bounding rotating rectangles as well as minimal ellipses to find out the shape of the contours. However, I would like to know what if the shape is symmetrical even on one axis.

So, is it possible to calculate if the contour is symmetrical? (although not necessarily 100% symmetrical)

The outline of the sample looks like this:

Outline example enter image description here enter image description here

+3


source to share





All Articles