I want to extract the foreground in image. I know that the grabcut can achieve it. But I want to use the alpha matting method. I'm searching the code that alpha matting algorithm by python and I can't find it. Can you help me? Thank you
I'm not aware of a tool you can use out of the box that does what you want, but here is a method you can use to implement alpha matting:
.split()
method found here, which splits the image into R, G,B, and A bands..filter()
on the appropriate band to find edges and outline them.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With