PixelLib icon indicating copy to clipboard operation
PixelLib copied to clipboard

Replace Segmented Part with other Image

Open MrPhilosopher opened this issue 3 years ago • 1 comments

Hi,

I'm trying to segment an image using ADE20K model, can anyone help me in replacing any specific segmented part with any other image or to change color of that part only.

I hope am clear with my question.

Thanks.

MrPhilosopher avatar Sep 29 '21 17:09 MrPhilosopher

You need to look at segmentImage class and change the code in apply_mask(). There you can use box or mask arrays to replace your image.

aminrabinia avatar Oct 13 '21 18:10 aminrabinia