US 11,704,811 B2
Method and apparatus for generating background-free image, device, and medium
Haiyan Yang, Beijing (CN)
Assigned to Beijing Baidu Netcom Science and Technology Co., Ltd., Beijing (CN)
Filed by Beijing Baidu Netcom Science and Technology Co., Ltd., Beijing (CN)
Filed on Mar. 25, 2021, as Appl. No. 17/212,978.
Claims priority of application No. 202010443553.X (CN), filed on May 22, 2020.
Prior Publication US 2021/0217180 A1, Jul. 15, 2021
Int. Cl. G06T 7/00 (2017.01); G06T 7/194 (2017.01); G06T 7/254 (2017.01); G06T 5/50 (2006.01)
CPC G06T 7/194 (2017.01) [G06T 5/50 (2013.01); G06T 7/254 (2017.01); G06T 2207/20112 (2013.01)] 18 Claims
OG exemplary drawing
 
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.