-
Notifications
You must be signed in to change notification settings - Fork 254
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
audiveris cannot see tessdata #758
Comments
I don't really understand what is happening.
|
Apologies if it was not clear.
|
Your data looks OK. Additional questions:
|
Could you post the first lines of the last Audiveris log file? These log files are located (for Windows) in the folder %APPDATA%\AudiverisLtd\audiveris\log. (I suppose you have used the Windows installer for Audiveris, please correct me if I'm wrong) More information about log files are available here and there. This kind of file is key, because it displays important information seen from Audiveris.
As you can see, it displays the values of TESSDATA_PREFIX and of the OCR folder, as seen from Audiveris application. |
Here's the complete log file
|
The Server.js is to run Auriveris as a batch , by getting the pdfs from the front end. |
In my log, I can read:
In yours, just:
So, a line is missing in your log file. The line is supposed to be: "OCR folder: ..." Please post the (Windows) listing of this folder. |
Update: The line "OCR folder:..." appears in 5.4-alpha, not in the released 5.3.1 But I just checked in old 5.3.1 code: if the folder exists and is really a directory with the eng.traineddata files and others, it should work. |
These data files are NOT the needed ones. Notice the sizes of mine vs yours. Please download the correct data files, as explained in this section of Audiveris handbook. Note: I don't think the "/" separator is wrong. This separator is needed and inserted by a call to Path.resolve(location) which is a standard Java method. |
Thank you. Yes, it was the files. I did download from the same place previously, but instead of download, i was saving the link , not sure why that was causing the issue. But thank you sir, the issue is resolved |
This topic of wrong datafiles is a recurring one... The same problem can still occur if the user wants to manually add other languages, but it's already a step forward. I'd like to offer a way to download languages from within the Audiveris application. |
I'm using windows and vue.js
Audiveris stderr: Error opening data file C:\Program Files\tesseract-ocr\tessdata/deu.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory. Failed loading language 'deu' Error opening data file C:\Program Files\tesseract-ocr\tessdata/eng.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory. Failed loading language 'eng' Error opening data file C:\Program Files\tesseract-ocr\tessdata/fra.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory. Failed loading language 'fra' Tesseract couldn't load any languages!
Thats the error im getting. Its funny that it was recognizing the env variable i set C:\Program Files\tesseract-ocr\tessdata however , it amends it with a wrong '/' when looking for lang files. where should be doing ''
Got annoyed with the TESSDATA_PREFIX , so i deleted it and then i created C:\Program Files\tesseract-ocr\tessdata as that seems to be the default directory audiveris looks for as per docs.
here's from the docs which talks about the default
https://audiveris.github.io/audiveris/_pages/install/languages/
I have a Server.js setup, with a post
So no matter what i do, I end up with the same error, create the env variable or not. The path is wrong of course, but why is Audiveris doing that?
The text was updated successfully, but these errors were encountered: