mirror of
https://github.com/qurator-spk/eynollah.git
synced 2026-03-24 08:02:45 +01:00
run_graphics_and_columns_light: fix double 1-off error…
When `num_col_classifier` predicted result gets bypassed by heuristic result from `find_num_col()` (because prediction had too little confidence or `calculate_width_height_by_columns()` would have become too large), do not increment `num_col` further (already 1 more than colseps).
This commit is contained in:
parent
46c5f52491
commit
64281768a9
1 changed files with 1 additions and 1 deletions
|
|
@ -1736,7 +1736,7 @@ class Eynollah:
|
|||
num_col, _ = find_num_col(img_only_regions, num_col_classifier, self.tables, multiplier=6.0)
|
||||
num_col = num_col + 1
|
||||
if not num_column_is_classified:
|
||||
num_col_classifier = num_col + 1
|
||||
num_col_classifier = num_col
|
||||
num_col_classifier = min(self.num_col_upper or num_col_classifier,
|
||||
max(self.num_col_lower or num_col_classifier,
|
||||
num_col_classifier))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue