Text2image doens't create font list

193 views
Skip to first unread message

Zohreh Khosrobeygi

unread,
Sep 25, 2018, 7:50:20 AM9/25/18
to tesseract-ocr
Hi,
I use
 tesseract 4.0.0-beta.4
 leptonica-1.74.4
  libjpeg 8d (libjpeg-turbo 1.4.2) : libpng 1.2.54 : libtiff 4.0.6 : zlib 1.2.8

 Found AVX2
 Found AVX
 Found SSE
But when I run this command:
 text2image --find_fonts \
--fonts_dir /usr/share/fonts \
--text ./langdata/fas/fas.training_text \
--min_coverage 1  \
--outputbase ./langdata/fas/fas \
|& grep raw | sed -e 's/ :.*/" \\/g'  | sed -e 's/^/  "/' >./langdata/fas/fas.fontslist.txt
fas.fontslist.txt is empty. I have some fonts on my linux. 

 

Shree Devi Kumar

unread,
Sep 25, 2018, 8:11:26 AM9/25/18
to tesser...@googlegroups.com
Are the fonts in  /usr/share/fonts ?

Reduce the 
--min_coverage 1

to .99 and see if some fonts are found.



--
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/af4239bf-2cad-405f-ba22-540b65dd7596%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shree Devi Kumar

unread,
Sep 25, 2018, 8:12:32 AM9/25/18
to tesser...@googlegroups.com
Also check that your langdata path matches your environment.

Khosrobeigy.zohreh

unread,
Sep 25, 2018, 8:39:30 AM9/25/18
to tesser...@googlegroups.com
Yes, actually the main problem is this error:
/usr/local/bin/text2image: symbol lookup error: /usr/local/bin/text2image: undefined symbol: _Z16tprintf_internalPKcz
I have this error. How can I  solve this error?

You received this message because you are subscribed to a topic in the Google Groups "tesseract-ocr" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tesseract-ocr/_N-t_f4xAbY/unsubscribe.
To unsubscribe from this group and all its topics, 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.

For more options, visit https://groups.google.com/d/optout.


--
Zohreh Khosrobeygi
University of Tehran, 2016

Shree Devi Kumar

unread,
Sep 25, 2018, 8:49:59 AM9/25/18
to tesser...@googlegroups.com
What's the output for?

which text2image

text2image -v




Khosrobeigy.zohreh

unread,
Sep 25, 2018, 8:52:24 AM9/25/18
to tesser...@googlegroups.com
zohreh@zohreh-TP301UJ:~$ text2image -v
text2image: symbol lookup error: text2image: undefined symbol: _Z16tprintf_internalPKcz
 It shows same error.


For more options, visit https://groups.google.com/d/optout.

Shree Devi Kumar

unread,
Sep 25, 2018, 8:55:40 AM9/25/18
to tesser...@googlegroups.com
Your installation of tesseract and training tools has some problem.

How did you build or install tesseract?

Khosrobeigy.zohreh

unread,
Sep 25, 2018, 9:03:28 AM9/25/18
to tesser...@googlegroups.com
Today, I installed new version of tesseract. Iused this line:
cd leptonica 17.4
./configure
sudo make
sudo make install
sudo apt-get install g++ (sudo -f install)
sudo apt-get install autoconf automake libtool
sudo apt-get install autoconf-archive
sudo apt-get install pkg-config
sudo apt-get install libpng-dev
sudo apt-get install libjpeg8-dev
sudo apt-get install libtiff5-dev
sudo apt-get install zlib1g-dev
****tools for train
sudo apt-get install libicu-dev
sudo apt-get install libpango1.0-dev
sudo apt-get install libcairo2-dev

****install tesseract
./autogen.sh
./configure
sudo make
sudo make install
sudo ldconfig
sudo make training
sudo make training-install



For more options, visit https://groups.google.com/d/optout.

Zdenko Podobny

unread,
Sep 25, 2018, 9:12:43 AM9/25/18
to tesser...@googlegroups.com
I guess you have another installation of tesseract present in your system.
Please uninstall old version/other tesseract before installing new version...

Zdenko


ut 25. 9. 2018 o 15:03 Khosrobeigy.zohreh <beigy....@gmail.com> napísal(a):

Khosrobeigy.zohreh

unread,
Sep 25, 2018, 9:17:05 AM9/25/18
to tesser...@googlegroups.com
Could please tell me how i can remove all tesseract and I after that i install again.


For more options, visit https://groups.google.com/d/optout.

Khosrobeigy.zohreh

unread,
Sep 25, 2018, 9:39:44 AM9/25/18
to tesser...@googlegroups.com
I did it and I will install again
Reply all
Reply to author
Forward
0 new messages