1、xmin,ymin,width,height 转为 xmin,ymin,xmax,ymax
前2个坐标不需要动,只需要动后2个,规则如下:
xmax= xmin+width-1
ymax= ymin+height-1
[xmin, ymin, xmin+width-1, ymin+height-1]
2、xmin,ymin,xmax,ymax 转为 x,y,width,height
前2个坐标不需要动,只需要动后2个,规则如下:
width = xmax-xmin+1
height = ymax-ymin+1
[xmin, ymin, xmax-xmin+1, ymax-ymin+1]
关键词:VOC数据集和COCO数据集之间对应的关系。
仅记录自己在学习过程中遇到的问题,不作为他人学习的参考,若有误请勿喷,手动划过,谢谢!
参考
https://www.it610.com/article/1295571395467616256.htm
https://www.icode9.com/content-4-629014.html