-
Notifications
You must be signed in to change notification settings - Fork 230
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
Call audiveris from python script #289
Comments
Add the following code to your script and run it:
What do you see? It would be helpful to know what OS you're running on and which version of Tesseract is installed by default. To obtain the latter, run the following command in your terminal:
This is really undesirable because Audiveris will try to map every text letter to a musical symbol resulting in a complete mess... |
Thanks for your reply and sorry for not telling all the infos: |
Tesseract 4.0 isn't supported yet, this comment explains why. Audiveris requires tesseract 3.x and the appropriate language files. Your TESSDATA_PREFIX points to 4.x language files which are incompatible with Tesseract 3.x. Please downgrade Tesseract to 3.x including its language files and everything should work as expected. Please be careful while setting TESSDATA_PREFIX - it should be set to the parent directory of your "tessdata" directory. |
Thank @maximumspatium for the help, to anyone with the same issue: |
I made a very basic script with python with
subprocess.run(["Audiveris", "-batch", "-export", f"./scores_data/{directory}/{sub}/{f}"])
because my pdf was on differents folders, but resulting in a Failed loading language 'langcode'.
I would like to know how to get it through, PREFIX_TESSDATA is set and i got all traineddata within. One option would be to disable TEXT step.
Errors are:
Failed loading language 'deu'
Failed loading language 'eng'
Failed loading language 'fra'
Tesseract couldn't load any languages!
The text was updated successfully, but these errors were encountered: