HumanSignal / HumanSignal/label-studio
RectangleLabels: x,y values inconsistant wrt typed or dragged rotation
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
First posted here accidentally :
https://github.com/heartexlabs/label-studio-converter/issues/235
The values of x,y is NOT "_ coordinate of the top left corner before rotation (0-100)" when the BBox is rotated using anchor thingy (by dragging). In this the rotation transformation occurs around cx,cy.
However, values of x,y is "_ coordinate of the top left corner before rotation (0-100)" when BBox rotation values is typed. In this the rotation transformation occurs around x,y.
Help. This is expected behavious or a bug in rotation using dragging method?
BBox:

` "value": {
"x": 21.331058020477816,
"y": 22.727272727272727,
"width": 33.27645051194539,
"height": 18.181818181818183,
"rotation": 0,
"rectanglelabels": [
"bbox"
]`
Typed-Rotation:

`
"value": {
"x": 21.331058020477816,
"y": 22.727272727272727,
"width": 33.27645051194539,
"height": 18.181818181818183,
"rotation": 45,
"rectanglelabels": [
"typed-rotated-bbox"
]
`
Drag-Rotation:

`
"value": {
"x": 29.54614896742924,
"y": 3.0447607617210197,
"width": 33.27645051194534,
"height": 18.181818181818233,
"rotation": 44.8606754121663,
"rectanglelabels": [
"drag-rotated-bbox"
]
`
_Values below images are from json export, notice the value.x ,value.y for dragged and typed_
Thanking in anticipation.
Contributor guide
Assessment
This issue has not been assessed yet.