X-AnyLabeling icon indicating copy to clipboard operation
X-AnyLabeling copied to clipboard

How can I efficiently annotate small targets?

Open ljh725 opened this issue 1 year ago • 7 comments

Search before asking

  • [x] I have searched the X-AnyLabeling issues and found no similar feature requests.

Description

In the target detection task, if the target is small and there are many targets in a picture, you need to zoom the picture back and forth and then adjust the boundary of the target box. If you click the mouse on the target and then zoom with Ctrl + mouse, this function is defined as automatic, which should improve a lot of standard efficiency. From an annotation point of view, the ability to automatically zoom objects is more effective than the ability to move images

Use case

Image The player in this picture needs to zoom back and forth many times

Additional

This function can be roughly divided into two parts. The first part uses specific labels to enter single object display mode, for example F2 and then single object selection, while F3 and F4 are used for object switching. The second part can also be opened with a label similar to using F5, so that after opening F5, the software can enlarge the label box according to the relative coordinate information of the label box. The third f2 and F5 are types of parent-child functions. When F2 is turned on, F5 is enabled; when F2 is disabled, F5 is disabled. The first part of the function is relatively easy to achieve, that is, through a single goal to learn to choose. The second part of the zoom function is not easy to get. I tried, but there was no way to zoom in on the labeled area. Try debugging, can not solve the scroll bar value passed in the problem.

Are you willing to submit a PR?

  • [ ] Yes I'd like to help by submitting a PR!

ljh725 avatar Jun 20 '25 02:06 ljh725

Hey there, @ljh725!

Thank you for reporting this issue. For small object annotation tasks, we strongly recommend using the Loop through labels feature in combination with the wheel zooming functionality to adjust bounding boxes more efficiently. You can watch the demonstration video below for detailed instructions on how to use these features.

  1. Loop through labels: This feature allows you to cycle through different label classes with auot-zoom quickly. You can activate it using the shortcut Ctrl + Shift + N.

  2. Wheel zooming for bounding box adjustment: To enable this feature, modify the configuration file located in your user directory (~/.xanylabelingrc). Look for the wheel_rectangle_editing field and set its value to True and make suer you are using the latest commit branch. This will allow you to use the mouse wheel to zoom in and out while adjusting bounding boxes smoothly.

For more detailed discussions and related configurations, please refer to issue #989.

If you encounter any further issues or have additional questions, feel free to reach out. We appreciate your feedback and are here to assist you!

https://github.com/user-attachments/assets/9aa4ba5a-ab95-401f-aaf0-1ee1e8071c93

CVHub520 avatar Jun 20 '25 16:06 CVHub520

Thanks for the reply, this solved the big problem I encountered, PR is just a try, x-any is a good project, AI will make it more brilliant

ljh725 avatar Jun 21 '25 15:06 ljh725

A small suggested rectangle with a smaller index in shapes and covered will not automatically highlight the starting rectangle. There are two ways to solve this problem. 1. Use the shortcut S to hide the upper rectangle. 2. Arrange the rectangles in descending order of area, so that each rectangle can trigger automatic highlighting.

ljh725 avatar Jun 21 '25 15:06 ljh725

How can I turn label name off. Label name is larger than I annotated.

Yung-Chih-Lo avatar Jul 09 '25 10:07 Yung-Chih-Lo

How can I turn label name off. Label name is larger than I annotated.

@Yung-Chih-Lo Hi! It's very easy to turn off label names in X‑AnyLabeling — simply press Ctrl+L. For more details, please refer to the user guide.

CVHub520 avatar Jul 10 '25 14:07 CVHub520

When labeling small objects, how can I reduce the width of the annotation box? This prevents the object from becoming obscured.

wusaisa avatar Aug 28 '25 03:08 wusaisa

When labeling small objects, how can I reduce the width of the annotation box? This prevents the object from becoming obscured.

https://github.com/CVHub520/X-AnyLabeling/blob/64807d07231393e77b557e7ecbb93ec3a304346e/anylabeling/configs/xanylabeling_config.yaml#L39-L49

CVHub520 avatar Nov 25 '25 09:11 CVHub520