hottub.patents
US 12,505,652 B2#2217472 Most CitedActiveUnited States (USPTO)Utility

Face synthesis for forgery detection

1Forward Citations (#2217472 Global)
1.0/yrCitation Velocity (#2217472 Global)
0.17Citation PageRank (#2217472 Global)
23Prior Art Cited
18Claims (3 Indep. · 15 Dep.)
11Drawings / Sheets

Abstract

This application relates to a face image processing method, apparatus, computer device, and storage medium. The method includes acquiring a first face image and a second face image, the first face image and the second face image being images of real faces; generating a first updated face image with non-real face image characteristics based on the first face image; adjusting color distribution of the first updated face image according to color distribution of the second face image to obtain a first adjusted face image; acquiring a target face mask of the first face image, the target face mask being generated by randomly deforming a face region of the first face image; and blending the first adjusted face image and the second face image according to the target face mask to obtain a target face image. Accordingly, a diversity of target face images can be generated.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 23 · Forward citations: 1.

Claims (18 — 3 Independent, 15 Dependent)

  1. Claim 1Independent Claim

    A face image processing method, performed by a computer device, comprising: acquiring a first face image and a second face image, the first face image and the second face image being images of real faces; generating a first updated face image with non-real face image characteristics based on the first face image; adjusting color distribution of the first updated face image according to color distribution of the second face image to obtain a first adjusted face image; acquiring a target face mask of the first face image, the target face mask being generated by randomly deforming a face region of the first face image; performing face occlusion detection on the second face image to obtain a face occlusion region; adjusting the target face mask according to the face occlusion region to obtain an adjusted face mask; blending the first adjusted face image and the second face image according to the adjusted face mask to obtain a target face image; and training a face detection model using the target face image, the face detection model being used for determining authenticity of a face image, the determining the authenticity of the face image comprising detecting whether the face image is a non-real face image forged through a technical means.

  2. Claim 2Depends on #1

    The method according to claim 1, wherein the generating the first updated face image with the non-real face image characteristics based on the first face image comprises: calculating weights of pixel points in the first face image by using a Gaussian function to obtain a fuzzy weight matrix of the pixel points; and obtaining fuzzy pixel values of the pixel points according to original pixel values of the pixel points in the first face image and the fuzzy weight matrix of the pixel points, and generating the first updated face image with the non-real face image characteristics based on the fuzzy pixel values of the pixel points.

  3. Claim 3Depends on #1

    The method according to claim 1, wherein generating the first updated face image with the non-real face image characteristics based on the first face image comprises: acquiring a compression ratio, and compressing the first face image by using the compression ratio to obtain a compressed first face image; and using the compressed first face image as the first updated face image with the non-real face image characteristics.

  4. Claim 4Depends on #1

    The method according to claim 1, wherein the generating the first updated face image with the non-real face image characteristics based on the first face image comprises: generating a Gaussian noise value, and adding the Gaussian noise value to the pixel values of the first face image to obtain the first updated face image with the non-real face image characteristics.

  5. Claim 5Depends on #1

    The method according to claim 1, wherein the acquiring the target face mask of the first face image, the target face mask being generated by randomly deforming a face region of the first face image comprises: extracting face keypoints in the first face image, and determining a face region of the first face image according to the face keypoints; and randomly adjusting positions of the face keypoints in the face region of the first face image to obtain a deformed face region, and generating the target face mask according to the deformed face region.

  6. Claim 6Depends on #1

    The method according to claim 1, wherein the adjusting the target face mask according to the face occlusion region to obtain the adjusted face mask comprises: calculating differences between mask values of pixel points in the target face mask and occlusion values of pixel points in the face occlusion region, and using the differences as mask adjustment values; and obtaining the adjusted face mask according to the mask adjustment values.

  7. Claim 7Depends on #1

    The method according to claim 1, wherein the adjusting the color distribution of the first updated face image according to the color distribution of the second face image to obtain the first adjusted face image comprises: acquiring a target color adjustment algorithm identification, and calling a target color adjustment algorithm according to the target color adjustment algorithm identification, the target color adjustment algorithm comprising at least one of a color migration algorithm and a color matching algorithm; and adjusting, based on the target color adjustment algorithm, the color distribution of the first updated face image to be consistent with the color distribution of the second face image to obtain the first adjusted face image.

  8. Claim 8Depends on #1

    The method according to claim 1, wherein the blending the first adjusted face image and the second face image according to the target face mask to obtain the target face image comprises: acquiring a target image blending algorithm identification, and calling a target image blending algorithm according to the target image blending algorithm identification; the target image blending algorithm comprising at least one of an alpha blending algorithm, a Poisson blending algorithm, and a neural network algorithm; and blending, by using the target image blending algorithm, the first adjusted face image and the second face image based on the target face mask to obtain a target face image.

  9. Claim 9Depends on #8

    The method according to claim 8, wherein the blending, by using the target image blending algorithm, the first adjusted face image and the second face image based on the target face mask to obtain the target face image comprises: determining a first adjusted face region from the first adjusted face image according to the target face mask; and blending the first adjusted face region to a position of the face region in the second face image to obtain the target face image.

  10. Claim 10Depends on #8

    The method according to claim 8, wherein the blending, by using the target image blending algorithm, the first adjusted face image and the second face image based on the target face mask to obtain the target face image comprises: determining a region of interest from the first adjusted face image according to the target face mask, and calculating a first gradient field of the region of interest and a second gradient field of the second face image; determining a blended gradient field according to the first gradient field and the second gradient field, and calculating a blended divergence field by using the blended gradient field; and determining a second blended pixel value based on the blended gradient field, and obtaining the target face image according to the second blended pixel value.

  11. Claim 11Depends on #1

    The method according to claim 1, wherein the training of the face detection model comprises the following operations: acquiring a real face image data set and a target face image data set, various target face images in the target face image data set being generated by using different first real face images and second real face images in the real face image data set; using the target face image data set as a current face image data set, using various real face images in the real face image data set as positive sample data, using various current face images in the current face image data set as negative sample data, and performing training by using a deep neural network algorithm to obtain a current face detection model; acquiring test face image data, and testing the current face detection model by using the test face image data to obtain corresponding accuracy of the current face detection model, the test face image data and the real face image data set being different data sets; acquiring an updated target face image data set when the accuracy is less than a preset accuracy threshold, the updated target face image data set comprising various target face images in the target face image data set and various updated target face images, and the various updated target face images being regenerated by using different first real face images and second real face images in the real face image data set; and using the updated target face image data set as the current face image data set, returning to perform the operation of using various real face images in the real face image data set as positive sample data, using various current face images in the current face image data set as negative sample data, and performing training by using a deep neural network algorithm to obtain a current face detection model until the accuracy exceeds the preset accuracy threshold, and using the obtained current face detection model as the face detection model.

  12. Claim 12Depends on #11

    The method according to claim 11, wherein after the using the obtained current face detection model as the face detection model, the method further comprises: acquiring a face image to be detected, inputting the face image to be detected into a face detection model for detection to obtain a detection result, and generating alarm information if the detection result is a non-real face image.

  13. Claim 13Independent Claim

    A computer device, comprising a memory and a processor, the memory storing a computer program, and the processor, when executing the computer program, being configured to perform: acquiring a first face image and a second face image, the first face image and the second face image being images of real faces; the generating a first updated face image with non-real face image characteristics based on the first face image; adjusting color distribution of the first updated face image according to color distribution of the second face image to obtain a first adjusted face image; acquiring a target face mask of the first face image, the target face mask being generated by randomly deforming a face region of the first face image; performing face occlusion detection on the second face image to obtain a face occlusion region; adjusting the target face mask according to the face occlusion region to obtain an adjusted face mask; blending the first adjusted face image and the second face image according to the adjusted face mask to obtain a target face image; and training a face detection model using the target face image, the face detection model being used for determining authenticity of a face image, the determining the authenticity of the face image comprising detecting whether the face image is a non-real face image forged through a technical means.

  14. Claim 14Depends on #13

    The computer device according to claim 13, wherein the generating the first updated face image with the non-real face image characteristics based on the first face image comprises: calculating weights of pixel points in the first face image by using a Gaussian function to obtain a fuzzy weight matrix of the pixel points; and obtaining fuzzy pixel values of the pixel points according to original pixel values of the pixel points in the first face image and the fuzzy weight matrix of the pixel points, and generating the first updated face image with the non-real face image characteristics based on the fuzzy pixel values of the pixel points.

  15. Claim 15Depends on #13

    The computer device according to claim 13, wherein the generating the first updated face image with the non-real face image characteristics based on the first face image comprises: acquiring a compression ratio, and compressing the first face image by using the compression ratio to obtain a compressed first face image; and using the compressed first face image as the first updated face image with the non-real face image characteristics.

  16. Claim 16Independent Claim

    A non-transitory computer-readable storage medium, storing a computer program, and the computer program, when executed by a processor, causing the processor to perform operations comprising: acquiring a first face image and a second face image, the first face image and the second face image being images of real faces; generating a first updated face image with non-real face image characteristics based on the first face image; adjusting color distribution of the first updated face image according to color distribution of the second face image to obtain a first adjusted face image; acquiring a target face mask of the first face image, the target face mask being generated by randomly deforming a face region of the first face image; performing face occlusion detection on the second face image to obtain a face occlusion region; adjusting the target face mask according to the face occlusion region to obtain an adjusted face mask; blending the first adjusted face image and the second face image according to the adjusted face mask to obtain a target face image; and training a face detection model using the target face image, the face detection model being used for determining authenticity of a face image, the determining the authenticity of the face image comprising detecting whether the face image is a non-real face image forged through a technical means.

  17. Claim 17Depends on #16

    The computer-readable storage medium according to claim 16, wherein the generating the first updated face image with the non-real face image characteristics based on the first face image comprises: generating a Gaussian noise value, and adding the Gaussian noise value to the pixel values of the first face image to obtain the first updated face image with the non-real face image characteristics.

  18. Claim 18Depends on #16

    The computer-readable storage medium according to claim 16, wherein the acquiring the target face mask of the first face image, the target face mask being generated by randomly deforming a face region of the first face image comprises: extracting face keypoints in the first face image, and determining a face region of the first face image according to the face keypoints; and randomly adjusting positions of the face keypoints in the face region of the first face image to obtain a deformed face region, and generating the target face mask according to the deformed face region.

Technical Overview & Description

RELATED APPLICATIONS This application is a continuation application of PCT Application No. PCT/CN2021/100912, filed on Jun. 18, 2021, which in turn claims priority to Chinese Patent Application No. 2020107302099 filed with the China National Intellectual Property Administration on Jul. 27, 2020 and entitled “ FACE IMAGE PROCESSING METHOD, APPARATUS, COMPUTER DEVICE, AND STORAGE MEDIUM. ” The two applications are incorporated herein by reference in their entirety. FIELD OF THE TECHNOLOGY This application relates to the field of computer technologies, and in particular, to a face image processing method, apparatus, computer device, and storage medium. BACKGROUND OF THE DISCLOSURE With the development of artificial intelligence technologies, the face swap technology, that is, swapping a human face in a human face image with another human face to obtain a fake face image, has emerged. Increasingly, more application scenarios require the use of fake face images, for example, recognition of fake face images in human face recognition scenarios, generation of funny videos by using fake face images, and the like. However, for current fake face images, a human face in a human face image is directly swapped with another human face, and the generated fake face images are not diverse. SUMMARY According to various embodiments provided in this application, a face image processing method, apparatus, computer device, and storage medium are provided. One aspect of the present disclosure provides a face image processing method. The method includes acquiring a first face image and a second face image, the first face image and the second face image being images of real faces; generating a first updated face image with non-real face image characteristics based on the first face image; adjusting color distribution of the first updated face image according to color distribution of the second face image to obtain a first adjusted face image; acquiring a target face mask of the first face im

Cited By — Indexed Forward Citations (1 of 1 total)

References Cited — Backward Prior Art (23)

PatentTitleYearCitations

Non-Patent Literature (10)

  • The World Intellectual Property Organization (WIPO) International Search Report for PCT/CN2021/119651 Dec. 21, 2021 6 Pages (including translation).
  • Deepfacelab.https://github.com/iperov/DeepFaceLab. Accessed: May 10, 2020.
  • Irene Amerini et al,
  • “
  • A SIFT-based forensic method for copy-move attack detection and transformation recovery
  • ”
  • , 2011. TIFS, IEEE Transactions on Information Forensics and Security.
  • Hany Farid,
  • “
  • Image Forgery Detection