How I can use cv2.ellipse?
Make sure all the ellipse parameters are int otherwise it raises "TypeError: ellipse() takes at most 5 arguments (10 given)". Had the same problem and casting the parameters to int, fixed it.
Please note that in Python, you should round the number first and then use int(), since int function will cut the number:
x = 2.7 , int(x)  will be 2 not 3
OpenCV2 for python have 2 function

[Function 1]

Python: cv2.ellipse(img, center, axes, angle, startAngle, endAngle, color[, thickness[, lineType[, shift]]]) → None

[Function 2]

Python: cv2.ellipse(img, box, color[, thickness[, lineType]]) → None


I want to use [Function 1]
But when I use this Code

cv2.ellipse(ResultImage, Circle, Size, Angle, 0, 360, Color, 2, cv2.CV_AA, 0)

It raise

TypeError: ellipse() takes at most 5 arguments (10 given)


Could you help me?