WO2017202191A1 - Facial data measurement method and system - Google Patents

Facial data measurement method and system Download PDF

Info

Publication number
WO2017202191A1
WO2017202191A1 PCT/CN2017/083358 CN2017083358W WO2017202191A1 WO 2017202191 A1 WO2017202191 A1 WO 2017202191A1 CN 2017083358 W CN2017083358 W CN 2017083358W WO 2017202191 A1 WO2017202191 A1 WO 2017202191A1
Authority
WO
WIPO (PCT)
Prior art keywords
facial
feature point
facial feature
image
face
Prior art date
Application number
PCT/CN2017/083358
Other languages
French (fr)
Chinese (zh)
Inventor
谭军
Original Assignee
广州帕克西软件开发有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州帕克西软件开发有限公司 filed Critical 广州帕克西软件开发有限公司
Publication of WO2017202191A1 publication Critical patent/WO2017202191A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/168Feature extraction; Face representation
    • G06V40/169Holistic features and representations, i.e. based on the facial image taken as a whole
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/46Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
    • G06V10/462Salient features, e.g. scale invariant feature transforms [SIFT]

Definitions

  • the present invention relates to the field of information processing technologies, and more particularly to a method and system for measuring facial data.
  • Facial recognition is a biometric recognition technology based on human facial feature information. It is widely used in community security, network video surveillance, entry and exit management testing, employee attendance and home entertainment, etc. Fast and accurate measurement of facial data in an image or video stream is an important aspect of facial recognition technology.
  • the traditional measurement method of human head data is roughly divided into the following two types: the first is to directly measure the head data through the ruler, and the second is to obtain the three-dimensional model of the human head through the depth sensor, and then indirectly measure The data of the human head model.
  • the first measurement scheme can measure less data, and has strong professionalism, requires professional personnel to operate, the operation process is complicated, and the measurement process takes a long time; the second measurement scheme can measure more data, and has high precision and can be fully automatic. Measurement, but the measurement takes a long time, and the hardware cost is high, it is difficult to popularize, and it is widely used.
  • the technical problem to be solved by the present invention is to provide a face data measuring method and system for the above-mentioned defects of the human head data measurement in the prior art.
  • the technical solution adopted by the present invention to solve the above problems is to provide a method for measuring facial data, the method comprising the following steps:
  • the spatial coordinates of the calculated facial feature point group are output.
  • the step of generating a spatial coordinate of a set of facial feature point groups by using the face image through the mapping matrix comprises:
  • mapping the pixel coordinates of the facial feature point group through the mapping matrix to obtain spatial coordinates of the facial feature point group.
  • the method before the step of generating the spatial coordinates of the N sets of facial feature point groups by the face image through the mapping matrix, the method further includes:
  • the mapping matrix is generated according to the acquired calibration image.
  • the step of generating the mapping matrix according to the acquired calibration image includes:
  • the calibration image including a face and a credit card
  • the face in the calibration image is linearly scaled according to the actual distance of the outer corner of the eye to obtain a mapping matrix between the pixel coordinates of the face and the world coordinates.
  • N is greater than or equal to 6.
  • the invention also provides a facial data measuring system, the system comprising:
  • a generating module configured to generate a spatial coordinate of the N sets of facial feature point groups by using a preset mapping matrix, and N is a positive integer;
  • a calculation module configured to calculate an arithmetic mean value of spatial coordinates of the N sets of facial feature point groups
  • an output module configured to output the calculated spatial coordinates of the facial feature point group.
  • the generating module includes:
  • a first acquiring unit configured to acquire the facial image
  • a feature point acquiring unit configured to acquire the facial image by using a SURF algorithm Facial feature point group
  • a positioning unit configured to locate the facial feature point group by using an ASM algorithm to obtain pixel coordinates of the facial feature point group
  • a mapping unit configured to map pixel coordinates of the facial feature point group by using the mapping matrix to obtain spatial coordinates of the facial feature point group.
  • the system further includes:
  • a preset module configured to generate the mapping matrix according to the acquired calibration image.
  • the preset module includes:
  • a second acquiring unit configured to acquire the calibration image, where the calibration image includes a face and a credit card;
  • An identification unit configured to identify an actual distance of an outer corner of the eye according to an outer corner pixel distance in the face and a credit card pixel width of the credit card;
  • a calibration unit configured to linearly calibrate the face in the calibration image according to an actual distance of an outer corner of the eye to obtain a mapping matrix between pixel coordinates and world coordinates of the face.
  • N is greater than or equal to 6.
  • the present invention automatically generates facial data by generating a spatial coordinate of a plurality of sets of facial feature point groups through a preset mapping matrix, and accurate measurement of the facial data. High sex.
  • the facial data can be measured after obtaining the facial image through the camera, the cost is low, and it is easy to popularize, and can be widely applied to home entertainment and the like.
  • FIG. 1 is a flow chart of a first embodiment of a method for measuring facial data according to the present invention
  • FIG. 2 is a flow chart of generating spatial coordinates of a set of facial feature point groups by a preset mapping matrix according to a preferred embodiment of the present invention
  • FIG. 3 is a flow chart of a second embodiment of a method for measuring facial data according to the present invention.
  • FIG. 4 is a flowchart of generating a preset mapping matrix according to the acquired calibration image according to a preferred embodiment of the present invention
  • FIG. 5 is a schematic structural view of Embodiment 1 of the face data measuring system of the present invention.
  • FIG. 6 is a schematic structural diagram of a generation module in FIG. 5;
  • Fig. 7 is a schematic structural view of a second embodiment of the face data measuring system of the present invention.
  • the invention realizes automatic measurement of facial data by generating spatial coordinates of a plurality of sets of facial feature point groups by using a preset image through a preset mapping matrix, and the accuracy of the measured facial data is high.
  • the facial data can be measured after the facial image is acquired by the camera, which is low in cost and easy to popularize.
  • the measurement method includes the following steps:
  • step S102 the facial image is generated by using a preset mapping matrix to generate spatial coordinates of the N sets of facial feature point groups;
  • the step of generating spatial coordinates of a set of facial feature point groups by using a preset mapping matrix includes: acquiring a facial image in step S1021; the facial image may be a photo file directly captured by the camera Also, it is an image file that can be captured in a video file.
  • the facial image is obtained by the SURF (Speed-up robust features) algorithm, and the facial feature point group includes 86 feature points.
  • the facial feature point group is positioned by the ASM (Active Shape Model) algorithm to the pixel coordinates of the facial feature point group.
  • the pixel coordinates of the facial feature point group are mapped by the mapping matrix to obtain the spatial coordinates of the facial feature point group.
  • step S104 an arithmetic mean value of the spatial coordinates of the N sets of facial feature point groups is calculated; further, in the embodiment, N is greater than or equal to 6, by generating the spatial coordinates of the set of facial feature point groups as described above. In step, spatial coordinates of 6 sets of facial feature point groups are generated, so that the measured facial data is more accurate.
  • step S106 the calculated facial feature point space coordinate group is output.
  • the pass Through the above steps the face data is automatically measured, and the processing speed of the measurement is high, and the measurement of the face data can be completed in 1 second.
  • the method further includes: in step S100, generating a preset mapping matrix according to the acquired calibration image, specifically, as shown in FIG. 4, comprising: in step S1001, acquiring a calibration image, wherein the calibration image includes a face and a credit card; and in step S1002, identifying an actual distance of the outer corner of the eye based on the outer corner pixel distance in the face and the credit card pixel width of the credit card.
  • the actual standard credit card has an actual width of 54mm.
  • the face in the calibration image is linearly scaled according to the actual distance of the outer corner of the eye to obtain a mapping matrix between the pixel coordinates of the face and the world coordinates.
  • FIG. 5 is a schematic structural view of Embodiment 1 of the face data measuring system of the present invention.
  • the measurement system 100 includes a generation module 102, a calculation module 104, and an output module 106.
  • the generating module 102 is configured to generate a spatial coordinate of the N sets of facial feature point groups by using a preset mapping matrix. Where N is a positive integer.
  • the generating module 102 includes a first acquiring unit 1021 , a feature point acquiring unit 1022 , a positioning unit 1023 , and a mapping unit 1024 , where the first acquiring unit 1021 is configured to acquire a facial image;
  • the image file that is taken directly by the camera is also the image file that can be captured in the video file.
  • the feature point obtaining unit 1022 is configured to acquire the facial feature point group of the facial image by using the SURF algorithm; the facial feature point group includes 86 feature points.
  • the positioning unit 1023 is configured to locate the facial feature point group by the ASM algorithm to the pixel coordinates of the facial feature point group.
  • the mapping unit is configured to map the pixel coordinates of the facial feature point group through the mapping matrix to obtain the spatial coordinates of the facial feature point group.
  • the calculation module 104 is configured to calculate an arithmetic mean value of the spatial coordinates of the N sets of facial feature point groups; further, in the embodiment, N is greater than or equal to 6, and the spatial coordinates of the 6 sets of facial feature point groups are generated by the generating module 102. In this way, the measured facial data is more accurate.
  • the output module 106 is configured to output the calculated facial feature point space coordinate group.
  • the face data is automatically measured by the above steps, and the processing speed of the measurement is high, and the measurement of the face data can be completed in 1 second.
  • the difference from the facial data measurement system of the embodiment is that the measurement system 100 further includes a preset module 101, and the preset module 101 is configured to generate a preset mapping according to the acquired calibration image.
  • the matrix specifically, the preset module 101 includes a second obtaining unit 1011, an identifying unit 1012, and a calibrating unit 1013, wherein the second acquiring unit 1011 is configured to acquire a calibration image, wherein the calibration image includes a face and a credit card; and the identifying unit 1012 For identifying the actual distance of the outer corner of the eye based on the outer corner pixel distance in the face and the credit card pixel width of the credit card.
  • the actual standard credit card has an actual width of 54mm.
  • the calibration unit 1013 is configured to linearly calibrate the face in the calibration image according to the actual distance of the outer corner of the eye to obtain a mapping matrix between the pixel coordinates of the face and the world coordinates.

Abstract

Provided in the present invention is a facial data measurement method. The method comprises the following steps: generating spatial coordinates of N facial feature point groups for a facial image using a preset mapping matrix, N being a positive integer; calculating an arithmetic mean of the spatial coordinates of the N facial feature point groups; and outputting the calculated spatial coordinates of the facial feature point groups. Also provided is a system for use with the method. By generating spatial coordinates of multiple facial feature point groups for a facial image using a preset mapping matrix, the present invention achieves automatic measurement of facial data, with a high accuracy in measured facial data. In addition, facial data can be measured only using a facial image obtained by a camera, so that the costs are low, and the method can be readily adopted.

Description

一种面部数据测量方法及系统Facial data measuring method and system 技术领域Technical field
本发明涉及信息处理技术领域,更具体地说,涉及一种面部数据测量方法及系统。The present invention relates to the field of information processing technologies, and more particularly to a method and system for measuring facial data.
背景技术Background technique
面部识别是基于人的脸部特征信息进行身份识别的一种生物特征识别技术,广泛应用于社区安防、网络视频监控、出入境管理检测、员工考勤以及家庭娱乐等方面,如何在含有人脸的图像或视频流中快速准确地测量面部数据是面部识别技术中的重要方面。Facial recognition is a biometric recognition technology based on human facial feature information. It is widely used in community security, network video surveillance, entry and exit management testing, employee attendance and home entertainment, etc. Fast and accurate measurement of facial data in an image or video stream is an important aspect of facial recognition technology.
目前,传统的人头数据(即面部数据)测量方案大致上分为以下两种:第一种是通过尺规直接测量头部数据,第二种是通过深度传感器获取人头的三维模型,进而间接测量人头模型的数据。其中,第一种测量方案可度量数据少,并且专业性强,需要专业人员来操作,操作过程复杂,测量过程耗时长;第二种测量方案可度量数据多,且精度高,可实现全自动测量,但是测量耗时长,并且硬件成本高,难以普及,广泛应用。At present, the traditional measurement method of human head data (ie, facial data) is roughly divided into the following two types: the first is to directly measure the head data through the ruler, and the second is to obtain the three-dimensional model of the human head through the depth sensor, and then indirectly measure The data of the human head model. Among them, the first measurement scheme can measure less data, and has strong professionalism, requires professional personnel to operate, the operation process is complicated, and the measurement process takes a long time; the second measurement scheme can measure more data, and has high precision and can be fully automatic. Measurement, but the measurement takes a long time, and the hardware cost is high, it is difficult to popularize, and it is widely used.
发明内容Summary of the invention
本发明要解决的技术问题在于,针对现有技术中的人头数据测量的上述缺陷,提供一种面部数据测量方法及系统。The technical problem to be solved by the present invention is to provide a face data measuring method and system for the above-mentioned defects of the human head data measurement in the prior art.
本发明解决上述问题所采用的技术方案是提供了一种面部数据测量方法,所述方法包括以下步骤:The technical solution adopted by the present invention to solve the above problems is to provide a method for measuring facial data, the method comprising the following steps:
将面部图像通过预设的映射矩阵生成N组面部特征点组的空间坐标,且N为正整数;Generating, by using a preset mapping matrix, a spatial coordinate of the N sets of facial feature point groups, and N is a positive integer;
计算所述N组面部特征点组的空间坐标的算术平均值; Calculating an arithmetic mean of spatial coordinates of the N sets of facial feature point groups;
输出计算后的所述面部特征点组的空间坐标。The spatial coordinates of the calculated facial feature point group are output.
在上述面部数据测量方法中,所述将面部图像通过映射矩阵生成一组面部特征点组的空间坐标的步骤包括:In the above facial data measuring method, the step of generating a spatial coordinate of a set of facial feature point groups by using the face image through the mapping matrix comprises:
获取所述面部图像;Obtaining the facial image;
将所述面部图像通过SURF算法获取所述面部图像的面部特征点组;Acquiring the facial image by the SURF algorithm to obtain a facial feature point group of the facial image;
将所述面部特征点组通过ASM算法进行定位以得到所述面部特征点组的像素坐标;Positioning the facial feature point group by an ASM algorithm to obtain pixel coordinates of the facial feature point group;
将所述面部特征点组的像素坐标通过所述映射矩阵进行映射得到所述面部特征点组的空间坐标。Mapping the pixel coordinates of the facial feature point group through the mapping matrix to obtain spatial coordinates of the facial feature point group.
在上述面部数据测量方法中,在所述将面部图像通过映射矩阵生成N组面部特征点组的空间坐标的步骤之前,所述方法还包括:In the above-described face data measuring method, before the step of generating the spatial coordinates of the N sets of facial feature point groups by the face image through the mapping matrix, the method further includes:
根据获取到的标定图像生成所述映射矩阵。The mapping matrix is generated according to the acquired calibration image.
在上述面部数据测量方法中,所述根据获取到的标定图像生成所述映射矩阵的步骤包括:In the above facial data measurement method, the step of generating the mapping matrix according to the acquired calibration image includes:
获取所述标定图像,所述标定图像包括面部和信用卡;Obtaining the calibration image, the calibration image including a face and a credit card;
根据所述面部中的外眼角像素距离和所述信用卡的信用卡像素宽度识别外眼角的实际距离;Identifying an actual distance of the outer corner of the eye according to an outer corner pixel distance in the face and a credit card pixel width of the credit card;
根据外眼角的实际距离,对所述标定图像中的所述面部进行线性标定以获取所述面部的像素坐标与世界坐标之间的映射矩阵。The face in the calibration image is linearly scaled according to the actual distance of the outer corner of the eye to obtain a mapping matrix between the pixel coordinates of the face and the world coordinates.
在上述面部数据测量方法中,N大于或等于6。In the above face data measuring method, N is greater than or equal to 6.
本发明还提供了一种面部数据测量系统,所述系统包括:The invention also provides a facial data measuring system, the system comprising:
生成模块,用于将面部图像通过预设的映射矩阵生成N组面部特征点组的空间坐标,且N为正整数;a generating module, configured to generate a spatial coordinate of the N sets of facial feature point groups by using a preset mapping matrix, and N is a positive integer;
计算模块,用于计算所述N组面部特征点组的空间坐标的算术平均值;a calculation module, configured to calculate an arithmetic mean value of spatial coordinates of the N sets of facial feature point groups;
输出模块,用于输出计算后的所述面部特征点组的空间坐标。And an output module, configured to output the calculated spatial coordinates of the facial feature point group.
在上述面部数据测量系统中,所述生成模块包括:In the above facial data measurement system, the generating module includes:
第一获取单元,用于获取所述面部图像;a first acquiring unit, configured to acquire the facial image;
特征点获取单元,用于将所述面部图像通过SURF算法获取所述面部图像 的面部特征点组;a feature point acquiring unit, configured to acquire the facial image by using a SURF algorithm Facial feature point group;
定位单元,用于将所述面部特征点组通过ASM算法进行定位以得到所述面部特征点组的像素坐标;a positioning unit, configured to locate the facial feature point group by using an ASM algorithm to obtain pixel coordinates of the facial feature point group;
映射单元,用于将所述面部特征点组的像素坐标通过所述映射矩阵进行映射得到所述面部特征点组的空间坐标。a mapping unit, configured to map pixel coordinates of the facial feature point group by using the mapping matrix to obtain spatial coordinates of the facial feature point group.
在上述面部数据测量系统中,所述系统还包括:In the above facial data measurement system, the system further includes:
预设模块,用于根据获取到的标定图像生成所述映射矩阵。And a preset module, configured to generate the mapping matrix according to the acquired calibration image.
在上述面部数据测量系统中,所述预设模块包括:In the above facial data measurement system, the preset module includes:
第二获取单元,用于获取所述标定图像,所述标定图像包括面部和信用卡;a second acquiring unit, configured to acquire the calibration image, where the calibration image includes a face and a credit card;
识别单元,用于根据所述面部中的外眼角像素距离和所述信用卡的信用卡像素宽度识别外眼角的实际距离;An identification unit, configured to identify an actual distance of an outer corner of the eye according to an outer corner pixel distance in the face and a credit card pixel width of the credit card;
标定单元,用于根据外眼角的实际距离,对所述标定图像中的所述面部进行线性标定以获取所述面部的像素坐标与世界坐标之间的映射矩阵。And a calibration unit, configured to linearly calibrate the face in the calibration image according to an actual distance of an outer corner of the eye to obtain a mapping matrix between pixel coordinates and world coordinates of the face.
在上述面部数据测量系统中,N大于或等于6。In the above facial data measuring system, N is greater than or equal to 6.
本发明的面部数据测量方法及系统的有益效果有:本发明通过将面部图像通过预设的映射矩阵生成多组面部特征点组的空间坐标,实现自动测量面部数据,并且测量的面部数据的准确性高。同时,通过摄像头获取面部图像后即可测量面部数据,成本低,且容易普及,可广泛应用于家庭娱乐等方面。The beneficial effects of the facial data measuring method and system of the present invention are as follows: the present invention automatically generates facial data by generating a spatial coordinate of a plurality of sets of facial feature point groups through a preset mapping matrix, and accurate measurement of the facial data. High sex. At the same time, the facial data can be measured after obtaining the facial image through the camera, the cost is low, and it is easy to popularize, and can be widely applied to home entertainment and the like.
附图说明DRAWINGS
下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with the accompanying drawings and embodiments, in which:
图1是本发明的面部数据测量方法实施例一的流程图;1 is a flow chart of a first embodiment of a method for measuring facial data according to the present invention;
图2是本发明的较优实施例的通过预设的映射矩阵生成一组面部特征点组的空间坐标的流程图;2 is a flow chart of generating spatial coordinates of a set of facial feature point groups by a preset mapping matrix according to a preferred embodiment of the present invention;
图3是本发明的面部数据测量方法实施例二的流程图;3 is a flow chart of a second embodiment of a method for measuring facial data according to the present invention;
图4是本发明的较优实施例的根据获取到的标定图像生成预设的映射矩阵的流程图;4 is a flowchart of generating a preset mapping matrix according to the acquired calibration image according to a preferred embodiment of the present invention;
图5是本发明的面部数据测量系统实施例一的结构示意图; Figure 5 is a schematic structural view of Embodiment 1 of the face data measuring system of the present invention;
图6是图5中的生成模块的结构示意图;6 is a schematic structural diagram of a generation module in FIG. 5;
图7是本发明的面部数据测量系统实施例二的结构示意图。Fig. 7 is a schematic structural view of a second embodiment of the face data measuring system of the present invention.
具体实施方式detailed description
本发明通过将面部图像通过预设的映射矩阵生成多组面部特征点组的空间坐标,实现自动测量面部数据,并且测量的面部数据的准确性高。同时,通过摄像头获取面部图像后即可测量面部数据,成本低,且容易普及。The invention realizes automatic measurement of facial data by generating spatial coordinates of a plurality of sets of facial feature point groups by using a preset image through a preset mapping matrix, and the accuracy of the measured facial data is high. At the same time, the facial data can be measured after the facial image is acquired by the camera, which is low in cost and easy to popularize.
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
如图1所示,是本发明的面部数据测量方法实施例一的流程图。在本实施例中,参考图1,该测量方法包括以下步骤:As shown in FIG. 1, it is a flowchart of Embodiment 1 of the face data measuring method of the present invention. In this embodiment, referring to FIG. 1, the measurement method includes the following steps:
在步骤S102中,将面部图像通过预设的映射矩阵生成N组面部特征点组的空间坐标;In step S102, the facial image is generated by using a preset mapping matrix to generate spatial coordinates of the N sets of facial feature point groups;
在此步骤中,N为正整数。具体地,如图2所示,通过预设的映射矩阵生成一组面部特征点组的空间坐标的步骤包括:在步骤S1021中,获取面部图像;该面部图像可为通过摄像头直接拍摄的图片文件,也为可在视频文件中截取的图片文件。在步骤S1022中,将该面部图像通过SURF(Speed-up robust features,加速健壮特征)算法获取该面部图像的面部特征点组;面部特征点组包括86个特征点。在步骤S1023中,将面部特征点组通过ASM(Active Shape Model,主动形状模型)算法进行定位以面部特征点组的像素坐标。在步骤S1024中,将面部特征点组的像素坐标通过映射矩阵进行映射得到面部特征点组的空间坐标。In this step, N is a positive integer. Specifically, as shown in FIG. 2, the step of generating spatial coordinates of a set of facial feature point groups by using a preset mapping matrix includes: acquiring a facial image in step S1021; the facial image may be a photo file directly captured by the camera Also, it is an image file that can be captured in a video file. In step S1022, the facial image is obtained by the SURF (Speed-up robust features) algorithm, and the facial feature point group includes 86 feature points. In step S1023, the facial feature point group is positioned by the ASM (Active Shape Model) algorithm to the pixel coordinates of the facial feature point group. In step S1024, the pixel coordinates of the facial feature point group are mapped by the mapping matrix to obtain the spatial coordinates of the facial feature point group.
在步骤S104中,计算该N组面部特征点组的空间坐标的算术平均值;进一步地,在本实施例中,N大于或等于6,通过上述的生成一组面部特征点组的空间坐标的步骤,生成6组面部特征点组的空间坐标,这样,测量的面部数据更准确。In step S104, an arithmetic mean value of the spatial coordinates of the N sets of facial feature point groups is calculated; further, in the embodiment, N is greater than or equal to 6, by generating the spatial coordinates of the set of facial feature point groups as described above. In step, spatial coordinates of 6 sets of facial feature point groups are generated, so that the measured facial data is more accurate.
在步骤S106中,输出计算后的面部特征点空间坐标组。在本实施例中,通 过上述步骤,自动测量面部数据,并且测量的处理速度高,在1秒中能完成面部数据的测量。In step S106, the calculated facial feature point space coordinate group is output. In this embodiment, the pass Through the above steps, the face data is automatically measured, and the processing speed of the measurement is high, and the measurement of the face data can be completed in 1 second.
如图3所示,是本发明的面部数据测量方法实施例二的流程图。在本实施例中,与实施例一种的面部数据测量方法的区别在于,在步骤S102之前还包括:在步骤S100中,根据获取到的标定图像生成预设的映射矩阵,具体地,如图4所示,包括:在步骤S1001中,获取标定图像,其中,标定图像包括面部和信用卡;在步骤S1002中,根据面部中的外眼角像素距离和信用卡的信用卡像素宽度识别外眼角的实际距离。其中,外眼角像素距离和信用卡的信用卡像素宽度可通过图像检测算法来获取,外眼角像素距离的计算公式为:外眼角的实际距离=(外眼角像素距离/信用卡像素宽度)*信用卡的实际宽度,一般标准的信用卡的实际宽度为54mm。在步骤S1003中,根据外眼角的实际距离,对标定图像中的面部进行线性标定以获取面部的像素坐标与世界坐标之间的映射矩阵。As shown in FIG. 3, it is a flowchart of Embodiment 2 of the face data measuring method of the present invention. In this embodiment, the difference from the face data measurement method of the embodiment is that, before the step S102, the method further includes: in step S100, generating a preset mapping matrix according to the acquired calibration image, specifically, as shown in FIG. 4, comprising: in step S1001, acquiring a calibration image, wherein the calibration image includes a face and a credit card; and in step S1002, identifying an actual distance of the outer corner of the eye based on the outer corner pixel distance in the face and the credit card pixel width of the credit card. Wherein, the distance between the outer corner pixel and the credit card pixel width of the credit card can be obtained by an image detection algorithm, and the calculation formula of the outer corner pixel distance is: the actual distance of the outer corner of the eye = (outer corner pixel distance / credit card pixel width) * the actual width of the credit card The actual standard credit card has an actual width of 54mm. In step S1003, the face in the calibration image is linearly scaled according to the actual distance of the outer corner of the eye to obtain a mapping matrix between the pixel coordinates of the face and the world coordinates.
如图5所示,是本发明的面部数据测量系统实施例一的结构示意图。在本实施例中,参考图5,该测量系统100包括生成模块102、计算模块104和输出模块106。FIG. 5 is a schematic structural view of Embodiment 1 of the face data measuring system of the present invention. In the present embodiment, referring to FIG. 5, the measurement system 100 includes a generation module 102, a calculation module 104, and an output module 106.
其中,生成模块102用于将面部图像通过预设的映射矩阵生成N组面部特征点组的空间坐标。其中,N为正整数。具体地,如图6所示,生成模块102包括第一获取单元1021、特征点获取单元1022、定位单元1023和映射单元1024,其中,第一获取单元1021用于获取面部图像;该面部图像可为通过摄像头直接拍摄的图片文件,也为可在视频文件中截取的图片文件。特征点获取单元1022用于将该面部图像通过SURF算法获取该面部图像的面部特征点组;面部特征点组包括86个特征点。定位单元1023用于将面部特征点组通过ASM算法进行定位以面部特征点组的像素坐标。映射单元用于将面部特征点组的像素坐标通过映射矩阵进行映射得到面部特征点组的空间坐标。The generating module 102 is configured to generate a spatial coordinate of the N sets of facial feature point groups by using a preset mapping matrix. Where N is a positive integer. Specifically, as shown in FIG. 6 , the generating module 102 includes a first acquiring unit 1021 , a feature point acquiring unit 1022 , a positioning unit 1023 , and a mapping unit 1024 , where the first acquiring unit 1021 is configured to acquire a facial image; The image file that is taken directly by the camera is also the image file that can be captured in the video file. The feature point obtaining unit 1022 is configured to acquire the facial feature point group of the facial image by using the SURF algorithm; the facial feature point group includes 86 feature points. The positioning unit 1023 is configured to locate the facial feature point group by the ASM algorithm to the pixel coordinates of the facial feature point group. The mapping unit is configured to map the pixel coordinates of the facial feature point group through the mapping matrix to obtain the spatial coordinates of the facial feature point group.
计算模块104用于计算该N组面部特征点组的空间坐标的算术平均值;进一步地,在本实施例中,N大于或等于6,通过生成模块102生成6组面部特征点组的空间坐标,这样,测量的面部数据更准确。 The calculation module 104 is configured to calculate an arithmetic mean value of the spatial coordinates of the N sets of facial feature point groups; further, in the embodiment, N is greater than or equal to 6, and the spatial coordinates of the 6 sets of facial feature point groups are generated by the generating module 102. In this way, the measured facial data is more accurate.
输出模块106用于输出计算后的面部特征点空间坐标组。在本实施例中,通过上述步骤,自动测量面部数据,并且测量的处理速度高,在1秒中能完成面部数据的测量。The output module 106 is configured to output the calculated facial feature point space coordinate group. In the present embodiment, the face data is automatically measured by the above steps, and the processing speed of the measurement is high, and the measurement of the face data can be completed in 1 second.
如图7所示,是本发明的面部数据测量系统实施例二的流程图。在本实施例中,与实施例一种的面部数据测量系统的区别在于,该测量系统100还包括预设模块101,该预设模块101用于在根据获取到的标定图像生成预设的映射矩阵,具体地,该预设模块101包括第二获取单元1011、识别单元1012和标定单元1013,其中,第二获取单元1011用于获取标定图像,其中,标定图像包括面部和信用卡;识别单元1012用于根据面部中的外眼角像素距离和信用卡的信用卡像素宽度识别外眼角的实际距离。其中,外眼角像素距离和信用卡的信用卡像素宽度可通过图像检测算法来获取,外眼角像素距离的计算公式为:外眼角的实际距离=(外眼角像素距离/信用卡像素宽度)*信用卡的实际宽度,一般标准的信用卡的实际宽度为54mm。标定单元1013用于根据外眼角的实际距离,对标定图像中的面部进行线性标定以获取面部的像素坐标与世界坐标之间的映射矩阵。As shown in FIG. 7, it is a flowchart of Embodiment 2 of the face data measuring system of the present invention. In this embodiment, the difference from the facial data measurement system of the embodiment is that the measurement system 100 further includes a preset module 101, and the preset module 101 is configured to generate a preset mapping according to the acquired calibration image. The matrix, specifically, the preset module 101 includes a second obtaining unit 1011, an identifying unit 1012, and a calibrating unit 1013, wherein the second acquiring unit 1011 is configured to acquire a calibration image, wherein the calibration image includes a face and a credit card; and the identifying unit 1012 For identifying the actual distance of the outer corner of the eye based on the outer corner pixel distance in the face and the credit card pixel width of the credit card. Wherein, the distance between the outer corner pixel and the credit card pixel width of the credit card can be obtained by an image detection algorithm, and the calculation formula of the outer corner pixel distance is: the actual distance of the outer corner of the eye = (outer corner pixel distance / credit card pixel width) * the actual width of the credit card The actual standard credit card has an actual width of 54mm. The calibration unit 1013 is configured to linearly calibrate the face in the calibration image according to the actual distance of the outer corner of the eye to obtain a mapping matrix between the pixel coordinates of the face and the world coordinates.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。 The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (10)

  1. 一种面部数据测量方法,其特征在于,所述方法包括以下步骤:A method for measuring facial data, characterized in that the method comprises the following steps:
    将面部图像通过预设的映射矩阵生成N组面部特征点组的空间坐标,且N为正整数;Generating, by using a preset mapping matrix, a spatial coordinate of the N sets of facial feature point groups, and N is a positive integer;
    计算所述N组面部特征点组的空间坐标的算术平均值;Calculating an arithmetic mean of spatial coordinates of the N sets of facial feature point groups;
    输出计算后的所述面部特征点组的空间坐标。The spatial coordinates of the calculated facial feature point group are output.
  2. 根据权利要求1中所述的面部数据测量方法,其特征在于,所述将面部图像通过映射矩阵生成一组面部特征点组的空间坐标的步骤包括:The method of measuring facial data according to claim 1, wherein the step of generating a spatial coordinate of the set of facial feature point groups by using the mapping image through the mapping matrix comprises:
    获取所述面部图像;Obtaining the facial image;
    将所述面部图像通过SURF算法获取所述面部图像的面部特征点组;Acquiring the facial image by the SURF algorithm to obtain a facial feature point group of the facial image;
    将所述面部特征点组通过ASM算法进行定位以得到所述面部特征点组的像素坐标;Positioning the facial feature point group by an ASM algorithm to obtain pixel coordinates of the facial feature point group;
    将所述面部特征点组的像素坐标通过所述映射矩阵进行映射得到所述面部特征点组的空间坐标。Mapping the pixel coordinates of the facial feature point group through the mapping matrix to obtain spatial coordinates of the facial feature point group.
  3. 根据权利要求1中所述的面部数据测量方法,其特征在于,在所述将面部图像通过映射矩阵生成N组面部特征点组的空间坐标的步骤之前,所述方法还包括:The method of measuring facial data according to claim 1, wherein before the step of generating the spatial coordinates of the N sets of facial feature point groups by using the mapping image, the method further comprises:
    根据获取到的标定图像生成所述映射矩阵。The mapping matrix is generated according to the acquired calibration image.
  4. 根据权利要求3中所述的面部数据测量方法,其特征在于,所述根据获取到的标定图像生成所述映射矩阵的步骤包括:The method of measuring a face data according to claim 3, wherein the step of generating the mapping matrix according to the acquired calibration image comprises:
    获取所述标定图像,所述标定图像包括面部和信用卡;Obtaining the calibration image, the calibration image including a face and a credit card;
    根据所述面部中的外眼角像素距离和所述信用卡的信用卡像素宽度识别外眼角的实际距离;Identifying an actual distance of the outer corner of the eye according to an outer corner pixel distance in the face and a credit card pixel width of the credit card;
    根据外眼角的实际距离,对所述标定图像中的所述面部进行线性标定以获取所述面部的像素坐标与世界坐标之间的映射矩阵。The face in the calibration image is linearly scaled according to the actual distance of the outer corner of the eye to obtain a mapping matrix between the pixel coordinates of the face and the world coordinates.
  5. 根据权利要求1-4中任一项所述的面部数据测量方法,其特征在于,N大于或等于6。 The face data measuring method according to any one of claims 1 to 4, wherein N is greater than or equal to 6.
  6. 一种面部数据测量系统,其特征在于,所述系统包括:A facial data measuring system, characterized in that the system comprises:
    生成模块,用于将面部图像通过预设的映射矩阵生成N组面部特征点组的空间坐标,且N为正整数;a generating module, configured to generate a spatial coordinate of the N sets of facial feature point groups by using a preset mapping matrix, and N is a positive integer;
    计算模块,用于计算所述N组面部特征点组的空间坐标的算术平均值;a calculation module, configured to calculate an arithmetic mean value of spatial coordinates of the N sets of facial feature point groups;
    输出模块,用于输出计算后的所述面部特征点组的空间坐标。And an output module, configured to output the calculated spatial coordinates of the facial feature point group.
  7. 根据权利要求6中所述的面部数据测量系统,其特征在于,所述生成模块包括:The facial data measuring system according to claim 6, wherein the generating module comprises:
    第一获取单元,用于获取所述面部图像;a first acquiring unit, configured to acquire the facial image;
    特征点获取单元,用于将所述面部图像通过SURF算法获取所述面部图像的面部特征点组;a feature point acquiring unit, configured to acquire the facial feature image of the facial image by using the SURF algorithm;
    定位单元,用于将所述面部特征点组通过ASM算法进行定位以得到所述面部特征点组的像素坐标;a positioning unit, configured to locate the facial feature point group by using an ASM algorithm to obtain pixel coordinates of the facial feature point group;
    映射单元,用于将所述面部特征点组的像素坐标通过所述映射矩阵进行映射得到所述面部特征点组的空间坐标。a mapping unit, configured to map pixel coordinates of the facial feature point group by using the mapping matrix to obtain spatial coordinates of the facial feature point group.
  8. 根据权利要求6中所述的面部数据测量系统,其特征在于,所述系统还包括:The facial data measurement system of claim 6 wherein the system further comprises:
    预设模块,用于根据获取到的标定图像生成所述映射矩阵。And a preset module, configured to generate the mapping matrix according to the acquired calibration image.
  9. 根据权利要求8中所述的面部数据测量系统,其特征在于,所述预设模块包括:The facial data measuring system according to claim 8, wherein the preset module comprises:
    第二获取单元,用于获取所述标定图像,所述标定图像包括面部和信用卡;a second acquiring unit, configured to acquire the calibration image, where the calibration image includes a face and a credit card;
    识别单元,用于根据所述面部中的外眼角像素距离和所述信用卡的信用卡像素宽度识别外眼角的实际距离;An identification unit, configured to identify an actual distance of an outer corner of the eye according to an outer corner pixel distance in the face and a credit card pixel width of the credit card;
    标定单元,用于根据外眼角的实际距离,对所述标定图像中的所述面部进行线性标定以获取所述面部的像素坐标与世界坐标之间的映射矩阵。And a calibration unit, configured to linearly calibrate the face in the calibration image according to an actual distance of an outer corner of the eye to obtain a mapping matrix between pixel coordinates and world coordinates of the face.
  10. 根据权利要求6-9中任一项所述的面部数据测量系统,其特征在于,N大于或等于6。 A facial data measuring system according to any one of claims 6-9, wherein N is greater than or equal to 6.
PCT/CN2017/083358 2016-05-27 2017-05-05 Facial data measurement method and system WO2017202191A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610365422.8 2016-05-27
CN201610365422.8A CN106022281A (en) 2016-05-27 2016-05-27 Face data measurement method and system

Publications (1)

Publication Number Publication Date
WO2017202191A1 true WO2017202191A1 (en) 2017-11-30

Family

ID=57091410

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/083358 WO2017202191A1 (en) 2016-05-27 2017-05-05 Facial data measurement method and system

Country Status (2)

Country Link
CN (1) CN106022281A (en)
WO (1) WO2017202191A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106022281A (en) * 2016-05-27 2016-10-12 广州帕克西软件开发有限公司 Face data measurement method and system
CN106803065A (en) * 2016-12-27 2017-06-06 广州帕克西软件开发有限公司 A kind of interpupillary distance measuring method and system based on depth information

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499132A (en) * 2009-03-12 2009-08-05 广东药学院 Three-dimensional transformation search method for extracting characteristic points in human face image
CN101593365A (en) * 2009-06-19 2009-12-02 电子科技大学 A kind of method of adjustment of universal three-dimensional human face model
CN106022281A (en) * 2016-05-27 2016-10-12 广州帕克西软件开发有限公司 Face data measurement method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100346357C (en) * 2006-01-19 2007-10-31 上海交通大学 Method for directly performing three-dimensional model transformation with three-dimensional bench marks
CN101661617B (en) * 2008-08-30 2011-11-02 华为终端有限公司 Method and device for camera calibration
KR101569268B1 (en) * 2014-01-02 2015-11-13 아이리텍 잉크 Acquisition System and Method of Iris image for iris recognition by using facial component distance

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499132A (en) * 2009-03-12 2009-08-05 广东药学院 Three-dimensional transformation search method for extracting characteristic points in human face image
CN101593365A (en) * 2009-06-19 2009-12-02 电子科技大学 A kind of method of adjustment of universal three-dimensional human face model
CN106022281A (en) * 2016-05-27 2016-10-12 广州帕克西软件开发有限公司 Face data measurement method and system

Also Published As

Publication number Publication date
CN106022281A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN108549873B (en) Three-dimensional face recognition method and three-dimensional face recognition system
EP3457078B1 (en) Monocular three-dimensional scanning system based three-dimensional reconstruction method and apparatus
US9959455B2 (en) System and method for face recognition using three dimensions
TWI566204B (en) Three dimensional object recognition
JP4883517B2 (en) Three-dimensional measuring apparatus, three-dimensional measuring method, and three-dimensional measuring program
WO2021103430A1 (en) Living body detection method and apparatus, and storage medium
US8988317B1 (en) Depth determination for light field images
CN111914635B (en) Human body temperature measurement method, device, system and electronic equipment
US10424078B2 (en) Height measuring system and method
CN111784778B (en) Binocular camera external parameter calibration method and system based on linear solving and nonlinear optimization
CN111339951A (en) Body temperature measuring method, device and system
US20180005021A1 (en) System and method for face recognition with two-dimensional sensing modality
CN105740778B (en) Improved three-dimensional human face in-vivo detection method and device
CN104173054A (en) Measuring method and measuring device for height of human body based on binocular vision technique
CN104246793A (en) Three-dimensional face recognition for mobile devices
JP6071002B2 (en) Reliability acquisition device, reliability acquisition method, and reliability acquisition program
TW201250608A (en) Image comparison system and method
CN111724496A (en) Attendance checking method, attendance checking device and computer readable storage medium
Silvester et al. A critical assessment of the potential for structure‐from‐motion photogrammetry to produce high fidelity 3D dental models
CN112001880B (en) Method and device for detecting characteristic parameters of planar member
WO2017202191A1 (en) Facial data measurement method and system
CN113256611A (en) RGB-D registration precision testing method and device
CN109559347A (en) Object identifying method, device, system and storage medium
Betta et al. Face-based recognition techniques: proposals for the metrological characterization of global and feature-based approaches
Yang et al. Auto-recognition Method for Pointer-type Meter Based on Binocular Vision.

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17802037

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS (EPO FORM 1205A DATED 08.04.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17802037

Country of ref document: EP

Kind code of ref document: A1