Face recognition method and system

Through the acquisition and numbering of three-dimensional coordinate data, combined with the comparison of path vector data sets generated by random numbers, the problem of low security and low efficiency of the existing face recognition payment system is solved, achieving higher security and efficiency, and preventing face recognition Identify attacks and the security of the payment process.

CN118552199APending Publication Date: 2024-08-27广西申能达智能技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410572194.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-10
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

The existing facial recognition payment system has low security and efficiency, is easy to be bypassed by attackers, and is difficult to prevent the theft and counterfeiting of facial data.

Method used

Using three-dimensional coordinate data acquisition and numbering, combined with random number generation and path vector data set comparison, face data is obtained from multiple angles through cameras, three-dimensional coordinate points are generated and numbered, and a random number array is used to generate a path vector data set for matching. A matching degree of 95% or above is considered a successful match.

Benefits of technology

It effectively improves the security and efficiency of face recognition, prevents face recognition from being attacked, and ensures the security and accuracy of the payment process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552199A
    Figure CN118552199A
Patent Text Reader

Abstract

The invention provides a face recognition method and system, and belongs to the technical field of face recognition payment, and the method comprises the following steps: enabling a camera to recognize a face in front of payment equipment, obtaining face three-dimensional coordinate data, carrying out the numbering of three-dimensional coordinate points of the face three-dimensional coordinate data according to a set rule, and carrying out the recognition of the three-dimensional coordinate points; and inputting the three-dimensional coordinate point data into a middle buffer module, sending a face comparison request to a face database, extracting any two feature points on the face, inputting the extracted feature points into the face database, and then transmitting a comparison result to a payment module for payment or displaying failure. According to the method, the three-dimensional coordinate data of the human face is obtained, checking calculation is carried out according to the distance between the points of the three-dimensional coordinate, the situation that human face recognition is attacked can be effectively prevented, human face recognition is safer, and meanwhile the comparison efficiency is greatly improved through screening of the feature points.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of face recognition payment technology, and in particular to a face recognition method and system. Background Art

[0002] With the continuous progress of society, face recognition has gradually entered the public's field of vision. The human face is unique compared to other biological characteristics of the human body, such as fingerprints, palm prints, irises, and retinas. Its uniqueness can be used to identify the identity of the user. Face payment refers to the use of face recognition as the basis for identity judgment. Its means of allowing payment once face recognition is passed is more convenient and more popular than other payment methods. However, face recognition is easy to be bypassed. The industry has provided a variety of technologies to break face recognition, such as generating adversarial samples, PS technology, 3D modeling and model printing. Attackers may obtain the user's face through various means (such as taking pictures, ubiquitous cameras, social media, etc.). Once the user's face is obtained, since the face is a static feature that cannot be modified, the attacker can impersonate the user to bypass the face recognition system. Therefore, the security of traditional face payment needs to be improved. Therefore, it is necessary to design a face recognition system and method with higher security and efficiency. Summary of the invention

[0003] The purpose of the present invention is to provide a method and system for face recognition to solve the technical problems of low security and low efficiency in the existing face recognition process.

[0004] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0005] A method for face recognition, the method comprising the following steps:

[0006] Step 1: The camera recognizes the face in front of the payment device and obtains the 3D coordinate data of the face;

[0007] Step 2: Number the three-dimensional coordinate points of the face three-dimensional coordinate data according to the set rules;

[0008] Step 3: Input the 3D coordinate point data into the intermediate buffer module, send a face comparison request to the face database, and extract any two feature points on the face and input them into the face database;

[0009] Step 4: The face database uses a random function to generate two or more random numbers and stores them in the random number array in sequence;

[0010] Step 5: The face database selects similar or identical face data based on the input face feature points, and then stores the selected face data into the face array;

[0011] Step 6: Take the point where the first number in the random number array corresponds to the number on the face's three-dimensional coordinates as the origin of the three-dimensional coordinates, and then take the remaining random numbers and the corresponding three-dimensional coordinate numbered points as path points in turn, generate the path vectors between all two path points, and obtain the face path vector dataset;

[0012] Step 7: Output the random number array to the buffer module, and generate input face vector data according to the process of step 6;

[0013] Step 8: Input the input face vector data into the face database and compare each face data with the face path vector data set. When the comparison match degree with one of the faces reaches more than 95% and the feature points are the same or the comparison match degree of the faces reaches more than 98%, the match is considered successful.

[0014] Step 9: The facial database transmits the successful matching data to the payment module to realize payment.

[0015] Furthermore, the specific process of step 1 is:

[0016] Step 1.1: Use three cameras to obtain the left side image, the center image and the right side image of the face. The three cameras are set on the same straight line. The distance from the left side camera to the middle camera is the same as the distance from the right side camera to the middle camera. Then, the images obtained by the three cameras are processed to obtain three pre-processed images.

[0017] Step 1.2: Calibrate the three cameras, print a chessboard, and stick the chessboard on a plane as a calibration object. Then put the three pre-processed images on the calibration object respectively, and then identify the image features on the calibration object respectively, estimate the ideal distortion-free situation, obtain five intrinsic parameters and all extrinsic parameters, apply the least squares method to estimate the distortion coefficient under the actual radial distortion, and obtain the intrinsic parameter matrix, extrinsic parameter matrix and distortion parameters between the three cameras;

[0018] Step 1.3: Obtain the relevant parameters of the three cameras, and then perform correction processing based on the parameters. The relevant parameters include the intrinsic parameter matrix, extrinsic parameter matrix and distortion parameters between the three cameras. Use the distortion parameters to correct the image. When there are no matching pixels in the correction process, interpolation processing is performed. The interpolated pixel point is the average value of the surrounding pixels. When the interpolation point is at the edge position, there is only one adjacent pixel to the interpolation point. At this time, the interpolation takes the average value of the surrounding pixels of the adjacent pixel point;

[0019] Step 1.4: Perform horizontal line correction on the corrected images, identify each row of pixels of the three corrected images from top to bottom, and then store each row of pixels in a multi-dimensional array to obtain three multi-dimensional arrays, and then compare the row pixels on the three multi-row arrays by row and column, and then find the feature pixels of the three images, and then draw a straight line on the row with the most feature pixels, and then rotate and translate the left image and the right image so that the rows with the most feature pixels of the three images are on a straight line.

[0020] Step 1.5: Detect the difference pixels of the three images after correction, select the blocks with the most characteristic pixels for each of the three images, the characteristic pixels are the pixels in the continuous and identical areas of the three images, and then get the n*m ​​pixel area, take the edge of the pixel area as the emission starting point, and extend the rays outward from the corners of each edge pixel grid, and then name each ray as the pixel extension ray L i ,, n, m, i are all positive integers, then the corresponding pixels in the three images are extended to compare the rays, when the pixels of the corresponding points of one image and the other two images are different, the pixels of the two images are taken and filled to the corresponding positions of the other image, if the pixels of a certain point on the same ray on the three images are different, the pixels on the adjacent parallel rays are searched for comparison, when similar or identical pixels are found on adjacent parallel pixel points, they are marked and then compared in turn, and the pixel differences are registered;

[0021] Step 1.6: Identify and correct the difference pixels. When matching the pixels marked on adjacent parallel rays in step 1.5, move the matched pixels up and down to the same horizontal line, then remove the different pixels in one image, and then fill the corresponding pixels in the other two images, and then do it in sequence until each pixel of the three images is corrected and matched. By selecting the comparison between the two groups of images, and then selecting the three-choice-two mode to fill the occluded points with the sub-minimum disparity value in the surrounding valid pixels, a complete disparity map is obtained, and thus the matching relationship between the imaging points of the target object in the left and right images is obtained;

[0022] Step 1.7: Calculate the three-dimensional coordinates of each point on the face. According to the relationship between similar triangles, the coordinates of the face point (X1, Y1, Z1) can be calculated based on the two points between the left image and the middle image. Then the coordinates of the face point (X2, Y2, Z2) can be calculated based on the two points between the right image and the middle image. The two points are the same point on the target object. Then take the average of the face point coordinates (X1, Y1, Z1) and the face point coordinates (X2, Y2, Z2) to get the true three-dimensional coordinates of the face. All the three-dimensional coordinates of the face are calculated in turn.

[0023] Furthermore, in step 2, the three-dimensional coordinate points of the face are numbered from left to right, starting from the first column at the leftmost end, and each column is numbered from the bottom to the top. The label data is determined according to the number of the random function, and the numbering number is an integer greater than or equal to zero.

[0024] Further, in step 3, the three-dimensional coordinate point data is first stored in the buffer register of the intermediate buffer module, and then a matching request is triggered. The process of any two feature points is: facial feature recognition is performed from the initial image of the face center image, and then any two feature points are obtained, and then the two features are sent to the face database through the intermediate buffer module together with the matching request.

[0025] Furthermore, in step 5, when the feature values ​​of one or more feature points match the feature values ​​of the face data in the face database, they are identified as similar or identical face data, and then the single face is input into the face data as a unit.

[0026] Furthermore, in step 6, the random numbers are matched with the numbers of the three-dimensional coordinates of the face, and then a mapping relationship is obtained between the random numbers and the three-dimensional coordinates. The point corresponding to the first random number is taken as the origin of the three-dimensional coordinates, and the coordinates of the coordinate points are refreshed to obtain new three-dimensional coordinate data. Then, the three-dimensional coordinate points corresponding to the random numbers are connected in the order of the random numbers to obtain the coordinate point path, and then a vector is formed between any two points, and then all the vectors are summarized to obtain a face path vector data set.

[0027] Furthermore, in step 8, when comparing face path vector data, once the face data is compared, the face path vector data between faces are not cross-mixed with each other. After comparing one face data, if no match can be found, the matched face data is discarded.

[0028] A system for a face recognition method includes a camera module, a face three-dimensional coordinate data acquisition module, a face three-dimensional coordinate data labeling module, an intermediate buffer module, a face database unit and a payment module. The camera module is connected to the face three-dimensional coordinate data labeling module via the face three-dimensional coordinate data acquisition module, the face three-dimensional coordinate data labeling module is connected to the intermediate buffer module, the intermediate buffer module is connected to the face database unit, the face database unit is connected to the payment module, the camera module is used to acquire face data from different angles, and the face three-dimensional coordinate data acquisition module is used to convert the acquired face data into three-dimensional coordinate points. The face three-dimensional coordinate data labeling module is used to number the three-dimensional coordinate points of the face. The intermediate buffer module is used to cache the face data and send a matching request to the face database unit. Then, the cached face data is converted into three-dimensional coordinate face data according to the random number fed back by the face database unit, and the three-dimensional coordinate face data is passed into the face database for comparison. The face database unit is used to generate random numbers, and then regenerate the face three-dimensional data set for the faces in the database, and then complete the face path vector comparison and send the comparison result to the payment module. The payment module is used to pay the fee or display the payment failure according to the comparison.

[0029] Furthermore, the face database unit includes a random number generation module, a feature comparison module, a face path vector data generation module, a face matching module and a match success data sending module. The random number generation module and the feature comparison module are both connected to the face path vector data generation module, the face path vector data generation module is connected to the face matching module, and the face matching module is connected to the match success data sending module.

[0030] The present invention has the following beneficial effects due to the adoption of the above technical solution:

[0031] The present invention obtains the three-dimensional coordinate data of the face and then verifies the distance between each point of the three-dimensional coordinates, which can effectively prevent the face recognition from being attacked, making the face recognition safer. At the same time, the comparison efficiency is greatly improved by screening the feature points. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is a flow chart of the method of the present invention;

[0033] Figure 2 It is a system block diagram of the present invention. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and preferred embodiments. However, it should be noted that many details listed in the specification are only for the purpose of enabling the reader to have a thorough understanding of one or more aspects of the present invention, and these aspects of the present invention can be implemented even without these specific details.

[0035] like Figure 1 As shown, a method for face recognition comprises the following steps:

[0036] Step 1: The camera recognizes the face in front of the payment device and obtains the 3D coordinate data of the face.

[0037] Step 1.1: Use three cameras to obtain the left side image, the center image and the right side image of the face. The three cameras are set on the same straight line. The distance from the left side camera to the middle camera is the same as the distance from the right side camera to the middle camera. Then, the images obtained by the three cameras are processed to obtain three pre-processed images.

[0038] Step 1.2: Calibrate the three cameras. Print a chessboard and stick it on a plane as a calibration object. Then place the three preprocessed images on the calibration object respectively. Then identify the image features of the calibration objects respectively, estimate the ideal distortion-free situation, obtain five intrinsic parameters and all extrinsic parameters, apply the least squares method to estimate the distortion coefficient under the actual radial distortion, and obtain the intrinsic parameter matrix, extrinsic parameter matrix and distortion parameters between the three cameras.

[0039] Step 1.3: Obtain the relevant parameters of the three cameras, and then perform correction processing based on the parameters. The relevant parameters include the intrinsic parameter matrix, extrinsic parameter matrix and distortion parameters between the three cameras. Use the distortion parameters to correct the image. When there are no matching pixels in the correction process, interpolation processing is performed. The interpolated pixel point is the average value of the surrounding pixels. When the interpolation point is at the edge position, there is only one adjacent pixel to the interpolation point. At this time, the interpolation takes the average value of the surrounding pixels of the adjacent pixel point.

[0040] Step 1.4: Perform horizontal line correction on the corrected images, identify each row of pixels of the three corrected images from top to bottom, and then store each row of pixels in a multi-dimensional array to obtain three multi-dimensional arrays, and then compare the row pixels on the three multi-row arrays by rows and columns, and then find the feature pixels of the three images, and then draw a straight line on the row with the most feature pixels, and then rotate and translate the left image and the right image so that the rows with the most feature pixels of the three images are on a straight line.

[0041] Step 1.5: Detect the difference pixels of the three images after correction, select the blocks with the most characteristic pixels for each of the three images, the characteristic pixels are the pixels in the continuous and identical areas of the three images, and then get the n*m ​​pixel area, take the edge of the pixel area as the emission starting point, and extend the rays outward from the corners of each edge pixel grid, and then name each ray as the pixel extension ray L i ,, n, m, i are all positive integers, and then the corresponding pixels in the three images are extended along the rays for pixel comparison. When the pixels of the corresponding points in one image are different from those in the other two images, the pixels of the two images are taken and filled into the corresponding positions of the other image. If the pixels of a certain point on the same ray in the three images are different, the pixels on the adjacent parallel rays are searched for comparison. When similar or identical pixels are found on adjacent parallel pixel points, they are marked and compared in turn to register the pixel differences.

[0042] Step 1.6: Identify and correct the difference pixels. When matching the pixels marked on adjacent parallel rays in step 1.5, move the matched pixels up and down to the same horizontal line, then remove the different pixels in one image, and then fill the corresponding pixels in the other two images, and then proceed in sequence until each pixel of the three images is corrected and matched. By selecting the comparison between the two groups of images, and then selecting the three-choice-two mode to fill the occluded points with the sub-minimum disparity value in the surrounding valid pixels, a complete disparity map is obtained, and thus the matching relationship between the imaging points of the target object in the left and right images is obtained.

[0043] Step 1.7: Calculate the three-dimensional coordinates of each point on the face. According to the relationship between similar triangles, the coordinates of the face point (X1, Y1, Z1) can be calculated based on the two points between the left image and the middle image. Then the coordinates of the face point (X2, Y2, Z2) can be calculated based on the two points between the right image and the middle image. The two points are the same point on the target object. Then take the average of the face point coordinates (X1, Y1, Z1) and the face point coordinates (X2, Y2, Z2) to get the true three-dimensional coordinates of the face. All the three-dimensional coordinates of the face are calculated in turn.

[0044] By identifying the three-dimensional model of the face from three directions and then outputting the three-dimensional data, the comparison data can be made more detailed and more secure, thus avoiding damage or payment theft caused by attacks.

[0045] Step 2: Number the 3D coordinate points of the face 3D coordinate data according to the set rules. Number the 3D coordinate points of the face from left to right, starting with the first column at the left end, and then numbering each column from the bottom up. The numbering data is determined according to the number of the random function, and the numbering number is an integer greater than or equal to zero. That is, number the first column on the left first, and when numbering, number from the bottom up, finish one column first, and then continue numbering from the bottom of the other column.

[0046] Step 3: Input the 3D coordinate point data into the intermediate buffer module, send a face comparison request to the face database, and extract any two feature points on the face and input them into the face database. The 3D coordinate point data is first stored in the buffer register of the intermediate buffer module, and then triggers a matching request. The process of any two feature points is: perform face feature recognition from the initial image of the face center image, then obtain any two feature points, and then send the two features to the face database through the intermediate buffer module together with the matching request.

[0047] Step 4: The face database uses a random function to generate two or more random numbers and stores them in the random number array in sequence. For example, if there are 10 random numbers, 0-9, then the three-dimensional coordinate numbers are 0-9.

[0048] Step 5: The face database selects similar or identical face data based on the input face feature points, and then stores the selected face data in the face array. The face array is a two-dimensional array, and each column is the data of a face. When the feature values ​​of more than one feature point match the feature values ​​of the face data in the face database, it is identified as similar or identical face data, and then the single face is input into the face data as a unit.

[0049] Step 6: Take the point corresponding to the first number in the random number array and the number on the face three-dimensional coordinates as the origin of the three-dimensional coordinates, and then take the remaining random numbers and the corresponding three-dimensional coordinate numbered points as path points, generate the path vectors between all two path points, and obtain the face path vector data set. Match the random numbers with the numbers of the face three-dimensional coordinates, and then obtain the mapping relationship between the random numbers and the three-dimensional coordinates. Take the point corresponding to the first random number as the origin of the three-dimensional coordinates, refresh the coordinates of the coordinate points, and obtain new three-dimensional coordinate data. Then, connect the three-dimensional coordinate points corresponding to the random numbers in the order of the random numbers to obtain the coordinate point path, and then form a vector between any two points, and then summarize all the vectors to obtain the face path vector data set.

[0050] Step 7: Output the random number array to the buffer module, and generate input face vector data according to the process of step 6.

[0051] Step 8: Input the input face vector data into the face database and compare each face data with the face path vector data set. When the comparison match degree with one of the faces reaches more than 95% and the feature points are the same or the face comparison match degree reaches more than 98%, the match is considered successful. When comparing face path vector data, the face data of each face is used as the comparison object, and the face path vector data of each face is not cross-mixed. After comparing one face data, if no match is found, the matched face data is discarded.

[0052] Step 9: The facial database transmits the successful matching data to the payment module to realize payment.

[0053] A system for a method of face recognition, such as Figure 2 As shown, it includes a camera module, a face three-dimensional coordinate data acquisition module, a face three-dimensional coordinate data labeling module, an intermediate buffer module, a face database unit and a payment module. The camera module is connected to the face three-dimensional coordinate data labeling module via the face three-dimensional coordinate data acquisition module, the face three-dimensional coordinate data labeling module is connected to the intermediate buffer module, the intermediate buffer module is connected to the face database unit, and the face database unit is connected to the payment module. The camera module is used to acquire face data from different angles. The face three-dimensional coordinate data acquisition module is used to convert the acquired face data into three-dimensional coordinate points. The face three-dimensional coordinate data labeling module is used to number the face three-dimensional coordinate points. The intermediate buffer module is used to cache face data and send a matching request to the face database unit, and then convert the cached face data into three-dimensional coordinate face data according to the random number fed back by the face database unit, and transfer the three-dimensional coordinate face data to the face database for comparison. The face database unit is used to generate random numbers, and then regenerate a face three-dimensional data set for the face in the database, and then complete the face path vector comparison, and send the comparison result to the payment module. The payment module is used to pay the fee or display the payment failure according to the comparison.

[0054] The face database unit includes a random number generation module, a feature comparison module, a face path vector data generation module, a face matching module and a matching success data sending module. The random number generation module and the feature comparison module are connected to the face path vector data generation module, the face path vector data generation module is connected to the face matching module, and the face matching module is connected to the matching success data sending module. The random number generation module is used to generate random numbers, and the feature comparison module is used for the initial comparison of basic face features, and then the face data is screened to make the subsequent matching more efficient.

[0055] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for face recognition, characterized in that: The method comprises the following steps: Step 1: The camera recognizes the face in front of the payment device and obtains the 3D coordinate data of the face; Step 2: Number the three-dimensional coordinate points of the face three-dimensional coordinate data according to the set rules; Step 3: Input the 3D coordinate point data into the intermediate buffer module, send a face comparison request to the face database, and extract any two feature points on the face and input them into the face database; Step 4: The face database uses a random function to generate two or more random numbers and stores them in the random number array in sequence; Step 5: The face database selects similar or identical face data based on the input face feature points, and then stores the selected face data into the face array; Step 6: Take the point where the first number in the random number array corresponds to the number on the face's three-dimensional coordinates as the origin of the three-dimensional coordinates, and then take the remaining random numbers and the corresponding three-dimensional coordinate numbered points as path points in turn, generate the path vectors between all two path points, and obtain the face path vector dataset; Step 7: Output the random number array to the buffer module, and generate input face vector data according to the process of step 6; Step 8: Input the input face vector data into the face database and compare each face data with the face path vector data set. When the comparison match degree with one of the faces reaches more than 95% and the feature points are the same or the comparison match degree of the faces reaches more than 98%, the match is considered successful. Step 9: The facial database transmits the successful matching data to the payment module to realize payment.

2. A face recognition method according to claim 1, characterized in that: The specific process of step 1 is: Step 1.1: Use three cameras to obtain the left side image, the center image and the right side image of the face. The three cameras are set on the same straight line. The distance from the left side camera to the middle camera is the same as the distance from the right side camera to the middle camera. Then, the images obtained by the three cameras are processed to obtain three pre-processed images. Step 1.2: Calibrate the three cameras, print a chessboard, and stick the chessboard on a plane as a calibration object. Then put the three pre-processed images on the calibration object respectively, and then identify the image features on the calibration object respectively, estimate the ideal distortion-free situation, obtain five intrinsic parameters and all extrinsic parameters, apply the least squares method to estimate the distortion coefficient under the actual radial distortion, and obtain the intrinsic parameter matrix, extrinsic parameter matrix and distortion parameters between the three cameras; Step 1.3: Obtain the relevant parameters of the three cameras, and then perform correction processing based on the parameters. The relevant parameters include the intrinsic parameter matrix, extrinsic parameter matrix and distortion parameters between the three cameras. Use the distortion parameters to correct the image. When there are no matching pixels in the correction process, interpolation processing is performed. The interpolated pixel point is the average value of the surrounding pixels. When the interpolation point is at the edge position, there is only one adjacent pixel to the interpolation point. At this time, the interpolation takes the average value of the surrounding pixels of the adjacent pixel point; Step 1.4: Perform horizontal line correction on the corrected images, identify each row of pixels of the three corrected images from top to bottom, and then store each row of pixels in a multi-dimensional array to obtain three multi-dimensional arrays, and then compare the row pixels on the three multi-row arrays by row and column, and then find the feature pixels of the three images, and then draw a straight line on the row with the most feature pixels, and then rotate and translate the left image and the right image so that the rows with the most feature pixels of the three images are on a straight line. Step 1.5: Detect the difference pixels of the three images after correction, select the blocks with the most characteristic pixels for each of the three images, the characteristic pixels are the pixels in the continuous and identical areas of the three images, and then get the n*m ​​pixel area, take the edge of the pixel area as the emission starting point, and extend the rays outward from the corners of each edge pixel grid, and then name each ray as the pixel extension ray L i ,, n, m, i are all positive integers, then the corresponding pixels in the three images are extended to compare the rays, when the pixels of the corresponding points of one image and the other two images are different, the pixels of the two images are taken and filled to the corresponding positions of the other image, if the pixels of a certain point on the same ray on the three images are different, the pixels on the adjacent parallel rays are searched for comparison, when similar or identical pixels are found on adjacent parallel pixel points, they are marked and then compared in turn, and the pixel differences are registered; Step 1.6: Identify and correct the difference pixels. When matching the pixels marked on adjacent parallel rays in step 1.5, move the matched pixels up and down to the same horizontal line, then remove the different pixels in one image, and then fill the corresponding pixels in the other two images, and then do it in sequence until each pixel of the three images is corrected and matched. By selecting the comparison between the two groups of images, and then selecting the three-choice-two mode to fill the occluded points with the sub-minimum disparity value in the surrounding valid pixels, a complete disparity map is obtained, and thus the matching relationship between the imaging points of the target object in the left and right images is obtained; Step 1.7: Calculate the three-dimensional coordinates of each point on the face. According to the relationship between similar triangles, the coordinates of the face point (X1, Y1, Z1) can be calculated based on the two points between the left image and the middle image. Then the coordinates of the face point (X2, Y2, Z2) can be calculated based on the two points between the right image and the middle image. The two points are the same point on the target object. Then take the average of the face point coordinates (X1, Y1, Z1) and the face point coordinates (X2, Y2, Z2) to get the true three-dimensional coordinates of the face. All the three-dimensional coordinates of the face are calculated in turn.

3. A face recognition method according to claim 2, characterized in that: In step 2, the three-dimensional coordinate points of the face are numbered from left to right, starting from the first column at the leftmost end, and each column is numbered from the bottom to the top. The label data is determined according to the number of the random function, and the number is an integer greater than or equal to zero.

4. A face recognition method according to claim 3, characterized in that: In step 3, the three-dimensional coordinate point data is first stored in the buffer register of the intermediate buffer module, and then a matching request is triggered. The process of any two feature points is: facial feature recognition is performed from the initial image of the face center image, and then any two feature points are obtained, and then the two features are sent to the face database through the intermediate buffer module together with the matching request.

5. A face recognition method according to claim 4, characterized in that: In step 5, when the feature values ​​of one or more feature points match the feature values ​​of the face data in the face database, they are identified as similar or identical face data, and then the single face is input into the face data as a unit.

6. A method for face recognition according to claim 5, characterized in that: In step 6, the random numbers are matched with the numbers of the three-dimensional coordinates of the face, and then a mapping relationship is obtained between the random numbers and the three-dimensional coordinates. The point corresponding to the first random number is taken as the origin of the three-dimensional coordinates, and the coordinates of the coordinate points are refreshed to obtain new three-dimensional coordinate data. Then, the three-dimensional coordinate points corresponding to the random numbers are connected in the order of the random numbers to obtain the coordinate point path. Then, a vector is formed between any two points, and then all the vectors are summarized to obtain a face path vector data set.

7. A face recognition method according to claim 1, characterized in that: In step 8, when comparing face path vector data, the face data of each face is used as the comparison object, and the face path vector data of each face are not cross-mixed with each other. After comparing one face data, if no match is found, the matched face data is discarded.

8. A system for a face recognition method according to any one of claims 1 to 7, characterized in that: The invention comprises a camera module, a face three-dimensional coordinate data acquisition module, a face three-dimensional coordinate data labeling module, an intermediate buffer module, a face database unit and a payment module. The camera module is connected to the face three-dimensional coordinate data labeling module via the face three-dimensional coordinate data acquisition module, the face three-dimensional coordinate data labeling module is connected to the intermediate buffer module, the intermediate buffer module is connected to the face database unit, and the face database unit is connected to the payment module. The camera module is used to acquire face data from different angles. The face three-dimensional coordinate data acquisition module is used to convert the acquired face data into three-dimensional coordinate points. The face three-dimensional coordinate data labeling module is used to number the face three-dimensional coordinate points. The intermediate buffer module is used to cache face data and send a matching request to the face database unit. Then, according to the random number fed back by the face database unit, the cached face data is converted into three-dimensional coordinate face data, and the three-dimensional coordinate face data is transmitted to the face database for comparison. The face database unit is used to generate random numbers, and then regenerate a face three-dimensional data set for the faces in the database, and then complete the face path vector comparison, and send the comparison result to the payment module. The payment module is used to pay the fee or display the payment failure according to the comparison.

9. The system of the face recognition method according to claim 8, characterized in that: The face database unit includes a random number generation module, a feature comparison module, a face path vector data generation module, a face matching module and a matching success data sending module. The random number generation module and the feature comparison module are both connected to the face path vector data generation module, the face path vector data generation module is connected to the face matching module, and the face matching module is connected to the matching success data sending module.