CPC H04N 21/23424 (2013.01) [H04N 21/23418 (2013.01)] | 18 Claims |
1. A method for searching an advertisement (AD) insertion position, comprising following steps:
S1. identifying a human body area in a video image;
S2. identifying a blank wall area in the video image; and
S3. determining the AD insertion position in the blank wall area in the video image, so that the AD insertion position intersects the human body area;
wherein in step S1, the human body area is segmented by using a neural network, the neural network takes the video image as input and outputs a masked image Mh(x,y) of a human body, the width and height of the masked image Mh(x,y) are the same as the width W and height H of the video image I(x,y), respectively, x={0,1, . . . ,W-1} and y={0,1, . . . ,H-1}, pixel values in the masked image Mh(x,y) are that:
pixels in a non-human body area are expressed as Mh(x,y)=0; pixels in the human body area are expressed as Mh(x,y)=1; and
the human body area in the masked image Mh(x,y) is:
Rh(x,y), when Mh(x,y)=1.
|