Skip to content

Conversation

@apbard
Copy link

@apbard apbard commented Aug 22, 2025

This pull request refactors and enhances the fitz_doc_to_image function in dots_ocr/utils/doc_utils.py.

Before, if applying the target_dpi would result in an image bigger than allowed by constraints (4500 height/width) was reset to 72 kpi, lower than the default. Now it tries to find the highest value that satisfy the constraints

…onstraints

Refactor fitz_doc_to_image function to accept to not fallback to 72DPI if target dpi is too high but try to match it as close at possible.
AdamCodd added a commit to AdamCodd/dots.ocr that referenced this pull request Oct 3, 2025
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