docs/train: document --missing-printspace=project

This commit is contained in:
Robert Sachunsky 2026-02-25 13:18:40 +01:00
parent 4202a1b2db
commit 42bab0f935
2 changed files with 10 additions and 1 deletions

View file

@ -724,7 +724,11 @@ def get_images_of_ground_truth(
print(gt_list[index], "has no Border or PrintSpace - projecting hull of segments")
bboxes = list(map(bbox_from_points, coords))
left, top, right, bottom = zip(*bboxes)
ps_bbox = [min(left), min(top), max(right), max(bottom)]
left = max(0, min(left) - 5)
top = max(0, min(top) - 5)
right = min(x_len, max(right) + 5)
bottom = min(y_len, max(bottom) + 5)
ps_bbox = [left, top, right, bottom]
else:
print(gt_list[index], "has no Border or PrintSpace - using full page")
ps_bbox = [0, 0, None, None]