Hi, I am using OpenCV android library to extract an image from background, for this i have used grabcut() method.
Here is the code :
Imgproc.grabCut(imgC3, mask, rect, bgdModel, fgdModel, 1 ,Imgproc.GC_INIT_WITH_RECT);
but main problem is sometime it's extract some portion of the forground image also.
so how can i perform only background transparent.
↧