title: Python OpenCV Ellipse - takes at most 5 arguments (8 given)
body: <p>I'm at a total loss here on why I can't draw an ellipse with OpenCV after looking at documentation.</p>
  
  <p>First I'm using CV 2.4.9</p>
  
  <pre><code>&gt;&gt;&gt; cv2.__version__
  '2.4.9'
  &gt;&gt;&gt;
  </code></pre>
  
  <p>Second, I'm attempting to use the following:</p>
  
  <pre><code>&gt;&gt;&gt; help(cv2.ellipse)
  Help on built-in function ellipse in module cv2:
  
  ellipse(...)
      ellipse(img, center, axes, angle, startAngle, endAngle, color[, thickness[,
  lineType[, shift]]]) -&gt; None  or  ellipse(img, box, color[, thickness[, lineType
  ]]) -&gt; None
  </code></pre>
  
  <p>My ellipse looks like the following:</p>
  
  <pre><code>cx,cy = 201,113
  ax1,ax2 =  37,27
  angle = -108
  center = (cx,cy)
  axes = (ax1,ax2)
  
  cv2.ellipse(frame, center, axes, angle, 0 , 360, (255,0,0), 2)
  </code></pre>
  
  <p>However, running that gives me the following</p>
  
  <pre><code>&gt;&gt;&gt; cv2.ellipse(frame,center,axes,angle,0,360, (255,0,0), 2)
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  TypeError: ellipse() takes at most 5 arguments (8 given)
  &gt;&gt;&gt;
  </code></pre>
  
  <p>Help?</p>
  
  <hr>
  
  <p>Edit:<br>
  I wanted to use the following as a frame</p>
  
  <pre><code>cap = cv2.VideoCapture(fileLoc)
  frame = cap.read()
  </code></pre>
  
  <p>Apparently it can be fixed by using the following</p>
  
  <pre><code>pil_im = Image.fromarray(frame)
  cv2.ellipse(frame,center,axes,angle,0,360,(255,0,0), 2)
  pil_im = Image.fromarray(raw_image)
  pil_im.save('C:/Development/export/foo.jpg', 'JPEG') 
  </code></pre>