In this case, for example, the user drew the yellow sketch and there are exclusion and inclusion strokes you can see, for this was the initial one, then some exclusions, and that gives that output at the selected part of the image.
Now this shows the user interface to the selection tool you can also control here the magnification, how fine segmentation you want to use, very fine or very close, you can also select multiple occurrence of the same object, so a number of objects you want to select and then some of the details that you can control.
So, this is how the tool that we have developed looks, you can make those selections.