Reputation: 180
I am working on a computer vision project that involves the segmentation of images. However, I do not want a 'normal' segmentation (like this), rather, I want a segmentation that only leaves the desired image itself, without even a blank background (similar to this).
Right now, I am thinking that the background needs to be set to the alpha channel after image segmentation, after which the image can be fed into a probabilistic program. Is that the proper way to approach this, or do I need to perform additional preprocessing to segment the desired image BTW, I am working with opencv-python
.
Upvotes: 0
Views: 318
Reputation: 1032
The image you're providing is segmentation results for different approaches.
So from first image, you have to apply the "hierarchical analyzing", then you will have the result as second image. The easiest approach using opencv is :
Hope this help.
Upvotes: 1