Skip to content
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

Create holes in masks #8847

Open
2 tasks done
javaidakhan opened this issue Dec 19, 2024 · 3 comments
Open
2 tasks done

Create holes in masks #8847

javaidakhan opened this issue Dec 19, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@javaidakhan
Copy link

Actions before raising this issue

  • I searched the existing issues and did not find anything similar.
  • I read/searched the docs

Is your feature request related to a problem? Please describe.

I am annotating for ai cargo camera and have to annotate used space and unused space inside the trailer, I want to cut out used space from unused space masks but cannot do it, I read and saw the video that this problem is solved but I could not see how. Can you add a subtraction tool. Right now we need to do lot of work to achieve this and in the end use code to subtract the pixels. Also can you add a feature to convert cuboids to masks automatically.

Describe the solution you'd like

Can you add a subtraction tool to cut one mask from another, like in our case used space from unused space inside the trailer.?

Describe alternatives you've considered

I am searching other tools and it seems they have it but are more costly but would have to go for them to solve our problem unless you add it soon.

Additional context

No response

@javaidakhan javaidakhan added the enhancement New feature or request label Dec 19, 2024
@klakhov
Copy link
Contributor

klakhov commented Dec 19, 2024

Hi @javaidakhan
Have you tried using remove underlying pixels(we have docs about it here) masks feature? If so, why it doesnt work for you?

@javaidakhan
Copy link
Author

Hi @javaidakhan Have you tried using remove underlying pixels(we have docs about it here) masks feature? If so, why it doesnt work for you?

If you mean using eraser to remove underlying pixels we tried it but it takes too much time, no practical, can you add a feature to cut holes automatically and give a visible option.

@klakhov
Copy link
Contributor

klakhov commented Dec 20, 2024

No, this is not related to using the eraser tool.

The Remove underlying pixels feature allows you to draw a mask over an existing mask while automatically deleting the pixels of the underlying mask. You can enable this feature using the arrow icon:
image

In your case, you can first draw the unused space mask. Then, enable the feature and draw the used space mask. Wherever the used space mask overlaps with the unused space mask, the overlapping pixels from the unused space will be automatically removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants