Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the option -allowedFontsPath does not work as expected, please assist #15

Open
DutchPirate1966 opened this issue Oct 29, 2020 · 9 comments

Comments

@DutchPirate1966
Copy link

Hi there,
I am experimenting with Ocular to train an OCR model for 18th century dutch print.
The option to initialize a font using only few of the installed fonts on my computer is interesting and I would like to try it.
But in my case including the option: -allowFontsPath font_refs/dutch18thCE_fonts.txt does not seem to be doing anything.
I attached the dutch18thCE_fonts.txt file here.
Is it wrong?
Thanks for any feedback on this
Best, Marco (the Netherlands)

dutch18thCE_fonts.txt

@tberg12
Copy link
Owner

tberg12 commented Oct 29, 2020 via email

@DutchPirate1966
Copy link
Author

Thanks so much for your response!
Here is my console output (see attached file) when using the command with the option. It takes only seconds to finish, which is a little suspicious. Because when not using the option, it takes one and a half hours of processing,

When I do not use the -allowedFontsPath option I get to see the probs matrices for all chars in the console output. In case I use the option then these probs matrices seem empty.
It confuses me as you will understand.

Console_output_DominicanRun.txt

@tberg12
Copy link
Owner

tberg12 commented Oct 29, 2020 via email

@DutchPirate1966
Copy link
Author

Well I have checked the fonts, and the ttf files are present in two directories:
C:\Users\Acer\AppData\Local\Microsoft\Windows\Fonts
c:\Windows\fonts
Maybe I should give the full path name in the fonts path txt file?
Screen Shot 10-30-20 at 12 02 PM

@tberg12
Copy link
Owner

tberg12 commented Oct 30, 2020 via email

@DutchPirate1966
Copy link
Author

Entering the programming realm right? ;-)
I will give it a try (java fairly new to me actually)
Will keep you posted.

@tberg12
Copy link
Owner

tberg12 commented Nov 2, 2020 via email

@tberg12
Copy link
Owner

tberg12 commented Nov 2, 2020 via email

@DutchPirate1966
Copy link
Author

Not really.
And I got submerged in decompiling the jar and trying to figure out where and how this option -allowFontsPath is actually used. I am not the programmers type of person I guess. Tried to contact Dan Guerrette about it, awaiting his response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants