Hi, first invert the image. $ tesseract -l eng test2.png - FUTLutz
FUTSalkay FUTLovazin FUTRaum Also upscale the image to twice the size to get text height about 30/50 pixels, this fixes the wrong letter. Lorenzo Il giorno dom 31 mag 2020 alle ore 21:19 Dtractus <dtrac...@gmail.com> ha scritto: > I think pytesseract cant read my image because of close letters. > > > img = Image.open('test2.png') > text = pytesseract.image_to_string(img) > print(text) > with open('file.txt', mode = 'w') as f: > f.write(text)) > > > > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/2247dec4-8c66-4ecd-afc9-c4fea8bd86fb%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/2247dec4-8c66-4ecd-afc9-c4fea8bd86fb%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAMgOLLzd8ndkJfbdbuVX0xy7p5WyoKD5zaOYkGXX%2Bo_3F%2BXyPA%40mail.gmail.com.