CPC G06T 7/0012 (2013.01) [G06T 3/40 (2013.01); G06T 3/60 (2013.01); G06V 40/161 (2022.01); G06V 40/168 (2022.01); G06T 2207/20016 (2013.01); G06T 2207/30088 (2013.01); G06T 2207/30201 (2013.01)] | 12 Claims |
1. A wrinkle detection method, comprising:
rotating, according to some or all preset angles in a preset angle set, a region of a face image, in which a wrinkle will be detected, to obtain a plurality of to-be-detected images, wherein the preset angle set comprises a plurality of preset angles, and values of the preset angles are different;
determining wrinkle points from all pixel points of each to-be-detected image of the plurality of to-be-detected images based on grayscale values of the pixel points in each to-be-detected image of the plurality of to-be-detected images;
determining at least one wrinkle line from the plurality of to-be-detected images based on the wrinkle points, wherein each of the at least one wrinkle line indicates one wrinkle in each to-be-detected image of the plurality of to-be-detected images;
performing, for the at least one wrinkle line corresponding to each to-be-detected image, reverse rotation according to a preset angle based on which the to-be-detected image is obtained, to obtain rotated wrinkle lines;
fusing the rotated wrinkle lines into the region in which the wrinkle will be detected, to obtain a wrinkle line corresponding to the region in which the wrinkle will be detected;
displaying the wrinkle line in the region;
determining a wrinkle score corresponding to the region in which the wrinkle will be detected based on a feature set of the displayed wrinkle line, wherein the feature set comprises the following features: a length of the wrinkle line, a width of the wrinkle line, and a contrast ratio value of a pixel point on the wrinkle line, and an area proportion of the wrinkle line, wherein the contrast ratio value represents a contrast ratio of the pixel point on the wrinkle line, and the area proportion of the wrinkle line represents a proportion of a quantity of pixels on the wrinkle line to a quantity of all pixels in the to-be-detected image; and
outputting the wrinkle score, wherein the wrinkle score is determined according to the following formula:
H=A×ω1+B×ω2+C×ω3+D×ω4+ω5, wherein
H is the wrinkle score, A is the length of the wrinkle line, B is the width of the wrinkle line, C is the contrast ratio value of the pixel point on the wrinkle line, D is the area proportion of the wrinkle line, ω1, ω2, ω3, and ω4 are preset parameters less than o, and ω5 is a preset parameter.
|