feat(ocr): tree-like structure with text levels#44
Merged
Conversation
…/Word tree Preserves hierarchical structure from each provider's API instead of discarding it during conversion. Adds BoundingBox::enclosing() to nvisy-core and updates all six provider backends to build the tree. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Delete the mindee_doctr backend, params, and module. Update OcrProvider enum, doc examples, and README to reflect five remaining providers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Also renames to_u32() to to_pixel() for consistency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use the upstream `page` and `image_bbox` fields instead of deriving page number from enumeration index and leaving dimensions empty. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace the flat DocumentType enum with nested format-specific enums: ImageFormat, WordFormat, PresentationFormat, SpreadsheetFormat, AudioFormat, and TextFormat. Pdf and Html remain standalone variants. Each sub-enum owns its own from_mime/mime_type methods, keeping DocumentType::from_mime as a concise chain of delegates. Remove Archive from ContentKind. Unify nvisy-ocr's ImageFormat with the new core ImageFormat. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove turbofish type parameters from Client::builder() calls to match the new builder API where the HTTP client type is set via .http_client() rather than as a generic parameter. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.