open-mmlab / mmrotate

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

[Docs] How to calculate the area of the predicted rotated object detection box? #753

Open qbs2021 opened 1 year ago

qbs2021 commented 1 year ago

Branch

master branch https://mmrotate.readthedocs.io/en/latest/

📚 The doc issue

Hello! How can I calculate the area of the predicted rotated object detection box? What should I do.

Suggest a potential alternative/fix

No response

zytx121 commented 1 year ago

Hi @qbs2021 The format of the predicted rotated box is [x, y, w, h, t]. So you can obtain the area by box[..., 2] * box[..., 3].