Skip to content

Refactor rotation utility to improve maintainability and OCR-friendly interpolation#112

Open
agentksimha wants to merge 24 commits intohumanai-foundation:mainfrom
agentksimha:refactor/rotation-utility
Open

Refactor rotation utility to improve maintainability and OCR-friendly interpolation#112
agentksimha wants to merge 24 commits intohumanai-foundation:mainfrom
agentksimha:refactor/rotation-utility

Conversation

@agentksimha
Copy link
Copy Markdown

Refactored rotation logic to use OpenCV transformation matrix directly, improving readability and consistency

Simplified bounding box computation by leveraging matrix components instead of manual trigonometry

Added support for configurable interpolation and scaling

Enables use of interpolation modes (e.g., nearest-neighbor) to better preserve text sharpness for OCR tasks

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