Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

To draw contours, you need not do like this. Once you got the contours from cv2.findContours() function, you can directly pass that contours to cv2.drawContours() function.

ie the data to be sent into cv2.drawContours() function is a list. cv2.findContours() already returns a list.

You can find more details on contours here : http://opencvpython.blogspot.com/2012/06/hi-this-article-is-tutorial-which-try.html