Add width_r : local image width in a group
Check consistency of boxes wrt width_r
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user