ayoolaolafenwa / PixelLib

Visit PixelLib's official documentation https://pixellib.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace Segmented Part with other Image

MrPhilosopher opened this issue · 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.

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.