how can assign numbers to detected bounding boxes?
8 ビュー (過去 30 日間)
I have a final bounding box attributes and an Image. I need to assign a number to each bounding box from the top left side in a sequential order. I have an object detected image like this.
Now I need a numbered object detected image some this like this. (Number position and size is not an issue)
How can I do that?
Walter Roberson 2018 年 9 月 30 日
Put the coordinates into a 2D array. sortrows() with either [1 2] or [2 1] depending upon whether the numbering priority is down ([1 2]) or across ([2 1]) . Afterwards, the row number will be the number to use for the bounding box.