-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Oriented Bounding Boxes to go out of the image margin #6820
Comments
Hello, I think it will require alot for you to change in LSO code snippet. It won't be just for the tool and it might cause some undesired behavior as well. Here is the file (https://github.com/HumanSignal/label-studio/blob/develop/web/libs/editor/src/components/ImageTransformer/ImageTransformer.jsx) and you are looking for I would suggest the workaround as well.
Thank you,
|
I face the same issue and I'd appreciate enabling to go out of the image with corners of bounding boxes. My colleagues told me they are able to do so sometimes, but we can't provide you a reproducer unfortunately, because we could't find the pattern. |
I thought I would be able to overcome this issue with a bit of Python coding, but the out of image margin code is written in Java. So I'll just go with the Alternative Workaround which can be implemented in Python by increasing the image size to 200% for labeling and reducing it back to original size once labeled (Actually I would have to increase image width by 50% of image height per side and vice versa to make sure that I actually can label a by 45° rotated rectangle which takes over one whole side, but that action can't be reversed without saving some data beforehand). Thanks @heidi-humansignal for showing me where the code snippets are located at (which didn't help me fixing the issue but made me understand it better) and the alternative suggestion. |
Hello, No worries, please try out the suggestion and let us know how that went. Thank you,
|
Hello,
I am utilizing Label Studio at my work and one of my tasks is it to label rotated rectangles in my images. For this task I'm utilizing Oriented Bounding Boxes. But there's one issue in Label-Studio which prevents me from doing my task properly:
Label-Studio does not allow OBB to go out of the image margin
This is an issue for me because sometimes there are rectangles which partially go out of bounds, forcing me to either mark them as a not oriented BB or to make them appear smaller as they actually are. But both solutions are rather bad for me because they may confuse the AI which needs to learn to mark even them properly.
Take this image as an example:
The minimal size of the rectangle can be determined as marked in the image, but labeling it properly is impossible without going out of the margin. I need to either not use oriented BB and include a big part of the background and mark it as not rotated, or make the labeled area smaller than it actually is (the label marked in the image doesn't even cover 1/3 of the actual rectangle).
I would like to be able to place at least one corner of the labeled area per image side out of the image margin to allow me to deal with issues like I described (Or rather in a way that each side of the label can't go fully out of image margin, but that might be not enough for other users who work with fully identical rectangles going out of bounds or so).
Actually I do not need an immediate update which implements this feature. If somebody can tell me the location of the code snippet which prevents me from moving my OBB out of bounds, I could change it for me by myself which would also be enough for me.
Can anyone help me?
The text was updated successfully, but these errors were encountered: