-
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
Tesseract creates output for missing input #1023
Comments
You are right. The error is also there for pdf. So, even though error messages are shown, empty output is produced.
|
Problem is that output file is created during initialization of renderer and it happens before starting of OCR... Maybe we can implement simple check if input file exists.... |
Done. |
* 'master' of https://github.com/tesseract-ocr/tesseract: Fix CID 1164579 (Explicit null dereferenced) print help for tesstrain.sh; fixes #1469 Fix CID 1395882 (Uninitialized scalar variable) Fix comments Move content of ipoints.h to points.h and remove ipoints.h remove duplicate help from combine_lang_model Fix typo. use tprintf instead of printf to be able disable messages by quiet option (issue #1240) add "sudo ldconfig" to install instruction. fixes #1212 unittest: Replace NULL by nullptr unittest: Format code tesseract app: check if input file exists; fixes #1023 Format code (replace ( xxx ) by (xxx)) Simplify boolean expressions Win32: use the ISO C and C++ conformant name "_putenv" instead of deprecated "putenv"
If Tesseract is called with a non-existing image file, it creates an empty output file.
I'd expect that no output is created in that case.
Examples:
The text was updated successfully, but these errors were encountered: