Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"shapes_and_colors.png" -- this is a string, a filename, not an image ;)

use this:

cv2.drawContours(im, contours, -1, (0,255,0), 3)
cv2.imshow("shapes_and_colors", im)
cv2.waitKey()