CN107346408A - Age recognition methods based on face feature - Google Patents

Age recognition methods based on face feature Download PDF

Info

Publication number
CN107346408A
CN107346408A CN201610291408.8A CN201610291408A CN107346408A CN 107346408 A CN107346408 A CN 107346408A CN 201610291408 A CN201610291408 A CN 201610291408A CN 107346408 A CN107346408 A CN 107346408A
Authority
CN
China
Prior art keywords
age
area
midpoint
corner
nose
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610291408.8A
Other languages
Chinese (zh)
Inventor
戴伶洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hongfujin Precision Electronics Tianjin Co Ltd
Original Assignee
Hongfujin Precision Electronics Tianjin Co Ltd
Hon Hai Precision Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hongfujin Precision Electronics Tianjin Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Electronics Tianjin Co Ltd
Priority to CN201610291408.8A priority Critical patent/CN107346408A/en
Publication of CN107346408A publication Critical patent/CN107346408A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • G06V40/171Local features and components; Facial parts ; Occluding parts, e.g. glasses; Geometrical relationships
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/178Human faces, e.g. facial parts, sketches or expressions estimating age from face image; using age information for improving recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

一种基于脸部特征的年龄识别方法,包括如下步骤:获取人脸图像,并抓取脸部区域;在抓取的脸部区域图像上设置特征点;根据特征点的坐标在脸部区域上确定年龄特征区域;提取年龄特征区域的年龄特征,并得到对应的年龄值;及将年龄值与预设的阈值进行比较而判断年龄。

A method for age recognition based on facial features, comprising the steps of: acquiring a face image, and grabbing a face area; setting feature points on the captured face area image; Determining the age feature area; extracting the age feature of the age feature area, and obtaining a corresponding age value; and comparing the age value with a preset threshold to determine age.

Description

基于脸部特征的年龄识别方法Age Recognition Method Based on Facial Features

技术领域 technical field

本发明涉及一种基于脸部特征的年龄识别方法。 The invention relates to an age recognition method based on facial features.

背景技术 Background technique

现有脸部年龄辨识大多通过处理整个脸部图像的方式进行,然而人脸整个影像特征的撷取非常繁复,所包含的信息复杂且庞大,相关图像处理作业繁琐,致使前置作业过程相当冗长,判断效率较低。 Existing face age recognition is mostly performed by processing the entire face image. However, the extraction of the entire image features of the face is very complicated, the information contained is complex and huge, and the related image processing is cumbersome, resulting in a lengthy pre-processing process. , the judgment efficiency is low.

发明内容 Contents of the invention

鉴于以上内容,有必要提供一种可高效识别年龄的方法。 In view of the above, it is necessary to provide a method for efficiently identifying age.

一种基于脸部特征的年龄识别方法,包括如下步骤: A method for age recognition based on facial features, comprising the steps of:

获取人脸图像,并抓取脸部区域; Obtain a face image and capture the face area;

在抓取的脸部区域图像上设置特征点; Set feature points on the captured face area image;

根据特征点的坐标在脸部区域上确定年龄特征区域; Determine the age feature area on the face area according to the coordinates of the feature points;

提取年龄特征区域的年龄特征,并得到对应的年龄值;及 Extracting the age feature of the age feature area, and obtaining the corresponding age value; and

将年龄值与预设的阈值进行比较而判断年龄。 The age is determined by comparing the age value with a preset threshold.

优选地,所述在抓取的脸部区域图像上设置特征点的步骤包括取得脸部区域图像中眉毛、眼睛、鼻子、口部这四个器官的位置,并用特征点对这些器官进行标示。 Preferably, the step of setting feature points on the captured face region image includes obtaining the positions of eyebrows, eyes, nose and mouth in the face region image, and marking these organs with feature points.

优选地,用特征点对左眉眉尾、左眉眉头、右眉眉头、右眉眉尾、左眼外眼角、左眼中心、左眼内眼角、右眼内眼角、右眼中心、右眼外眼角、左鼻翼、鼻头中点、右鼻翼、左嘴角、嘴上部中点、右嘴角和嘴下部中点进行标示。 Preferably, the left eyebrow tail, the left eyebrow head, the right eyebrow head, the right eyebrow tail, the outer corner of the left eye, the center of the left eye, the inner corner of the left eye, the inner corner of the right eye, the center of the right eye, the right eye Mark the outer corner of the eye, the left alar, the midpoint of the tip of the nose, the right alar, the left corner of the mouth, the midpoint of the upper part of the mouth, the right corner of the mouth and the midpoint of the lower part of the mouth.

优选地,根据特征点的坐标在脸部区域上确定年龄特征区域之前,通过左眼中心、右眼中心和鼻头中点的位置坐标得到两眼中点距离及两眼中点与鼻头中点的垂直距离,其中两眼中点距离等于左眼中点的横坐标减去右眼中点的横坐标,两眼中点与鼻头中点的垂直距离等于鼻头中点的纵坐标减去两眼中点的纵坐标的平局值。 Preferably, before determining the age feature area on the face area according to the coordinates of the feature points, the distance between the midpoint of the two eyes and the vertical distance between the midpoint of the eyes and the midpoint of the nose are obtained through the position coordinates of the center of the left eye, the center of the right eye, and the midpoint of the nose , where the distance between the midpoints of the two eyes is equal to the abscissa of the midpoint of the left eye minus the abscissa of the midpoint of the right eye, and the vertical distance between the midpoint of the two eyes and the midpoint of the nose is equal to the ordinate of the midpoint of the nose minus the ordinate of the midpoint of the two eyes. .

优选地,根据特征点的坐标在脸部区域上确定的年龄特征区域包括左眼尾区域、右眼尾区域、左眼下区域、右眼下区域、左鼻翼至嘴角区域和右鼻翼至嘴角区域。 Preferably, the age characteristic areas determined on the face area according to the coordinates of the feature points include left eye tail area, right eye tail area, left under eye area, right under eye area, left nose to mouth corner area and right nose to mouth corner area.

优选地,所述提取年龄特征区域的年龄特征的步骤前,将同类型的年龄特征区域调整为同样大小的区域。 Preferably, prior to the step of extracting the age features of the age feature area, age feature areas of the same type are adjusted to have the same size.

优选地,左眼尾区域和右眼尾区域为同类型的年龄特征区域,左眼下区域和右眼下区域为同类型的年龄特征区域,左鼻翼至嘴角区域和右鼻翼至嘴角区域为同类型的年龄特征区域。 Preferably, the left eye tail area and the right eye tail area are the same type of age characteristic area, the left eye area and the right eye area are the same type of age feature area, and the left nose to mouth area and right nose to mouth area are the same type Age characteristic area.

优选地,将同类型的年龄特征区域调整为同样大小的区域后,将年龄特征区域的图像通过统计变换算法转化为易于识别的图像。 Preferably, after adjusting the age characteristic regions of the same type into regions of the same size, the image of the age characteristic region is converted into an easily identifiable image through a statistical transformation algorithm.

优选地,所述预设的阈值包括一第一阈值和一第二阈值,所述年龄值与所述第一阈值比较后若大于所述第一阈值,在将所述年龄值与所述第二阈值进行比较。 Preferably, the preset threshold includes a first threshold and a second threshold, and if the age value is greater than the first threshold after comparing the age value with the first threshold, after comparing the age value with the second threshold Two thresholds are compared.

相较于现有技术,上述基于脸部特征的年龄识别方法中,通过在脸部区域图像上设置特征点,得到年龄特征区域,并通过对些年龄特征区域的处理来判断年龄,数据的处理量较小,判断效率较高。 Compared with the prior art, in the above-mentioned age recognition method based on facial features, the age feature area is obtained by setting feature points on the face area image, and the age is judged by processing these age feature areas, and the data processing The smaller the amount, the higher the judgment efficiency.

附图说明 Description of drawings

图1是本发明基于脸部特征的年龄识别方法的流程图。 Fig. 1 is a flow chart of the age recognition method based on facial features of the present invention.

图2是图1的年龄识别方法中抓取脸部区域的示意图。 FIG. 2 is a schematic diagram of capturing face regions in the age recognition method in FIG. 1 .

图3是图1的年龄识别方法中设置特征点的示意图。 Fig. 3 is a schematic diagram of setting feature points in the age recognition method of Fig. 1 .

图4是图1的年龄识别方法中得到两眼中点距离及两眼中点与鼻头中点的垂直距离的示意图。 FIG. 4 is a schematic diagram of the distance between the midpoint of the eyes and the vertical distance between the midpoint of the eyes and the midpoint of the tip of the nose obtained in the age identification method of FIG. 1 .

图5是图1的年龄识别方法中确定脸部的年龄特征区域的示意图。 FIG. 5 is a schematic diagram of determining an age characteristic region of a face in the age recognition method of FIG. 1 .

图6是图1的年龄识别方法中确定眼尾区域的示意图。 FIG. 6 is a schematic diagram of determining eye tail regions in the age recognition method in FIG. 1 .

图7是图1的年龄识别方法中确定眼下区域的示意图。 FIG. 7 is a schematic diagram of determining the under-eye area in the age identification method in FIG. 1 .

图8是图1的年龄识别方法中确定鼻翼至嘴角区域的示意图。 FIG. 8 is a schematic diagram of determining the region from the alar of the nose to the corner of the mouth in the age recognition method of FIG. 1 .

主要元件符号说明 Description of main component symbols

特征点Feature points 1-171-17 两眼中点距离distance between eyes WW 两眼中点与鼻头中点的垂直距离Vertical distance between the midpoint of the eyes and the midpoint of the tip of the nose Hh 眼尾区域a和bend of eye area a and b a、ba, b 眼下区域c和dRight now areas c and d c、dc, d 鼻翼至嘴角区域e和fNose to mouth area e and f e、fe, f 端点endpoint a1-a4、b1-b4、c1-c4、d1-d4、e1-e4、f1-f4a1-a4, b1-b4, c1-c4, d1-d4, e1-e4, f1-f4

如下具体实施方式将结合上述附图进一步说明本发明。 The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings.

具体实施方式 detailed description

图1是本发明一种基于脸部特征的年龄识别方法的流程图,用来识别人的年龄,所述年龄识别方法包括如下步骤: Fig. 1 is the flow chart of a kind of age identification method based on facial feature of the present invention, is used for identifying people's age, and described age identification method comprises the following steps:

步骤101,获取人脸图像,并抓取脸部区域。 Step 101, acquire a face image, and capture a face area.

请参阅图2,通常获取的人脸图像会包括人身体的其他部分,例如脖子等,在步骤101中,通过预先建立的人体脸部模型与获取的人脸图像,抓取脸部区域的图像,并将其他部分的图像去掉。 Please refer to FIG. 2 , usually the acquired face image will include other parts of the human body, such as the neck, etc. In step 101, the image of the face area is captured through the pre-established human face model and the acquired face image , and remove other parts of the image.

步骤102,在抓取的脸部区域图像上设置特征点。 Step 102, setting feature points on the captured face region image.

请参阅图3,通过特征模型与脸部区域图像进行比对,取得脸部区域图像中眉毛、眼睛、鼻子、口部这四个器官的位置,并用特征点对这些器官进行标示,就如图3中所示,用特征点1对左眉眉尾进行标示(左、右的定义以查看附图的人员为基准),用特征点2对左眉眉头进行标示,用特征点3对右眉眉头进行标示,用特征点4对右眉眉尾进行标示,用特征点5对左眼外眼角进行标示,用特征点6对左眼中心进行标示,用特征点7对左眼内眼角进行标示,用特征点8对右眼内眼角进行标示,用特征点9对右眼中心进行标示,用特征点10对右眼外眼角进行标示,用特征点11对左鼻翼进行标示,用特征点12对鼻头中点进行标示,用特征点13对右鼻翼进行标示,用特征点14对左嘴角进行标示,用特征点15对嘴上部中点进行标示,用特征点16对右嘴角进行标示,用特征点17对嘴下部中点进行标示,则本实施例中用十七个特征点对脸部区域图像进行标示;在其它实施例中,也可根据需要采用更多的特征点或更少的特征点对眉毛、眼睛、鼻子、口部这四个器官进行标示,还可根据判断的需要对耳朵这个器官进行特征点的标识,或对人体面部的其他特征进行标识等。 Please refer to Figure 3. By comparing the feature model with the face area image, the positions of the eyebrows, eyes, nose, and mouth in the face area image are obtained, and these organs are marked with feature points, as shown in the figure As shown in 3, use feature point 1 to mark the end of the left eyebrow (the definition of left and right is based on the person viewing the attached drawing), use feature point 2 to mark the head of the left eyebrow, and use feature point 3 to mark the right eyebrow Mark the head of the eyebrow, use feature point 4 to mark the end of the right eyebrow, use feature point 5 to mark the outer corner of the left eye, use feature point 6 to mark the center of the left eye, and use feature point 7 to mark the inner corner of the left eye , use feature point 8 to mark the inner corner of the right eye, use feature point 9 to mark the center of the right eye, use feature point 10 to mark the outer corner of the right eye, use feature point 11 to mark the left nose, and use feature point 12 Mark the midpoint of the nose, mark the right nose with feature point 13, mark the left mouth corner with feature point 14, mark the midpoint of the upper part of the mouth with feature point 15, mark the right mouth corner with feature point 16, use The feature point 17 marks the midpoint of the lower part of the mouth, and in this embodiment seventeen feature points are used to mark the face region image; in other embodiments, more feature points or less can also be used as required The feature points mark the four organs of eyebrows, eyes, nose, and mouth. According to the needs of judgment, the feature points of the ear organ can also be marked, or other features of the human face can be marked.

步骤103,根据特征点的位置信息算出两眼中点距离W及两眼中点与鼻头中点的垂直距离H。 Step 103, calculate the distance W between the midpoint of the eyes and the vertical distance H between the midpoint of the eyes and the midpoint of the nose according to the position information of the feature points.

请参阅图4,通常是根据这些特征点的坐标算出两眼中点距离W及两眼中点与鼻头中点的垂直距离H,例如特征点6的坐标为(X6,Y6),特征点9的坐标为(X9,Y9),特征点12的右边为(X12,Y12),则两眼中点距离W=X9-X6,两眼中点与鼻头中点的垂直距离H=Y12-(Y6+Y9)/2。 Please refer to Figure 4, the distance between the midpoint of the two eyes and the vertical distance H between the midpoint of the eyes and the midpoint of the nose are usually calculated based on the coordinates of these feature points. For example, the coordinates of feature point 6 are (X6, Y6), and the coordinates of feature point 9 is (X9, Y9), and the right side of feature point 12 is (X12, Y12), then the distance between the midpoint of the two eyes is W=X9-X6, and the vertical distance between the midpoint of the two eyes and the midpoint of the nose is H=Y12-(Y6+Y9)/ 2.

步骤104,根据各坐标点的坐标和距离W、H确定脸部的年龄特征区域。 Step 104, determine the age characteristic area of the face according to the coordinates of each coordinate point and the distance W, H.

请参阅图5,在本实施例中,选取眼尾区域a和b、眼下区域c和d、鼻翼至嘴角区域e和f作为脸部的年龄特征区域,因为人的脸部的这些区域的年龄特征较为明显,例如不同年龄的人的脸部在这些区域的皱纹差别较大;在其它实施例中,也可根据不同的需要加入其它的脸部区域进行判断,例如额头区域等。 Please refer to Fig. 5, in this embodiment, select eye end area a and b, eye area c and d, nose wing to mouth corner area e and f as the age characteristic area of face, because the age of these areas of people's face The features are relatively obvious, for example, the wrinkles in these areas are quite different for people of different ages; in other embodiments, other facial areas can also be added for judgment according to different needs, such as the forehead area.

请参阅图6,其为确定一左眼尾区域a和一右眼尾区域b的示意图,该左眼尾区域a为一方形区域,其包括左上角端点a1、右上角端点a2、左下角端点a3和右下角端点a4,并通过下表所列的公式算出各角端点的X轴坐标和Y轴坐标。 Please refer to Fig. 6, which is a schematic diagram of determining a left eye tail area a and a right eye tail area b, the left eye tail area a is a square area, which includes an upper left corner endpoint a1, an upper right corner endpoint a2, and a lower left corner endpoint a3 and the lower right corner endpoint a4, and calculate the X-axis coordinates and Y-axis coordinates of each corner endpoint through the formula listed in the table below.

端点名称endpoint name X轴坐标计算方式X-axis coordinate calculation method Y轴坐标计算方式Y-axis coordinate calculation method 左眼尾区域左上角端点a1End point a1 of the upper left corner of the left eye tail area X=X6–W*0.6X=X6–W*0.6 Y=(Y6+Y9)/2Y=(Y6+Y9)/2 左眼尾区域右上角端点a2End point a2 of the upper right corner of the left eye tail area X=X6–W*0.4X=X6–W*0.4 Y=(Y6+Y9)/2Y=(Y6+Y9)/2 左眼尾区域左下角端点a3End point a3 of the lower left corner of the left eye tail area X=X6–W*0.6X=X6–W*0.6 Y=(Y6+Y9)+H*0.8Y=(Y6+Y9)+H*0.8 左眼尾区域右下角端点a4End point a4 of the lower right corner of the left eye tail area X=X6–W*0.4X=X6–W*0.4 Y=(Y6+Y9)+H*0.8Y=(Y6+Y9)+H*0.8

同样,右眼尾区域b为一方形区域,其包括左上角端点b1、右上角端点b2、左下角端点b3和右下角端点b4,并通过下表所列的公式算出各角端点的X轴坐标和Y轴坐标。 Similarly, the right eye tail area b is a square area, which includes the upper left corner endpoint b1, the upper right corner endpoint b2, the lower left corner endpoint b3 and the lower right corner endpoint b4, and the X-axis coordinates of each corner endpoint are calculated by the formula listed in the following table and Y-axis coordinates.

端点名称endpoint name X轴坐标计算方式X-axis coordinate calculation method Y轴坐标计算方式Y-axis coordinate calculation method 右眼尾区域左上角端点b1End point b1 of the upper left corner of the right eye tail area X=X9+W*0.4X=X9+W*0.4 Y=(Y6+Y9)/2Y=(Y6+Y9)/2 右眼尾区域右上角端点b2End point b2 of the upper right corner of the right eye tail area X=X9+W*0.6X=X9+W*0.6 Y=(Y6+Y9)/2Y=(Y6+Y9)/2 右眼尾区域左下角端点b3End point b3 of the lower left corner of the right eye tail area X=X9+W*0.4X=X9+W*0.4 Y=(Y6+Y9)+H*0.8Y=(Y6+Y9)+H*0.8 右眼尾区域右下角端点b4End point b4 of the lower right corner of the right eye tail area X=X9+W*0.6X=X9+W*0.6 Y=(Y6+Y9)+H*0.8Y=(Y6+Y9)+H*0.8

请参阅图7,左眼下区域c为一方形区域,其包括左上角端点c1、右上角端点c2、左下角端点c3和右下角端点c4,并通过下表所列的公式算出各角端点的X轴坐标和Y轴坐标。 Please refer to Figure 7, the area c under the left eye is a square area, which includes the upper left corner endpoint c1, the upper right corner endpoint c2, the lower left corner endpoint c3 and the lower right corner endpoint c4, and the X of each corner endpoint is calculated by the formula listed in the following table Axis coordinates and Y-axis coordinates.

端点名称endpoint name X坐标计算方式X coordinate calculation method Y坐标计算方式Y coordinate calculation method 左眼下区域左上角端点c1End point c1 of the upper left corner of the area under the left eye X=X6–W*0.4X=X6–W*0.4 Y=(Y6+Y9)/2+H*0.35Y=(Y6+Y9)/2+H*0.35 左眼下区域右上角端点c2End point c2 of the upper right corner of the area under the left eye X=X6+W*0.3X=X6+W*0.3 Y=(Y6+Y9)/2+H*0.35Y=(Y6+Y9)/2+H*0.35 左眼下区域左下角端点c3End point c3 of the lower left corner of the area under the left eye X=X6–W*0.4X=X6–W*0.4 Y=(Y6+Y9)/2+H*0.8Y=(Y6+Y9)/2+H*0.8 左眼下区域右下角端点c4End point c4 of the lower right corner of the area under the left eye X=X6+W*0.3X=X6+W*0.3 Y=(Y6+Y9)/2+H*0.8Y=(Y6+Y9)/2+H*0.8

同样,右眼下区域d为一方形区域,其包括左上角端点d1、右上角端点d2、左下角端点d3和右下角端点d4,并通过下表所列的公式算出各角端点的X轴坐标和Y轴坐标。 Similarly, the area d under the right eye is a square area, which includes the endpoint d1 of the upper left corner, the endpoint d2 of the upper right corner, the endpoint d3 of the lower left corner, and the endpoint d4 of the lower right corner, and calculate the X-axis coordinates of each corner endpoint and Y-axis coordinates.

端点名称endpoint name X坐标计算方式X coordinate calculation method Y坐标计算方式Y coordinate calculation method 右眼下区域左上角端点d1End point d1 of the upper left corner of the area under the right eye X=X9–W*0.4X=X9–W*0.4 Y=(Y6+Y9)/2+H*0.35Y=(Y6+Y9)/2+H*0.35 右眼下区域右上角端点d2End point d2 in the upper right corner of the area under the right eye X=X9+W*0.3X=X9+W*0.3 Y=(Y6+Y9)/2+H*0.35Y=(Y6+Y9)/2+H*0.35 右眼下区域左下角端点d3End point d3 of the lower left corner of the area under the right eye X=X9–W*0.4X=X9–W*0.4 Y=(Y6+Y9)+H*0.8Y=(Y6+Y9)+H*0.8 右眼下区域右下角端点d4End point d4 of the lower right corner of the area under the right eye X=X9+W*0.3X=X9+W*0.3 Y=(Y6+Y9)+H*0.8Y=(Y6+Y9)+H*0.8

请参阅图8,左鼻翼至嘴角区域e为一方形区域,其包括左上角端点e1、右上角端点e2、左下角端点e3和右下角端点e4,并通过下表所列的公式算出各角端点的X轴坐标和Y轴坐标。 Please refer to Figure 8, the area e from the left nose wing to the corner of the mouth is a square area, which includes the upper left corner endpoint e1, the upper right corner endpoint e2, the lower left corner endpoint e3 and the lower right corner endpoint e4, and the corner endpoints are calculated by the formula listed in the following table The X-axis coordinates and Y-axis coordinates.

端点名称endpoint name X坐标计算方式X coordinate calculation method Y坐标计算方式Y coordinate calculation method 左鼻翼至嘴角区域左上角端点e1Point e1 from the left nose to the upper left corner of the mouth area X=X6–W*0.32X=X6–W*0.32 Y=Y12Y=Y12 左鼻翼至嘴角区域右上角端点e2End point e2 from the left nose wing to the upper right corner of the corner of the mouth X=X6+W*0.05X=X6+W*0.05 Y=Y12Y=Y12 左鼻翼至嘴角区域左下角端点e3End point e3 from the left nose wing to the lower left corner of the corner of the mouth X=X6–W*0.32X=X6–W*0.32 Y=(Y14+Y16)/2Y=(Y14+Y16)/2 左鼻翼至嘴角区域右下角端点e4From the left nose to the bottom right corner of the mouth area e4 X=X6+W*0.05X=X6+W*0.05 Y=(Y14+Y16)/2Y=(Y14+Y16)/2

同样,右鼻翼至嘴角区域f为一方形区域,其包括左上角端点f1、右上角端点f2、左下角端点f3和右下角端点f4,并通过下表所列的公式算出各角端点的X轴坐标和Y轴坐标。 Similarly, the area f from the right nose wing to the corner of the mouth is a square area, which includes the upper left corner endpoint f1, the upper right corner endpoint f2, the lower left corner endpoint f3 and the lower right corner endpoint f4, and the X-axis of each corner endpoint is calculated by the formula listed in the following table coordinates and Y-axis coordinates.

端点名称endpoint name X坐标计算方式X coordinate calculation method Y坐标计算方式Y coordinate calculation method 右鼻翼至嘴角区域左上角端点e1From the right nose wing to the upper left corner endpoint e1 of the mouth corner area X=X9+W*0.05X=X9+W*0.05 Y=Y12Y=Y12 右鼻翼至嘴角区域右上角端点e2From the right nose to the upper right endpoint e2 of the corner of the mouth X=X9+W*0.32X=X9+W*0.32 Y=Y12Y=Y12 右鼻翼至嘴角区域左下角端点e3From the right nose to the bottom left corner of the mouth area e3 X=X9+W*0.05X=X9+W*0.05 Y=(Y14+Y16)/2Y=(Y14+Y16)/2 右鼻翼至嘴角区域右下角端点e4From the right nostril to the lower right endpoint of the corner of the mouth e4 X=X9+W*0.32X=X9+W*0.32 Y=(Y14+Y16)/2Y=(Y14+Y16)/2

从而通过以上的方法设定了各年龄特征区域a-f的位置和大小。 Therefore, the positions and sizes of the age feature regions a-f are set by the above method.

步骤105,将同类型的年龄特征区域调整为同样大小的区域。 Step 105, adjusting the age feature areas of the same type to areas of the same size.

在上述年龄特征区域a、b、c、d、e和f中,左眼尾区域a和右眼尾区域b为同类型的年龄特征区域,左眼下区域c和右眼下区域d为同类型的年龄特征区域,左鼻翼至嘴角区域e和右鼻翼至嘴角区域f为同类型的年龄特征区域,例如若左眼尾区域a的长度是9,高度是6,右眼尾区域b的长度是6,宽度是8,则可通过将左眼尾区域a的长度从9缩短到6,将左眼尾区域a的高度从6拉伸到8,而让左眼尾区域a和右眼尾区域b的大小相同。 In the above age characteristic regions a, b, c, d, e and f, the left eye tail region a and the right eye tail region b are age characteristic regions of the same type, and the left eye lower region c and right eye lower region d are of the same type The age feature area, the left nose to mouth corner area e and the right nose to mouth corner area f are the same type of age feature area, for example, if the length of the left eye tail area a is 9, the height is 6, and the length of the right eye tail area b is 6 , the width is 8, then by shortening the length of the left eye tail area a from 9 to 6, stretching the height of the left eye tail area a from 6 to 8, and making the left eye tail area a and the right eye tail area b are the same size.

步骤106,对各年龄特征区域的图像通过统计变换算法转化为易于识别的图像。 In step 106, the image of each age feature area is converted into an image that is easy to recognize by a statistical transformation algorithm.

统计变换算法是在将图像的每3*3的像素点划分为一区域,而后计算该区域内所有像素点的像素平均值,而后将该区域内每一个像素点的像素值与该像素平均值进行比较,若某点的像素值大于像素平均值,则将该点的像素值变为1;若某点的像素值小于像素平均值,则将该点的像素值变为0。 The statistical transformation algorithm divides every 3*3 pixels of the image into an area, then calculates the pixel average of all pixels in the area, and then compares the pixel value of each pixel in the area with the pixel average For comparison, if the pixel value of a certain point is greater than the average value of the pixel, the pixel value of the point is changed to 1; if the pixel value of a certain point is smaller than the average value of the pixel, the pixel value of the point is changed to 0.

步骤107,提取转换后的图像的年龄特征,并得到对应的年龄值,将所述年龄值与一第一阈值进行比较,若年龄值大于或等于第一阈值,然后到步骤108;若年龄值小于第一阈值,到步骤109。 Step 107, extract the age feature of the converted image, and obtain the corresponding age value, compare the age value with a first threshold, if the age value is greater than or equal to the first threshold, then go to step 108; if the age value is less than the first threshold, go to step 109.

步骤108,判断为中老年人,并将所述年龄值与一第二阈值进行比较;若年龄值大于或等于所述第二阈值,到步骤110;若年龄值大于或等于所述第二阈值,到步骤111。 Step 108, judge as middle-aged and elderly people, and compare the age value with a second threshold; if the age value is greater than or equal to the second threshold value, go to step 110; if the age value is greater than or equal to the second threshold value , to step 111.

步骤109,判断为青年人。 Step 109, judging as a young person.

步骤110,判断为老年人。 Step 110, judging as an elderly person.

步骤111,判断为中年人。 Step 111, judging as a middle-aged person.

在上述基于脸部特征的年龄识别方法中,通过在脸部区域图像上设置特征点,得到年龄特征区域,并通过对些年龄特征区域的处理判断来判断年龄,数据的处理量较小,判断效率较高。 In the above-mentioned age recognition method based on facial features, the age feature area is obtained by setting feature points on the face area image, and the age is judged by processing and judging these age feature areas. The amount of data processing is small, and the judgment Higher efficiency.

Claims (9)

1.一种基于脸部特征的年龄识别方法,包括如下步骤: 1. A method for age recognition based on facial features, comprising the steps of: 获取人脸图像,并抓取脸部区域; Obtain a face image and capture the face area; 在抓取的脸部区域图像上设置特征点; Set feature points on the captured face area image; 根据特征点的坐标在脸部区域上确定年龄特征区域; Determine the age feature area on the face area according to the coordinates of the feature points; 提取年龄特征区域的年龄特征,并得到对应的年龄值;及 Extracting the age feature of the age feature area, and obtaining the corresponding age value; and 将年龄值与预设的阈值进行比较而判断年龄。 The age is determined by comparing the age value with a preset threshold. 2.如权利要求1所述的年龄识别方法,其特征在于:所述在抓取的脸部区域图像上设置特征点的步骤包括取得脸部区域图像中眉毛、眼睛、鼻子、口部这四个器官的位置,并用特征点对这些器官进行标示。 2. The age recognition method as claimed in claim 1, wherein: the step of setting feature points on the captured face region image comprises obtaining the four points of eyebrows, eyes, nose and mouth in the face region image. The location of each organ, and mark these organs with feature points. 3.如权利要求2所述的年龄识别方法,其特征在于:用特征点对左眉眉尾、左眉眉头、右眉眉头、右眉眉尾、左眼外眼角、左眼中心、左眼内眼角、右眼内眼角、右眼中心、右眼外眼角、左鼻翼、鼻头中点、右鼻翼、左嘴角、嘴上部中点、右嘴角和嘴下部中点进行标示。 3. The age recognition method as claimed in claim 2, characterized in that: use feature points to align left eyebrow tail, left eyebrow head, right eyebrow eyebrow head, right eyebrow eyebrow tail, left eye outer corner, left eye center, left eye Mark the inner corner of the eye, the inner corner of the right eye, the center of the right eye, the outer corner of the right eye, the left nose, the midpoint of the tip of the nose, the right nose, the left corner of the mouth, the midpoint of the upper part of the mouth, the right corner of the mouth and the midpoint of the lower part of the mouth. 4.如权利要求3所述的年龄识别方法,其特征在于:根据特征点的坐标在脸部区域上确定年龄特征区域之前,通过左眼中心、右眼中心和鼻头中点的位置坐标得到两眼中点距离及两眼中点与鼻头中点的垂直距离,其中两眼中点距离等于左眼中点的横坐标减去右眼中点的横坐标,两眼中点与鼻头中点的垂直距离等于鼻头中点的纵坐标减去两眼中点的纵坐标的平局值。 4. The age recognition method as claimed in claim 3, characterized in that: before determining the age feature region on the face region according to the coordinates of the feature points, two points are obtained by the position coordinates of the center of the left eye, the center of the right eye and the midpoint of the tip of the nose. The distance between the midpoint of the eyes and the vertical distance between the midpoint of the two eyes and the midpoint of the tip of the nose. The distance between the midpoint of the two eyes is equal to the abscissa of the midpoint of the left eye minus the abscissa of the midpoint of the right eye. The vertical distance between the midpoint of the two eyes and the midpoint of the tip of the nose is equal to the midpoint of the tip of the nose The ordinate of , minus the average value of the ordinate of the midpoint of the two eyes. 5.如权利要求4所述的年龄识别方法,其特征在于:根据特征点的坐标在脸部区域上确定的年龄特征区域包括左眼尾区域、右眼尾区域、左眼下区域、右眼下区域、左鼻翼至嘴角区域和右鼻翼至嘴角区域。 5. The age recognition method as claimed in claim 4, characterized in that: the age characteristic regions determined on the face region according to the coordinates of the feature points include the left eye tail region, the right eye tail region, the left eye region, and the right eye region , left nose to mouth area and right nose to mouth area. 6.如权利要求5所述的年龄识别方法,其特征在于:所述提取年龄特征区域的年龄特征的步骤前,将同类型的年龄特征区域调整为同样大小的区域。 6. The age identification method according to claim 5, characterized in that: before the step of extracting the age characteristics of the age characteristic region, the age characteristic regions of the same type are adjusted to the same size region. 7.如权利要求6所述的年龄识别方法,其特征在于:左眼尾区域和右眼尾区域为同类型的年龄特征区域,左眼下区域和右眼下区域为同类型的年龄特征区域,左鼻翼至嘴角区域和右鼻翼至嘴角区域为同类型的年龄特征区域。 7. The age recognition method as claimed in claim 6, characterized in that: the left eye tail area and the right eye tail area are the same type of age characteristic area, the left eye lower area and the right eye lower area are the same type of age characteristic area, the left eye end area is the same type of age characteristic area, The region from the alar to the corner of the mouth and the region from the right alar to the corner of the mouth are the same type of age characteristic regions. 8.如权利要求6所述的年龄识别方法,其特征在于:将同类型的年龄特征区域调整为同样大小的区域后,将年龄特征区域的图像通过统计变换算法转化为易于识别的图像。 8. The age recognition method as claimed in claim 6, characterized in that: after adjusting the age characteristic regions of the same type into regions of the same size, the image of the age characteristic region is converted into an easily identifiable image through a statistical transformation algorithm. 9.如权利要求1所述的年龄识别方法,其特征在于:所述预设的阈值包括一第一阈值和一第二阈值,所述年龄值与所述第一阈值比较后若大于所述第一阈值,在将所述年龄值与所述第二阈值进行比较。 9. The age identification method according to claim 1, wherein the preset threshold includes a first threshold and a second threshold, and if the age value is greater than the first threshold after comparing with the first threshold A first threshold, comparing the age value with the second threshold.
CN201610291408.8A 2016-05-05 2016-05-05 Age recognition methods based on face feature Pending CN107346408A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610291408.8A CN107346408A (en) 2016-05-05 2016-05-05 Age recognition methods based on face feature

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610291408.8A CN107346408A (en) 2016-05-05 2016-05-05 Age recognition methods based on face feature

Publications (1)

Publication Number Publication Date
CN107346408A true CN107346408A (en) 2017-11-14

Family

ID=60253135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610291408.8A Pending CN107346408A (en) 2016-05-05 2016-05-05 Age recognition methods based on face feature

Country Status (1)

Country Link
CN (1) CN107346408A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108932497A (en) * 2018-07-03 2018-12-04 张廷敏 Passen-gers' big data identification mechanism
CN109034138A (en) * 2018-09-11 2018-12-18 湖南拓视觉信息技术有限公司 Image processing method and device
CN109145865A (en) * 2018-09-07 2019-01-04 北京相貌空间科技有限公司 Face standard level calculating method and device
CN110287942A (en) * 2019-07-03 2019-09-27 成都旷视金智科技有限公司 Training method, age estimation method and the corresponding device of age estimation model
CN112883759A (en) * 2019-11-29 2021-06-01 杭州海康威视数字技术股份有限公司 Method for detecting image noise of biological characteristic part
CN117354417A (en) * 2023-10-09 2024-01-05 深圳多为智联科技有限公司 A method and system for closing a smartphone screen

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100111375A1 (en) * 2008-10-31 2010-05-06 Michael Jeffrey Jones Method for Determining Atributes of Faces in Images
CN102194131A (en) * 2011-06-01 2011-09-21 华南理工大学 Fast human face recognition method based on geometric proportion characteristic of five sense organs
US20140140584A1 (en) * 2011-08-09 2014-05-22 Pramor LLC Method and apparatus for generating personal information of client, recording medium thereof, and pos systems
CN104143079A (en) * 2013-05-10 2014-11-12 腾讯科技(深圳)有限公司 Method and system for face attribute recognition
CN104391857A (en) * 2014-10-17 2015-03-04 惠州Tcl移动通信有限公司 Equipment terminal and method for displaying webpage content according to age information
CN105469064A (en) * 2015-12-03 2016-04-06 广州市皓品信息科技有限公司 Skin aging trend acquisition method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100111375A1 (en) * 2008-10-31 2010-05-06 Michael Jeffrey Jones Method for Determining Atributes of Faces in Images
CN102194131A (en) * 2011-06-01 2011-09-21 华南理工大学 Fast human face recognition method based on geometric proportion characteristic of five sense organs
US20140140584A1 (en) * 2011-08-09 2014-05-22 Pramor LLC Method and apparatus for generating personal information of client, recording medium thereof, and pos systems
CN104143079A (en) * 2013-05-10 2014-11-12 腾讯科技(深圳)有限公司 Method and system for face attribute recognition
CN104391857A (en) * 2014-10-17 2015-03-04 惠州Tcl移动通信有限公司 Equipment terminal and method for displaying webpage content according to age information
CN105469064A (en) * 2015-12-03 2016-04-06 广州市皓品信息科技有限公司 Skin aging trend acquisition method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胡德文 等: "《生物特征识别技术与方法》", 31 August 2013, 国防工业出版社 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108932497A (en) * 2018-07-03 2018-12-04 张廷敏 Passen-gers' big data identification mechanism
CN109145865A (en) * 2018-09-07 2019-01-04 北京相貌空间科技有限公司 Face standard level calculating method and device
CN109034138A (en) * 2018-09-11 2018-12-18 湖南拓视觉信息技术有限公司 Image processing method and device
CN109034138B (en) * 2018-09-11 2021-09-03 湖南拓视觉信息技术有限公司 Image processing method and device
CN110287942A (en) * 2019-07-03 2019-09-27 成都旷视金智科技有限公司 Training method, age estimation method and the corresponding device of age estimation model
CN112883759A (en) * 2019-11-29 2021-06-01 杭州海康威视数字技术股份有限公司 Method for detecting image noise of biological characteristic part
CN112883759B (en) * 2019-11-29 2023-09-26 杭州海康威视数字技术股份有限公司 Method for detecting image noise of biological feature part
CN117354417A (en) * 2023-10-09 2024-01-05 深圳多为智联科技有限公司 A method and system for closing a smartphone screen

Similar Documents

Publication Publication Date Title
CN107346408A (en) Age recognition methods based on face feature
US10783354B2 (en) Facial image processing method and apparatus, and storage medium
TW201737159A (en) Method for judgeing age based on face
CN105844252B (en) A fatigue detection method for key parts of the face
CN104361131B (en) Method for establishing four-dimensional face model database
CN109840565A (en) A kind of blink detection method based on eye contour feature point aspect ratio
CN102521579B (en) Method for identifying pushing action based on two-dimensional planar camera and system
CN108229268A (en) Expression recognition and convolutional neural network model training method and device and electronic equipment
US20160283780A1 (en) Positioning feature points of human face edge
CN104700076B (en) Facial image virtual sample generation method
CN108460345A (en) A kind of facial fatigue detection method based on face key point location
CN104573634A (en) Three-dimensional face recognition method
CN104408462B (en) Face feature point method for rapidly positioning
CN112200074B (en) Gesture comparison method and terminal
CN106447720B (en) A method of building golden ratio shape of face
CN105956552B (en) A kind of face blacklist monitoring method
CN112232128B (en) Eye tracking based method for identifying care needs of old disabled people
CN103810466A (en) Apparatus and method for face recognition
CN103198330B (en) Real-time human face attitude estimation method based on deep video stream
CN110443199A (en) A Point Cloud Pose Recognition Method Based on 2D Geometric Profile
EP3699865B1 (en) Three-dimensional face shape derivation device, three-dimensional face shape deriving method, and non-transitory computer readable medium
CN104143091B (en) Based on the single sample face recognition method for improving mLBP
CN110688962B (en) Face image processing method, user equipment, storage medium and device
CN105160328B (en) A kind of human body contour outline recognition methods based on binary image
CN104766316A (en) Novel lip segmentation algorithm for traditional Chinese medical inspection diagnosis

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20180228

Address after: Haiyun Binhai Economic and Technological Development Zone, Tianjin City, No. 80 300457 Street

Applicant after: Hongfujin Precision Electronics (Tianjin) Co., Ltd.

Address before: Haiyun Binhai Economic and Technological Development Zone, Tianjin City, No. 80 300457 Street

Applicant before: Hongfujin Precision Electronics (Tianjin) Co., Ltd.

Applicant before: Hon Hai Precision Industry Co., Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20171114

RJ01 Rejection of invention patent application after publication