Hi all,
I'm trying to create some training data for the ocr-b font with text2image. Unfortunately when running
training/text2image --text=training_text.txt --outputbase=eng.ocr-b.exp0 --font='ocrb10' --fonts_dir=/path/to/my/fonts
I always get 'Could not find font ocrb10' error. This is the exact output:
...
Could not find font named ocrb10
FLAGS_find_fonts || FontUtils::IsAvailableFont(FLAGS_font.c_str()):Error:Assert failed:in file text2image.cpp, line 417
Segmentation fault (core dumped)
Although when running 'training/text2image --list_available_fonts --fonts_dir=/usr/...' it lists ocrb10:
Initializing fontconfig
0: OCRB Extra-Expanded
1: ocrb10
I have no idea where to go from here since text2image seems to recognize the font but still doesn't. Any help would be highly appreciated!
Mirko