libpng error when training with tesseract4

42 views
Skip to first unread message

kotom...@gmail.com

unread,
Feb 21, 2019, 5:41:53 AM2/21/19
to tesseract-ocr
hi, I have a problem.
I am training tesseract4.0 from scratch with my own image.  
when I training with yaru.game.exp0.lstmf with other 2 lstmf files, no error happens.

However, when I try to add more files for training, erro happens below. It seems like a file reading error related with libpng.

But I am so confused that File yaru.game.exp0.lstmf worked well before, why it happens when I train with more data? 
And how can I solve this problem? 

File yaru.game.exp0.lstmf page 1448 (Perfect):
libpng error: invalid distance too far back
Error in pixReadMemPng: internal png error
Error in pixReadMem: png: no pix returned
src_pix != nullptr:Error:Assert failed:in file ../../../src/ccstruct/imagedata.cpp, line 232
sh: 1: kill: Segmentation fault (core dumped)

Zdenko Podobny

unread,
Feb 21, 2019, 5:43:52 AM2/21/19
to tesser...@googlegroups.com
check if your leptonica is compiled without pnd support or if your files are really png.

Dňa št 21. 2. 2019, 11:41 <kotom...@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 post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/73c3d399-ccbf-4a39-a074-b72acf7511ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Trong

unread,
Apr 6, 2019, 4:28:05 AM4/6/19
to tesseract-ocr
Hi Koto,
How did you resolve? I have the same issue :(
Thanks

Vào 17:41:53 UTC+7 Thứ Năm, ngày 21 tháng 2 năm 2019, koto...@gmail.com đã viết:

Zdenko Podobny

unread,
Apr 6, 2019, 1:18:58 PM4/6/19
to tesser...@googlegroups.com
Did you check what I asked before?
If yes, then provide command you used and input data for it.

Zdenko


so 6. 4. 2019 o 10:28 Trong <trongn...@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 post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
Reply all
Reply to author
Forward
0 new messages