I use tesstrain.sh to training font 'OCR A Extended'.but happen error like 
this:

=== Starting training for language 'eng'
[2016年 06月 12日 星期日 16:14:43 CST] /usr/local/bin/text2image 
--fonts_dir=/usr/share/fonts/ --font=OCR A Extended 
--outputbase=/tmp/font_tmp.ZUX93YKOFz/sample_text.txt 
--text=/tmp/font_tmp.ZUX93YKOFz/sample_text.txt 
--fontconfig_tmpdir=/tmp/font_tmp.ZUX93YKOFz
Could not find font named OCR A Extended. Pango suggested font FreeMono
Please correct --font arg.:Error:Assert failed:in file text2image.cpp, line 
437

=== Phase I: Generating training images ===
Rendering using OCR A Extended
[2016年 06月 12日 星期日 16:14:49 CST] /usr/local/bin/text2image 
--fontconfig_tmpdir=/tmp/font_tmp.ZUX93YKOFz --fonts_dir=/usr/share/fonts/ 
--strip_unrenderable_words --fontconfig_refresh_config_file=false 
--leading=32 --char_spacing=0.0 --exposure=0 
--outputbase=/tmp/tmp.TkaoYsrz3K/eng/eng.OCR_A_Extended.exp0 --font=OCR A 
Extended --text=/home/XXX/XXX.txt
Could not find font named OCR A Extended. Pango suggested font FreeMono
Please correct --font arg.:Error:Assert failed:in file text2image.cpp, line 
437
ERROR: /tmp/tmp.TkaoYsrz3K/eng/eng.OCR_A_Extended.exp0.box does not exist 
or is not readable
ERROR: /tmp/tmp.TkaoYsrz3K/eng/eng.OCR_A_Extended.exp0.box does not exist 
or is not readable


-- 
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 [email protected].
To post to this group, send email to [email protected].
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/5ee59366-dad1-468c-8437-84cfb86921fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to