Add width_r : local image width in a group

Check consistency of boxes wrt width_r
This commit is contained in:
2026-02-27 11:49:27 +01:00
parent 5b8a37263d
commit 04a1ef447e
3 changed files with 17 additions and 6 deletions
+2 -1
View File
@@ -178,7 +178,8 @@ def create_jpg(identifier, group_index, group, root_dir):
# Record Image Coordinates
h_min = y_offset
h_max = y_offset + img.height
metadata.append((dd, h_min, h_max))
# identifier should be a label
metadata.append((dd, h_min, h_max, img.width/total_width, identifier))
# Draw Image
x_pos = 0