PixelLib
PixelLib copied to clipboard
Replace Segmented Part with other Image
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.
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.