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: Layout detection in auto strategy #209

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

chloedia
Copy link
Collaborator

@chloedia chloedia commented Dec 23, 2024

See ENT-286 on Linear

Implementation Choices :

  • Instead of IOU between pdfium detected images and onnxtr detected text, I use $$\frac{\text{Intersection}}{\text{onnxtr total text area}}$$

  • In order to take less time - and not depend on the document number of pages- I sample 5 (can be changes) pages to determine strategy

Note: this sample idea shall be changed when we will process page by page the document.

THIS PR CANNOT BE MERGED UNTIL @AmineDiro REVIEW

@chloedia chloedia changed the title add: Layout detection in auto strategy feat: Layout detection in auto strategy Dec 23, 2024
@AmineDiro AmineDiro marked this pull request as ready for review December 24, 2024 09:14
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.

1 participant