OpenCV, cv2.approxPolyDP() Draws double lines on closed contour
问题 I want to create some polygons out of this mask: image 1 - Mask So i created these contours with openCV findcontours(): image 2 - Contours When creating polygons I get these polygons: image 3 - Polygons As you can see some polygons are drawn using double lines. How do I prevent this? See my code: import glob from PIL import Image import cv2 import numpy as np # Let's load image = cv2.imread(path + "BigOneEnhanced.tif") # Grayscale gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) # Find Canny