Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to draw ellipse with first python function ?

Dear all,

I am trying to draw an ellipse with Opencv/Python, version 2.4.6.1. According to the doc, there are two functions : Python: cv2.ellipse(img, center, axes, angle, startAngle, endAngle, color[, thickness[, lineType[, shift]]]) → None Python: cv2.ellipse(img, box, color[, thickness[, lineType]]) → None

I use the first as follow : cv2.ellipse(img, (113, 155.6), (23.4, 15.2), 0.0, 0.0, 360.0, (255, 255, 255), -1); but get the following error message TypeError: ellipse() takes at most 5 arguments (8 given)

Any idea on how to solve this ?

How to draw ellipse with first python function ?

Dear all,

I am trying to draw an ellipse with Opencv/Python, version 2.4.6.1. According to the doc, there are two functions : :

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

None

I use the first as follow : :

cv2.ellipse(img, (113, 155.6), (23.4, 15.2), 0.0, 0.0, 360.0, (255, 255, 255), -1);

but get the following error message message

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

given)

Any idea on how to solve this ?