Method, and apparatus, device, and storage medium for generating effect image
AssigneeBeijing Zitiao Network Technology Co., Ltd.
InventorShengnan Wang
Life of this patent
Estimating the term…
Abstract
Examples of the disclosure disclose a method and apparatus for generating an effect image, a device, and a storage medium. The method includes: acquiring a character appearance image to be morphed, and a first morphing point in the character appearance image to be morphed; acquiring a second morphing point in a character appearance template; determining a target morphing point according to the second morphing point and the first morphing point; and generating a character appearance morphing effect image based on the target morphing point.
Claims20
A method for generating an effect image, comprising:
- acquiring a character appearance image to be morphed, and a first morphing point in the character appearance image to be morphed;
- acquiring a second morphing point in a character appearance template;
- determining a target morphing point according to the second morphing point and the first morphing point;
- generating a character appearance morphing effect image based on the target morphing point;
- wherein after the target morphing point is obtained, the method further comprises:
- constructing an ellipse of a set size by using the first morphing point as a center;
- obtaining a point of intersection of a connection line connecting the first morphing point and the target morphing point with the ellipse to determine the point of intersection as a final target morphing point in response to determining that the target morphing point falls outside the ellipse;
- and
- retaining the target morphing point in response to determining that the target morphing point falls within the ellipse.
An electronic device, comprising:
- one or more processors;
- and a memory configured to store one or more programs which, when executed by the one or more processors, cause the one or more processors to implement operations, the operations comprising:
- acquiring a character appearance image to be morphed, and a first morphing point in the character appearance image to be morphed;
- acquiring a second morphing point in a character appearance template;
- determining a target morphing point according to the second morphing point and the first morphing point;
- generating a character appearance morphing effect image based on the target morphing point;
- wherein after the target morphing point is obtained, the operations further comprise:
- constructing an ellipse of a set size by using the first morphing point as a center;
- obtaining a point of intersection of a connection line connecting the first morphing point and the target morphing point with the ellipse to determine the point of intersection as a final target morphing point in response to determining that the target morphing point falls outside the ellipse;
- and
- retaining the target morphing point in response to determining that the target morphing point falls within the ellipse.
A non-transitory computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor implements operations, the operations comprising:
- acquiring a character appearance image to be morphed, and a first morphing point in the character appearance image to be morphed;
- acquiring a second morphing point in a character appearance template;
- determining a target morphing point according to the second morphing point and the first morphing point;
- generating a character appearance morphing effect image based on the target morphing point;
- wherein after the target morphing point is obtained, the operations further comprise:
- constructing an ellipse of a set size by using the first morphing point as a center;
- obtaining a point of intersection of a connection line connecting the first morphing point and the target morphing point with the ellipse to determine the point of intersection as a final target morphing point in response to determining that the target morphing point falls outside the ellipse;
- and
- retaining the target morphing point in response to determining that the target morphing point falls within the ellipse.
Dependencies are inferred from the claim text.