ryouchinsa / Rectlabel-support

RectLabel is an offline image annotation tool for object detection and segmentation.
https://rectlabel.com
511 stars 73 forks source link

About bounding box rotation #35

Closed Zico2017 closed 5 years ago

Zico2017 commented 6 years ago
  1. After rotating the bounding box, we can't change the size of bounding box with keeping the shape of it as a rectangular. Could you add some constraints?
  2. A possible improvement is to provide more output format: like (center_point_x,center_point_y,width,height,rotation_angle) in xml

Anyway, your tool is the most convenient to use for OSX users, thank you!

ryouchinsa commented 6 years ago

Thanks for writing the issue.

We are going to improve editing the rotated box and the format.

Could you tell us which object detection tool are you going to use with the format? Because we want to know which format would be the best for the rotated box to connect to other tools.

Best regards, Ryo

Zico2017 commented 6 years ago

A very prompt reply!

I only find two papers which use the format based on the code of faster r-cnn, it looks 5 variables to label a rotated bounding box is better than 8 variables. Arbitrary-Oriented Scene Text Detection via Rotation Proposals (https://github.com/mjq11302010044/RRPN) Learning a Rotation Invariant Detector with Rotatable Bounding Box (https://github.com/liulei01/DRBox)

Looking for your next version!

ryouchinsa commented 6 years ago

Thanks for letting us know those tools.

We could find the proposed format in "Arbitrary-Oriented Scene Text Detection via Rotation Proposals ".

1

We would let you know when we submit the new update.

Best regards, Ryo

ryouchinsa commented 6 years ago

The new update version 1.81 was released.

out

2

https://rectlabel.com/help

Let us know your opinion.

violet-day commented 6 years ago

@ryouchinsa could you please share the code rotated_box how to convert to polygon

I was annotate samples use rotated_box

The model I pick use ICDAR2015 format like 377,117,463,117,465,130,378,130,Genaxis Theatre

ryouchinsa commented 6 years ago

Hi,

This is how you could convert the rotated box to the polygon points.

cos = cos(rot);
sin = sin(rot);

x1 = -width / 2;
y1 = -height / 2;
x1 = cx + x1 * cos - y1 * sin;
y1 = cy + x1 * sin + y1 * cos;

x2 = width / 2;
y2 = -height / 2;
...