CPC G06T 7/194 (2017.01) [G06T 5/50 (2013.01); G06T 7/254 (2017.01); G06T 2207/20112 (2013.01)] | 18 Claims |
1. A method for generating a background-free image, comprising:
determining an image proportion of a target subject in an original image;
determining, in response to the image proportion being less than a preset threshold, a smallest bounding matrix of the target subject based on a binarized mask of the original image;
enlarging an image region corresponding to the smallest bounding matrix to a preset multiple, for use as a clipped image region;
clipping a corresponding image block from the original image based on a position of the clipped image region, for use as a subject region image;
determining a corresponding subject region mask based on the subject region image; and
synthesizing the subject region mask and the subject region image to generate a background-free image corresponding to the original image.
|