-
Notifications
You must be signed in to change notification settings - Fork 19
Fix & document exit codes #6
Comments
What information exactly do you need? |
Comment submitted by Return codes. I use ocrodjvu to batch processing, and I need differentiate critical and non-critical errors in ocr process. |
ocrodjvu doesn't pay attention to warnings generated by OCR engines. --on-error=resume would normally cause exit code to be 0, even when processing one of the pages failed. (Although I think it's a bug, so it's subject to change.) ocrodjvu also exits with 0 if it was interrupted by Ctrl+C. This is of course a bug; I'll get it fixed. |
Comment submitted by May be stop execution with non-zero exit code when some number pages failed (with --on-error=resume)? |
Comment submitted by And, is necessary return non-zero exit code with --on-error=resume parametr if execution crashes.
, but return code is 0. Resulting djvu turn out is no ocr'd . |
Agreeed. I'll get that fixed. |
Comment submitted by This file:
error on every page. As result, file is not ocr'd, but result code is 0. |
The problem with Ctrl+C was fixed in 0.7.17. In 6bd704f, I made ocrodjvu exit with code 2 if it resumed from an error. This will be part of ocrodjvu 0.8. I haven't decided yet what to do with the case when there's “No image suitable for OCR” on every page. I'd like to credit you in the changelog. Could you tell me what is your full name? |
I've just released ocrodjvu 0.8. Feel free to open a new bug about the case when there's “No image suitable for OCR” on every page. |
Comment submitted by The "No image suitable for OCR" error in every page still occurs for me with ocrodjvu 0.9.1 and tesseract. However the images in my file are 600x600 dpi and very clear, in fact tesseract works perfectly on each individual image page. Anyway, a small glitch, thanks a lot Jakub for a fantastic program. |
Issue reported by
GStager
at Bitbucket:Could you give more information about error handling and code returning?
The text was updated successfully, but these errors were encountered: