I am not sure what version of tesseract you have installed, but current
version (build from source) produce "K" as output for several psm (6,7,8,
10)... e.g.

tesseract unnamed.png - --psm 6
Warning: Invalid resolution 0 dpi. Using 70 instead.
K

So first check tesseract version

Zdenko


po 28. 1. 2019 o 8:50 崇賢陸 <[email protected]> napísal(a):

> I've set the psm to 10 and removed the alpha channel. However, I still
> couldn't get the following image (300 dpi) recognized as 'K'.
>
> There's no output from the following command:
> print(pytesseract.image_to_string(Image.open(args.input), lang='eng',
> config='-variables load_system_dawg off false -load_freq_dawg false -psm
> 10'))
>
> Please help! Any hints will be greatly appreciated!!
>
> [image: character_0.png]
>
>
>
>
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> 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/e64e5b63-d21e-4d17-9149-3357e7e2c79d%40googlegroups.com
> <https://groups.google.com/d/msgid/tesseract-ocr/e64e5b63-d21e-4d17-9149-3357e7e2c79d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CAJbzG8wtZAgOdoUXez7Sv%2BcKyu8NstSemeK4O5so6bprvnjxuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to