Patent ID: 11941804
Assignee: HONOR DEVICE CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 10:
11. A computer program product for speckle detecting, the computer program product being embodied in a non-transitory computer readable medium and comprising computer instructions for:
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; and
displaying the wrinkle line in the region;
determining a wrinkle score corresponding to the region 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.