So I've a captcha image that I'm trying to decode using pytesseract. I've done all the preprocessing using opencv then my current image is -
Now when I'm using pytesseract it is giving me an output:
print(pytesseract.image_to_string(image, config = '--psm 7'))
gTKYWS5
Is there a way to limit the no off characters detected as I know all my images would have 6 characters.