Skip to content

Releases: habitoti/Azure-OCR-Pre-Consume-Script

Allow Paperwork optionally to continue after potential Azure issues

Choose a tag to compare

@habitoti habitoti released this 27 May 12:11

With the environment/configuration variable OCR_CONTINUE_ON_ERROR set to true (default: false) Paperless will continue to process the document itself (i.e. OCR) if the Azure OCR failed for any reason, making the pipeline overall more robust (though you might miss the better OCR in such cases...).

Removal of non-transparent "safe-word"

Choose a tag to compare

@habitoti habitoti released this 14 May 12:44

Non-transparent "safe-word" in the beginning of the overlay (to force Paperless to recognize machine-readable text) actually not required.

Cleanup, removal of empty page handling

Choose a tag to compare

@habitoti habitoti released this 28 Apr 13:36
  • Removed the empty page handling. It didn't actually contribute to the functionality and made the overall handling more error-prone
  • Added a better traceback in case of unexpected errors
  • Temporary files are created only within the tmp-folder that Paperless hands over
  • Some code cleanup

Ignore non-PDF (for now...)

Choose a tag to compare

@habitoti habitoti released this 25 Apr 10:51
f4bc001

Ignores non-PDF files and lets Paperless handle those itself.

Logging path for docker setup

Choose a tag to compare

@habitoti habitoti released this 23 Apr 08:51

Sets a default for Docker setups if neither PAPERLESS_LOGGING_DIR nor PAPERLESS_DATA_DIR environment variables are set.

Ignore machine-readable PDFs

Choose a tag to compare

@habitoti habitoti released this 21 Apr 16:40

Skip Azure OCR if PDF is already machine-readable

Invisible overlay

Choose a tag to compare

@habitoti habitoti released this 20 Apr 07:41
ea4457a

Use a simple short „safe word“ in white color on to make PDFMiner recognize machine-readable text and so skip Paperless OCR. The actual complete OCR‘ed text will be rendered invisibly.

Initial Release

Choose a tag to compare

@habitoti habitoti released this 18 Apr 14:09

First release of Azure OCR pre_consume script for Paperless-ngx. Includes removal of empty pages and optionally content cutoff.