Image processing method and apparatus, and storage medium
AssigneeTencent Technology (Shenzhen) Company Limited
InventorYang Gao
Life of this patent
Estimating the term…
Abstract
An image processing method includes: obtaining a first target face image in a reference expression state; obtaining user face key point offset information that includes offsets between face key points of a user in a target expression state and face key points of the user in the reference expression state; adjusting face key points of the first target face image in the reference expression state according to the user face key point offset information; and attaching, in a to-be-processed image including a second target face image, an expression texture image of the adjusted first target face image to the second target face image, the second target face image and the first target face image belonging to a same target.
Claims18
An image processing method, performed by a computer device, the method comprising:
- obtaining a first target face image in a reference expression state;
- obtaining user face key point offset information that includes offsets between face key points of a user in a target expression state and face key points of the user in the reference expression state;
- adjusting face key points of the first target face image according to the user face key point offset information;
- and
- attaching, in a to-be-processed image comprising a second target face image, an expression texture image of the adjusted first target face image to the second target face image, the second target face image and the first target face image belonging to a same target,
- wherein the user face key point offset information includes an offset between a first face key point in a first user face image in the reference expression state and a second face key point in a second user face image in the target expression state, and the offset is obtained by:
- using a center point or a center line of a facial organ corresponding to the first face key point and the second face key point as a reference object, and separately determining a location of the first face key point relative to the reference object and a location of the second face key point relative to the reference object;
- and
- determining the offset according to a difference between the location of the first face key point relative to the reference object and the location of the second face key point relative to the reference object.
An image processing apparatus, comprising:
- a memory and a processor, the processor being configured to:
- obtain a first target face image in a reference expression state;
- and obtain user face key point offset information that includes offsets between face key points of a user in a target expression state and face key points of the user in the reference expression state;
- adjust face key points of the first target face image according to the user face key point offset information;
- and
- attach, in a to-be-processed image comprising a second target face image, an expression texture image of the adjusted first target face image to the second target face image, the second target face image and the first target face image belonging to a same target,
- wherein the user face key point offset information includes an offset between a first face key point in a first user face image in the reference expression state and a second face key point in a second user face image in the target expression state, and the offset is obtained by:
- using a center point or a center line of a facial organ corresponding to the first face key point and the second face key point as a reference object, and separately determining a location of the first face key point relative to the reference object and a location of the second face key point relative to the reference object;
- and
- determining the offset according to a difference between the location of the first face key point relative to the reference object and the location of the second face key point relative to the reference object.
A non-transitory computer-readable storage medium, storing a computer program, the computer program, when executed by a processor, causing the processor to perform:
- obtaining a first target face image in a reference expression state;
- obtaining user face key point offset information that includes offsets between face key points of a user in a target expression state and face key points of the user in the reference expression state;
- adjusting face key points of the first target face image according to the user face key point offset information;
- and
- attaching, in a to-be-processed image comprising a second target face image, an expression texture image of the adjusted first target face image to the second target face image, the second target face image and the first target face image belonging to a same target,
- wherein the user face key point offset information includes an offset between a first face key point in a first user face image in the reference expression state and a second face key point in a second user face image in the target expression state, and the offset is obtained by:
- using a center point or a center line of a facial organ corresponding to the first face key point and the second face key point as a reference object, and separately determining a location of the first face key point relative to the reference object and a location of the second face key point relative to the reference object;
- and
- determining the offset according to a difference between the location of the first face key point relative to the reference object and the location of the second face key point relative to the reference object.
Dependencies are inferred from the claim text.