Skip to content

Conversation

bertsky
Copy link
Contributor

@bertsky bertsky commented Sep 30, 2025

After #173 had been merged into #175, but then reverted, I put everything into vahidrezanezhad#2, which ultimately was not merged either.

Rebasing was a nightmare, so I had to re-do everything via cherry-picking. (The merge was still painful.)

Still testing right now, hence draft.

Robert Sachunsky added 30 commits September 29, 2025 17:42
…ontours_textline_version → dilate_textline_contours
…are resulting (maximum) variances instead of blindly assuming the new range is better
Robert Sachunsky and others added 28 commits October 9, 2025 20:14
- np.delete in index array instead of contour lists
- yield actual resulting indices
- `get_textregion_contours_in_org_image_light`: no more need
  to also return unchanged contours here (see 41cc38c); therefore
- `txt_con_org`: no more need for this
  (now mere alias to `contours_only_text_parent`); also
- `index_by_text_par_con`: no more need for this (see prev. commit),
  so do not pass/return
- `get_slopes_and_deskew_*`: do not pass `contours_only_text`
  (where not used)
- `get_slopes_and_deskew_*`: do not return unchanged contours, boxes
- `do_work_of_slopes_*`: adapt respectively
- simplify serialization of coordinates
- re-use `serialize_lines_in_region` (drop `*_in_dropcapital` and `*_in_marginal`)
- re-use `calculate_polygon_coords`
- `build_pagexml_no_full_layout`: delegate to
  `build_pagexml_full_layout` (removing redundant code)
(not sure if these models really need that, though)
…ctored

refactoring for 192: speedup and improvements
(`skip_layout_and_reading_order` is already an attr)
- simplify definition of (defaults for) model versions
- unify loading of loadable models (depending on mode)
- use `self.models` dict instead of `self.model_*` attributes
- add `model_versions` kwarg / `--model_version` CLI option
@kba kba merged commit 4e9a161 into qurator-spk:main Oct 10, 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.

2 participants