new_bbox [array([559. , 125. , 607. , 276. ,
0.64699197])] [[559.03448486 125.92767334 607.16009521 276.85614014 0.64699197]]
after:
new_bbox [[559. 125. 607. 276. 1.]] [[559. 125. 607. 276. 1.]]
please note that comma have been removed from list
use np.array to remove all comma
new_bbox.append([xw1, yw1, xw2, yw2, s]) return np.array(new_bbox)
No comments:
Post a Comment