I like to draw filled contours on an image. My code is as follows.
def createmask(xmlfile, org_w, org_h, imname): mask = np.zeros((org_h, org_w, 3), np.ui