Well, it is telling you: it can't find the font because you don't have it 
installed.  You need to get a collection of TrueType fonts for training, 
put them in some directory, and then point the llgen command at that 
directory using its options (type llgen --help to find the option).

There are lots of TrueType fonts you can install on Ubuntu; do an 
"apt-cache search truetype font", then install them.

You can also find TrueType fonts on your machine with "locate .ttf".

Tom

On Wednesday, August 1, 2012 3:39:01 PM UTC+2, [email protected] wrote:
>
> > Please see the playlist here, which runs you through the steps in 0.5 
> (the 
> > steps haven't changed, but the commands are different, and the database 
> > format is now HDF5): 
> > 
> > http://www.youtube.com/playlist?list=PL8B1A3C55DD915896&feature=view_all 
>
> Trying to reproduce the 1st minute of the second video on my machine I get 
>
> user@Mint-VirtualBox ~ $ llgen -f llgen.fonts 
>
> === /home/tmb/bin/Fonts/DejaVuSansMono.ttf @ 36 
>
> Traceback (most recent call last): 
>   File "/usr/local/bin/llgen", line 160, in <module> 
>     font = ImageFont.truetype(fontfile,size) 
>   File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 218, in 
> truetype 
>     return FreeTypeFont(filename, size, index, encoding) 
>   File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 134, in 
> __init__ 
>     self.font = core.getfont(file, size, index, encoding) 
> IOError: cannot open resource 
>
> What am I doing wrong? 
>
> Best regards 
>
> Janusz 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ocropus" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/ocropus/-/KZieNsAm6lEJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to