Face replacement method and device
A technology for face replacement and target face, which is applied in the field of face replacement methods and devices, and can solve the problems of incompatibility between facial feature images and backgrounds, inability to satisfy users, and blunt replacement effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2017-04-26
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] Embodiments of the present invention relate to the field of image processing, and in particular to a face replacement method and device. Background technique
[0002] The current face replacement technology simply cuts out the target face and embeds it in the position of the replaced face in the image. The replacement effect is relatively blunt. Usually, there will be facial features such as the expression and posture of the target person after replacement and the image background. The problem of not matching, this replacement technology obviously cannot meet the needs of users. Contents of the invention
[0003] In view of this, the embodiments of the present invention provide a face replacement method and device, which can avoid the problem that the replaced target person does not match the original image, and improve the replacement effect.
[0004] The human face replacement method provided by the embodiment of the present invention includes: ...
Examples
Embodiment 1
[0027] Such as figure 2 As shown, the method of the present embodiment includes the following steps:
[0028] Step 201, extracting facial feature parameters of the first person from the image to be processed;
[0029] In specific implementation, the method of this embodiment can implement face replacement for specified characters in videos (such as TV dramas, movies, short films, etc.), and can also implement face replacement for specified characters in pictures.
[0030] When it is necessary to replace the face of the specified person in the video, a series of images can be intercepted from the video containing the specified person (ie, the first person) according to preset rules to obtain the image to be processed. The preset rule refers to the image interception rule, for example, a preset number of images containing a specified person is intercepted from the video every second, and the preset number can take any value between 1 and 25, for example. And when it is necess...
Embodiment 2
[0046] The method described in Embodiment 1, this embodiment will give an example for further detailed description, and this embodiment will take the replacement of a specified character in the video as an example for illustration, as follows image 3 As shown, the method of the present embodiment includes:
[0047] Step 301, according to preset rules, intercept the image to be processed from the video containing the first person;
[0048] The first character mentioned in this embodiment refers to the replaced character. The preset rule refers to the image interception rule, for example, a preset number of images containing the first person is intercepted from the video every second, and the preset number can take any value between 1 and 25, that is, the intercepted images are a series of , the series of images can be marked (for example, can be identified by interception time, serial number, etc.), and the series of images are the images to be processed.
[0049] Step 302, ...
Embodiment 3
[0065] In order to better implement the above method, the embodiment of the present invention also provides a human face replacement device, such as Figure 4 As shown, the device of this embodiment includes: an extraction unit 401, a selection unit 402, a modeling unit 403, a fitting unit 404 and a processing unit 405, as follows:
[0066] (1) extraction unit 401;
[0067] The extraction unit 401 is configured to extract facial feature parameters of the first person from the image to be processed.
[0068] In specific implementation, the method of this embodiment can implement face replacement for specified characters in videos (such as TV dramas, movies, short films, etc.), and can also implement face replacement for specified characters in pictures.
[0069] When it is necessary to replace the face of the specified person in the video, the device of this embodiment may also include an intercepting unit, which is used to intercept a video containing the specified person (ie...