-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds the `--ignore-embedded-text` flag to the `scan` command so that it is possible to ignore embedded text in document types that support it (e.g. PDFs). The motivation for this feature is that some PDFs have OCR results embedded that are low quality and should be ignored. The addition to `load_document` is tested via: ``` pytest -sv tests/test_end_to_end.py::test_run_with_ignore_embedded_text ``` Notably, the answer with Tesseract only is actually incorrect, because it _seems_ Tesseract is missing entire columns.
- Loading branch information
Showing
3 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters