I have an input image and would like to draw ellipses on all contours that are found. I'm using python-opencv and getting the following error. Can anyone help me with this? I do know to draw the ellipse, but unsure about how to draw over every detected objects in a image. I am new to this area, hence please excuse me for silly question. 

```
OpenCV Error: Incorrect size of input array (There should be at least 5 points to fit the ellipse) in cv::fitEllipse, file 
C:\bld\opencv_1498171314629\work\opencv-3.2.0\modules\imgproc\src\shapedescr.cpp, line 358
Traceback (most recent call last):
File "D:/project/test.py", line 41, in <module>
ellipse = cv2.fitEllipse(contours[0])
cv2.error: C:\bld\opencv_1498171314629\work\opencv- 
3.2.0\modules\imgproc\src\shapedescr.cpp:358: error: (-201) There should be 
at least 5 points to fit the ellipse in function cv::fitEllipse

```