문제

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