Local Contrast Enhancement for Digit Recognition with cv2 / pytesseract
问题 I want to use pytesseract to read digits from images. The images look as follows: The digits are dotted and in order to be able to use pytesseract, I need black connected digits on a white background . To do so, I thought about using erode and dilate as preprocessing techniques. As you can see, the images are similar, yet quite different in certain aspects. For example, the dots in the first image are darker than the background, while the dots in the second are whiter. That means, in the