Skip to content

Commit 895687f

Browse files
author
Robert Sachunsky
committed
resegment: allow detection of colseps if some regions exist already
1 parent 8353c7f commit 895687f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocrd_cis/ocropy/resegment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def _process_segment(self, parent, parent_image, parent_coords, page_id, zoom, l
214214
parent_bin.shape)] = True
215215
new_line_labels, _, _, _, _, scale = compute_segmentation(
216216
parent_bin, seps=ignore_bin, zoom=zoom, fullpage=fullpage,
217-
maxseps=0, maxcolseps=0, maximages=0)
217+
maxseps=0, maxcolseps=len(ignore), maximages=0)
218218
except Exception as err:
219219
LOG.warning('Cannot line-segment %s "%s": %s',
220220
tag, page_id if fullpage else parent.id, err)

0 commit comments

Comments
 (0)