open-mmlab / mmrotate

OpenMMLab Rotated Object Detection Toolbox and Benchmark
https://mmrotate.readthedocs.io/en/latest/
Apache License 2.0
1.88k stars 556 forks source link

[Docs] mmrotate预测旋转bbox的格式问题 #935

Open zhugailin opened 1 year ago

zhugailin commented 1 year ago

Branch

1.x branch https://mmrotate.readthedocs.io/en/1.x/

📚 The doc issue

mmrotate的输出格式是[x,y,w,h,t]; 通过/mmrotate/structures/bbox/box_converters.py中的rbox2hbox函数转换得到是规则的矩形(左上、右下), 有什么办法可以转换回DOTA标签格式,得到输出结果的四个角点坐标(X1,Y1)(X2,Y2)(X3,Y3)(X4,Y4)吗?

Suggest a potential alternative/fix

No response

gbdjxgp commented 1 year ago

在你提到的文件下的rbox2qbox函数。