Why Does Cv2.fitellipse Considers Contours As Side Of Ellipse?
I am encountering a weird problem with cv2.fitEllipse. When I try to get this ellipse of this form, that can be defined (sorry for the long list of definition) as: import numpy a
Solution 1:
fitEllipse() would work much better if your shape looked like an ellipse.
Your shape is very noisy and it is difficult to find an ellipse that fits it properly. Actually, both ellipses that the algorithm found pass near the points of your shape and both may be good approximations.
You should preprocess your shape to make it look more like an ellipse. I would try using cv2.convexHull() before fitEllipse()
Post a Comment for "Why Does Cv2.fitellipse Considers Contours As Side Of Ellipse?"