Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

use a seperate bgr "drawing" image to visualize the colored contours:

draw_img = cv2.cvtColor(grey, cv2.COLOR_GRAY2BGR)
...
    cv2.drawContours(draw_img, contour, -1, (0, 255, 0), 3) 
...
cv2.imwrite("Frame.jpg", draw_img)