Could be a color performance issue. Text also has shadows.Tesseract does
better on black on white. Try thresholding the image/ detect white color
text make it black and then make the rest background white. Make sure
you’re using the correct psm mode.

On Thu, Oct 30, 2025 at 1:26 PM Michael Schuh <[email protected]> wrote:

> I am trying to extract the date and time from
>
> [image: time.png]
>
> I have successfully use tesseract to extract text from other images.
> tesseract does not find any text in the above image,
>
>    michael@argon:~/michael/trunk/src/tides$ tesseract time.png out
>    Estimating resolution as 142
>
>    michael@argon:~/michael/trunk/src/tides$ cat out.txt
>
>    michael@argon:~/michael/trunk/src/tides$ ls -l out.txt
>    -rw-r----- 1 michael michael 0 Oct 30 08:58 out.txt
>
> Any help you can give me would be appreciated.  I attached the time.png
> file I used above.
>
> Thanks,
>    Michael
>
> --
> 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 view this discussion visit
> https://groups.google.com/d/msgid/tesseract-ocr/77ac0d2b-7796-4f17-8bc6-0e70a9653adan%40googlegroups.com
> <https://groups.google.com/d/msgid/tesseract-ocr/77ac0d2b-7796-4f17-8bc6-0e70a9653adan%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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/tesseract-ocr/CADEFw15Ywvhp8fv_7VrL0knQ-2PgOv04oCg9mOjJsN7xOH1POg%40mail.gmail.com.

Reply via email to