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

Can not retrain Tesseract after editing boxes #75

Open
SyedAjwad opened this issue Mar 15, 2022 · 0 comments
Open

Can not retrain Tesseract after editing boxes #75

SyedAjwad opened this issue Mar 15, 2022 · 0 comments

Comments

@SyedAjwad
Copy link

I have implemented the following things:
Manually adjusted the boxes of characters generated by tesseract. Generated the tesseract training file. Generated the unicharset file. But when I am using the 'shapeclustering' command to generate shape table it is just stuck. The command it is stuck on:
shapeclustering.exe -F font_properties -U unicharset -O font_name.unicharset font_name.font.exp0.tr

Tried with following Tesseract versions:
tesseract-ocr-w32-setup-v4.1.0.20190314
tesseract-ocr-w64-setup-v4.1.0.20190314
tesseract-ocr-w32-setup-v4.0.0.20181030
tesseract-ocr-w64-setup-v4.1.0-elag2019

The unicharset command does nothing with the 64 bit versions of tesseract. And the other commands generate a file named 'unicharset' while it should generate a file named 'font_name.unicharset' according to these tutorials:
https://towardsdatascience.com/simple-ocr-with-tesseract-a4341e4564b6
https://stackoverflow.com/questions/55036633/how-to-create-traineddata-file-for-tesseract-4-1-0

It is stuck doing nothing as shown in the following image:
image

If you need any more information then please do let me know. I have tried different approaches and searching for the solution of the problem but could not find anything useful.

Kind Regards,
Ajwad

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

1 participant