-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Insufficient error message when output file cannot be created #1424
Comments
|
#bash ./tess1.sh File: ./hin-eng.png ********** Devanagari --oem 1 psm 3 Tesseract Open Source OCR Engine v4.0.0-beta.1-42-g3fa25 with Leptonica real 0m7.072s ********** Devanagari --oem 1 psm 6 Tesseract Open Source OCR Engine v4.0.0-beta.1-42-g3fa25 with Leptonica real 0m6.827s ********** script/Devanagari --oem 1 psm 3 Tesseract Open Source OCR Engine v4.0.0-beta.1-42-g3fa25 with Leptonica real 0m1.424s ********** script/Devanagari --oem 1 psm 6 Tesseract Open Source OCR Engine v4.0.0-beta.1-42-g3fa25 with Leptonica real 0m1.411s |
That looks strange, as it works for me:
|
Could it be related to how I am passing the variable in bash? |
Could you please create a very simple test environment with a newly created |
I see no obvious problem with the script. Try running your script with |
Thank you. Using bash -x helped figure out the problem. I was using $lang as part of output filename for comparing output using diff languages. Script/Devanagari was probably looking to use a subdir because of the /. I removed $lang and it worked fine. Thanks. Closing the issue. |
Yes, that's the real problem. Please reopen the issue and change the title to something like "Insufficient error message when output file cannot be created". |
Hi @Shreeshrii Could I get the bash script you mentioned ? |
@stweil Is this something you plan to address for 4.0.0? |
It's addressed by pull request #2002. |
We should release 4.0.0 before #2019 comes ...:-). |
Thanks. |
@stweil
With the new script subdirectory for the scripts traineddata,
tesseract gives error if language is given as script/Devanagari.
It works when /script is added to the tessdata-dir path and language is given as Devanagari.
I am copying my generic bash script for ruuning tesseract below, followed by console output.
The text was updated successfully, but these errors were encountered: