Closed bertsky closed 2 years ago
This error comes from the utility text2image
, so you should probably output the complete command line. Run the command line in the terminal then and look where text2image
looks for the installed fonts.
As a second thought, you might try running the create_ground_truth
command with additional option --fonts_dir /usr/share/fonts
.
Ah, interesting. If I run just
text2image --list_available_fonts
it does not show anything. But if I pass --fonts_dir ~/.local/share/fonts/
or --fonts_dir /usr/share/fonts/
, then it does show the respective fonts.
Hence, using create_ground_truth
with -d
does work.
I thought that Tesseract would respect the X font server directly. Perhaps this could be made clear in the README.
Anyway, thanks!
Added the --fonts_dir
hint in 507646a.
I have…
…and…
However, when running
create_ground_truth -f LOV.UnicodeFraktur,LOV.UngerFraktur
I get no image output, with error messages likeWhat am I doing wrong?
(Python 3.8.10, Pango 1.0)