Restric the angle of fitEllipse?
I want to use the fitEllipse to detect the orientation of the objects. the rotation of the objects would be restricted in some specific angle,for example, 0~45 degree. I hope I can make the fitEllipse function use only the Ellipse with 0~45 degrees angle to fit the objects.
thanks for any idea.
Hello, actually I am doing the orientation of a bottle and using fitEllipse for this... Could you please explain me what you mean with restrict the angle?... Perhaps I could help you :)
hi, it seems that fitEllipse automatically rotate the ellipse to fit the smallest area of the contour, I would hope the ellipse not to rotate to some angle, because the object in the video in which I want to analyze is somewhat fixed and can just move very little.