Tesseract: Tesseract: Non existing Font type error

Created on 16 Feb 2019  ·  2Comments  ·  Source: tesseract-ocr/tesseract

Environment

  • Tesseract Version:4.0.0-324-gb67f
  • Platform: Ubuntu16.04 64-bit

Current Behavior:

I am running the tutorial (ttps://github.com/tesseract-ocr/tesseract)
I am following these steps:

  1. git pull https://github.com/tesseract-ocr/tesseract.git
  2. cd tesseract/
  3. ./autogen.sh
  4. ./configure
  5. make
  6. sudo make install
  7. make training
  8. sudo make training-install

After this I am using the training script:
src/training/tesstrain.sh --fonts_dir /usr/share/fonts --lang eng --linedata_only \
--noextract_font_properties --langdata_dir ../langdata \
--tessdata_dir ./tessdata --output_dir ~/tesstutorial/engtrain

I am observing a error as Follows:

=== Starting training for language 'eng'
[Sat Feb 16 13:16:40 IST 2019] /usr/local/bin/text2image --fonts_dir=/usr/share/fonts --font=Arial Bold --outputbase=/tmp/font_tmp.pz0le7c27X/sample_text.txt --text=/tmp/font_tmp.pz0le7c27X/sample_text.txt --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X
Rendered page 0 to file /tmp/font_tmp.pz0le7c27X/sample_text.txt.tif

=== Phase I: Generating training images ===
Rendering using Arial Bold
[Sat Feb 16 13:16:57 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Arial_Bold.exp0 --max_pages=0 --font=Arial Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Arial_Bold.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Arial_Bold.exp0.tif
Rendering using Arial Bold Italic
[Sat Feb 16 13:16:58 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Arial_Bold_Italic.exp0 --max_pages=0 --font=Arial Bold Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Arial_Bold_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Arial_Bold_Italic.exp0.tif
Rendering using Arial Italic
[Sat Feb 16 13:16:59 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Arial_Italic.exp0 --max_pages=0 --font=Arial Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Arial_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Arial_Italic.exp0.tif
Rendering using Arial
[Sat Feb 16 13:17:00 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Arial.exp0 --max_pages=0 --font=Arial --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Arial.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Arial.exp0.tif
Rendering using Courier New Bold
[Sat Feb 16 13:17:01 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Courier_New_Bold.exp0 --max_pages=0 --font=Courier New Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Courier_New_Bold.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Courier_New_Bold.exp0.tif
Rendering using Courier New Bold Italic
[Sat Feb 16 13:17:02 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Courier_New_Bold_Italic.exp0 --max_pages=0 --font=Courier New Bold Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Courier_New_Bold_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Courier_New_Bold_Italic.exp0.tif
Rendering using Courier New Italic
[Sat Feb 16 13:17:03 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Courier_New_Italic.exp0 --max_pages=0 --font=Courier New Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Courier_New_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Courier_New_Italic.exp0.tif
Rendering using Courier New
[Sat Feb 16 13:17:04 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Courier_New.exp0 --max_pages=0 --font=Courier New --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Courier_New.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Courier_New.exp0.tif
Rendering using Times New Roman, Bold
[Sat Feb 16 13:17:06 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold.exp0 --max_pages=0 --font=Times New Roman, Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold.exp0.tif
Rendering using Times New Roman, Bold Italic
[Sat Feb 16 13:17:07 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold_Italic.exp0 --max_pages=0 --font=Times New Roman, Bold Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold_Italic.exp0.tif
Rendering using Times New Roman, Italic
[Sat Feb 16 13:17:08 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Italic.exp0 --max_pages=0 --font=Times New Roman, Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Italic.exp0.tif
Rendering using Times New Roman,
[Sat Feb 16 13:17:09 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Times_New_Roman.exp0 --max_pages=0 --font=Times New Roman, --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Times_New_Roman.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Times_New_Roman.exp0.tif
Rendering using Georgia Bold
[Sat Feb 16 13:17:10 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Georgia_Bold.exp0 --max_pages=0 --font=Georgia Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Georgia_Bold.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Georgia_Bold.exp0.tif
Rendering using Georgia Italic
[Sat Feb 16 13:17:11 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Georgia_Italic.exp0 --max_pages=0 --font=Georgia Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Georgia_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Georgia_Italic.exp0.tif
Rendering using Georgia
[Sat Feb 16 13:17:12 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Georgia.exp0 --max_pages=0 --font=Georgia --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Georgia.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Georgia.exp0.tif
Rendering using Georgia Bold Italic
[Sat Feb 16 13:17:13 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Georgia_Bold_Italic.exp0 --max_pages=0 --font=Georgia Bold Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Georgia_Bold_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Georgia_Bold_Italic.exp0.tif
Rendering using Trebuchet MS Bold
[Sat Feb 16 13:17:15 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold.exp0 --max_pages=0 --font=Trebuchet MS Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold.exp0.tif
Rendering using Trebuchet MS Bold Italic
[Sat Feb 16 13:17:16 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold_Italic.exp0 --max_pages=0 --font=Trebuchet MS Bold Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold_Italic.exp0.tif
Rendering using Trebuchet MS Italic
[Sat Feb 16 13:17:17 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Italic.exp0 --max_pages=0 --font=Trebuchet MS Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Italic.exp0.tif
Rendering using Trebuchet MS
[Sat Feb 16 13:17:18 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS.exp0 --max_pages=0 --font=Trebuchet MS --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Trebuchet_MS.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Trebuchet_MS.exp0.tif
Rendering using Verdana Bold
[Sat Feb 16 13:17:19 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Verdana_Bold.exp0 --max_pages=0 --font=Verdana Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Verdana_Bold.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Verdana_Bold.exp0.tif
Rendering using Verdana Italic
[Sat Feb 16 13:17:20 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Verdana_Italic.exp0 --max_pages=0 --font=Verdana Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Verdana_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Verdana_Italic.exp0.tif
Rendering using Verdana
[Sat Feb 16 13:17:21 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Verdana.exp0 --max_pages=0 --font=Verdana --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Verdana.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Verdana.exp0.tif
Rendering using Verdana Bold Italic
[Sat Feb 16 13:17:22 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Verdana_Bold_Italic.exp0 --max_pages=0 --font=Verdana Bold Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Verdana_Bold_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Verdana_Bold_Italic.exp0.tif
Rendering using URW Bookman L Bold
[Sat Feb 16 13:17:24 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold.exp0 --max_pages=0 --font=URW Bookman L Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold.exp0.tif
Rendering using URW Bookman L Italic
[Sat Feb 16 13:17:25 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Italic.exp0 --max_pages=0 --font=URW Bookman L Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Italic.exp0.tif
Rendering using URW Bookman L Bold Italic
[Sat Feb 16 13:17:26 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold_Italic.exp0 --max_pages=0 --font=URW Bookman L Bold Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold_Italic.exp0.tif
Rendering using Century Schoolbook L Bold
[Sat Feb 16 13:17:27 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold.exp0 --max_pages=0 --font=Century Schoolbook L Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold.exp0.tif
Rendering using Century Schoolbook L Italic
[Sat Feb 16 13:17:28 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Italic.exp0 --max_pages=0 --font=Century Schoolbook L Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Italic.exp0.tif
Rendering using Century Schoolbook L Bold Italic
[Sat Feb 16 13:17:29 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold_Italic.exp0 --max_pages=0 --font=Century Schoolbook L Bold Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold_Italic.exp0.tif
Rendering using Century Schoolbook L Medium
[Sat Feb 16 13:17:30 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Medium.exp0 --max_pages=0 --font=Century Schoolbook L Medium --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Medium.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Medium.exp0.tif
Rendering using DejaVu Sans Ultra-Light
[Sat Feb 16 13:17:31 IST 2019] /usr/local/bin/text2image --fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts --strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0 --exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.DejaVu_Sans_Ultra-Light.exp0 --max_pages=0 --font=DejaVu Sans Ultra-Light --text=langdata/eng/eng.training_text
Could not find font named 'DejaVu Sans Ultra-Light'.
Pango suggested font 'FreeMono'.
Please correct --font arg.
ERROR: /tmp/eng-2019-02-16.03c/eng.DejaVu_Sans_Ultra-Light.exp0.box does not exist or is not readable

In order to attempt to resolve this issue I installed DejaVu Sans font (https://github.com/dejavu-fonts/dejavu-fonts). I am not able to resolve this issue because there is no font existent named: " DejaVu Sans Ultra-Light ", where the program is giving error. How do I resolve this error?

Expected Behavior:

Suggested Fix:

Most helpful comment

sudo apt install fonts-dejavu

On Sat, Feb 16, 2019 at 1:38 PM Ajinkya Chandrakant Bobade <
[email protected]> wrote:

Environment

  • Tesseract Version:4.0.0-324-gb67f
  • Platform: Ubuntu16.04 64-bit

Current Behavior:

I am running the tutorial (ttps://github.com/tesseract-ocr/tesseract)
I am following these steps:

  1. git pull https://github.com/tesseract-ocr/tesseract.git
  2. cd tesseract/
  3. ./autogen.sh
  4. ./configure
  5. make
  6. sudo make install
  7. make training
  8. sudo make training-install

After this I am using the training script:
src/training/tesstrain.sh --fonts_dir /usr/share/fonts --lang eng
--linedata_only
--noextract_font_properties --langdata_dir ../langdata
--tessdata_dir ./tessdata --output_dir ~/tesstutorial/engtrain

I am observing a error as Follows:

=== Starting training for language 'eng'
[Sat Feb 16 13:16:40 IST 2019] /usr/local/bin/text2image
--fonts_dir=/usr/share/fonts --font=Arial Bold
--outputbase=/tmp/font_tmp.pz0le7c27X/sample_text.txt
--text=/tmp/font_tmp.pz0le7c27X/sample_text.txt
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X
Rendered page 0 to file /tmp/font_tmp.pz0le7c27X/sample_text.txt.tif

=== Phase I: Generating training images ===
Rendering using Arial Bold
[Sat Feb 16 13:16:57 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Arial_Bold.exp0
--max_pages=0 --font=Arial Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Arial_Bold.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Arial_Bold.exp0.tif
Rendering using Arial Bold Italic
[Sat Feb 16 13:16:58 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Arial_Bold_Italic.exp0
--max_pages=0 --font=Arial Bold Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Arial_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Arial_Bold_Italic.exp0.tif
Rendering using Arial Italic
[Sat Feb 16 13:16:59 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Arial_Italic.exp0
--max_pages=0 --font=Arial Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Arial_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Arial_Italic.exp0.tif
Rendering using Arial
[Sat Feb 16 13:17:00 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Arial.exp0
--max_pages=0 --font=Arial --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Arial.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Arial.exp0.tif
Rendering using Courier New Bold
[Sat Feb 16 13:17:01 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Courier_New_Bold.exp0
--max_pages=0 --font=Courier New Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Courier_New_Bold.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Courier_New_Bold.exp0.tif
Rendering using Courier New Bold Italic
[Sat Feb 16 13:17:02 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Courier_New_Bold_Italic.exp0
--max_pages=0 --font=Courier New Bold Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Courier_New_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Courier_New_Bold_Italic.exp0.tif
Rendering using Courier New Italic
[Sat Feb 16 13:17:03 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Courier_New_Italic.exp0
--max_pages=0 --font=Courier New Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Courier_New_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Courier_New_Italic.exp0.tif
Rendering using Courier New
[Sat Feb 16 13:17:04 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Courier_New.exp0
--max_pages=0 --font=Courier New --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Courier_New.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Courier_New.exp0.tif
Rendering using Times New Roman, Bold
[Sat Feb 16 13:17:06 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold.exp0
--max_pages=0 --font=Times New Roman, Bold
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold.exp0.tif
Rendering using Times New Roman, Bold Italic
[Sat Feb 16 13:17:07 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold_Italic.exp0
--max_pages=0 --font=Times New Roman, Bold Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold_Italic.exp0.tif
Rendering using Times New Roman, Italic
[Sat Feb 16 13:17:08 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Italic.exp0
--max_pages=0 --font=Times New Roman, Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Italic.exp0.tif
Rendering using Times New Roman,
[Sat Feb 16 13:17:09 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Times_New_Roman.exp0
--max_pages=0 --font=Times New Roman, --text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman.exp0.tif
Rendering using Georgia Bold
[Sat Feb 16 13:17:10 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Georgia_Bold.exp0
--max_pages=0 --font=Georgia Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Georgia_Bold.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Georgia_Bold.exp0.tif
Rendering using Georgia Italic
[Sat Feb 16 13:17:11 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Georgia_Italic.exp0
--max_pages=0 --font=Georgia Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Georgia_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Georgia_Italic.exp0.tif
Rendering using Georgia
[Sat Feb 16 13:17:12 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Georgia.exp0
--max_pages=0 --font=Georgia --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Georgia.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Georgia.exp0.tif
Rendering using Georgia Bold Italic
[Sat Feb 16 13:17:13 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Georgia_Bold_Italic.exp0
--max_pages=0 --font=Georgia Bold Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Georgia_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Georgia_Bold_Italic.exp0.tif
Rendering using Trebuchet MS Bold
[Sat Feb 16 13:17:15 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold.exp0
--max_pages=0 --font=Trebuchet MS Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold.exp0.tif
Rendering using Trebuchet MS Bold Italic
[Sat Feb 16 13:17:16 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold_Italic.exp0
--max_pages=0 --font=Trebuchet MS Bold Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold_Italic.exp0.tif
Rendering using Trebuchet MS Italic
[Sat Feb 16 13:17:17 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Italic.exp0
--max_pages=0 --font=Trebuchet MS Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Italic.exp0.tif
Rendering using Trebuchet MS
[Sat Feb 16 13:17:18 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS.exp0
--max_pages=0 --font=Trebuchet MS --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Trebuchet_MS.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Trebuchet_MS.exp0.tif
Rendering using Verdana Bold
[Sat Feb 16 13:17:19 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Verdana_Bold.exp0
--max_pages=0 --font=Verdana Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Verdana_Bold.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Verdana_Bold.exp0.tif
Rendering using Verdana Italic
[Sat Feb 16 13:17:20 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Verdana_Italic.exp0
--max_pages=0 --font=Verdana Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Verdana_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Verdana_Italic.exp0.tif
Rendering using Verdana
[Sat Feb 16 13:17:21 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Verdana.exp0
--max_pages=0 --font=Verdana --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Verdana.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Verdana.exp0.tif
Rendering using Verdana Bold Italic
[Sat Feb 16 13:17:22 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Verdana_Bold_Italic.exp0
--max_pages=0 --font=Verdana Bold Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Verdana_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Verdana_Bold_Italic.exp0.tif
Rendering using URW Bookman L Bold
[Sat Feb 16 13:17:24 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold.exp0
--max_pages=0 --font=URW Bookman L Bold
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold.exp0.tif
Rendering using URW Bookman L Italic
[Sat Feb 16 13:17:25 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Italic.exp0
--max_pages=0 --font=URW Bookman L Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Italic.exp0.tif
Rendering using URW Bookman L Bold Italic
[Sat Feb 16 13:17:26 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold_Italic.exp0
--max_pages=0 --font=URW Bookman L Bold Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold_Italic.exp0.tif
Rendering using Century Schoolbook L Bold
[Sat Feb 16 13:17:27 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold.exp0
--max_pages=0 --font=Century Schoolbook L Bold
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold.exp0.tif
Rendering using Century Schoolbook L Italic
[Sat Feb 16 13:17:28 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Italic.exp0
--max_pages=0 --font=Century Schoolbook L Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Italic.exp0.tif
Rendering using Century Schoolbook L Bold Italic
[Sat Feb 16 13:17:29 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold_Italic.exp0
--max_pages=0 --font=Century Schoolbook L Bold Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold_Italic.exp0.tif
Rendering using Century Schoolbook L Medium
[Sat Feb 16 13:17:30 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Medium.exp0
--max_pages=0 --font=Century Schoolbook L Medium
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Medium.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Medium.exp0.tif
Rendering using DejaVu Sans Ultra-Light
[Sat Feb 16 13:17:31 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.DejaVu_Sans_Ultra-Light.exp0
--max_pages=0 --font=DejaVu Sans Ultra-Light
--text=langdata/eng/eng.training_text
Could not find font named 'DejaVu Sans Ultra-Light'.
Pango suggested font 'FreeMono'.
Please correct --font arg.
ERROR: /tmp/eng-2019-02-16.03c/eng.DejaVu_Sans_Ultra-Light.exp0.box does
not exist or is not readable

In order to attempt to resolve this issue I installed DejaVu Sans font (
https://github.com/dejavu-fonts/dejavu-fonts). I am not able to resolve
this issue because there is no font existent named: " DejaVu Sans
Ultra-Light ", where the program is giving error. How do I resolve this
error?
Expected Behavior: Suggested Fix:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/2250, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AE2_oxpj3joYjkFza_kNwdMYelZhkpIeks5vN7yRgaJpZM4a-2-w
.

--


भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

All 2 comments

sudo apt install fonts-dejavu

On Sat, Feb 16, 2019 at 1:38 PM Ajinkya Chandrakant Bobade <
[email protected]> wrote:

Environment

  • Tesseract Version:4.0.0-324-gb67f
  • Platform: Ubuntu16.04 64-bit

Current Behavior:

I am running the tutorial (ttps://github.com/tesseract-ocr/tesseract)
I am following these steps:

  1. git pull https://github.com/tesseract-ocr/tesseract.git
  2. cd tesseract/
  3. ./autogen.sh
  4. ./configure
  5. make
  6. sudo make install
  7. make training
  8. sudo make training-install

After this I am using the training script:
src/training/tesstrain.sh --fonts_dir /usr/share/fonts --lang eng
--linedata_only
--noextract_font_properties --langdata_dir ../langdata
--tessdata_dir ./tessdata --output_dir ~/tesstutorial/engtrain

I am observing a error as Follows:

=== Starting training for language 'eng'
[Sat Feb 16 13:16:40 IST 2019] /usr/local/bin/text2image
--fonts_dir=/usr/share/fonts --font=Arial Bold
--outputbase=/tmp/font_tmp.pz0le7c27X/sample_text.txt
--text=/tmp/font_tmp.pz0le7c27X/sample_text.txt
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X
Rendered page 0 to file /tmp/font_tmp.pz0le7c27X/sample_text.txt.tif

=== Phase I: Generating training images ===
Rendering using Arial Bold
[Sat Feb 16 13:16:57 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Arial_Bold.exp0
--max_pages=0 --font=Arial Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Arial_Bold.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Arial_Bold.exp0.tif
Rendering using Arial Bold Italic
[Sat Feb 16 13:16:58 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Arial_Bold_Italic.exp0
--max_pages=0 --font=Arial Bold Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Arial_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Arial_Bold_Italic.exp0.tif
Rendering using Arial Italic
[Sat Feb 16 13:16:59 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Arial_Italic.exp0
--max_pages=0 --font=Arial Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Arial_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Arial_Italic.exp0.tif
Rendering using Arial
[Sat Feb 16 13:17:00 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Arial.exp0
--max_pages=0 --font=Arial --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Arial.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Arial.exp0.tif
Rendering using Courier New Bold
[Sat Feb 16 13:17:01 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Courier_New_Bold.exp0
--max_pages=0 --font=Courier New Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Courier_New_Bold.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Courier_New_Bold.exp0.tif
Rendering using Courier New Bold Italic
[Sat Feb 16 13:17:02 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Courier_New_Bold_Italic.exp0
--max_pages=0 --font=Courier New Bold Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Courier_New_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Courier_New_Bold_Italic.exp0.tif
Rendering using Courier New Italic
[Sat Feb 16 13:17:03 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Courier_New_Italic.exp0
--max_pages=0 --font=Courier New Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Courier_New_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Courier_New_Italic.exp0.tif
Rendering using Courier New
[Sat Feb 16 13:17:04 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Courier_New.exp0
--max_pages=0 --font=Courier New --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Courier_New.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Courier_New.exp0.tif
Rendering using Times New Roman, Bold
[Sat Feb 16 13:17:06 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold.exp0
--max_pages=0 --font=Times New Roman, Bold
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold.exp0.tif
Rendering using Times New Roman, Bold Italic
[Sat Feb 16 13:17:07 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold_Italic.exp0
--max_pages=0 --font=Times New Roman, Bold Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Bold_Italic.exp0.tif
Rendering using Times New Roman, Italic
[Sat Feb 16 13:17:08 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Italic.exp0
--max_pages=0 --font=Times New Roman, Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman_Italic.exp0.tif
Rendering using Times New Roman,
[Sat Feb 16 13:17:09 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Times_New_Roman.exp0
--max_pages=0 --font=Times New Roman, --text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Times_New_Roman.exp0.tif
Rendering using Georgia Bold
[Sat Feb 16 13:17:10 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Georgia_Bold.exp0
--max_pages=0 --font=Georgia Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Georgia_Bold.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Georgia_Bold.exp0.tif
Rendering using Georgia Italic
[Sat Feb 16 13:17:11 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Georgia_Italic.exp0
--max_pages=0 --font=Georgia Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Georgia_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Georgia_Italic.exp0.tif
Rendering using Georgia
[Sat Feb 16 13:17:12 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Georgia.exp0
--max_pages=0 --font=Georgia --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Georgia.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Georgia.exp0.tif
Rendering using Georgia Bold Italic
[Sat Feb 16 13:17:13 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Georgia_Bold_Italic.exp0
--max_pages=0 --font=Georgia Bold Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Georgia_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Georgia_Bold_Italic.exp0.tif
Rendering using Trebuchet MS Bold
[Sat Feb 16 13:17:15 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold.exp0
--max_pages=0 --font=Trebuchet MS Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold.exp0.tif
Rendering using Trebuchet MS Bold Italic
[Sat Feb 16 13:17:16 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold_Italic.exp0
--max_pages=0 --font=Trebuchet MS Bold Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Bold_Italic.exp0.tif
Rendering using Trebuchet MS Italic
[Sat Feb 16 13:17:17 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Italic.exp0
--max_pages=0 --font=Trebuchet MS Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS_Italic.exp0.tif
Rendering using Trebuchet MS
[Sat Feb 16 13:17:18 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Trebuchet_MS.exp0
--max_pages=0 --font=Trebuchet MS --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Trebuchet_MS.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Trebuchet_MS.exp0.tif
Rendering using Verdana Bold
[Sat Feb 16 13:17:19 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Verdana_Bold.exp0
--max_pages=0 --font=Verdana Bold --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Verdana_Bold.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Verdana_Bold.exp0.tif
Rendering using Verdana Italic
[Sat Feb 16 13:17:20 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Verdana_Italic.exp0
--max_pages=0 --font=Verdana Italic --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Verdana_Italic.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Verdana_Italic.exp0.tif
Rendering using Verdana
[Sat Feb 16 13:17:21 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0 --outputbase=/tmp/eng-2019-02-16.03c/eng.Verdana.exp0
--max_pages=0 --font=Verdana --text=langdata/eng/eng.training_text
Rendered page 0 to file /tmp/eng-2019-02-16.03c/eng.Verdana.exp0.tif
Rendered page 1 to file /tmp/eng-2019-02-16.03c/eng.Verdana.exp0.tif
Rendering using Verdana Bold Italic
[Sat Feb 16 13:17:22 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Verdana_Bold_Italic.exp0
--max_pages=0 --font=Verdana Bold Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Verdana_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Verdana_Bold_Italic.exp0.tif
Rendering using URW Bookman L Bold
[Sat Feb 16 13:17:24 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold.exp0
--max_pages=0 --font=URW Bookman L Bold
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold.exp0.tif
Rendering using URW Bookman L Italic
[Sat Feb 16 13:17:25 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Italic.exp0
--max_pages=0 --font=URW Bookman L Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Italic.exp0.tif
Rendering using URW Bookman L Bold Italic
[Sat Feb 16 13:17:26 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold_Italic.exp0
--max_pages=0 --font=URW Bookman L Bold Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.URW_Bookman_L_Bold_Italic.exp0.tif
Rendering using Century Schoolbook L Bold
[Sat Feb 16 13:17:27 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold.exp0
--max_pages=0 --font=Century Schoolbook L Bold
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold.exp0.tif
Rendering using Century Schoolbook L Italic
[Sat Feb 16 13:17:28 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Italic.exp0
--max_pages=0 --font=Century Schoolbook L Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Italic.exp0.tif
Rendering using Century Schoolbook L Bold Italic
[Sat Feb 16 13:17:29 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold_Italic.exp0
--max_pages=0 --font=Century Schoolbook L Bold Italic
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold_Italic.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Bold_Italic.exp0.tif
Rendering using Century Schoolbook L Medium
[Sat Feb 16 13:17:30 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Medium.exp0
--max_pages=0 --font=Century Schoolbook L Medium
--text=langdata/eng/eng.training_text
Rendered page 0 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Medium.exp0.tif
Rendered page 1 to file
/tmp/eng-2019-02-16.03c/eng.Century_Schoolbook_L_Medium.exp0.tif
Rendering using DejaVu Sans Ultra-Light
[Sat Feb 16 13:17:31 IST 2019] /usr/local/bin/text2image
--fontconfig_tmpdir=/tmp/font_tmp.pz0le7c27X --fonts_dir=/usr/share/fonts
--strip_unrenderable_words --leading=32 --xsize=3600 --char_spacing=0.0
--exposure=0
--outputbase=/tmp/eng-2019-02-16.03c/eng.DejaVu_Sans_Ultra-Light.exp0
--max_pages=0 --font=DejaVu Sans Ultra-Light
--text=langdata/eng/eng.training_text
Could not find font named 'DejaVu Sans Ultra-Light'.
Pango suggested font 'FreeMono'.
Please correct --font arg.
ERROR: /tmp/eng-2019-02-16.03c/eng.DejaVu_Sans_Ultra-Light.exp0.box does
not exist or is not readable

In order to attempt to resolve this issue I installed DejaVu Sans font (
https://github.com/dejavu-fonts/dejavu-fonts). I am not able to resolve
this issue because there is no font existent named: " DejaVu Sans
Ultra-Light ", where the program is giving error. How do I resolve this
error?
Expected Behavior: Suggested Fix:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tesseract-ocr/tesseract/issues/2250, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AE2_oxpj3joYjkFza_kNwdMYelZhkpIeks5vN7yRgaJpZM4a-2-w
.

--


भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

Thanks that solved the error

Was this page helpful?
0 / 5 - 0 ratings

Related issues

royudev picture royudev  ·  5Comments

garry-ut99 picture garry-ut99  ·  5Comments

duzenko picture duzenko  ·  3Comments

dthrock picture dthrock  ·  5Comments

YeisonVelez11 picture YeisonVelez11  ·  5Comments