CN113034345A - Face recognition method and system based on SFM reconstruction - Google Patents
Face recognition method and system based on SFM reconstruction Download PDFInfo
- Publication number
- CN113034345A CN113034345A CN201911357292.3A CN201911357292A CN113034345A CN 113034345 A CN113034345 A CN 113034345A CN 201911357292 A CN201911357292 A CN 201911357292A CN 113034345 A CN113034345 A CN 113034345A
- Authority
- CN
- China
- Prior art keywords
- face image
- image
- face
- camera
- reconstruction
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000012545 processing Methods 0.000 claims abstract description 9
- 239000011159 matrix material Substances 0.000 claims description 57
- 238000013519 translation Methods 0.000 claims description 27
- 238000004590 computer program Methods 0.000 claims description 10
- 230000006870 function Effects 0.000 claims description 7
- 238000006243 chemical reaction Methods 0.000 claims description 6
- 230000009466 transformation Effects 0.000 claims description 6
- 238000010276 construction Methods 0.000 claims description 3
- 238000001514 detection method Methods 0.000 claims description 3
- 238000006073 displacement reaction Methods 0.000 claims description 3
- 230000004927 fusion Effects 0.000 claims description 3
- 238000007781 pre-processing Methods 0.000 claims description 3
- 230000001680 brushing effect Effects 0.000 abstract description 2
- 238000000605 extraction Methods 0.000 abstract description 2
- 238000012795 verification Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000008921 facial expression Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/08—Projecting images onto non-planar surfaces, e.g. geodetic screens
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/30—Noise filtering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/172—Classification, e.g. identification
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Human Computer Interaction (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a face recognition method and a face recognition system based on SFM reconstruction, which solve the problems of low multi-pose face recognition rate and low accuracy by combining three-dimensional face reconstruction and recognition; the problems of operation speed and mismatching are effectively solved by adopting a stereo matching method and combining an SFM algorithm. The mobile phone camera can be used for accurately acquiring image reconstruction information, and a multi-view image of the interested object is processed by using a mixed feature extraction technology; three-dimensional face reconstruction is realized based on a two-dimensional face picture, and the mismatching rate is reduced by combining coarse matching and fine matching, so that the accuracy of the SFM algorithm is improved; the required matching points are quickly and accurately found out by using an SFM algorithm, and a three-dimensional face structure with reality is obtained by subsequent processing; the three-dimensional face is used as a verification means, so that the reliability of face recognition is improved, and the method can be well applied to scenes such as face brushing payment and face recognition.
Description
Technical Field
The disclosure relates to the technical field of computer vision technology and three-dimensional image reconstruction, in particular to a face recognition method and system based on SFM reconstruction.
Background
3D face reconstruction can be classified as hardware based such as: stereo cameras, structured light or 3D laser scanners to reconstruct 3D faces, which can acquire accurate 3D face data, but at much higher cost. Therefore, a monocular camera-based method is proposed to reconstruct a 3D face, which can be reconstructed from a multi-view face image.
Robust algorithms are needed for changes in illumination, changes in camera focal length and position, facial expression movements or head shakes, etc. Meanwhile, a new face image is rendered by using the three-dimensional face parametric model and the two-dimensional face parametric texture model, and the face area in the image can be manually identified; through some improvement works, the three-dimensional face model can be completely and automatically established, but different face expressions cannot be well expressed. In the existing three-dimensional face reconstruction technology, a three-dimensional face is restored mainly through an algorithm, and the result obtained when the face is processed is unstable and comprises some areas with low texture and repeated texture.
Disclosure of Invention
In order to solve the above problems, the present disclosure provides a technical scheme of a face recognition method and system based on SFM reconstruction, and provides a high-efficiency automatic 2D to 3D face reconstruction method, which solves the problems of manual marking work and reducing operation time; the problem of low multi-pose face recognition rate and accuracy is solved by combining three-dimensional face reconstruction and recognition.
In order to achieve the above object, according to an aspect of the present disclosure, there is provided a face recognition method based on SFM reconstruction, the method including the steps of:
step 1: shooting a face image through a common camera, calibrating the camera, and acquiring internal and external parameters of the camera; taking an image sequence of one image shot by a camera at an angle interval to a human face as a human face image sequence, for example, taking the first two images in the human face image sequence as a first image and a second image, wherein the angle interval is 10 degrees;
step 2: inputting a first face image for denoising, image downsampling and image blurring; adjusting the gray scale range of the image by using gamma conversion on the second face image;
and step 3: carrying out feature point detection on the first face image and the second face image by using an SURF algorithm, carrying out SIFT operator on the detected feature points, then carrying out stereo matching to obtain registration points, and processing the obtained registration points through triangular similarity to enable pixel coordinates to be the same;
and 4, step 4: performing feature point matching on all adjacent two images in the face image sequence by using a nearest neighbor and next nearest neighbor ratio method, and storing all matching points;
and 5: setting the camera coordinates of the first human face image as standard coordinates, and calculating projection matrixes of the first human face image and the second human face image through internal parameters, rotation matrix parameters and translational vector parameters;
step 6: performing triangularization reconstruction by using the projection matrix and the obtained matching points to obtain three-dimensional coordinates of space points of the first face image and the second face image;
and 7: sequentially taking each image in the face image sequence as a third face image, solving a translation vector and a rotation matrix through the three-dimensional coordinates obtained in the step 6, and performing three-dimensional reconstruction on the translation vector and the rotation matrix and the matching points obtained in the step 4 to obtain three-dimensional point clouds of the matching points of the first two face images of the third face image;
and 8: reconstructing a new three-dimensional point cloud through the internal parameters, the matching points of the third face image and the first face image and the second face image, the rotation matrix parameters and the translation vector parameters;
and step 9: combining the three-dimensional point cloud generated in the step 7 and the three-dimensional point cloud generated in the step 8, repeatedly executing the step 7 to the step 8, and realizing three-dimensional reconstruction of the time sequence face images after combining the three-dimensional point clouds of all the face image sequences when the three-dimensional point clouds of all the face image sequences are combined;
step 10: and performing face recognition through an ICP algorithm.
Further, in step 1, the internal and external parameters of the video camera include camera internal parameters and camera external parameters, the camera internal parameters are parameters related to the characteristics of the camera, including the focal length, the pixel size, and the like of the camera; camera extrinsic parameters are parameters in the world coordinate system, including the position, rotational direction, etc. of the camera.
Further, in step 1, the method for capturing an image sequence of an image taken of a human face by the camera at an angle interval as a human face image sequence comprises: in a time period, a camera shoots a face image at the face of the front side of the camera by rotating N degrees, all the face images form a face image sequence, N is an angle value and is set to be 10 degrees by default, the value range of N is 1-180 degrees, the time period is 5 minutes, and both N and the time period can be manually set.
Further, in step 2, the first face image and the second face image are images captured by the camera at two different angles, for example, the first face image is an image of the front face of the face, and the second face image is an image obtained by rotating the face clockwise by 10 degrees.
Further, in step 6, the method for performing triangularization reconstruction by using the projection matrix and the obtained matching points to obtain the three-dimensional coordinates of the spatial points of the first face image and the second face image includes:
denote the abscissa as x and the homogeneous coordinate of the vector x as xThree-dimensional point M ═ x, y, z]TIs recorded as a homogeneous coordinateCorresponding image point m ═ u, v]TIs recorded as a homogeneous coordinateSatisfy formula (1)
WhereinAlpha, beta is the fusion of focal length and pixel aspect ratio, gamma is the radial distortion parameter, u0Are all horizontal coordinates, v0Are all vertical coordinates, λ is a constant; the elements in the matrix a are internal parameters of the camera and Ω is a three-dimensional coordinate transformation matrix including a rotation matrix R and a displacement matrix t.
Further, in step 7, the third face image is an image in the face image sequence, and the third face image is replaced by a next image of the current image in the face image sequence each time step 7 is executed.
Further, in step 10, the method for performing face recognition by using the ICP algorithm includes the following steps:
step 10.1: obtaining a target point cloud P in an input face image, and obtaining a point set P in the target point cloud PiBelongs to P; i is 1,2, … … n, n is the number of target points in the target point cloud;
step 10.2: finding out a corresponding point set Q in a source point cloud Q in a face imageiBelongs to Q, so that | | | Qi-piMin is a set minimum difference value, and default is 0.3 × i;
step 10.3: calculating a rotation matrix R and a translation matrix t to minimize an error function;
step 10.4: to piCarrying out rotation and translation transformation by using the rotation matrix and the translation matrix obtained in the step 10.3 to obtain a new corresponding point set p'i={Rpi+t,pi∈P};
Step 10.5: calculating p'iCorresponding point set qiAverage distance of (d):
step 10.6: if d is less than a given threshold or greater than a preset maximumIf the iteration times are the same, stopping the iteration and returning d to be the final face model similarity; otherwise go to step 10.2 until the convergence condition is met, the threshold is set by default toThe maximum number of iterations is set to 100.
The term referred to therein is, SFM: Structure-From-Motion (Motion Structure recovery algorithm); ICP: iterative Closest Point (Iterative Closest Point) algorithm.
The invention also provides a face recognition system based on SFM reconstruction, which comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the computer program to run in the units of the following system:
the image sequence acquisition unit is used for shooting a face image through a common camera, calibrating the camera and acquiring internal and external parameters of the camera; the camera shoots a human face at an angle interval every time and acquires an image sequence of an image as a human face image sequence; taking the first two images in the human face image sequence as a first image and a second image;
the model image preprocessing unit is used for inputting a first face image to perform denoising, image downsampling and image blurring; adjusting the gray scale range of the image by using gamma conversion on the second face image;
the image feature registration unit is used for detecting feature points of the first face image and the second face image by using a SURF algorithm, performing stereo matching on the detected feature points after SIFT operators are performed on the detected feature points to obtain registration points, and processing the obtained registration points through triangular similarity to enable pixel coordinates to be the same;
the neighbor matching unit is used for performing feature point matching on all adjacent two images in the face image sequence by using a nearest neighbor and next nearest neighbor ratio method and storing all matching points;
the model image projection unit is used for setting the camera coordinates of the first human face image as standard coordinates, and calculating the projection matrixes of the first human face image and the second human face image through the internal parameters, the rotation matrix parameters and the translational vector parameters;
the model triangularization reconstruction unit is used for carrying out triangularization reconstruction by utilizing the projection matrix and the obtained matching points to obtain three-dimensional coordinates of space points of the first face image and the second face image;
the three-dimensional point cloud construction unit is used for sequentially taking each image in the face image sequence as a third face image, solving a translation vector and a rotation matrix through three-dimensional coordinates, and performing three-dimensional reconstruction on the translation vector and the rotation matrix and matching points to obtain three-dimensional point clouds of the matching points of the first two face images of the third face image;
the reconstruction three-dimensional point cloud unit is used for reconstructing a new three-dimensional point cloud through the internal parameters, the matching points of the third face image, the first face image and the second face image, the rotation matrix parameters and the translation vector parameters;
the point cloud merging completion unit is used for merging the three-dimensional point clouds and completing the merging of the three-dimensional point clouds of all the face image sequences with the first face image and the second face image;
and the face recognition unit is used for carrying out face recognition through an ICP algorithm.
The beneficial effect of this disclosure does: the invention provides a face recognition method and system based on SFM reconstruction, which effectively solve the problems of operation speed and mismatching by adopting a stereo matching method and combining with an SFM algorithm. The whole method is easy to realize, the image reconstruction information can be accurately acquired by using a mobile phone camera, and the multi-view image of the interested object is processed by using a mixed feature extraction technology; three-dimensional face reconstruction is realized based on a two-dimensional face picture, and the mismatching rate is reduced by combining coarse matching and fine matching, so that the accuracy of the SFM algorithm is improved; through the face image shot by a common camera, the required matching points are quickly and accurately found out by using an SFM algorithm, and a three-dimensional face structure with reality is obtained through subsequent processing; the three-dimensional face is used as a verification means, so that the reliability of face recognition is improved, and the method can be well applied to scenes such as face brushing payment and face recognition.
Drawings
The foregoing and other features of the present disclosure will become more apparent from the detailed description of the embodiments shown in conjunction with the drawings in which like reference characters designate the same or similar elements throughout the several views, and it is apparent that the drawings in the following description are merely some examples of the present disclosure and that other drawings may be derived therefrom by those skilled in the art without the benefit of any inventive faculty, and in which:
FIG. 1 is a flow chart of a face recognition method based on SFM reconstruction;
fig. 2 is a block diagram of a face recognition system based on SFM reconstruction.
Detailed Description
The conception, specific structure and technical effects of the present disclosure will be clearly and completely described below in conjunction with the embodiments and the accompanying drawings to fully understand the objects, aspects and effects of the present disclosure. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Fig. 1 is a flow chart of a face recognition method based on SFM reconstruction according to the present disclosure, and a face recognition method based on SFM reconstruction according to an embodiment of the present disclosure is described below with reference to fig. 1.
The present disclosure provides a face recognition method based on SFM reconstruction, which specifically includes the following steps:
step 1: shooting a face image through a common camera, calibrating the camera, and acquiring internal and external parameters of the camera; taking an image sequence of one image shot by a camera at an angle interval to a human face as a human face image sequence, for example, taking the first two images in the human face image sequence as a first image and a second image, wherein the angle interval is 10 degrees;
step 2: inputting a first face image for denoising, image downsampling and image blurring; adjusting the gray scale range of the image by using gamma conversion on the second face image;
and step 3: carrying out feature point detection on the first face image and the second face image by using an SURF algorithm, carrying out SIFT operator on the detected feature points, then carrying out stereo matching to obtain registration points, and processing the obtained registration points through triangular similarity to enable pixel coordinates to be the same;
and 4, step 4: performing feature point matching on all adjacent two images in the face image sequence by using a nearest neighbor and next nearest neighbor ratio method, and storing all matching points;
and 5: setting the camera coordinates of the first human face image as standard coordinates, and calculating projection matrixes of the first human face image and the second human face image through internal parameters, rotation matrix parameters and translational vector parameters;
step 6: performing triangularization reconstruction (point cloud triangularization) by using the projection matrix and the obtained matching points to obtain space point three-dimensional coordinates of the first face image and the second face image;
and 7: sequentially taking each image in the face image sequence as a third face image, solving a translation vector and a rotation matrix through the three-dimensional coordinates obtained in the step 6, and performing three-dimensional reconstruction on the translation vector and the rotation matrix and the matching points obtained in the step 4 to obtain three-dimensional point clouds of the matching points of the first two face images of the third face image;
and 8: reconstructing a new three-dimensional point cloud through the internal parameters, the matching points of the third face image and the first face image and the second face image, the rotation matrix parameters and the translation vector parameters;
and step 9: combining the three-dimensional point cloud generated in the step 7 and the three-dimensional point cloud generated in the step 8, repeatedly executing the step 7 to the step 8, and realizing three-dimensional reconstruction of the time sequence face images after combining the three-dimensional point clouds of all the face image sequences when the three-dimensional point clouds of all the face image sequences are combined;
step 10: and performing face recognition through an ICP algorithm.
Further, in step 1, the internal and external parameters of the video camera include camera internal parameters and camera external parameters, the camera internal parameters are parameters related to the characteristics of the camera, including the focal length, the pixel size, and the like of the camera; camera extrinsic parameters are parameters in the world coordinate system, including the position, rotational direction, etc. of the camera.
Further, in step 1, the method for capturing an image sequence of an image taken of a human face by the camera at an angle interval as a human face image sequence comprises: in a time period, a camera shoots a face image at the face of the front side of the camera by rotating N degrees, all the face images form a face image sequence, N is an angle value and is set to be 10 degrees by default, the value range of N is 1-180 degrees, the time period is 5 minutes, and both N and the time period can be manually set.
Further, in step 2, the first face image and the second face image are images captured by the camera at two different angles, for example, the first face image is an image of the front face of the face, and the second face image is an image obtained by rotating the face clockwise by 10 degrees.
Further, in step 6, the method for performing triangularization reconstruction by using the projection matrix and the obtained matching points to obtain the three-dimensional coordinates of the spatial points of the first face image and the second face image includes:
denote the abscissa as x and the homogeneous coordinate of the vector x as xThree-dimensional point M ═ x, y, z]TIs recorded as a homogeneous coordinateCorresponding image point m ═ u, v]TIs recorded as a homogeneous coordinateSatisfy formula (1)
WhereinAlpha, beta is the fusion of focal length and pixel aspect ratio, gamma is the radial distortion parameter, u0Are all horizontal coordinates,v、v0Are all vertical coordinates, λ is a constant; the elements in the matrix a are internal parameters of the camera and Ω is a three-dimensional coordinate transformation matrix including a rotation matrix R and a displacement matrix t.
Further, in step 7, the third face image is an image in the face image sequence, and the third face image is replaced by a next image of the current image in the face image sequence each time step 7 is executed.
Further, in step 10, the method for performing face recognition by using the ICP algorithm includes the following steps:
step 10.1: obtaining a target point cloud P in an input face image, and obtaining a point set P in the target point cloud PiBelongs to P; i is 1,2, … … n, n is the number of target points in the target point cloud;
step 10.2: finding out a corresponding point set Q in a source point cloud Q in a face imageiBelongs to Q, so that | | | Qi-piMin is a set minimum difference value, and default is 0.3 × i;
step 10.3: calculating a rotation matrix R and a translation matrix t to minimize an error function;
step 10.4: to piCarrying out rotation and translation transformation by using the rotation matrix and the translation matrix obtained in the step 10.3 to obtain a new corresponding point set p'i={Rpi+t,pi∈P};
Step 10.5: calculating p'iCorresponding point set qiAverage distance of (d):
step 10.6: if d is smaller than a given threshold or larger than a preset maximum iteration number, stopping iteration and returning d as the final face model similarity; otherwise go to step 10.2 until the convergence condition is met, the threshold is set by default toThe maximum number of iterations is set to 100.
The term referred to therein is, SFM: Structure-From-Motion (Motion Structure recovery algorithm); ICP: iterative Closest Point (Iterative Closest Point) algorithm.
An SFM reconstruction-based face recognition system provided in an embodiment of the present disclosure is a structure diagram of the SFM reconstruction-based face recognition system shown in fig. 2, and the SFM reconstruction-based face recognition system of the embodiment includes: a processor, a memory and a computer program stored in the memory and executable on the processor, the processor implementing the steps in an embodiment of the face recognition system based on SFM reconstruction as described above when executing the computer program.
The system comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the computer program to run in the units of the following system:
the image sequence acquisition unit is used for shooting a face image through a common camera, calibrating the camera and acquiring internal and external parameters of the camera; the camera shoots a human face at an angle interval every time and acquires an image sequence of an image as a human face image sequence; taking the first two images in the human face image sequence as a first image and a second image;
the model image preprocessing unit is used for inputting a first face image to perform denoising, image downsampling and image blurring; adjusting the gray scale range of the image by using gamma conversion on the second face image;
the image feature registration unit is used for detecting feature points of the first face image and the second face image by using a SURF algorithm, performing stereo matching on the detected feature points after SIFT operators are performed on the detected feature points to obtain registration points, and processing the obtained registration points through triangular similarity to enable pixel coordinates to be the same;
the neighbor matching unit is used for performing feature point matching on all adjacent two images in the face image sequence by using a nearest neighbor and next nearest neighbor ratio method and storing all matching points;
the model image projection unit is used for setting the camera coordinates of the first human face image as standard coordinates, and calculating the projection matrixes of the first human face image and the second human face image through the internal parameters, the rotation matrix parameters and the translational vector parameters;
the model triangularization reconstruction unit is used for carrying out triangularization reconstruction by utilizing the projection matrix and the obtained matching points to obtain three-dimensional coordinates of space points of the first face image and the second face image;
the three-dimensional point cloud construction unit is used for sequentially taking each image in the face image sequence as a third face image, solving a translation vector and a rotation matrix through three-dimensional coordinates, and performing three-dimensional reconstruction on the translation vector and the rotation matrix and matching points to obtain three-dimensional point clouds of the matching points of the first two face images of the third face image;
the reconstruction three-dimensional point cloud unit is used for reconstructing a new three-dimensional point cloud through the internal parameters, the matching points of the third face image, the first face image and the second face image, the rotation matrix parameters and the translation vector parameters;
the point cloud merging completion unit is used for merging the three-dimensional point clouds and completing the merging of the three-dimensional point clouds of all the face image sequences with the first face image and the second face image;
and the face recognition unit is used for carrying out face recognition through an ICP algorithm.
The face recognition system based on SFM reconstruction can be operated in computing equipment such as desktop computers, notebooks, palm computers and cloud servers. The face recognition system based on SFM reconstruction can be operated by a system comprising but not limited to a processor and a memory. It will be understood by those skilled in the art that the example is merely an example of a face recognition system based on SFM reconstruction, and does not constitute a limitation of a face recognition system based on SFM reconstruction, and may include more or less components than the other, or some components in combination, or different components, for example, the face recognition system based on SFM reconstruction may further include an input-output device, a network access device, a bus, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor, etc., the processor is a control center of the SFM reconstruction based face recognition system operating system, and various interfaces and lines are used to connect various parts of the whole SFM reconstruction based face recognition system operating system.
The memory may be used to store the computer programs and/or modules, and the processor may implement the various functions of the face recognition system based on SFM reconstruction by running or executing the computer programs and/or modules stored in the memory and calling the data stored in the memory. The memory can mainly comprise a storage program area and a storage data area, wherein the storage program area can store an operating system, application programs (including a sound playing function, an image playing function and the like) required by at least one function and the like; the storage data area may store data (including audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
While the present disclosure has been described in considerable detail and with particular reference to a few illustrative embodiments thereof, it is not intended to be limited to any such details or embodiments or any particular embodiments, but it is to be construed as effectively covering the intended scope of the disclosure by providing a broad, potential interpretation of such claims in view of the prior art with reference to the appended claims. Furthermore, the foregoing describes the disclosure in terms of embodiments foreseen by the inventor for which an enabling description was available, notwithstanding that insubstantial modifications of the disclosure, not presently foreseen, may nonetheless represent equivalent modifications thereto.
Claims (7)
1. A face recognition method based on SFM reconstruction is characterized by comprising the following steps:
step 1: shooting a face image through a common camera, calibrating the camera, and acquiring internal and external parameters of the camera; the method comprises the steps that a camera shoots a human face at an angle interval every time and collects an image sequence of one image as a human face image sequence, and the first two images in the human face image sequence are taken as a first image and a second image;
step 2: inputting a first face image for denoising, image downsampling and image blurring; adjusting the gray scale range of the image by using gamma conversion on the second face image;
and step 3: carrying out feature point detection on the first face image and the second face image by using an SURF algorithm, carrying out SIFT operator on the detected feature points, then carrying out stereo matching to obtain registration points, and processing the obtained registration points through triangular similarity to enable pixel coordinates to be the same;
and 4, step 4: performing feature point matching on all adjacent two images in the face image sequence by using a nearest neighbor and next nearest neighbor ratio method, and storing all matching points;
and 5: setting the camera coordinates of the first human face image as standard coordinates, and calculating projection matrixes of the first human face image and the second human face image through internal parameters, rotation matrix parameters and translational vector parameters;
step 6: performing triangularization reconstruction by using the projection matrix and the obtained matching points to obtain three-dimensional coordinates of space points of the first face image and the second face image;
and 7: sequentially taking each image in the face image sequence as a third face image, solving a translation vector and a rotation matrix through the three-dimensional coordinates obtained in the step 6, and performing three-dimensional reconstruction on the translation vector and the rotation matrix and the matching points obtained in the step 4 to obtain three-dimensional point clouds of the matching points of the first two face images of the third face image;
and 8: reconstructing a new three-dimensional point cloud through the internal parameters, the matching points of the third face image and the first face image and the second face image, the rotation matrix parameters and the translation vector parameters;
and step 9: combining the three-dimensional point cloud generated in the step 7 and the three-dimensional point cloud generated in the step 8, repeatedly executing the step 7 to the step 8, and realizing three-dimensional reconstruction of the time sequence face images after combining the three-dimensional point clouds of all the face image sequences when the three-dimensional point clouds of all the face image sequences are combined;
step 10: and performing face recognition through an ICP algorithm.
2. The face recognition method based on SFM reconstruction as claimed in claim 1, wherein in step 1, the internal and external parameters of the video camera comprise camera internal parameters and camera external parameters, the camera internal parameters are parameters related to the self characteristics of the camera, including the focal length and pixel size of the camera; the camera extrinsic parameters are parameters in a world coordinate system, including the position and the rotational direction of the camera.
3. The SFM reconstruction-based face recognition method as claimed in claim 1, wherein in step 1, the method for capturing an image sequence of an image taken by the camera at every angle interval as the face image sequence comprises: in a time period, a face image is shot by the camera at the face of the front side of the camera every N degrees of rotation, and all the face images form a face image sequence.
4. An SFM reconstruction-based face recognition method as claimed in claim 1, wherein in step 2, the first face image and the second face image are images taken by a camera at two different angles.
5. The face recognition method based on SFM reconstruction as claimed in claim 1, wherein in step 6, the method for performing triangularization reconstruction by using the projection matrix and the obtained matching points to obtain the three-dimensional coordinates of the spatial points of the first face image and the second face image comprises:
denote the abscissa as x and the homogeneous coordinate of the vector x as xThree-dimensional point M ═ x, y, z]TIs recorded as a homogeneous coordinateCorresponding image point m ═ u, v]TIs recorded as a homogeneous coordinateSatisfy the formula
WhereinAlpha, beta is the fusion of focal length and pixel aspect ratio, gamma is the radial distortion parameter, u0Are all horizontal coordinates, v0Are all vertical coordinates, λ is a constant; the elements in the matrix a are internal parameters of the camera and Ω is a three-dimensional coordinate transformation matrix including a rotation matrix R and a displacement matrix t.
6. The face recognition method based on SFM reconstruction as claimed in claim 1, wherein in step 10, the method for face recognition through ICP algorithm comprises the following steps:
step 10.1: obtaining a target point cloud P in an input face image, and obtaining a point set P in the target point cloud PiBelongs to P; i is 1,2, … … n, n is the number of target points in the target point cloud;
step 10.2: finding out a corresponding point set Q in a source point cloud Q in a face imageiBelongs to Q, so that | | | Qi-piMin is a set minimum difference value, and default is 0.3 × i;
step 10.3: calculating a rotation matrix R and a translation matrix t to minimize an error function;
step 10.4: to piCarrying out rotation and translation transformation by using the rotation matrix and the translation matrix obtained in the step 10.3 to obtain a new corresponding point set p'i={Rpi+t,pi∈P};
Step 10.5: calculating p'iCorresponding point set qiAverage distance of (d):
step 10.6: if d is smaller than a given threshold or larger than a preset maximum iteration number, stopping iteration and returning d as the final face model similarity; otherwise go to step 10.2 until the convergence condition is met, the threshold is set by default toThe maximum number of iterations is set to 100.
7. A face recognition system based on SFM reconstruction, the system comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the computer program to run in the units of the following system:
the image sequence acquisition unit is used for shooting a face image through a common camera, calibrating the camera and acquiring internal and external parameters of the camera; the camera shoots a human face at an angle interval every time and acquires an image sequence of an image as a human face image sequence; taking the first two images in the human face image sequence as a first image and a second image;
the model image preprocessing unit is used for inputting a first face image to perform denoising, image downsampling and image blurring; adjusting the gray scale range of the image by using gamma conversion on the second face image;
the image feature registration unit is used for detecting feature points of the first face image and the second face image by using a SURF algorithm, performing stereo matching on the detected feature points after SIFT operators are performed on the detected feature points to obtain registration points, and processing the obtained registration points through triangular similarity to enable pixel coordinates to be the same;
the neighbor matching unit is used for performing feature point matching on all adjacent two images in the face image sequence by using a nearest neighbor and next nearest neighbor ratio method and storing all matching points;
the model image projection unit is used for setting the camera coordinates of the first human face image as standard coordinates, and calculating the projection matrixes of the first human face image and the second human face image through the internal parameters, the rotation matrix parameters and the translational vector parameters;
the model triangularization reconstruction unit is used for carrying out triangularization reconstruction by utilizing the projection matrix and the obtained matching points to obtain three-dimensional coordinates of space points of the first face image and the second face image;
the three-dimensional point cloud construction unit is used for sequentially taking each image in the face image sequence as a third face image, solving a translation vector and a rotation matrix through three-dimensional coordinates, and performing three-dimensional reconstruction on the translation vector and the rotation matrix and matching points to obtain three-dimensional point clouds of the matching points of the first two face images of the third face image;
the reconstruction three-dimensional point cloud unit is used for reconstructing a new three-dimensional point cloud through the internal parameters, the matching points of the third face image, the first face image and the second face image, the rotation matrix parameters and the translation vector parameters;
the point cloud merging completion unit is used for merging the three-dimensional point clouds and completing the merging of the three-dimensional point clouds of all the face image sequences with the first face image and the second face image;
and the face recognition unit is used for carrying out face recognition through an ICP algorithm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911357292.3A CN113034345B (en) | 2019-12-25 | 2019-12-25 | Face recognition method and system based on SFM reconstruction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911357292.3A CN113034345B (en) | 2019-12-25 | 2019-12-25 | Face recognition method and system based on SFM reconstruction |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113034345A true CN113034345A (en) | 2021-06-25 |
CN113034345B CN113034345B (en) | 2023-02-28 |
Family
ID=76458344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911357292.3A Active CN113034345B (en) | 2019-12-25 | 2019-12-25 | Face recognition method and system based on SFM reconstruction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113034345B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113505717A (en) * | 2021-07-17 | 2021-10-15 | 桂林理工大学 | Online passing system based on face and facial feature recognition technology |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102663810A (en) * | 2012-03-09 | 2012-09-12 | 北京航空航天大学 | Full-automatic modeling approach of three dimensional faces based on phase deviation scanning |
US20170032565A1 (en) * | 2015-07-13 | 2017-02-02 | Shenzhen University | Three-dimensional facial reconstruction method and system |
WO2017026839A1 (en) * | 2015-08-12 | 2017-02-16 | 트라이큐빅스 인크. | 3d face model obtaining method and device using portable camera |
CN109919876A (en) * | 2019-03-11 | 2019-06-21 | 四川川大智胜软件股份有限公司 | A kind of true face model building of three-dimensional and three-dimensional true face photographic system |
WO2019196308A1 (en) * | 2018-04-09 | 2019-10-17 | 平安科技(深圳)有限公司 | Device and method for generating face recognition model, and computer-readable storage medium |
-
2019
- 2019-12-25 CN CN201911357292.3A patent/CN113034345B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102663810A (en) * | 2012-03-09 | 2012-09-12 | 北京航空航天大学 | Full-automatic modeling approach of three dimensional faces based on phase deviation scanning |
US20170032565A1 (en) * | 2015-07-13 | 2017-02-02 | Shenzhen University | Three-dimensional facial reconstruction method and system |
WO2017026839A1 (en) * | 2015-08-12 | 2017-02-16 | 트라이큐빅스 인크. | 3d face model obtaining method and device using portable camera |
WO2019196308A1 (en) * | 2018-04-09 | 2019-10-17 | 平安科技(深圳)有限公司 | Device and method for generating face recognition model, and computer-readable storage medium |
CN109919876A (en) * | 2019-03-11 | 2019-06-21 | 四川川大智胜软件股份有限公司 | A kind of true face model building of three-dimensional and three-dimensional true face photographic system |
Non-Patent Citations (3)
Title |
---|
王琨等: "基于SFM算法的三维人脸模型重建", 《计算机学报》 * |
蒋华强 等: "基于改进SFM的三维重建算法研究", 《计算机技术与应用》 * |
郭昱等: "基于改进SURF算法的人脸点云配准", 《光学技术》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113505717A (en) * | 2021-07-17 | 2021-10-15 | 桂林理工大学 | Online passing system based on face and facial feature recognition technology |
Also Published As
Publication number | Publication date |
---|---|
CN113034345B (en) | 2023-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111145238B (en) | Three-dimensional reconstruction method and device for monocular endoscopic image and terminal equipment | |
CN110264509B (en) | Method, apparatus, and storage medium for determining pose of image capturing device | |
CN110998659B (en) | Image processing system, image processing method, and program | |
CN109697688A (en) | A kind of method and apparatus for image procossing | |
US20200320727A1 (en) | Method and apparatus for generating a three-dimensional model | |
EP3598385B1 (en) | Face deblurring method and device | |
WO2018112788A1 (en) | Image processing method and device | |
CN111080776B (en) | Human body action three-dimensional data acquisition and reproduction processing method and system | |
CN113689578B (en) | Human body data set generation method and device | |
CN111325828B (en) | Three-dimensional face acquisition method and device based on three-dimensional camera | |
GB2567245A (en) | Methods and apparatuses for depth rectification processing | |
CN109902675B (en) | Object pose acquisition method and scene reconstruction method and device | |
CN116051736A (en) | Three-dimensional reconstruction method, device, edge equipment and storage medium | |
CN116012432A (en) | Stereoscopic panoramic image generation method and device and computer equipment | |
CN113034345B (en) | Face recognition method and system based on SFM reconstruction | |
JP6730695B2 (en) | A method for reconstructing 3D multi-view by feature tracking and model registration. | |
CN117671159A (en) | Three-dimensional model generation method and device, equipment and storage medium | |
JP6086491B2 (en) | Image processing apparatus and database construction apparatus thereof | |
KR102195762B1 (en) | Acquisition method for high quality 3-dimension spatial information using photogrammetry | |
KR101673144B1 (en) | Stereoscopic image registration method based on a partial linear method | |
CN113989377A (en) | External parameter calibration method and device for camera, storage medium and terminal equipment | |
Chiu et al. | 360MVSNet: Deep Multi-View Stereo Network With 360deg Images for Indoor Scene Reconstruction | |
CN116266356A (en) | Panoramic video transition rendering method and device and computer equipment | |
Rotman et al. | A depth restoration occlusionless temporal dataset | |
CN108426566B (en) | Mobile robot positioning method based on multiple cameras |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |