Image face changing method and device, video face changing method and device, equipment and storage medium

A technology in images and images, applied in the field of image processing, can solve the problems of slow face-swapping fusion, low image face-swapping efficiency, and high algorithm complexity

Pending Publication Date: 2020-10-30
GUANGZHOU BAIGUOYUAN INFORMATION TECH CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide an image face-changing method, a video face-changing method, a device, a device, and a storage medium, so as to solve the problem of face-changing images using Poisson fusion in the prior art due to the high complexity of the algorithm, which leads to face-changing fusion The problem of slow speed and low efficiency of image face changing

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Image face changing method and device, video face changing method and device, equipment and storage medium
  • Image face changing method and device, video face changing method and device, equipment and storage medium
  • Image face changing method and device, video face changing method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] figure 1 It is a flow chart of the steps of an image face-changing method provided by Embodiment 1 of the present invention. This embodiment of the present invention is applicable to the situation of replacing a human face in an image. This method can be implemented by the image face-changing device of the embodiment of the present invention. Execution, the image face-changing device can be implemented by hardware or software, and integrated in the electronic device provided by the embodiment of the present invention, specifically, such as figure 1 As shown, the image face-changing method in the embodiment of the present invention may include the following steps:

[0047] S101. Acquire a second image for performing a face-swapping operation on the first image to be face-swapped, where the first image includes a first human face, and the second image includes a second human face.

[0048] In the embodiment of the present invention, both the first image and the second im...

Embodiment 2

[0060] Figure 2A It is a flow chart of the steps of an image face-changing method provided by Embodiment 2 of the present invention. The embodiment of the present invention is optimized on the basis of the foregoing Embodiment 1. Specifically, as Figure 2A As shown, the image face-changing method in the embodiment of the present invention may include the following steps:

[0061] S201. Acquire a specified image, where the specified image includes a second human face.

[0062] In this embodiment of the present invention, the designated image may be an image given by the user, and the designated image includes a second human face without facial expression. For example, the specified image may be an image containing the user's human face without facial expression. In one example of the present invention, the specified image may be a selfie image of the user. In another example of the present invention, when performing face-changing editing on the first image, the specified im...

Embodiment 3

[0102] image 3 It is a flow chart of the steps of a video face-swapping method provided by Embodiment 3 of the present invention. This embodiment of the present invention is applicable to the situation of replacing a human face in a video. This method can be executed by the video face-swapping device of the embodiment of the present invention. The video face-changing device can be implemented by hardware or software, and integrated in the device provided by the embodiment of the present invention, specifically, as image 3 As shown, the video face-changing method in the embodiment of the present invention may include the following steps:

[0103] S301. Acquire video data to be changed.

[0104]In the embodiment of the present invention, the video data to be face-changed may be the video data watched by the user on the short video or live broadcast platform, the short video data may be the video data of other users, or the short video data taken by the user himself. In one e...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses an image face changing method and device, a video face changing method an device, equipment and a storage medium. The image face changing method comprises thesteps: acquiring a second image used for executing face changing operation on a first image to be subjected to face changing, wherein the first image comprises a first face, and the second image comprises a second face; performing deformation processing on the first face in the first image to obtain a third image containing the deformed first face, wherein face key points of the deformed first face and the second face are aligned; obtaining a fusion mask, wherein the fusion mask has transparency; and replacing the deformed first face in the third image with the second face according to the transparency to obtain a target image after face changing of the first image. According to the embodiment of the invention, the color of the image after face changing is adjusted by calculating the pixel value through the transparency, image face changing is realized without Poisson fusion, the gradient of the image does not need to be calculated, the algorithm is simple, a natural face changing effect is obtained, and the image fusion speed and the image face changing efficiency are improved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of image processing, and in particular, to an image face-swapping method, a video face-swapping method, a device, a device, and a storage medium. Background technique [0002] With the popularity of video applications such as short videos and live broadcasts, editing video faces in videos has become a hot topic, and changing faces in videos is a very interesting and attractive function. Research and exploration on video face swapping It is also a hot topic in recent years. [0003] In the prior art, the Poisson fusion method is often used to replace the face in the video. The Poisson fusion method uses the Poisson equation to solve the optimal value of the pixel. While retaining the gradient information of the source image, it can also fuse the source image well. With the background of the target image, this method solves a Poisson equation according to the boundary conditions spec...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06T3/00
CPCG06T3/0012
Inventor 章菲倩
Owner GUANGZHOU BAIGUOYUAN INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products