Face static recognition method and system based on feature vector method
The eigenvector method is used to construct a body shape state model and analyze the changes in facial features. This solves the problem of reduced recognition accuracy and misrecognition in static face recognition when body shape changes, and improves recognition security.
Patent Information
- Application Number
- CN202410711453.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-10
AI Technical Summary
The existing static face recognition technology has a reduced recognition accuracy when the body shape of the person changes, which can easily lead to misidentification and affect safety.
Using a method based on the eigenvector method, a body shape state model is constructed by extracting the feature vectors of facial features in facial images, considering the impact of body shape changes on facial features, and performing similarity analysis to improve recognition accuracy.
On the basis of minimizing the loss of recognition accuracy, it improves the recognition pass rate when body shape changes, reduces the probability of misrecognition, and enhances the security of static face recognition.
Smart Images

Figure CN118629075A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of face recognition, and in particular to a method and system for static face recognition based on a feature vector method. Background Art
[0002] Face recognition is a biometric technology that identifies people based on their facial features. It uses a camera or a webcam to collect images or video streams containing faces, automatically detects and tracks faces in images, and then performs facial recognition on the detected faces. It is also commonly called portrait recognition or facial recognition. Static face recognition is achieved by analyzing and comparing facial features in fixed images or photos. It is usually used for face unlocking and identity authentication.
[0003] Static face recognition solutions usually use pre-collected photos as standard photos, and subsequent recognition is performed by static image comparison. Existing static recognition solutions lack analysis of changes in facial features due to changes in body shape. For example, if a person becomes fatter, facial fat will accumulate, causing the facial contour to expand and the eye contour to shrink. When performing static face recognition, usually only fuzzy recognition can be used. On the basis of losing some recognition accuracy, the recognition pass rate is improved when the person's body shape changes. However, this method can only be used when the person's body shape does not change much, and it is easy to cause misidentification, affecting the security of static face recognition. Summary of the invention
[0004] In order to solve the above technical problems, a method and system for static face recognition based on feature vector method is provided. This technical solution solves the problem that the above-mentioned existing technology can only be used when the body shape of a person does not change much, and it is easy to cause misrecognition, affecting the security of static face recognition.
[0005] In order to achieve the above purpose, the technical solution adopted by the present invention is:
[0006] A static face recognition method based on a feature vector method, comprising:
[0007] Collect the face image to be identified, extract the face area therein, and obtain the matching face image;
[0008] Based on matching analysis of the matching face image and the standard face image stored in the database, the body shape and proportion of the face are determined;
[0009] According to the same division logic, the facial features of the matching face image and the standard face image are extracted as feature regions, forming a matching feature region set A and a standard feature region set B, respectively, A = a1…a j …an}, B={b1…b j …b n}, where n is the total number of feature regions divided, a j To match the jth feature region of the face image, b j is the jth feature region of the standard face image, a j With b j One to one correspondence;
[0010] Selecting a number of feature points on the contour lines of the facial features in the feature area of the matching face image and the feature area of the standard face image, respectively, and determining a reference point in the feature area, and recording the vector from the reference point to the feature point as the feature contour feature vector in the feature area;
[0011] Calculate the similarity of the facial contour feature vectors in each corresponding feature area of the matching face image and the standard face image respectively;
[0012] The similarity of the facial contour feature vectors in all feature areas is comprehensively considered to determine whether the matching face image matches the standard face image. If so, the face recognition passes; if not, the face recognition fails.
[0013] Preferably, the determining the body shape proportion of the face based on the matching face image and the standard face image stored in the database specifically includes:
[0014] Obtaining calibration features in the face;
[0015] Based on the calibration features of the matching face image and the standard face image stored in the database, scaling the matching face image and the standard face image stored in the database to the same ratio;
[0016] At the same ratio, the area ratio of the matching face image and the standard face image stored in the database is determined as the body shape ratio of the face.
[0017] Preferably, the calibration features in the face include horizontal features and vertical features;
[0018] Among them, the horizontal feature is the pupil distance, and the vertical feature is the nose length.
[0019] Preferably, the step of respectively calculating the similarity of the facial features contour feature vectors in each corresponding feature region of the matching face image and the standard face image specifically comprises:
[0020] Taking the reference point as the coordinate origin, the same coordinate system is constructed in the feature area of the matching face image and the feature area of the standard face image;
[0021] Determine the coordinates of the feature points in the feature area of the matching face image and the feature area of the standard face image, respectively, and record them as (x i 1 ,y i 1 ) and (x i 2 ,y i 2 ), (x i 1 ,y i 1 ) is the coordinate of the i-th feature point in the feature area of the matching face image, (x i 2 ,y i 2 ) is the coordinate of the i-th feature point in the feature area of the standard face image;
[0022] Calculate (x i 1 ,y i 1 ) and (x i 2 ,y i 2 ), and obtain the similarity of the i-th feature vector in the feature area of the matching face image and the feature area of the standard face image;
[0023] The similarities of all feature vectors in the feature area of the matching face image and the feature area of the standard face image are averaged to obtain the similarity of the feature vectors of the facial contours in the feature area.
[0024] Preferably, the step of comprehensively analyzing the similarities of the facial features in all feature regions to determine whether the matching face image matches the standard face image specifically includes:
[0025] Constructing a body shape model corresponding to the feature area one by one, wherein the body shape model takes the body shape ratio of the face as input and takes the similarity threshold between the feature vectors of the facial features in the feature area as output;
[0026] Determine whether the similarity of the feature vectors of the facial contours in each feature region exceeds the similarity threshold between the feature vectors of the facial contours in the feature region. If so, determine that the matching face image does not match the standard face image. If not, determine that the facial contours match.
[0027] For the matching face image and the standard face image for determining the matching of facial features, a comprehensive matching formula is used to calculate the comprehensive matching degree between the matching face image and the standard face image;
[0028] Determine whether the comprehensive matching degree between the matching face image and the standard face image is greater than a set matching threshold. If so, determine that the matching face image does not match the standard face image. If not, determine that the matching face image matches the standard face image.
[0029] The comprehensive matching formula is specifically:
[0030]
[0031] Where Z is the comprehensive matching degree between the matching face image and the standard face image, n is the total number of feature regions, X j is the similarity between the feature vectors of the facial features in the feature region of the matching face image and the feature vectors in the jth feature region of the standard face image, α j is the calibration weight of the jth feature region.
[0032] Preferably, the step of constructing a body shape state model corresponding to each characteristic region specifically includes:
[0033] Acquire at least one set of sample images, wherein the set of sample images are facial images of the same person at different weights;
[0034] Calculate the body shape state ratio of the faces in each group of sample images respectively, and record it as the sample body shape state ratio;
[0035] Calculate the similarity of the facial features contour feature vectors in the feature area of each group of sample images respectively;
[0036] The maximum value of the similarity of the facial features under the body shape ratio of each face is selected as the similarity threshold corresponding to the body shape ratio of the sample;
[0037] Get the similarity threshold corresponding to the body shape status ratio of all samples;
[0038] A body shape state model is constructed based on the similarity threshold corresponding to the body shape state ratios of all samples;
[0039] The body shape state model is specifically:
[0040]
[0041] Where S(x) is the similarity threshold between the feature vectors of the facial features in the feature region when the body shape ratio of the face is x, x is the body shape ratio of the face, and x down is the sample size state ratio that is smaller than and closest to the sample size state ratio, x up is the sample size state ratio that is greater than and closest to the sample size state ratio, S downis the similarity threshold corresponding to the sample body shape state ratio that is smaller than and closest to the sample body shape state ratio, S up is the similarity threshold that is greater than and corresponds to the closest sample body shape state ratio among the sample body shape state ratios.
[0042] Furthermore, a human face static recognition system based on a feature vector method is proposed, which is used to implement the human face static recognition method based on a feature vector method as described above, comprising:
[0043] A storage module, wherein the storage module is used to store standard face images;
[0044] An image acquisition device, wherein the image acquisition device is used to acquire a face image to be recognized;
[0045] An image preprocessing module, the image preprocessing module is electrically connected to the image acquisition device, and the image preprocessing module is used to extract the face area in the face image to be identified to obtain a matching face image;
[0046] An image initial matching module, the image initial matching module is electrically connected to the storage module and the image preprocessing module, and the image initial matching module is used to perform matching analysis based on matching face images and standard face images stored in a database to determine the body shape and proportion of the face;
[0047] A feature extraction module, the feature extraction module is electrically connected to the image initial matching module, and the feature extraction module is used to extract facial features as feature areas from the matching face image and the standard face image according to the same division logic;
[0048] A feature vector construction module, the feature vector construction module is electrically connected to the feature extraction module, the feature vector construction module is used to select a number of feature points on the contour lines of the facial features in the feature area of the matching face image and the feature area of the standard face image, and determine a reference point in the feature area, and record the vector from the reference point to the feature point as the feature vector of the facial features contour in the feature area;
[0049] The recognition module is electrically connected to the feature vector construction module, and is used to calculate the similarity of the facial contour feature vectors in each corresponding feature area of the matching face image and the standard face image, and comprehensively calculate the similarity of the facial contour feature vectors in all feature areas to determine whether the matching face image matches the standard face image. If so, the face recognition is passed, otherwise, the face recognition is failed.
[0050] Optionally, the image initial matching module includes:
[0051] A calibration feature recognition unit, the calibration feature recognition unit is used to obtain calibration features in a human face;
[0052] A scaling matching unit, the scaling matching unit being used to scale the matching face image and the standard face image stored in the database to the same ratio based on the calibration features of the matching face image and the standard face image stored in the database;
[0053] The body shape recognition unit is used to determine the area ratio of the matching face image and the standard face image stored in the database at the same ratio as the body shape state ratio of the face.
[0054] Optionally, the identification module includes:
[0055] A model building unit, the model building unit is used to build a body shape state model corresponding to the feature areas one by one;
[0056] A facial feature recognition unit, the facial feature recognition unit is used to determine whether the similarity of the facial feature contour feature vectors in each feature area exceeds a similarity threshold between the facial feature contour feature vectors in the feature area, if so, it is determined that the matching face image does not match the standard face image, if not, it is determined that the facial feature contours match;
[0057] A comprehensive recognition unit is used to determine whether the comprehensive matching degree between the matching face image and the standard face image is greater than a set matching threshold. If so, it is determined that the matching face image does not match the standard face image. If not, it is determined that the matching face image matches the standard face image.
[0058] Compared with the prior art, the present invention has the following beneficial effects:
[0059] The present invention proposes a static face recognition scheme based on a feature vector method. In face recognition, by pre-learning the changing trend of facial features when a person's body shape changes, a body state model corresponding to the feature area is constructed. When performing face recognition, the changing state of facial features of a person due to body shape changes is fully considered, and the facial features contour similarity between the feature vectors of the facial features of the person is identified. In this way, when performing face unlocking and identity authentication, the recognition pass rate can be effectively improved on the basis of minimizing the accuracy loss when the person's body shape changes, thereby effectively reducing the probability of misidentification and improving the security of static face recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1This is a flow chart of the static face recognition method based on the feature vector method proposed by the present invention;
[0061] Figure 2 A flow chart of a method for determining the body shape ratio of a human face in the present invention;
[0062] Figure 3 is a flow chart of a method for calculating the similarity of feature vectors of facial features in the present invention;
[0063] Figure 4 A flow chart of a method for determining whether a matching face image matches a standard face image in the present invention;
[0064] Figure 5 This is a flow chart of the method for constructing a body shape state model corresponding one-to-one to the feature areas in the present invention. DETAILED DESCRIPTION
[0065] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art may think of other obvious variations.
[0066] Reference Figure 1 As shown, a static face recognition method based on feature vector method includes:
[0067] Collect the face image to be identified, extract the face area therein, and obtain the matching face image;
[0068] Based on matching analysis of the matching face image and the standard face image stored in the database, the body shape and proportion of the face are determined;
[0069] According to the same division logic, the facial features of the matching face image and the standard face image are extracted as feature regions, forming a matching feature region set A and a standard feature region set B, respectively, A = a1…a j …a n}, B={b1…b j …b n}, where n is the total number of feature regions divided, a j To match the jth feature region of the face image, b j is the jth feature region of the standard face image, a j With b j One to one correspondence;
[0070] Selecting a number of feature points on the contour lines of the facial features in the feature area of the matching face image and the feature area of the standard face image, respectively, and determining a reference point in the feature area, and recording the vector from the reference point to the feature point as the feature contour feature vector in the feature area;
[0071] Calculate the similarity of the facial contour feature vectors in each corresponding feature area of the matching face image and the standard face image respectively;
[0072] The similarity of the facial contour feature vectors in all feature areas is comprehensively considered to determine whether the matching face image matches the standard face image. If so, the face recognition passes; if not, the face recognition fails.
[0073] In face recognition, this solution pre-learns the changing trends of facial features when a person's body shape changes, builds a body shape state model that corresponds to the feature area one by one, and fully considers the changing state of facial features when a person's body shape changes during face recognition, and identifies the facial features of the person The similarity of the contours between the feature vectors of the facial features is determined.
[0074] Reference Figure 2 As shown, based on matching the face image with the standard face image stored in the database, the body shape state ratio of the face is determined, which specifically includes:
[0075] Obtaining calibration features in the face;
[0076] Based on the calibration features of the matching face image and the standard face image stored in the database, scaling the matching face image and the standard face image stored in the database to the same ratio;
[0077] At the same ratio, the area ratio of the matching face image and the standard face image stored in the database is determined as the body shape ratio of the face.
[0078] The calibration features in the face include horizontal features and vertical features;
[0079] Among them, the horizontal feature is the pupil distance and the vertical feature is the nose length.
[0080] It is understandable that due to the performance differences of the acquisition cameras, the collected facial images may be distorted in the X-axis and the Y-axis, which may lead to deformation of the facial contour. In actual recognition, it is difficult to determine whether the deformation of the facial contour is caused by changes in the body shape of the person or by image distortion, which may lead to inaccurate facial recognition. To avoid the above problems, this solution uses the facial feature pupil distance that does not change with the body shape of the person and the nose length that changes very little with the body shape of the person as calibration features. By adjusting the size of the calibration features to be consistent, the matching facial image and the standard facial image are restored to the same image state. In the same image state, the body shape proportion of the face caused by changes in the body shape of the person can be accurately analyzed based on the deformation of the facial contour.
[0081] Reference Figure 3As shown, respectively calculating the similarity of the facial contour feature vectors in each corresponding feature area of the matching face image and the standard face image specifically includes:
[0082] Taking the reference point as the coordinate origin, the same coordinate system is constructed in the feature area of the matching face image and the feature area of the standard face image;
[0083] Determine the coordinates of the feature points in the feature area of the matching face image and the feature area of the standard face image, respectively, and record them as (x i 1 ,y i 1 ) and (x i 2 ,y i 2 ), (x i 1 ,y i 1 ) is the coordinate of the i-th feature point in the feature area of the matching face image, (x i 2 ,y i 2 ) is the coordinate of the i-th feature point in the feature area of the standard face image;
[0084] Calculate (x i 1 ,y i 1 ) and (x i 2 ,y i 2 ), and obtain the similarity of the i-th feature vector in the feature area of the matching face image and the feature area of the standard face image;
[0085] The similarities of all feature vectors in the feature area of the matching face image and the feature area of the standard face image are averaged to obtain the similarity of the feature vectors of the facial contours in the feature area.
[0086] Among them, under normal conditions, the reference point is usually selected as a specific point inside the facial features. For example, the reference point of the eye area is selected as the pupil center, and the reference point of the nose area is selected as the tip of the nose. The method for selecting the feature point is to use the reference point as the starting point to draw a ray outward at a set angle interval, and the intersection of the ray and the contour of the facial features is used as the feature point. Among them, the smaller the set angle interval, the higher the accuracy of the later recognition and the greater the recognition computing power required.
[0087] Reference Figure 4 As shown, the similarity of the facial contour feature vectors in all feature areas is comprehensively considered to determine whether the matching face image matches the standard face image, specifically including:
[0088] Constructing a body shape model corresponding to the feature region one by one. The body shape model takes the body shape ratio of the face as input and takes the similarity threshold between the feature vectors of the facial features in the feature region as output.
[0089] Determine whether the similarity of the feature vectors of the facial contours in each feature region exceeds the similarity threshold between the feature vectors of the facial contours in the feature region. If so, determine that the matching face image does not match the standard face image. If not, determine that the facial contours match.
[0090] For the matching face image and the standard face image for determining the matching of facial features, a comprehensive matching formula is used to calculate the comprehensive matching degree between the matching face image and the standard face image;
[0091] Determine whether the comprehensive matching degree between the matching face image and the standard face image is greater than a set matching threshold. If so, determine that the matching face image does not match the standard face image. If not, determine that the matching face image matches the standard face image.
[0092] The comprehensive matching formula is as follows:
[0093]
[0094] Where Z is the comprehensive matching degree between the matching face image and the standard face image, n is the total number of feature regions, X j is the similarity between the feature vectors of the facial features in the feature region of the matching face image and the feature vectors in the jth feature region of the standard face image, α j is the calibration weight of the jth feature area, which is determined by the degree of change of facial features with expression. The greater the degree of change of facial features with expression, the smaller the calibration weight is.
[0095] In this solution, after the facial features are identified, the comprehensive matching degree of all facial features is calculated to avoid misidentification due to similar facial features and further improve recognition accuracy.
[0096] Reference Figure 5 As shown, constructing a body shape state model corresponding to the characteristic regions one by one specifically includes:
[0097] Obtain at least one set of sample images, where the set of sample images is facial images of the same person at different weights;
[0098] Calculate the body shape state ratio of the faces in each group of sample images respectively, and record it as the sample body shape state ratio;
[0099] Calculate the similarity of the facial features contour feature vectors in the feature area of each group of sample images respectively;
[0100] The maximum value of the similarity of the facial features under the body shape ratio of each face is selected as the similarity threshold corresponding to the body shape ratio of the sample;
[0101] Get the similarity threshold corresponding to the body shape status ratio of all samples;
[0102] A body shape state model is constructed based on the similarity threshold corresponding to the body shape state ratios of all samples;
[0103] The specific body state model is:
[0104]
[0105] Where S(x) is the similarity threshold between the feature vectors of the facial features in the feature region when the body shape ratio of the face is x, x is the body shape ratio of the face, and x down is the sample size state ratio that is smaller than and closest to the sample size state ratio, x up is the sample size state ratio that is greater than and closest to the sample size state ratio, S down is the similarity threshold corresponding to the sample body shape state ratio that is smaller than and closest to the sample body shape state ratio, S up is the similarity threshold that is greater than and corresponds to the closest sample body shape state ratio among the sample body shape state ratios.
[0106] It is understandable that the degree of change of a person's facial features as the person's body shape changes is limited. In this solution, the maximum value of the similarity of the facial features contour feature vectors under each body shape state ratio is used as the threshold, and this threshold is used as the reference value to construct the body shape state model;
[0107] Since the collected sample images are difficult to cover all body shape proportions, a similar simulation calculation method is adopted when constructing the body shape model. That is, the similarity threshold between the facial features corresponding to the body shape proportions of the face is calculated by linear prediction through the similarity threshold of the upper and lower sample body shape proportions that are closest to the body shape proportions of the face. This method can effectively improve the calculation accuracy of the similarity threshold.
[0108] Further, based on the same inventive concept as the above-mentioned static face recognition method based on the feature vector method, this solution proposes a static face recognition system based on the feature vector method, comprising:
[0109] A storage module, the storage module is used to store standard face images;
[0110] An image acquisition device, the image acquisition device is used to acquire a face image to be identified;
[0111] An image preprocessing module, the image preprocessing module is electrically connected to the image acquisition device, and the image preprocessing module is used to extract the face area in the face image to be identified to obtain a matching face image;
[0112] An image initial matching module, the image initial matching module is electrically connected to the storage module and the image preprocessing module, and the image initial matching module is used to perform matching analysis based on the matching face image and the standard face image stored in the database to determine the body shape and proportion of the face;
[0113] A feature extraction module, the feature extraction module is electrically connected to the image initial matching module, and the feature extraction module is used to extract facial features as feature areas from the matching face image and the standard face image according to the same division logic;
[0114] A feature vector construction module, the feature vector construction module is electrically connected to the feature extraction module, and the feature vector construction module is used to select a number of feature points on the contour lines of the facial features in the feature area of the matching face image and the feature area of the standard face image, and determine a reference point in the feature area, and record the vector from the reference point to the feature point as the feature vector of the facial features contour in the feature area;
[0115] The recognition module is electrically connected to the feature vector construction module. The recognition module is used to calculate the similarity of the facial contour feature vectors in each corresponding feature area of the matching face image and the standard face image, and comprehensively calculate the similarity of the facial contour feature vectors in all feature areas to determine whether the matching face image matches the standard face image. If so, the face recognition is passed, otherwise, the face recognition fails.
[0116] The image initial matching module includes:
[0117] A calibration feature recognition unit, the calibration feature recognition unit is used to obtain calibration features in a human face;
[0118] A scaling matching unit, the scaling matching unit is used to scale the matching face image and the standard face image stored in the database to the same ratio based on the calibration features of the matching face image and the standard face image stored in the database;
[0119] The body shape recognition unit is used to determine the area ratio of the matching face image and the standard face image stored in the database at the same ratio as the body shape state ratio of the face.
[0120] The identification module includes:
[0121] A model building unit, the model building unit is used to build a body shape state model corresponding to the feature area one by one;
[0122] The facial features recognition unit is used to determine whether the similarity of the facial features contour feature vectors in each feature area exceeds the similarity threshold between the facial features contour feature vectors in the feature area. If so, it is determined that the matching face image does not match the standard face image. If not, it is determined that the facial features contours match.
[0123] The comprehensive recognition unit is used to determine the matching facial image and the standard facial image for matching facial features, calculate the comprehensive matching degree between the matching facial image and the standard facial image using a comprehensive matching formula, and determine whether the comprehensive matching degree between the matching facial image and the standard facial image is greater than a set matching threshold. If so, it is determined that the matching facial image does not match the standard facial image. If not, it is determined that the matching facial image matches the standard facial image.
[0124] The usage process of the above-mentioned static face recognition system based on the feature vector method is as follows:
[0125] Step 1: The image acquisition device acquires the face image to be identified, and the image preprocessing module extracts the face area in the face image to be identified to obtain a matching face image;
[0126] Step 2: The image initial matching module retrieves the standard face image from the database of the storage module, and performs matching analysis based on the matching face image and the standard face image stored in the database, retrieves the calibration feature recognition unit to obtain the calibration features in the face, and then retrieves the scaling matching unit based on the calibration features of the matching face image and the standard face image stored in the database, scales the matching face image and the standard face image stored in the database to the same ratio, and finally the body shape recognition unit determines the area ratio of the matching face image and the standard face image stored in the database at the same ratio as the body shape state ratio of the face;
[0127] Step 3: The feature extraction module extracts facial features as feature areas from the matching face image and the standard face image according to the same division logic;
[0128] Step 4: The feature vector construction module selects a number of feature points on the contour lines of the facial features in the feature area of the matching face image and the feature area of the standard face image, and determines a reference point in the feature area, and records the vector from the reference point to the feature point as the feature vector of the facial features contour in the feature area;
[0129] Step 5: The recognition module retrieves the body shape model corresponding to the feature areas constructed by the model construction unit, and inputs the body shape ratio of the face into the body shape model to determine the similarity threshold of each feature area. Then, the facial features recognition unit is called to determine whether the similarity of the facial features contour feature vectors in each feature area exceeds the similarity threshold between the facial features contour feature vectors in the feature area. If so, it is determined that the matched face image does not match the standard face image. If not, it is determined that the facial features match. For the matched face image and the standard face image with matched facial features contours, the comprehensive recognition unit is called to use the comprehensive matching formula to calculate the comprehensive matching degree between the matched face image and the standard face image, and it is determined whether the comprehensive matching degree between the matched face image and the standard face image is greater than the set matching threshold. If so, it is determined that the matched face image does not match the standard face image. If not, it is determined that the matched face image matches the standard face image.
[0130] To sum up, the advantages of the present invention are: on the basis of minimizing the accuracy loss, it can effectively improve the recognition pass rate when the body shape of a person changes, thereby effectively reducing the probability of misrecognition and improving the security of static face recognition.
[0131] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements fall within the scope of the present invention. The scope of protection claimed by the present invention is defined by the attached claims and their equivalents.
Claims
1. A static face recognition method based on feature vector method, characterized in that: include: Collect the face image to be identified, extract the face area therein, and obtain the matching face image; Based on matching analysis of the matching face image and the standard face image stored in the database, the body shape and proportion of the face are determined; According to the same division logic, facial features are extracted from the matching face image and the standard face image as feature regions, forming a matching feature region set A and a standard feature region set B, respectively. A={a1 … a j … a n }, B={b1 … b j … b n }, where n is the total number of feature regions divided, a j To match the jth feature region of the face image, b j is the jth feature region of the standard face image, a j With b j One to one correspondence; Selecting a number of feature points on the contour lines of the facial features in the feature area of the matching face image and the feature area of the standard face image, respectively, and determining a reference point in the feature area, and recording the vector from the reference point to the feature point as the feature contour feature vector in the feature area; Calculate the similarity of the facial contour feature vectors in each corresponding feature area of the matching face image and the standard face image respectively; The similarity of the facial contour feature vectors in all feature areas is comprehensively considered to determine whether the matching face image matches the standard face image. If so, the face recognition passes; if not, the face recognition fails.
2. The method for static face recognition based on feature vector method according to claim 1, characterized in that: The step of performing matching analysis based on the matching face image and the standard face image stored in the database to determine the body shape proportion of the face specifically includes: Obtaining calibration features in the face; Based on the calibration features of the matching face image and the standard face image stored in the database, scaling the matching face image and the standard face image stored in the database to the same ratio; At the same ratio, the area ratio of the matching face image and the standard face image stored in the database is determined as the body shape ratio of the face.
3. The method for static face recognition based on feature vector method according to claim 2, characterized in that: The calibration features in the face include horizontal features and vertical features; Among them, the horizontal feature is the pupil distance, and the vertical feature is the nose length.
4. The method for static face recognition based on feature vector method according to claim 3, characterized in that: The step of respectively calculating the similarity of the facial contour feature vectors in each corresponding feature area of the matching face image and the standard face image specifically includes: Taking the reference point as the coordinate origin, the same coordinate system is constructed in the feature area of the matching face image and the feature area of the standard face image; Determine the coordinates of the feature points in the feature area of the matching face image and the feature area of the standard face image, respectively, and record them as (x i 1 ,y i 1 ) and (x i 2 ,y i 2 ), (x i 1 ,y i 1 ) is the coordinate of the i-th feature point in the feature area of the matching face image, (x i 2 ,y i 2 ) is the coordinate of the i-th feature point in the feature area of the standard face image; Calculate (x i 1 ,y i 1 ) and (x i 2 ,y i 2 ), and obtain the similarity of the i-th feature vector in the feature area of the matching face image and the feature area of the standard face image; The similarities of all feature vectors in the feature area of the matching face image and the feature area of the standard face image are averaged to obtain the similarity of the feature vectors of the facial contours in the feature area.
5. The method for static face recognition based on feature vector method according to claim 5, characterized in that: The method of synthesizing the similarities of the facial contour feature vectors in all feature regions to determine whether the matching face image matches the standard face image specifically includes: Constructing a body shape model corresponding to the feature area one by one, wherein the body shape model takes the body shape ratio of the face as input and takes the similarity threshold between the feature vectors of the facial features in the feature area as output; Determine whether the similarity of the feature vectors of the facial contours in each feature region exceeds the similarity threshold between the feature vectors of the facial contours in the feature region. If so, determine that the matching face image does not match the standard face image. If not, determine that the facial contours match. For the matching face image and the standard face image for determining the matching of facial features, a comprehensive matching formula is used to calculate the comprehensive matching degree between the matching face image and the standard face image; Determine whether the comprehensive matching degree between the matching face image and the standard face image is greater than a set matching threshold. If so, determine that the matching face image does not match the standard face image. If not, determine that the matching face image matches the standard face image. The comprehensive matching formula is specifically: Where Z is the comprehensive matching degree between the matching face image and the standard face image, n is the total number of feature regions, X j is the similarity between the feature vectors of the facial features in the feature region of the matching face image and the feature vectors in the jth feature region of the standard face image, α j is the calibration weight of the jth feature region.
6. The method for static face recognition based on feature vector method according to claim 5, characterized in that: The step of constructing a body shape state model corresponding to the characteristic regions one by one specifically includes: Acquire at least one set of sample images, wherein the set of sample images are facial images of the same person at different weights; Calculate the body shape state ratio of the faces in each group of sample images respectively, and record it as the sample body shape state ratio; Calculate the similarity of the facial features contour feature vectors in the feature area of each group of sample images respectively; The maximum value of the similarity of the facial features under the body shape ratio of each face is selected as the similarity threshold corresponding to the body shape ratio of the sample; Get the similarity threshold corresponding to the body shape status ratio of all samples; A body shape state model is constructed based on the similarity threshold corresponding to the body shape state ratios of all samples; The body shape state model is specifically: Where S(x) is the similarity threshold between the feature vectors of the facial features in the feature region when the body shape ratio of the face is x, x is the body shape ratio of the face, and x down is the sample size state ratio that is smaller than and closest to the sample size state ratio, x up is the sample size state ratio that is greater than and closest to the sample size state ratio, S down is the similarity threshold corresponding to the sample body shape state ratio that is smaller than and closest to the sample body shape state ratio, S up is the similarity threshold that is greater than and corresponds to the closest sample body shape state ratio among the sample body shape state ratios.
7. A static face recognition system based on feature vector method, characterized in that: The method for realizing static face recognition based on feature vector method as claimed in any one of claims 1 to 6 comprises: A storage module, wherein the storage module is used to store standard face images; An image acquisition device, wherein the image acquisition device is used to acquire a face image to be identified; An image preprocessing module, the image preprocessing module is electrically connected to the image acquisition device, and the image preprocessing module is used to extract the face area in the face image to be identified to obtain a matching face image; An image initial matching module, the image initial matching module is electrically connected to the storage module and the image preprocessing module, and the image initial matching module is used to perform matching analysis based on matching face images and standard face images stored in a database to determine the body shape and proportion of the face; A feature extraction module, the feature extraction module is electrically connected to the image initial matching module, and the feature extraction module is used to extract facial features as feature areas from the matching face image and the standard face image according to the same division logic; A feature vector construction module, the feature vector construction module is electrically connected to the feature extraction module, the feature vector construction module is used to select a number of feature points on the contour lines of the facial features in the feature area of the matching face image and the feature area of the standard face image, and determine a reference point in the feature area, and record the vector from the reference point to the feature point as the feature vector of the facial features contour in the feature area; The recognition module is electrically connected to the feature vector construction module, and is used to calculate the similarity of the facial contour feature vectors in each corresponding feature area of the matching face image and the standard face image, and comprehensively calculate the similarity of the facial contour feature vectors in all feature areas to determine whether the matching face image matches the standard face image. If so, the face recognition is passed, otherwise, the face recognition is failed.
8. The static face recognition system based on feature vector method according to claim 7, characterized in that: The image initial matching module comprises: A calibration feature recognition unit, the calibration feature recognition unit is used to obtain calibration features in a human face; A scaling matching unit, the scaling matching unit being used to scale the matching face image and the standard face image stored in the database to the same ratio based on the calibration features of the matching face image and the standard face image stored in the database; The body shape recognition unit is used to determine the area ratio of the matching face image and the standard face image stored in the database at the same ratio as the body shape state ratio of the face.
9. The static face recognition system based on feature vector method according to claim 7, characterized in that: The identification module comprises: A model building unit, the model building unit is used to build a body shape state model corresponding to the feature areas one by one; A facial feature recognition unit, the facial feature recognition unit is used to determine whether the similarity of the facial feature contour feature vectors in each feature area exceeds a similarity threshold between the facial feature contour feature vectors in the feature area, if so, it is determined that the matching face image does not match the standard face image, if not, it is determined that the facial feature contours match; A comprehensive recognition unit is used to determine whether the comprehensive matching degree between the matching face image and the standard face image is greater than a set matching threshold. If so, it is determined that the matching face image does not match the standard face image. If not, it is determined that the matching face image matches the standard face image.
Citation Information
Patent Citations
Face recognition method and device based on dynamic threshold value
CN103136533A
Fatness / thinness detection method and mobile terminal
CN106295520A
Human face recognition system and method based on face feature dynamic updating
CN111339990A
Self-adaptive threshold selection method and face recognition method
CN112883946A
Facial recognition method and apparatus, and electronic device and storage medium
WO2022166532A1
Cited By
Face recognition method based on data analysis
CN120198951A
