I would like to create a ROI mask of polygons produced from blob.min_corners(). I can currently draw these polygons using img.draw_edges() but I also want to fill the areas inside these polygons. Unlike the other drawing functions, img.draw_edges(…, fill=True) doesn’t fill the area formed by the edges but it does something else. I want to do this because I want to be able to extract the pixels inside these polygons by subtracting the mask from the image frame. Could you assist me in how to do this?
Thanks in advance