Monday 2 August 2021

crop image into individual parts

I used semantic segmentation to color code the different elements in an image shown below. enter image description here

enter image description here

In Python, I want to crop the original image into many small images based on the colors of the second image, so that the sofa becomes one cropped part, the lamp becomes one.etc. The overlap of the pillows on the sofa can be ignored. Say I have a 3D array of an image, I want to separate that array into the individual colored sections, and apply the coordinate of those elements in cropping the original image. How should I achieve this?



from crop image into individual parts

No comments:

Post a Comment