Skip to content
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

feat: add options for choosing OCR engines #118

Merged
merged 40 commits into from
Oct 8, 2024

Conversation

dolfim-ibm
Copy link
Contributor

@dolfim-ibm dolfim-ibm commented Oct 2, 2024

Issue resolved by this Pull Request:
Resolves #119, #130

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the
    conventional commits.
  • Documentation has been updated, if necessary.
  • Examples have been added, if necessary.
  • Tests have been added, if necessary.

@nikos-livathinos nikos-livathinos self-requested a review October 2, 2024 16:30
docling/cli/main.py Outdated Show resolved Hide resolved
@cau-git
Copy link
Contributor

cau-git commented Oct 7, 2024

Additional steps:

  • Document TESSDATA_PREFIX for OCR
  • Accept to override it on TesserOcrOptions (like with EasyOCR)
  • Inject static ENV var TESSDATA_PREFIX into CI
  • Create simple test sample that never fails on levensthein distance

nikos-livathinos and others added 4 commits October 7, 2024 17:26
…l values of CoordOrigin

Signed-off-by: Nikos Livathinos <[email protected]>
…at tesseract has the proper path for the language models.

Signed-off-by: Nikos Livathinos <[email protected]>
Signed-off-by: Michele Dolfi <[email protected]>
nikos-livathinos and others added 13 commits October 8, 2024 07:07
…t allows all OCR engines to produce the same result.

Signed-off-by: Nikos Livathinos <[email protected]>
Signed-off-by: Michele Dolfi <[email protected]>
Signed-off-by: Michele Dolfi <[email protected]>
Signed-off-by: Nikos Livathinos <[email protected]>
…ow skipping the verification of the cells. It is used in case of OCR tests.

Signed-off-by: Nikos Livathinos <[email protected]>
… of both Tesseract OCR engines.

Signed-off-by: Nikos Livathinos <[email protected]>
… TesseractCLI for the tesseract process

Signed-off-by: Nikos Livathinos <[email protected]>
@cau-git cau-git marked this pull request as ready for review October 8, 2024 16:31
cau-git
cau-git previously approved these changes Oct 8, 2024
Copy link
Contributor

@cau-git cau-git left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Great work!

@dolfim-ibm
Copy link
Contributor Author

This PR is also fixing the issue identified in #130.

Signed-off-by: Michele Dolfi <[email protected]>
Signed-off-by: Michele Dolfi <[email protected]>
@dolfim-ibm dolfim-ibm merged commit f96ea86 into main Oct 8, 2024
4 checks passed
@dolfim-ibm dolfim-ibm deleted the feat-multiple-ocr-engines branch October 8, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Tesseract as OCR
4 participants