Skip to content

feat!: migrate HOCR conversion to internal implementation - #3

Merged
datenzar merged 3 commits into
mainfrom
feature/abstract-hocr-conversion
Dec 1, 2025
Merged

feat!: migrate HOCR conversion to internal implementation#3
datenzar merged 3 commits into
mainfrom
feature/abstract-hocr-conversion

Conversation

@datenzar

@datenzar datenzar commented Dec 1, 2025

Copy link
Copy Markdown
Contributor

BREAKING CHANGE: Remove dependency on ocrbridge.core.utils.easyocr_to_hocr and implement HOCR conversion internally. This requires ocrbridge-core>=3.0.0 which no longer provides the easyocr_to_hocr utility function.

  • Add internal hocr.py module with to_hocr() conversion function
  • Implement _group_words_into_lines() for line detection
  • Update engine.py to use internal hocr_utils instead of core utilities
  • Bump ocrbridge-core dependency to >=3.0.0

This change makes the EasyOCR engine self-contained for HOCR conversion, reducing coupling with ocrbridge-core and allowing independent evolution of the conversion logic.

BREAKING CHANGE: Remove dependency on ocrbridge.core.utils.easyocr_to_hocr and implement HOCR
conversion internally. This requires ocrbridge-core>=3.0.0 which no longer provides the
easyocr_to_hocr utility function.

- Add internal hocr.py module with to_hocr() conversion function
- Implement _group_words_into_lines() for line detection
- Update engine.py to use internal hocr_utils instead of core utilities
- Bump ocrbridge-core dependency to >=3.0.0

This change makes the EasyOCR engine self-contained for HOCR conversion,
reducing coupling with ocrbridge-core and allowing independent evolution
of the conversion logic.
@datenzar
datenzar merged commit 9d94e5e into main Dec 1, 2025
7 checks passed
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