Method, apparatus, device and storage medium for transforming hairstyle
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsHaotian Peng, Chen Zhao
Life of this patent
Estimating the term…
Abstract
A method, apparatus, device, and storage medium for transforming a hairstyle are provided. The method may include: determining a face bounding box according to information on face key points of acquired face image; constructing grids according to the face bounding box; deforming, by using an acquired target hairstyle function, edge lines of at least a part of the constructed grids, which comprises the hairstyle, to obtain a deformed grid curve; determining a deformed hairstyle in the face image according to the deformed grid curve.
Claims15
A method for transforming a hairstyle, comprising:
- determining a face bounding box according to acquired information on face key points of a face image;
- constructing grids according to the determined face bounding box;
- deforming, by using an acquired target hairstyle function, edge lines of at least a part of the constructed grids to obtain a deformed grid curve, the edge lines comprising the hairstyle;
- determining a deformed hairstyle in the face image according to the deformed grid curve.
An electronic device, comprising:
- at least one processor;
- and
- a memory connected to the at least one processor;
- wherein, the memory stores instructions executable by the at least one processor to enable the at least one processor to perform operations comprising:
- determining a face bounding box according to acquired information on face key points of a face image;
- constructing grids according to the determined face bounding box;
- deforming, by using an acquired target hairstyle function, edge lines of at least a part of the constructed grids to obtain a deformed grid curve, the edge lines comprising the hairstyle;
- determining a deformed hairstyle in the face image according to the deformed grid curve.
A non-transitory computer readable storage medium storing computer instructions, wherein the computer instructions are used for causing a computer to perform operations comprising:
- determining a face bounding box according to acquired information on face key points of a face image;
- constructing grids according to the determined face bounding box;
- deforming, by using an acquired target hairstyle function, edge lines of at least a part of the constructed grids to obtain a deformed grid curve, the edge lines comprising the hairstyle;
- determining a deformed hairstyle in the face image according to the deformed grid curve.
Dependencies are inferred from the claim text.