Hi Shree,

Thank you for the suggestion.
I have checked for the fonts available in my system. 'dejavu' is available. 
So, i thought of first checking for this font. So i ran the following 
command:

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/trainplusminus 
--fontlist 'dejavu'

But it still throwing the error:

'''
Could not find font named dejavu.
Pango suggested font FreeMono.
Please correct --font arg.
+ [[ 0 -gt 0 ]]
+ check_file_readable /tmp/tmp.ZyN6KA8ZSJ/eng/eng.dejavu.exp0.box 
/tmp/tmp.ZyN6KA8ZSJ/eng/eng.dejavu.exp0.tif
+ for file in '$@'
+ [[ ! -r /tmp/tmp.ZyN6KA8ZSJ/eng/eng.dejavu.exp0.box ]]
+ err_exit '/tmp/tmp.ZyN6KA8ZSJ/eng/eng.dejavu.exp0.box does not exist or 
is not readable'
+ echo -e 'ERROR: /tmp/tmp.ZyN6KA8ZSJ/eng/eng.dejavu.exp0.box' does not 
exist or is not readable
+ tee -a /tmp/tmp.ZyN6KA8ZSJ/eng/tesstrain.log
ERROR: /tmp/tmp.ZyN6KA8ZSJ/eng/eng.dejavu.exp0.box does not exist or is not 
readable
+ exit 1
''''

Can you please give some suggestions on this...

Thanks,
Harathi

On Thursday, June 21, 2018 at 8:50:14 PM UTC-7, Harathi Surya wrote:
>
> Hi,
>
> I am trying to create .lstm files to finetune tesseract4.0.0 for new 
> characters. I want to fine tune tesseract to recognize new characters like 
> ±.
> What i tried:
> I added text that consists of the plus or minus symbol to the 
> eng.training_text in langdata.
> Then I tried to run the following command
>
> 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/trainplusminus
>
> I am getting the following error:
> ERROR: /tmp/tmp.3qWucNlYrH/eng/eng.Arial.exp0.box does not exist or is not 
> readable
>
> The error repeated for all the font types.
>
> Can you please give some suggestions why this error occurs and how to 
> solve this?
>
> Thanks in advance
> Harathi
>

-- 
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/99f318a1-4b45-4d7c-9a40-75c76913abb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to