You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get some parameters from a rotated rectangle in the roLabelImg generated XML and print the rectangle with matplotlib, which has a very similar representation, with variables "center coordinates, widht/height and angle":
Matplotlib: Rectangle((cx, cy), width=w, height=h, angle=theta).
So long I haven't been able to do that. I've even tried to do transformations like: cx' = cx - l*math.cos(theta+alfa)
I've considered the center points maybe could be different, because in matplotlib they represent xmin, ymin, so it can explain the transformation above. But didn't work.
So I'd like to know what is your implementation, or if you know how can i transform your coordinates to matplotlib style. Well, i would appreciate some help. Thanks!
The text was updated successfully, but these errors were encountered:
Hey I had the same problem. In the source code I found the way how the author calculate the boxes.
With these two functions you should be able to show the boxes:
I'm trying to get some parameters from a rotated rectangle in the roLabelImg generated XML and print the rectangle with matplotlib, which has a very similar representation, with variables "center coordinates, widht/height and angle":
Matplotlib: Rectangle((cx, cy), width=w, height=h, angle=theta).
So long I haven't been able to do that. I've even tried to do transformations like: cx' = cx - l*math.cos(theta+alfa)
I've considered the center points maybe could be different, because in matplotlib they represent xmin, ymin, so it can explain the transformation above. But didn't work.
So I'd like to know what is your implementation, or if you know how can i transform your coordinates to matplotlib style. Well, i would appreciate some help. Thanks!
The text was updated successfully, but these errors were encountered: