WO2016074248A1 - Verification application method and apparatus based on face recognition - Google Patents

Verification application method and apparatus based on face recognition Download PDF

Info

Publication number
WO2016074248A1
WO2016074248A1 PCT/CN2014/091213 CN2014091213W WO2016074248A1 WO 2016074248 A1 WO2016074248 A1 WO 2016074248A1 CN 2014091213 W CN2014091213 W CN 2014091213W WO 2016074248 A1 WO2016074248 A1 WO 2016074248A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
distance
spot
template
eyes
Prior art date
Application number
PCT/CN2014/091213
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 深圳市三木通信技术有限公司
Priority to PCT/CN2014/091213 priority Critical patent/WO2016074248A1/en
Publication of WO2016074248A1 publication Critical patent/WO2016074248A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints

Abstract

The present invention is applicable to the field of intelligent terminals. Provided is a verification application method based on face recognition. The method comprises the following steps: acquiring a picture of an operator; extracting a face image of the operator from the picture; and comparing the image of the person with an image template, and determining whether to switch on an intelligent device or not according to a comparison result. The technical solution provided by the present invention has advantages of high person recognition accuracy and high security.

Description

基于人脸识别的验证使用方法及装置  Face recognition-based verification using method and device 技术领域Technical field
本发明属于智能终端领域,尤其涉及一种基于人脸识别的验证使用方法及装置。 The invention belongs to the field of intelligent terminals, and in particular relates to a method and a device for verifying and using based on face recognition.
背景技术Background technique
移动终端,俗称手机,现有的手机经过了模拟时代,数字时代和智能时代,现有的手机大部分均为智能手机,其功能也比较强大,包括:上网、视频通话、app应用等众多的功能,手机也逐渐成为人们在日常生活中的一种必备的工具。Mobile terminals, commonly known as mobile phones, have passed the analog era, the digital age and the intelligent era. Most of the existing mobile phones are smart phones, and their functions are also powerful, including: Internet, video calls, app applications, etc. Function, mobile phone has gradually become an essential tool for people in their daily lives.
手机由于比较小巧,在现实生活中经常会丢失,对于手机这样的私人物品来说,被别人误操作是很多用户无法接受的,所以现在的市场上需要一种安全的手机验证使用方法。Because mobile phones are relatively small, they are often lost in real life. For personal items such as mobile phones, being mishandled by others is unacceptable to many users, so the current market needs a safe mobile phone verification method.
技术问题technical problem
本发明实施例的目的在于提供一种基于人脸识别的手机验证使用方法,其解决现有技术的安全性低的问题。 An object of the embodiments of the present invention is to provide a method for verifying the use of a mobile phone based on face recognition, which solves the problem of low security in the prior art.
技术解决方案Technical solution
本发明实施例是这样实现的,一方面,一种基于人脸识别的验证使用方法,所述方法包括如下步骤:The embodiment of the present invention is implemented in this way. In one aspect, a method for verifying and using a face recognition method includes the following steps:
获取操作者的照片;Get an image of the operator;
从照片中提取出操作者的面部图像;Extracting an image of the operator's face from the photo;
将人物图像与图像模板进行比对,根据比对结果确定是否打开智能设备。The person image is compared with the image template, and it is determined whether the smart device is turned on according to the comparison result.
可选的,所述将人物图像与图像模板进行比对的实现方式具体为:Optionally, the implementation manner of comparing the image of the person with the image template is specifically:
提取人物图像中每个像素点的灰度值,提取斑点灰度值范围内的像素点及其坐标,斑点灰度值范围内的像素点即斑点,如相邻斑点之间的距离小于设定距离,则将该相邻斑点划分为一个斑区域,遍历所有的斑点区分出所有的斑区域;将所有的斑区域显示在人物图像的对应位置,提取图像模板中的所有斑区域,以双眼中心点为原点,360°均匀放出多条射线穿过所有斑区域,依据多条射线与所有斑区域边缘的交点获取每个斑区域边缘与中心点的距离;获取人物图像中每个斑区域边缘与中心点的距离,将图像模板中每个斑区域边缘与中心点的距离逐个与人物图像中每个斑区域边缘与中心点的距离进行比对,如图像模板中有设定数量个斑区域不存在人物图像中,则确定比对不相似,否则确定相似。Extracting the gray value of each pixel in the image of the person, extracting the pixel point and its coordinates within the range of the gray value of the spot, and the pixel within the range of the gray value of the spot is the spot, such as the distance between the adjacent spots is less than the setting The distance is divided into a spot area, and all the spots are traversed to distinguish all the spot areas; all the spot areas are displayed at corresponding positions of the person image, and all the spot areas in the image template are extracted to the center of the eyes. The point is the origin, 360° uniformly emits a plurality of rays through all the plaque regions, and the distance between the edge of each plaque region and the center point is obtained according to the intersection of the plurality of ray and the edge of all the plaque regions; and the edge of each plaque region in the image of the person is obtained The distance between the center points and the distance between the edge of each spot in the image template and the center point are compared with the distance between the edge of each spot in the image and the center point. For example, there is a set number of spot areas in the image template. In the presence of a character image, it is determined that the alignment is not similar, otherwise the similarity is determined.
可选的,所述方法在打开智能设备之后,还包括:Optionally, after the smart device is turned on, the method further includes:
则用该人物图像替换图像模板。Then replace the image template with the character image.
可选的,所述将人物图像与图像模板进行比对,根据比对结果确定是否打开智能设备具体包括:Optionally, the comparing the image of the person with the image template, and determining whether to open the smart device according to the comparison result specifically includes:
获取人物图像的轮廓线,将人物图像的双眼之间的中点作为原点,呈360°均匀发射出360个射线,记录每条射线与轮廓线的交点坐标,计算原点与每个交点坐标的距离L;获取图像模板的轮廓线,将图像模板的双眼之间的中点作为原点,呈360°均匀发射出360个射线,记录每条射线与图像模板轮廓线的交点坐标,计算原点与每个交点坐标的距离E;Obtain the outline of the character image, use the midpoint between the eyes of the character image as the origin, uniformly emit 360 rays at 360°, record the coordinates of the intersection of each ray and the contour line, and calculate the distance between the origin and the coordinates of each intersection point. L; obtain the outline of the image template, use the midpoint between the eyes of the image template as the origin, uniformly emit 360 rays at 360°, record the coordinates of the intersection of each ray and the outline of the image template, calculate the origin and each The distance E of the intersection coordinates;
∑(Ln- En)<c公式1;∑(Ln- En)<c formula 1;
当满足公式1时,确定人物图像与图像模板近似,打开智能设备;When formula 1 is satisfied, it is determined that the character image is approximated to the image template, and the smart device is turned on;
其中, 人物图像中原点与第n个交点坐标之间的距离; 图像模板中原点与第n个交点坐标之间的距离,C为设定阈值,为常数。Wherein, the distance between the origin of the character image and the coordinates of the nth intersection; The distance between the origin and the nth intersection coordinate in the image template, C is the set threshold and is a constant.
可选的,所述将人物图像与图像模板进行比对,根据比对结果确定是否打开智能设备具体包括:Optionally, the comparing the image of the person with the image template, and determining whether to open the smart device according to the comparison result specifically includes:
获取人物图像的轮廓线以及人物图像的双眼的中点,获取图像模板的轮廓线以及双眼的中点,将图像模块的双眼中点与人物图像的双眼的中点重合,如人物图像的轮廓线与图像模块的轮廓线也重合,打开智能设备。Obtaining the contour of the character image and the midpoint of the eyes of the character image, acquiring the contour of the image template and the midpoint of the eyes, and matching the midpoint of the eyes of the image module with the midpoint of the eyes of the person image, such as the contour of the character image The contour of the image module also coincides with the smart device.
另一方面,提供一种智能终端装置,所述装置包括:In another aspect, an intelligent terminal device is provided, the device comprising:
获取单元,用于获取操作者的照片;An acquisition unit for obtaining an image of an operator;
提取单元,用于从照片中提取出操作者的面部图像;An extracting unit, configured to extract an image of the operator's face from the photo;
图像比对单元,用于将人物图像与图像模板进行比对,根据比对结果确定是否打开智能设备。The image comparison unit is configured to compare the image of the person with the image template, and determine whether to open the smart device according to the comparison result.
可选的,所述图像比对单元具体用于:Optionally, the image comparison unit is specifically configured to:
提取人物图像中每个像素点的灰度值,提取斑点灰度值范围内的像素点及其坐标,斑点灰度值范围内的像素点即斑点,如相邻斑点之间的距离小于设定距离,则将该相邻斑点划分为一个斑区域,遍历所有的斑点区分出所有的斑区域;将所有的斑区域显示在人物图像的对应位置,提取图像模板中的所有斑区域,以双眼中心点为原点,360°均匀放出多条射线穿过所有斑区域,依据多条射线与所有斑区域边缘的交点获取每个斑区域边缘与中心点的距离;获取人物图像中每个斑区域边缘与中心点的距离,将图像模板中每个斑区域边缘与中心点的距离逐个与人物图像中每个斑区域边缘与中心点的距离进行比对,如图像模板中有设定数量个斑区域不存在人物图像中,则确定比对不相似,否则确定相似。Extracting the gray value of each pixel in the image of the person, extracting the pixel point and its coordinates within the range of the gray value of the spot, and the pixel within the range of the gray value of the spot is the spot, such as the distance between the adjacent spots is less than the setting The distance is divided into a spot area, and all the spots are traversed to distinguish all the spot areas; all the spot areas are displayed at corresponding positions of the person image, and all the spot areas in the image template are extracted to the center of the eyes. The point is the origin, 360° uniformly emits a plurality of rays through all the plaque regions, and the distance between the edge of each plaque region and the center point is obtained according to the intersection of the plurality of ray and the edge of all the plaque regions; and the edge of each plaque region in the image of the person is obtained The distance between the center points and the distance between the edge of each spot in the image template and the center point are compared with the distance between the edge of each spot in the image and the center point. For example, there is a set number of spot areas in the image template. In the presence of a character image, it is determined that the alignment is not similar, otherwise the similarity is determined.
可选的,所述装置还包括:Optionally, the device further includes:
替换单元,用于在所述打开单元打开智能设备之后,用该人物图像替换图像模板。And a replacement unit, configured to replace the image template with the character image after the opening unit turns on the smart device.
可选的,所述图像比对单元具体用于:Optionally, the image comparison unit is specifically configured to:
获取人物图像的轮廓线,将人物图像的双眼之间的中点作为原点,呈360°均匀发射出360个射线,记录每条射线与轮廓线的交点坐标,计算原点与每个交点坐标的距离L;获取图像模板的轮廓线,将图像模板的双眼之间的中点作为原点,呈360°均匀发射出360个射线,记录每条射线与图像模板轮廓线的交点坐标,计算原点与每个交点坐标的距离E;Obtain the outline of the character image, use the midpoint between the eyes of the character image as the origin, uniformly emit 360 rays at 360°, record the coordinates of the intersection of each ray and the contour line, and calculate the distance between the origin and the coordinates of each intersection point. L; obtain the outline of the image template, use the midpoint between the eyes of the image template as the origin, uniformly emit 360 rays at 360°, record the coordinates of the intersection of each ray and the outline of the image template, calculate the origin and each The distance E of the intersection coordinates;
∑(Ln- En)<c公式1;∑(Ln- En)<c formula 1;
当满足公式1时,确定人物图像与图像模板近似,打开智能设备;When formula 1 is satisfied, it is determined that the character image is approximated to the image template, and the smart device is turned on;
其中, 人物图像中原点与第n个交点坐标之间的距离; 图像模板中原点与第n个交点坐标之间的距离,C为设定阈值,为常数。Wherein, the distance between the origin of the character image and the coordinates of the nth intersection; The distance between the origin and the nth intersection coordinate in the image template, C is the set threshold and is a constant.
可选的,所述图像比对单元具体用于:Optionally, the image comparison unit is specifically configured to:
获取人物图像的轮廓线以及人物图像的双眼的中点,获取图像模板的轮廓线以及双眼的中点,将图像模块的双眼中点与人物图像的双眼的中点重合,如人物图像的轮廓线与图像模块的轮廓线也重合,打开智能设备。Obtaining the contour of the character image and the midpoint of the eyes of the character image, acquiring the contour of the image template and the midpoint of the eyes, and matching the midpoint of the eyes of the image module with the midpoint of the eyes of the person image, such as the contour of the character image The contour of the image module also coincides with the smart device.
有益效果Beneficial effect
在本发明实施例中,本发明提供的技术方案的手机采用人脸识别的方式来监控验证手机,所以其在手机用户发生变化时,能够自动屏蔽非主人的操作,所以其具有安全性高的有点。 In the embodiment of the present invention, the mobile phone provided by the technical solution of the present invention uses a face recognition method to monitor and verify the mobile phone, so that when the mobile phone user changes, the non-owner's operation can be automatically shielded, so that the mobile phone has high security. A little bit.
附图说明DRAWINGS
图1是本发明提供的一种基于人脸识别的验证使用方法的流程图;1 is a flow chart of a method for verifying and using face recognition based on the present invention;
图2是本发明提供的一种智能终端装置的结构图。 2 is a structural diagram of an intelligent terminal device provided by the present invention.
本发明的实施方式Embodiments of the invention
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。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.
本发明具体实施方式提供一种基于人脸识别的验证使用方法,上述方法由手机或其他的智能设备(例如ipad、PDA等)执行,该方法如图1所示,包括如下步骤:A specific embodiment of the present invention provides a method for verifying and using face recognition, which is performed by a mobile phone or other smart device (for example, an iPad, a PDA, etc.). The method is as shown in FIG. 1 and includes the following steps:
101、获取操作者的照片;101. Obtain a photo of the operator;
102、从照片中提取出操作者的面部图像;102. Extracting an image of the operator's face from the photo;
103、将人物图像与图像模板进行比对,根据比对结果确定是否打开智能设备。103. Compare the image of the person with the image template, and determine whether to open the smart device according to the comparison result.
上述比对结果可以为:相似或不相似。因为对于操作者来说,其面部图像不可能是不变的,所以完全相同的可能性不大,因为人脸是会有所变化的,所以这里只需要相似就可以实现,具体判断相似的方法可以参见下面描述。The above comparison results may be: similar or dissimilar. Because the face image of the operator may not be constant, the possibility of being identical is not great, because the face will change, so only the similarity can be realized here, and the similar method is determined. See the description below.
可选的,上述将人物图像与图像模板进行比对的实现方式具体可以为:Optionally, the implementation manner of comparing the image of the person with the image template may be:
提取人物图像中每个像素点的灰度值,提取斑点灰度值范围内的像素点及其坐标,斑点灰度值范围内的像素点即斑点,如相邻斑点之间的距离小于设定距离,则将该相邻斑点划分为一个斑区域,遍历所有的斑点区分出所有的斑区域;将所有的斑区域显示在人物图像的对应位置,提取图像模板中的所有斑区域,以双眼中心点为原点,360°均匀放出多条射线穿过所有斑区域,依据多条射线与所有斑区域边缘的交点获取每个斑区域边缘与中心点的距离;获取人物图像中每个斑区域边缘与中心点的距离,将图像模板中每个斑区域边缘与中心点的距离逐个与人物图像中每个斑区域边缘与中心点的距离进行比对,如图像模板中有设定数量个斑区域不存在人物图像中,则确定比对不相似,否则确定相似。Extracting the gray value of each pixel in the image of the person, extracting the pixel point and its coordinates within the range of the gray value of the spot, and the pixel within the range of the gray value of the spot is the spot, such as the distance between the adjacent spots is less than the setting The distance is divided into a spot area, and all the spots are traversed to distinguish all the spot areas; all the spot areas are displayed at corresponding positions of the person image, and all the spot areas in the image template are extracted to the center of the eyes. The point is the origin, 360° uniformly emits a plurality of rays through all the plaque regions, and the distance between the edge of each plaque region and the center point is obtained according to the intersection of the plurality of ray and the edge of all the plaque regions; and the edge of each plaque region in the image of the person is obtained The distance between the center points and the distance between the edge of each spot in the image template and the center point are compared with the distance between the edge of each spot in the image and the center point. For example, there is a set number of spot areas in the image template. In the presence of a character image, it is determined that the alignment is not similar, otherwise the similarity is determined.
此设计主要是通过斑点区域来进行人物图像的识别,因为对于人像来说,一般都有斑点,并且斑点的灰度值基本处于一个范围内,比较容易区分出灰度值,则通过对比所有斑点的问题就可以实现人物图像的区分,因为对于每个人来说,其斑点肯定不可能一致,所有其也可以明显的进行区分,另外,这里以双眼中心点作为基准点也是为了避免人的长胖长瘦所引起的对比对结果的影响,以双眼中心点为基准点能避免其产生的影响,所以上述方法具有比对准确度高的优点。This design mainly uses the spot area to identify the image of the person, because for the portrait, there are generally spots, and the gray value of the spot is basically in a range, and it is easier to distinguish the gray value, then all the spots are compared. The problem can be achieved by distinguishing the images of the characters, because for each person, the spots must not be consistent, and all of them can be clearly distinguished. In addition, the central point of the eyes is used as a reference point to avoid people's gain. The effect of the contrast caused by long thinness on the result can be avoided by taking the center point of both eyes as the reference point, so the above method has the advantage of high accuracy.
可选的,上述方法在103之后还可以包括:Optionally, the foregoing method may further include:
如打开智能设备,则用该人物图像替换图像模板。If the smart device is turned on, the image template is replaced with the character image.
所述将人物图像与图像模板进行比对,根据比对结果确定是否打开智能设备具体包括:The comparing the image of the person with the image template, and determining whether to open the smart device according to the comparison result specifically includes:
可选的,上述103的具体实现方法可以为:Optionally, the specific implementation manner of the foregoing 103 may be:
获取人物图像的轮廓线,将人物图像的双眼之间的中点作为原点,呈360°均匀发射出360个射线,记录每条射线与轮廓线的交点坐标,计算原点与每个交点坐标的距离L;获取图像模板的轮廓线,将图像模板的双眼之间的中点作为原点,呈360°均匀发射出360个射线,记录每条射线与图像模板轮廓线的交点坐标,计算原点与每个交点坐标的距离E;Obtain the outline of the character image, use the midpoint between the eyes of the character image as the origin, uniformly emit 360 rays at 360°, record the coordinates of the intersection of each ray and the contour line, and calculate the distance between the origin and the coordinates of each intersection point. L; obtain the outline of the image template, use the midpoint between the eyes of the image template as the origin, uniformly emit 360 rays at 360°, record the coordinates of the intersection of each ray and the outline of the image template, calculate the origin and each The distance E of the intersection coordinates;
∑(Ln- En)<c公式1;∑(Ln- En)<c formula 1;
当满足公式1时,确定人物图像与图像模板近似,打开智能设备;When formula 1 is satisfied, it is determined that the character image is approximated to the image template, and the smart device is turned on;
其中, 人物图像中原点与第n个交点坐标之间的距离; 图像模板中原点与第n个交点坐标之间的距离,C为设定阈值,为常数。Wherein, the distance between the origin of the character image and the coordinates of the nth intersection; The distance between the origin and the nth intersection coordinate in the image template, C is the set threshold and is a constant.
可选的,上述103的具体实现方法可以为: Optionally, the specific implementation manner of the foregoing 103 may be:
获取人物图像的轮廓线以及人物图像的双眼的中点,获取图像模板的轮廓线以及双眼的中点,将图像模块的双眼中点与人物图像的双眼的中点重合,如人物图像的轮廓线与图像模块的轮廓线也重合,打开智能设备。Obtaining the contour of the character image and the midpoint of the eyes of the character image, acquiring the contour of the image template and the midpoint of the eyes, and matching the midpoint of the eyes of the image module with the midpoint of the eyes of the person image, such as the contour of the character image The contour of the image module also coincides with the smart device.
此种方式相当于增加了学习功能,即每次比对都可以保证其属于最新的图像。This method is equivalent to the addition of the learning function, that is, each comparison can guarantee that it belongs to the latest image.
本发明具体实施方式还提供一种智能终端装置,该装置如图2所示,包括:The embodiment of the present invention further provides an intelligent terminal device. As shown in FIG. 2, the device includes:
获取单元21,用于获取操作者的照片;The obtaining unit 21 is configured to obtain a photo of the operator;
提取单元22,用于从照片中提取出操作者的面部图像;An extracting unit 22, configured to extract an image of the face of the operator from the photo;
图像比对单元25,用于将人物图像与图像模板进行比对,根据比对结果确定是否打开智能设备。The image comparison unit 25 is configured to compare the person image with the image template, and determine whether to open the smart device according to the comparison result.
可选的,图像比对单元25具体用于:Optionally, the image comparison unit 25 is specifically configured to:
提取人物图像中每个像素点的灰度值,提取斑点灰度值范围内的像素点及其坐标,斑点灰度值范围内的像素点即斑点,如相邻斑点之间的距离小于设定距离,则将该相邻斑点划分为一个斑区域,遍历所有的斑点区分出所有的斑区域;将所有的斑区域显示在人物图像的对应位置,提取图像模板中的所有斑区域,以双眼中心点为原点,360°均匀放出多条射线穿过所有斑区域,依据多条射线与所有斑区域边缘的交点获取每个斑区域边缘与中心点的距离;获取人物图像中每个斑区域边缘与中心点的距离,将图像模板中每个斑区域边缘与中心点的距离逐个与人物图像中每个斑区域边缘与中心点的距离进行比对,如图像模板中有设定数量个斑区域不存在人物图像中,则确定比对不相似,否则确定相似。Extracting the gray value of each pixel in the image of the person, extracting the pixel point and its coordinates within the range of the gray value of the spot, and the pixel within the range of the gray value of the spot is the spot, such as the distance between the adjacent spots is less than the setting The distance is divided into a spot area, and all the spots are traversed to distinguish all the spot areas; all the spot areas are displayed at corresponding positions of the person image, and all the spot areas in the image template are extracted to the center of the eyes. The point is the origin, 360° uniformly emits a plurality of rays through all the plaque regions, and the distance between the edge of each plaque region and the center point is obtained according to the intersection of the plurality of ray and the edge of all the plaque regions; and the edge of each plaque region in the image of the person is obtained The distance between the center points and the distance between the edge of each spot in the image template and the center point are compared with the distance between the edge of each spot in the image and the center point. For example, there is a set number of spot areas in the image template. In the presence of a character image, it is determined that the alignment is not similar, otherwise the similarity is determined.
可选的,上述装置还包括:Optionally, the foregoing apparatus further includes:
替换单元26,用于在所述打开单元打开智能设备之后,用该人物图像替换图像模板。The replacing unit 26 is configured to replace the image template with the character image after the opening unit turns on the smart device.
图像比对单元25具体用于:The image comparison unit 25 is specifically used to:
获取人物图像的轮廓线,将人物图像的双眼之间的中点作为原点,呈360°均匀发射出360个射线,记录每条射线与轮廓线的交点坐标,计算原点与每个交点坐标的距离L;获取图像模板的轮廓线,将图像模板的双眼之间的中点作为原点,呈360°均匀发射出360个射线,记录每条射线与图像模板轮廓线的交点坐标,计算原点与每个交点坐标的距离E;Obtain the outline of the character image, use the midpoint between the eyes of the character image as the origin, uniformly emit 360 rays at 360°, record the coordinates of the intersection of each ray and the contour line, and calculate the distance between the origin and the coordinates of each intersection point. L; obtain the outline of the image template, use the midpoint between the eyes of the image template as the origin, uniformly emit 360 rays at 360°, record the coordinates of the intersection of each ray and the outline of the image template, calculate the origin and each The distance E of the intersection coordinates;
∑(Ln- En)<c公式1;∑(Ln- En)<c formula 1;
当满足公式1时,确定人物图像与图像模板近似,打开智能设备;When formula 1 is satisfied, it is determined that the character image is approximated to the image template, and the smart device is turned on;
其中, 人物图像中原点与第n个交点坐标之间的距离; 图像模板中原点与第n个交点坐标之间的距离,C为设定阈值,为常数。Wherein, the distance between the origin of the character image and the coordinates of the nth intersection; The distance between the origin and the nth intersection coordinate in the image template, C is the set threshold and is a constant.
可选的,所述图像比对单元25具体用于:Optionally, the image comparison unit 25 is specifically configured to:
获取人物图像的轮廓线以及人物图像的双眼的中点,获取图像模板的轮廓线以及双眼的中点,将图像模块的双眼中点与人物图像的双眼的中点重合,如人物图像的轮廓线与图像模块的轮廓线也重合,打开智能设备。Obtaining the contour of the character image and the midpoint of the eyes of the character image, acquiring the contour of the image template and the midpoint of the eyes, and matching the midpoint of the eyes of the image module with the midpoint of the eyes of the person image, such as the contour of the character image The contour of the image module also coincides with the smart device.
值得注意的是,上述实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It should be noted that, in the foregoing embodiment, each unit included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented; in addition, the specific name of each functional unit is also They are only used to facilitate mutual differentiation and are not intended to limit the scope of the present invention.
另外,本领域普通技术人员可以理解实现上述各实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,相应的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘或光盘等。In addition, those skilled in the art can understand that all or part of the steps of implementing the above embodiments may be completed by a program to instruct related hardware, and the corresponding program may be stored in a computer readable storage medium. Storage medium, such as ROM/RAM, disk or CD.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.

Claims (10)

  1. 一种基于人脸识别的验证使用方法,其特征在于,所述方法包括如下步骤: A method for verifying usage based on face recognition, characterized in that the method comprises the following steps:
    获取操作者的照片;Get an image of the operator;
    从照片中提取出操作者的面部图像;Extracting an image of the operator's face from the photo;
    将人物图像与图像模板进行比对,根据比对结果确定是否打开智能设备。The person image is compared with the image template, and it is determined whether the smart device is turned on according to the comparison result.
  2. 根据权利要求1所述的方法,其特征在于,所述将人物图像与图像模板进行比对的实现方式具体为:The method according to claim 1, wherein the realizing the comparison between the image of the person and the image template is as follows:
    提取人物图像中每个像素点的灰度值,提取斑点灰度值范围内的像素点及其坐标,斑点灰度值范围内的像素点即斑点,如相邻斑点之间的距离小于设定距离,则将该相邻斑点划分为一个斑区域,遍历所有的斑点区分出所有的斑区域;将所有的斑区域显示在人物图像的对应位置,提取图像模板中的所有斑区域,以双眼中心点为原点,360°均匀放出多条射线穿过所有斑区域,依据多条射线与所有斑区域边缘的交点获取每个斑区域边缘与中心点的距离;获取人物图像中每个斑区域边缘与中心点的距离,将图像模板中每个斑区域边缘与中心点的距离逐个与人物图像中每个斑区域边缘与中心点的距离进行比对,如图像模板中有设定数量个斑区域不存在人物图像中,则确定比对不相似,否则确定相似。Extracting the gray value of each pixel in the image of the person, extracting the pixel point and its coordinates within the range of the gray value of the spot, and the pixel within the range of the gray value of the spot is the spot, such as the distance between the adjacent spots is less than the setting The distance is divided into a spot area, and all the spots are traversed to distinguish all the spot areas; all the spot areas are displayed at corresponding positions of the person image, and all the spot areas in the image template are extracted to the center of the eyes. The point is the origin, 360° uniformly emits a plurality of rays through all the plaque regions, and the distance between the edge of each plaque region and the center point is obtained according to the intersection of the plurality of ray and the edge of all the plaque regions; and the edge of each plaque region in the image of the person is obtained The distance between the center points and the distance between the edge of each spot in the image template and the center point are compared with the distance between the edge of each spot in the image and the center point. For example, there is a set number of spot areas in the image template. In the presence of a character image, it is determined that the alignment is not similar, otherwise the similarity is determined.
  3. 根据权利要求1所述的方法,其特征在于,所述方法在打开智能设备之后,还包括:The method according to claim 1, wherein after the method of opening the smart device, the method further comprises:
    则用该人物图像替换图像模板。Then replace the image template with the character image.
  4. 根据权利要求1所述的方法,其特征在于,所述将人物图像与图像模板进行比对,根据比对结果确定是否打开智能设备具体包括:The method according to claim 1, wherein the comparing the image of the person with the image template, and determining whether to open the smart device according to the comparison result comprises:
    获取人物图像的轮廓线,将人物图像的双眼之间的中点作为原点,呈360°均匀发射出360个射线,记录每条射线与轮廓线的交点坐标,计算原点与每个交点坐标的距离L;获取图像模板的轮廓线,将图像模板的双眼之间的中点作为原点,呈360°均匀发射出360个射线,记录每条射线与图像模板轮廓线的交点坐标,计算原点与每个交点坐标的距离E;Obtain the outline of the character image, use the midpoint between the eyes of the character image as the origin, uniformly emit 360 rays at 360°, record the coordinates of the intersection of each ray and the contour line, and calculate the distance between the origin and the coordinates of each intersection point. L; obtain the outline of the image template, use the midpoint between the eyes of the image template as the origin, uniformly emit 360 rays at 360°, record the coordinates of the intersection of each ray and the outline of the image template, calculate the origin and each The distance E of the intersection coordinates;
    ∑(Ln- En)<c公式1;∑(Ln- En)<c formula 1;
    当满足公式1时,确定人物图像与图像模板近似,打开智能设备;When formula 1 is satisfied, it is determined that the character image is approximated to the image template, and the smart device is turned on;
    其中, 人物图像中原点与第n个交点坐标之间的距离; 图像模板中原点与第n个交点坐标之间的距离,C为设定阈值,为常数。Wherein, the distance between the origin of the character image and the coordinates of the nth intersection; The distance between the origin and the nth intersection coordinate in the image template, C is the set threshold and is a constant.
  5. 根据权利要求1所述的方法,其特征在于,所述将人物图像与图像模板进行比对,根据比对结果确定是否打开智能设备具体包括:The method according to claim 1, wherein the comparing the image of the person with the image template, and determining whether to open the smart device according to the comparison result comprises:
    获取人物图像的轮廓线以及人物图像的双眼的中点,获取图像模板的轮廓线以及双眼的中点,将图像模块的双眼中点与人物图像的双眼的中点重合,如人物图像的轮廓线与图像模块的轮廓线也重合,打开智能设备。Obtaining the contour of the character image and the midpoint of the eyes of the character image, acquiring the contour of the image template and the midpoint of the eyes, and matching the midpoint of the eyes of the image module with the midpoint of the eyes of the person image, such as the contour of the character image The contour of the image module also coincides with the smart device.
  6. 一种智能终端装置,其特征在于,所述装置包括:An intelligent terminal device, characterized in that the device comprises:
    获取单元,用于获取操作者的照片;An acquisition unit for obtaining an image of an operator;
    提取单元,用于从照片中提取出操作者的面部图像;An extracting unit, configured to extract an image of the operator's face from the photo;
    图像比对单元,用于将人物图像与图像模板进行比对,根据比对结果确定是否打开智能设备。The image comparison unit is configured to compare the image of the person with the image template, and determine whether to open the smart device according to the comparison result.
  7. 根据权利要求6所述的装置,其特征在于,所述图像比对单元具体用于:The apparatus according to claim 6, wherein said image comparison unit is specifically configured to:
    提取人物图像中每个像素点的灰度值,提取斑点灰度值范围内的像素点及其坐标,斑点灰度值范围内的像素点即斑点,如相邻斑点之间的距离小于设定距离,则将该相邻斑点划分为一个斑区域,遍历所有的斑点区分出所有的斑区域;将所有的斑区域显示在人物图像的对应位置,提取图像模板中的所有斑区域,以双眼中心点为原点,360°均匀放出多条射线穿过所有斑区域,依据多条射线与所有斑区域边缘的交点获取每个斑区域边缘与中心点的距离;获取人物图像中每个斑区域边缘与中心点的距离,将图像模板中每个斑区域边缘与中心点的距离逐个与人物图像中每个斑区域边缘与中心点的距离进行比对,如图像模板中有设定数量个斑区域不存在人物图像中,则确定比对不相似,否则确定相似。Extracting the gray value of each pixel in the image of the person, extracting the pixel point and its coordinates within the range of the gray value of the spot, and the pixel within the range of the gray value of the spot is the spot, such as the distance between the adjacent spots is less than the setting The distance is divided into a spot area, and all the spots are traversed to distinguish all the spot areas; all the spot areas are displayed at corresponding positions of the person image, and all the spot areas in the image template are extracted to the center of the eyes. The point is the origin, 360° uniformly emits a plurality of rays through all the plaque regions, and the distance between the edge of each plaque region and the center point is obtained according to the intersection of the plurality of ray and the edge of all the plaque regions; and the edge of each plaque region in the image of the person is obtained The distance between the center points and the distance between the edge of each spot in the image template and the center point are compared with the distance between the edge of each spot in the image and the center point. For example, there is a set number of spot areas in the image template. In the presence of a character image, it is determined that the alignment is not similar, otherwise the similarity is determined.
  8. 根据权利要求6所述的装置,其特征在于,所述装置还包括:The device according to claim 6, wherein the device further comprises:
    替换单元,用于在所述打开单元打开智能设备之后,用该人物图像替换图像模板。And a replacement unit, configured to replace the image template with the character image after the opening unit turns on the smart device.
  9. 根据权利要求6所述的装置,其特征在于,所述图像比对单元具体用于:The apparatus according to claim 6, wherein said image comparison unit is specifically configured to:
    获取人物图像的轮廓线,将人物图像的双眼之间的中点作为原点,呈360°均匀发射出360个射线,记录每条射线与轮廓线的交点坐标,计算原点与每个交点坐标的距离L;获取图像模板的轮廓线,将图像模板的双眼之间的中点作为原点,呈360°均匀发射出360个射线,记录每条射线与图像模板轮廓线的交点坐标,计算原点与每个交点坐标的距离E;Obtain the outline of the character image, use the midpoint between the eyes of the character image as the origin, uniformly emit 360 rays at 360°, record the coordinates of the intersection of each ray and the contour line, and calculate the distance between the origin and the coordinates of each intersection point. L; obtain the outline of the image template, use the midpoint between the eyes of the image template as the origin, uniformly emit 360 rays at 360°, record the coordinates of the intersection of each ray and the outline of the image template, calculate the origin and each The distance E of the intersection coordinates;
    ∑(Ln- En)<c公式1;∑(Ln- En)<c formula 1;
    当满足公式1时,确定人物图像与图像模板近似,打开智能设备;When formula 1 is satisfied, it is determined that the character image is approximated to the image template, and the smart device is turned on;
    其中, 人物图像中原点与第n个交点坐标之间的距离; 图像模板中原点与第n个交点坐标之间的距离,C为设定阈值,为常数。Wherein, the distance between the origin of the character image and the coordinates of the nth intersection; The distance between the origin and the nth intersection coordinate in the image template, C is the set threshold and is a constant.
  10. 根据权利要求6所述的装置,其特征在于,所述图像比对单元具体用于:The apparatus according to claim 6, wherein said image comparison unit is specifically configured to:
    获取人物图像的轮廓线以及人物图像的双眼的中点,获取图像模板的轮廓线以及双眼的中点,将图像模块的双眼中点与人物图像的双眼的中点重合,如人物图像的轮廓线与图像模块的轮廓线也重合,打开智能设备。Obtaining the contour of the character image and the midpoint of the eyes of the character image, acquiring the contour of the image template and the midpoint of the eyes, and matching the midpoint of the eyes of the image module with the midpoint of the eyes of the person image, such as the contour of the character image The contour of the image module also coincides with the smart device.
PCT/CN2014/091213 2014-11-15 2014-11-15 Verification application method and apparatus based on face recognition WO2016074248A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/091213 WO2016074248A1 (en) 2014-11-15 2014-11-15 Verification application method and apparatus based on face recognition

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201480001802.2A CN104584030B (en) 2014-11-15 2014-11-15 Verification application method and device based on face recognition
PCT/CN2014/091213 WO2016074248A1 (en) 2014-11-15 2014-11-15 Verification application method and apparatus based on face recognition

Publications (1)

Publication Number Publication Date
WO2016074248A1 true WO2016074248A1 (en) 2016-05-19

Family

ID=53097341

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091213 WO2016074248A1 (en) 2014-11-15 2014-11-15 Verification application method and apparatus based on face recognition

Country Status (2)

Country Link
CN (1) CN104584030B (en)
WO (1) WO2016074248A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105938552B (en) * 2016-06-29 2020-04-24 北京旷视科技有限公司 Face recognition method and device for automatically updating base map
CN107742071A (en) * 2017-09-11 2018-02-27 广东欧珀移动通信有限公司 The equipment unlocking method and electronic installation of online game

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5933527A (en) * 1995-06-22 1999-08-03 Seiko Epson Corporation Facial image processing method and apparatus
CN1585957A (en) * 2001-09-13 2005-02-23 霍尼韦尔国际公司 Near-infrared method and system for use in face detection
TW200809700A (en) * 2006-08-15 2008-02-16 Compal Electronics Inc Method for recognizing face area
US20080069410A1 (en) * 2006-09-18 2008-03-20 Jong Gook Ko Iris recognition method and apparatus thereof
CN101226591A (en) * 2008-01-31 2008-07-23 上海交通大学 Personal identification method based on mobile phone pick-up head combining with human face recognition technique
CN101349961A (en) * 2008-08-11 2009-01-21 深圳华为通信技术有限公司 Method and apparatus for automatically switching portable terminal display mode
CN101393598A (en) * 2007-09-21 2009-03-25 希姆通信息技术(上海)有限公司 Starting and unblock method decided by human face identification by utilizing mobile phone cam
CN102035929A (en) * 2009-09-29 2011-04-27 比亚迪股份有限公司 Method, system and terminal for identifying identities of terminal users
CN102479320A (en) * 2010-11-25 2012-05-30 康佳集团股份有限公司 Face recognition method and device as well as mobile terminal
CN102509053A (en) * 2011-11-23 2012-06-20 唐辉 Authentication and authorization method, processor, equipment and mobile terminal
CN102546938A (en) * 2011-12-27 2012-07-04 广东步步高电子工业有限公司 Cell phone capable of realizing safety protection by means of intelligently capturing human face images by aid of front-facing camera
CN102629955A (en) * 2012-03-30 2012-08-08 上海华勤通讯技术有限公司 Face recognition mobile telephone and implementation method thereof
CN102968636A (en) * 2012-12-11 2013-03-13 山东神思电子技术股份有限公司 Human face contour extracting method
CN102970411A (en) * 2012-10-24 2013-03-13 康佳集团股份有限公司 Smart phone screen locking and unlocking control method based on face detection and smart phone
CN103179265A (en) * 2012-09-20 2013-06-26 深圳市金立通信设备有限公司 Incoming call mute system and incoming call mute method based on face recognition
CN103188412A (en) * 2011-12-29 2013-07-03 大连文森特软件科技有限公司 Remote household appliance control method based on mobile phone identification
CN103581378A (en) * 2013-10-31 2014-02-12 中晟国计科技有限公司 Smart phone high in safety performance

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201667042U (en) * 2009-07-22 2010-12-08 东莞慧盈塑胶有限公司 Notebook computer with face detection function
CN103324879B (en) * 2013-07-05 2016-08-10 公安部第三研究所 Mobile device is based on recognition of face and the authentication system of smart card and method
CN103824051B (en) * 2014-02-17 2017-05-03 北京旷视科技有限公司 Local region matching-based face search method

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5933527A (en) * 1995-06-22 1999-08-03 Seiko Epson Corporation Facial image processing method and apparatus
CN1585957A (en) * 2001-09-13 2005-02-23 霍尼韦尔国际公司 Near-infrared method and system for use in face detection
TW200809700A (en) * 2006-08-15 2008-02-16 Compal Electronics Inc Method for recognizing face area
US20080069410A1 (en) * 2006-09-18 2008-03-20 Jong Gook Ko Iris recognition method and apparatus thereof
CN101393598A (en) * 2007-09-21 2009-03-25 希姆通信息技术(上海)有限公司 Starting and unblock method decided by human face identification by utilizing mobile phone cam
CN101226591A (en) * 2008-01-31 2008-07-23 上海交通大学 Personal identification method based on mobile phone pick-up head combining with human face recognition technique
CN101349961A (en) * 2008-08-11 2009-01-21 深圳华为通信技术有限公司 Method and apparatus for automatically switching portable terminal display mode
CN102035929A (en) * 2009-09-29 2011-04-27 比亚迪股份有限公司 Method, system and terminal for identifying identities of terminal users
CN102479320A (en) * 2010-11-25 2012-05-30 康佳集团股份有限公司 Face recognition method and device as well as mobile terminal
CN102509053A (en) * 2011-11-23 2012-06-20 唐辉 Authentication and authorization method, processor, equipment and mobile terminal
CN102546938A (en) * 2011-12-27 2012-07-04 广东步步高电子工业有限公司 Cell phone capable of realizing safety protection by means of intelligently capturing human face images by aid of front-facing camera
CN103188412A (en) * 2011-12-29 2013-07-03 大连文森特软件科技有限公司 Remote household appliance control method based on mobile phone identification
CN102629955A (en) * 2012-03-30 2012-08-08 上海华勤通讯技术有限公司 Face recognition mobile telephone and implementation method thereof
CN103179265A (en) * 2012-09-20 2013-06-26 深圳市金立通信设备有限公司 Incoming call mute system and incoming call mute method based on face recognition
CN102970411A (en) * 2012-10-24 2013-03-13 康佳集团股份有限公司 Smart phone screen locking and unlocking control method based on face detection and smart phone
CN102968636A (en) * 2012-12-11 2013-03-13 山东神思电子技术股份有限公司 Human face contour extracting method
CN103581378A (en) * 2013-10-31 2014-02-12 中晟国计科技有限公司 Smart phone high in safety performance

Also Published As

Publication number Publication date
CN104584030B (en) 2017-02-22
CN104584030A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
WO2015180281A1 (en) Determination method and system of mobile terminal for identifying user privilege based on fingerprint
WO2014026443A1 (en) Identity authentication and management device and method thereof
EP2979154A1 (en) Display device and control method thereof
WO2016017855A1 (en) Wearable device and method of controlling therefor
WO2016000311A1 (en) User mode control method and system based on iris recognition technology for mobile terminal
WO2017113974A1 (en) Speech processing method and device, and terminal
WO2015105234A1 (en) Head mounted display and method for controlling the same
WO2017067269A1 (en) Method and device for fingerprint recognition and mobile terminal
WO2016074248A1 (en) Verification application method and apparatus based on face recognition
WO2014194620A1 (en) Method, module, apparatus and system for extracting, training and detecting image characteristic
WO2014180150A1 (en) Method, terminal and computer storage medium for triggering a communication with a contact
WO2016123898A1 (en) Short message managing method and mobile terminal thereof
WO2017005023A1 (en) Smart watch gesture input method and smart watch
WO2015119326A1 (en) Display device and method for controlling the same
WO2017067290A1 (en) Fingerprint entry method, apparatus, and terminal device
WO2012034469A1 (en) Gesture-based human-computer interaction method and system, and computer storage media
WO2018058955A1 (en) Anti-lost method and system for wearable terminal, and wearable terminal
WO2015196878A1 (en) Television virtual touch control method and system
WO2018124671A1 (en) Electronic device and operation method thereof
WO2016112515A1 (en) Scanning method and system for smart mobile terminal
WO2018023635A1 (en) Data collection method for expression-based unlocking technique, and door lock
WO2014026425A1 (en) Touch screen terminal unlocking method and apparatus, and terminal
WO2018223354A1 (en) Positioning-based attendance recording method and system
WO2017005024A1 (en) Human body communication based wireless input system and implementation method therefor
WO2018053763A1 (en) Image identification method and device

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: 14905860

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase in:

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 PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 05/10/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 14905860

Country of ref document: EP

Kind code of ref document: A1