COCO2YOLO icon indicating copy to clipboard operation
COCO2YOLO copied to clipboard

if bbox is tlbr, _bbox_2_yolo code is need to update

Open JoonHoonKim opened this issue 3 years ago • 0 comments

When bbox is tlbr, the result value is not accurate when using the existing calculation code. I may be wrong, but it looks like the calculation code needs to be corrected. x = (bbox[0] + bbox[1]) / 2. y = (bbox[1] + bbox[3]) / 2. w = bbox[2] - bbox[0] h = bbox[3] - bbox[1] x = x / img_w y = y / img_h w = w / img_w h = h / img_h return x, y, w, h

JoonHoonKim avatar Nov 15 '21 07:11 JoonHoonKim