*script.py* cv2.imwrite(filename, imgOP) text = pytesseract.image_to_string(Image.open(filename))
print(text) Within the files that I have attached, for Output1.png while using pytesseract I get the following in the console *PGKQKf* Instead of getting *PGKQKT* And as for the the second image - Output2.png there is no output in the console however the output should be *KEEXZ1* All these images have been processed using medianBlur filter and thresholding to remove noise and lines however sometimes thick lines often do stay hence such an output is seen. -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscr...@googlegroups.com. To post to this group, send email to tesseract-ocr@googlegroups.com. Visit this group at https://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/fb0e97c0-ae89-4c0b-bfe2-c9e8b1ae4d6b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.