Tesseract是否需要库来检测PNG文件?

Sul*_*man 1 c# ocr png tesseract leptonica

我正在运行Tesseract 2.04来读取PNG文件,但我收到此错误: -

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
Run Code Online (Sandbox Code Playgroud)

我到处搜索并尝试了几件事,但找不到根本原因.有些页面提示安装一些Leptonica库,但没有具体说明.似乎每个人的Tesseract版本都可以默认读取PNG文件.我能错过什么?

谢谢!

ngu*_*enq 5

Tesseract 2.04仅接受TIFF格式.它太老了,顺便说一下.试试3.0x,它使用Leptonica来读取其他图像格式,包括PNG.