MacOS support only?

43 views
Skip to first unread message

Martin Waller

unread,
Nov 18, 2021, 9:37:58 AM11/18/21
to tesseract-ocr
Hi,

I've recently posed a question on the GitHub forum:


It concerns a tif image with a white background being turned into a PDF with a black background. I supplied the tif in question and was told that it shows up black on MacOS and the case closed seemingly without any attempt to try it on a PC.

Is Tesseract support limited to the MacOS platform?

Martin

Zdenko Podobny

unread,
Nov 19, 2021, 2:56:32 AM11/19/21
to tesser...@googlegroups.com
No, tesseract has support for o lot of platforms including Windows, Linux, and Mac.
IMO the "problem" is in your tiff file. Tesseract uses leptonica for handling images, so the best place is to ask at  https://github.com/DanBloomberg/leptonica/issues why there is inverted output (or why some tools on Windows are interpreting it as white while other tools (including tesseract on Windows) on Mac as black.

Zdenko


št 18. 11. 2021 o 15:37 Martin Waller <ocga...@gmail.com> napísal(a):
--
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-oc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/34ffe09b-0638-4b48-92ae-8e646d1a82cfn%40googlegroups.com.

Ger Hobbelt

unread,
Nov 19, 2021, 3:11:46 AM11/19/21
to ocga...@gmail.com, tesseract-ocr
(quick reply without having looked at your file)

chances are, when different applications render an image with different backgrounds, that the image is encoded as transparent.
Use imagemagick or other tools to postprocess your image to ensure any alpha channel (transparency) is removed before feeding it to tesseract.


--

Martin Waller

unread,
Nov 19, 2021, 10:41:45 AM11/19/21
to tesseract-ocr
Hi Guys,

Many thanks for the replies. Digging around I've found instances of the image showing as white, showing as white with a transparent border top and left, and as black! There is something odd about the image!

Martin

Reply all
Reply to author
Forward
0 new messages