In OpenCV 3, is there a way to extract the character "i" as one contour?
This is the image I am working with:
For the character "i" it is recognised as two contours (the dot and the bottom part). However, if I apply
Try to apply a 'blur' and 'closing' on the image. It should connect the
dot in the
blur = cv2.medianBlur(inputImage,7) # erosion kernel = np.ones((11,3),np.uint8) #kernel = cv2.getStructuringElement(cv2.MORPH_CROSS,(10,3)) #erosionKernel = np.ones((3,3), np.uint8) erosionKernel = cv2.getStructuringElement(cv2.MORPH_CROSS,(10,3)) erosion = cv2.erode(inputImage,erosionKernel,iterations = 1) closing = cv2.morphologyEx(blur, cv2.MORPH_CLOSE, kernel)