Sep-27-2019, 04:21 PM
Hi
I have a list that contains:
images (in this case 2) 00000000.jpg', '00000001.jpg
bounding box coordinates (example 20.5, 214.5, 8.0, 17.0)
and description to which picture do the bounding boxes belong to (in this case a bounding box is either part of the first or second image and is denoted by 0 or 1)
Now I want to make a new list that would print out
0000000.jpg, 20.5, 214.5, 8.0, 17.0
0000000.jpg, 61.5, 174.5, 10.0, 15.0
0000000.jpg 151.5, 43.5, 10.0, 20.0
....
0000001.jpg, 39.5, 13.5, 9.5, 15.0
....
I have a list that contains:
images (in this case 2) 00000000.jpg', '00000001.jpg
bounding box coordinates (example 20.5, 214.5, 8.0, 17.0)
and description to which picture do the bounding boxes belong to (in this case a bounding box is either part of the first or second image and is denoted by 0 or 1)
Now I want to make a new list that would print out
0000000.jpg, 20.5, 214.5, 8.0, 17.0
0000000.jpg, 61.5, 174.5, 10.0, 15.0
0000000.jpg 151.5, 43.5, 10.0, 20.0
....
0000001.jpg, 39.5, 13.5, 9.5, 15.0
....
['00000000.jpg', '00000001.jpg', 0, 20.5, 214.5, 8.0, 17.0, 0, 61.5, 174.5, 10.0, 15.0, 0, 151.5, 43.5, 10.0, 20.0, 0, 161.5, 231.5, 7.0, 10.0, 0, 186.5, 159.5, 8.0, 11.0, 0, 201.5, 115.5, 13.0, 9.0, 1, 15.5, 154.0, 8.5, 9.5, 1, 39.5, 13.5, 9.5, 15.0, 1, 100.5, 55.5, 7.5, 11.0, 1, 119.5, 217.5, 7.0, 9.0, 1, 166.5, 150.5, 15.0, 12.0, 1, 214.5, 223.5, 22.0, 11.0]Does anyone have any suggestion on how to do it?