Вопрос

I'm running Tesseract 2.04 to read a PNG file but I'm getting this error:-

Tesseract Open Source OCR Engine
name_to_image_type:Error:Unrecognized image type:png.png
IMAGE::read_header:Error:Can't read this image type:png.png
Tessedit:Error:Read of file failed:png.png
Signal_exit 31 ABORT. LocCode: 3  AbortCode: 3

I've searched everywhere and tried several things, but can't find the root cause. Some pages hint at installing some Leptonica library, but nothing specific. It seems everyone's version of Tesseract can read PNG files by default. What could I be missing?

Thanks!

Это было полезно?

Решение

Tesseract 2.04 accepts TIFF format only. It's too old, btw. Try 3.0x, which uses Leptonica to read additional image formats, including PNG.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top