Tesseract use cmake & Visual studio2019 build show something error.

59 views
Skip to first unread message

吳明恩

unread,
Nov 3, 2020, 3:41:59 AM11/3/20
to tesseract-ocr

Environment
Tesseract Version:
1.tesseract 4.1.1
2.leptonica-1.76.0 (Nov 3 2020, 10:24:30) [MSC v.1927 LIB Release x64]
3.libtiff 4.1.0
Found AVX2
Found AVX
Found FMA
Found SSE
Platform: Windows 10 64-bit

I use tesseract.exe to OCR jpg to show something error, so i wnat do sothing?

Error message & command:
.\tesseract.exe .\Google.jpg eng
Tesseract Open Source OCR Engine v4.1.1 with Leptonica
Error in pixReadStreamPng: function not present
Error in pixReadStream: png: no pix returned
Error in pixRead: pix not read
Error during processing.

456.jpg

Zdenko Podobny

unread,
Nov 3, 2020, 3:50:06 AM11/3/20
to tesser...@googlegroups.com
As you see: you build leptonica without any external image library (like png, jpg, tiff), so
tesseract can read only simple image format like bmp, pgm and ppm

Zdenko


ut 3. 11. 2020 o 9:41 吳明恩 <smar...@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/1baced08-737c-42f6-bb7c-db44901a0f29o%40googlegroups.com.

吳明恩

unread,
Nov 3, 2020, 5:57:22 AM11/3/20
to tesseract-ocr
Ok, I read bmp image to get result and show something errors, but i can got image string.  
Error message & command :
 .\tesseract.exe .\test.bmp eng
Tesseract Open Source OCR Engine v4.1.1 with Leptonica
Warning: Invalid resolution 0 dpi. Using 70 instead.
Estimating resolution as 284
Error in pixWriteMemPng: function not present 
error.png



And, I have a question how can i do build leptonica with  any external image library to can read jpg image?


吳明恩於 2020年11月3日星期二 UTC+8下午4時41分59秒寫道:

Zdenko Podobny

unread,
Nov 3, 2020, 6:16:31 AM11/3/20
to tesser...@googlegroups.com
You can ignore that message. Some internal functions use zlib, png and tiff but have no effect on OCR.

Your question (regarding leptonica and image types) indicates you are not familiar with building sw from source. In such case use tesseract installer from Mannheim University

Zdenko


ut 3. 11. 2020 o 11:57 吳明恩 <smar...@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.
Message has been deleted

吳明恩

unread,
Nov 3, 2020, 9:57:12 PM11/3/20
to tesseract-ocr
Got it, if i use "tesseract installer from Mannheim University"  to can build to  read image for c++, i can't see library & h  file & c file for install script with teessract-ocr. 

吳明恩於 2020年11月3日星期二 UTC+8下午4時41分59秒寫道:
Reply all
Reply to author
Forward
0 new messages