Hi,
I have this captchas I wan’t to solve using pytesseract and opencv:
I get:
8al
This is my code:
import cv2 as cv
import pytesseract
img = cv.imread('resize.png')
gray = cv.cvtColor(img, cv.COLOR_RGB2GRAY)
_, th = cv.threshold(gray, 115, 255, cv.THRESH_BINARY)
print(pytesseract.image_to_string(th, lang="eng", config='--psm 10 -c tessedit_char_whitelist=0123456789abcdefghijklmnopqrstuvwxyz'))
Is there anything I could do to better the output?