CPC G06V 40/16 (2022.01) [G06V 10/26 (2022.01); G06V 10/754 (2022.01); G06V 10/82 (2022.01); G06V 40/161 (2022.01); G06V 40/168 (2022.01); G06V 40/40 (2022.01); G06V 10/759 (2022.01); G06V 40/172 (2022.01)] | 14 Claims |
1. A computer-implemented method, comprising:
obtaining an input image comprising a face;
detecting a blending boundary in the input image; and
generating, based on the detecting, a grayscale image associated with the input image, the grayscale image indicating whether the face in the input image is forged, wherein generating the corresponding grayscale image comprises:
detecting a plurality of facial landmarks in the real image;
determining, based on the plurality of facial landmarks, a mask image for replacement of at least a part of a face by performing random shape deformation on a mask region in the mask image; and
generating, based on the mask image, the corresponding grayscale image.
|