Closed rohitdavas closed 2 years ago
@rohitdavas if I understand correctly, you want that remaining thin blue region to also be included in the mask, right?
First, the general comment is that the mask is pretty good as it is :)
It can be improved. If you look at the grabcut_mask(rgb_im, mask)
function, it initializes the GrabCut algorithm with
mask
as surely foregroundmask
as probably background, andYou can change (2) from probably background to probably foreground, or just remove that probably foreground/background initialization alltogether. See if that gives better results. If that does not work we can think of some other ideas.
Thanks. I am closing issue for this. You understood it right. I opened the issue to understand what I am doing is good enough with what you have found while working on this.
Thanks for your comment.
We can generate masks for objects and hands. ( This issue does not concern the hands masks as they use MANO and I can't use them due to license issue. )
When I am trying to generate masks for objects, there is margin of blue that is left. Can you give some suggestion what might be going wrong ?
Using grabcut to optimize gives result :
My logic :