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 am trying to remove white pixels (RGB ➡️ 255 255 255, but also close values like 255 254 255 or 253 255 255 for example) from any random clothes images.
When you searched for similar issues, what did you find that might be related?
I found this, so I tried to use threshold and unflatten.
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this question
With this code ⬆️, im having this result:
Before:
After:
This is good but not perfect, it seems to remove the whitest pixels (255 255 255) but not the darkest ones (253 255 255) for example as you can see still some white part staying around the pant.
So I tried different values/options in thresold but I never manage to found one. I tried
Question about an existing feature
What are you trying to achieve?
I am trying to remove white pixels (RGB ➡️ 255 255 255, but also close values like 255 254 255 or 253 255 255 for example) from any random clothes images.
When you searched for similar issues, what did you find that might be related?
I found this, so I tried to use threshold and unflatten.
Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this question
With this code ⬆️, im having this result:
Before:
After:
This is good but not perfect, it seems to remove the whitest pixels (255 255 255) but not the darkest ones (253 255 255) for example as you can see still some white part staying around the pant.
So I tried different values/options in thresold but I never manage to found one. I tried
But I gave me a strange black pants in result 😅 Im not sure to really understand how this works
Could you help me finding the correct values I need or give me a better solution? Thanks!
The text was updated successfully, but these errors were encountered: