CN107657166A - Unlock control method and related products - Google Patents
Unlock control method and related products Download PDFInfo
- Publication number
- CN107657166A CN107657166A CN201710892324.4A CN201710892324A CN107657166A CN 107657166 A CN107657166 A CN 107657166A CN 201710892324 A CN201710892324 A CN 201710892324A CN 107657166 A CN107657166 A CN 107657166A
- Authority
- CN
- China
- Prior art keywords
- face
- image
- target
- facial image
- face template
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/32—User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/161—Detection; Localisation; Normalisation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/168—Feature extraction; Face representation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/66—Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
- H04M1/667—Preventing unauthorised calls from a telephone set
- H04M1/67—Preventing unauthorised calls from a telephone set by electronic means
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72463—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Oral & Maxillofacial Surgery (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Computer Networks & Wireless Communication (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域technical field
本发明涉及移动终端技术领域,具体涉及一种解锁控制方法及相关产品。The invention relates to the technical field of mobile terminals, in particular to an unlocking control method and related products.
背景技术Background technique
随着移动终端(手机、平板电脑等)的大量普及应用,移动终端能够支持的应用越来越多,功能越来越强大,移动终端向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。With the popularization and application of mobile terminals (mobile phones, tablet computers, etc.), mobile terminals can support more and more applications, and their functions are becoming more and more powerful. Missing electronics.
目前来看,人脸识别越来越受到移动终端生产厂商的青睐,由于环境因素会变化较大,人脸识别的成功率较难得到保证,尤其在有雾环境下,因为图像中被雾遮挡,导致拍摄得到的人脸图像与无雾情况下的人脸图像差异较大,因此,人脸识别的成功率较低,因此,如何提提高有雾环境下的人脸识别效率的问题亟待解决。At present, face recognition is more and more favored by mobile terminal manufacturers. Due to the great changes in environmental factors, the success rate of face recognition is difficult to guarantee, especially in foggy environments, because the image is blocked by fog. , resulting in a large difference between the captured face image and the face image in the fog-free environment. Therefore, the success rate of face recognition is low. Therefore, the problem of how to improve the efficiency of face recognition in the foggy environment needs to be solved urgently. .
发明内容Contents of the invention
本发明实施例提供了一种解锁控制方法及相关产品,可以提高有雾环境下的人脸识别效率。Embodiments of the present invention provide an unlocking control method and related products, which can improve the efficiency of face recognition in a foggy environment.
第一方面,本发明实施例提供一种移动终端,包括应用处理器(ApplicationProcessor,AP),以及与所述AP连接的人脸识别装置,其中,In the first aspect, an embodiment of the present invention provides a mobile terminal, including an application processor (Application Processor, AP), and a face recognition device connected to the AP, wherein,
所述人脸识别装置,用于获取人脸图像;The face recognition device is used to acquire a face image;
所述AP,用于在所述人脸图像为含雾图像时,确定所述人脸图像对应的目标雾化等级;根据所述目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板;将所述人脸图像与所述雾化人脸模板进行匹配;以及在所述人脸图像与所述雾化人脸模板匹配成功时,进行解锁操作。The AP is used to determine the target fogging level corresponding to the human face image when the human face image is a foggy image; perform fogging processing on a preset human face template according to the target fogging level to obtain Atomizing the face template; matching the face image with the atomized face template; and performing an unlocking operation when the face image is successfully matched with the atomized face template.
第二方面,本发明实施例提供了一种解锁控制方法,应用于包括应用处理器AP,以及与所述AP连接的人脸识别装置的移动终端,所述方法包括:In a second aspect, an embodiment of the present invention provides an unlocking control method applied to a mobile terminal including an application processor AP and a face recognition device connected to the AP, the method comprising:
所述人脸识别装置获取人脸图像;The face recognition device acquires a face image;
所述AP在所述人脸图像为含雾图像时,确定所述人脸图像对应的目标雾化等级;根据所述目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板;将所述人脸图像与所述雾化人脸模板进行匹配;以及在所述人脸图像与所述雾化人脸模板匹配成功时,进行解锁操作。When the face image is a foggy image, the AP determines the target atomization level corresponding to the face image; performs fogging processing on the preset face template according to the target atomization level to obtain an atomized person a face template; matching the face image with the atomized face template; and performing an unlocking operation when the face image is successfully matched with the atomized face template.
第三方面,本发明实施例提供了一种解锁控制方法,包括:In a third aspect, an embodiment of the present invention provides an unlocking control method, including:
获取人脸图像;Get face image;
在所述人脸图像为含雾图像时,确定所述人脸图像对应的目标雾化等级;When the face image is a foggy image, determine the target fogging level corresponding to the face image;
根据所述目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板;Perform fogging processing on the preset face template according to the target atomization level to obtain an atomized face template;
将所述人脸图像与所述雾化人脸模板进行匹配;Matching the face image with the atomized face template;
在所述人脸图像与所述雾化人脸模板匹配成功时,进行解锁操作。When the face image matches the atomized face template successfully, an unlocking operation is performed.
第四方面,本发明实施例提供了一种解锁控制装置,包括:In a fourth aspect, an embodiment of the present invention provides an unlocking control device, including:
第一获取单元,用于获取人脸图像;a first acquiring unit, configured to acquire a face image;
确定单元,用于在所述人脸图像为含雾图像时,确定所述人脸图像对应的目标雾化等级;A determining unit, configured to determine a target fogging level corresponding to the face image when the face image is a foggy image;
加雾处理单元,用于根据所述目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板;A fogging processing unit, configured to perform fogging processing on a preset face template according to the target atomization level to obtain an atomized face template;
匹配单元,用于将所述人脸图像与所述雾化人脸模板进行匹配;A matching unit, configured to match the face image with the atomized face template;
解锁单元,用于在所述人脸图像与所述雾化人脸模板匹配成功时,进行解锁操作。An unlocking unit, configured to perform an unlocking operation when the face image matches the atomized face template successfully.
第五方面,本发明实施例提供了一种移动终端,包括:应用处理器AP和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述AP执行,所述程序包括用于如第三方面中所描述的部分或全部步骤的指令。In a fifth aspect, an embodiment of the present invention provides a mobile terminal, including: an application processor AP and a memory; and one or more programs, the one or more programs are stored in the memory and configured to Executed by the AP, the program includes instructions for some or all of the steps as described in the third aspect.
第六方面,本发明实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本发明实施例第三方面中所描述的部分或全部步骤的指令。In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program enables the computer to execute the third aspect of the present invention. instructions for some or all of the steps described in .
第七方面,本发明实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本发明实施例第三方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a seventh aspect, an embodiment of the present invention provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable the computer to execute the Part or all of the steps described in the third aspect of the invention embodiment. The computer program product may be a software installation package.
实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:
可以看出,本发明实施例中所描述的解锁控制方法,获取人脸图像,在人脸图像为含雾图像时,确定人脸图像对应的目标雾化等级,根据目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板,将人脸图像与雾化人脸模板进行匹配,在人脸图像与雾化人脸模板匹配成功时,进行解锁操作,从而,可以在人脸图像含雾时,可以确定相应的含雾程度,进而,可以对预设人脸模板进行加雾处理,以加雾处理弱化模板图像,可提升人脸识别效率。It can be seen that the unlocking control method described in the embodiment of the present invention acquires a face image, and when the face image is a foggy image, determines the target fogging level corresponding to the face image, and sets the preset value according to the target fogging level. The face template is subjected to fogging processing to obtain an atomized face template, and the face image is matched with the atomized face template. When the face image and the atomized face template are successfully matched, the unlocking operation is performed. When the face image is foggy, the corresponding fogging degree can be determined, and then, the preset face template can be fogged, and the fogging process can weaken the template image, which can improve the efficiency of face recognition.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1A是本发明实施例提供的一种示例移动终端的架构示意图;FIG. 1A is a schematic structural diagram of an example mobile terminal provided by an embodiment of the present invention;
图1B是本发明实施例提供的一种移动终端的结构示意图;FIG. 1B is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention;
图1C是本发明实施例公开的一种解锁控制方法的流程示意图;Fig. 1C is a schematic flowchart of an unlocking control method disclosed in an embodiment of the present invention;
图2是本发明实施例公开的另一种解锁控制方法的流程示意图;Fig. 2 is a schematic flowchart of another unlocking control method disclosed in an embodiment of the present invention;
图3是本发明实施例提供的一种移动终端的另一结构示意图;FIG. 3 is another schematic structural diagram of a mobile terminal provided by an embodiment of the present invention;
图4A是本发明实施例提供的一种解锁控制装置的结构示意图;Fig. 4A is a schematic structural diagram of an unlocking control device provided by an embodiment of the present invention;
图4B是本发明实施例提供的图4A所描述的解锁控制装置的确定单元的结构示意图;Fig. 4B is a schematic structural diagram of a determination unit of the unlocking control device described in Fig. 4A provided by an embodiment of the present invention;
图4C是本发明实施例提供的一种解锁控制装置的另一结构示意图;Fig. 4C is another structural schematic diagram of an unlocking control device provided by an embodiment of the present invention;
图4D是本发明实施例提供的图4A所描述的解锁控制装置的匹配单元的结构示意图;FIG. 4D is a schematic structural diagram of a matching unit of the unlocking control device described in FIG. 4A provided by an embodiment of the present invention;
图5是本发明实施例公开的另一种移动终端的结构示意图。Fig. 5 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.
本发明实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminaldevice)等等。为方便描述,上面提到的设备统称为移动终端。The mobile terminals involved in the embodiments of the present invention may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on. For convenience of description, the devices mentioned above are collectively referred to as mobile terminals.
下面对本发明实施例进行详细介绍。如图1A所示的一种示例移动终端1000,该移动终端1000的人脸识别装置可以为摄像头模组21,该摄像头模组可以为双摄像头,上述双摄像头可以一个是可见光摄像头,一个是红外摄像头,或者,两者都是可见光摄像头,例如,一个摄像头为可见光摄像头,另一个摄像头为红外摄像头,又例如,一个摄像头为可见光摄像头且另一个摄像头也为可见光摄像头,或者上述摄像头模组可以为单摄像头,例如,可见光摄像头,或者,红外摄像头。上述摄像头模组21可以为前置摄像头或者后置摄像头。The following describes the embodiments of the present invention in detail. An example mobile terminal 1000 as shown in Figure 1A, the face recognition device of the mobile terminal 1000 can be a camera module 21, and the camera module can be a dual camera, and one of the above dual cameras can be a visible light camera and the other can be an infrared camera. camera, or both are visible light cameras, for example, one camera is a visible light camera, the other camera is an infrared camera, and for example, one camera is a visible light camera and the other camera is also a visible light camera, or the above camera module can be A single camera, for example, a visible light camera, or an infrared camera. The aforementioned camera module 21 may be a front camera or a rear camera.
请参阅图1B,图1B是所示的一种移动终端100的结构示意图,所述移动终端100包括:应用处理器AP110、人脸识别装置120、烟雾检测传感器130,其中,所述AP110通过总线150连接人脸识别装置120和烟雾检测传感器130。Please refer to FIG. 1B. FIG. 1B is a schematic structural diagram of a mobile terminal 100 shown. The mobile terminal 100 includes: an application processor AP110, a face recognition device 120, and a smoke detection sensor 130. 150 connects the face recognition device 120 and the smoke detection sensor 130 .
基于图1A-图1B所描述的移动终端,可以用于实现如下功能:Based on the mobile terminal described in Fig. 1A-Fig. 1B, it can be used to realize the following functions:
所述人脸识别装置120,用于获取人脸图像;The face recognition device 120 is used to acquire a face image;
所述AP110,用于在所述人脸图像为含雾图像时,确定所述人脸图像对应的目标雾化等级;根据所述目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板;将所述人脸图像与所述雾化人脸模板进行匹配;以及在所述人脸图像与所述雾化人脸模板匹配成功时,进行解锁操作。The AP110 is used to determine the target fogging level corresponding to the human face image when the human face image is a foggy image; perform fogging processing on a preset human face template according to the target fogging level to obtain Atomizing the face template; matching the face image with the atomized face template; and performing an unlocking operation when the face image is successfully matched with the atomized face template.
在一个可能的示例中,在所述确定所述人脸图像对应的目标雾化等级方面,所述AP110具体用于:In a possible example, in terms of determining the target fogging level corresponding to the face image, the AP110 is specifically used to:
对所述人脸图像进行图像分割,得到人脸区域图像;Carrying out image segmentation to the face image to obtain a face region image;
确定所述人脸区域图像的目标雾化等级。Determine the target fogging level of the face area image.
在一个可能的示例中,烟雾检测传感器130,用于通过烟雾检测传感器获取当前烟雾浓度;In a possible example, the smoke detection sensor 130 is used to obtain the current smoke concentration through the smoke detection sensor;
在所述确定所述人脸图像对应的目标雾化等级方面,所述AP具体用于:In terms of determining the target fogging level corresponding to the face image, the AP is specifically used for:
获取与所述当前烟雾浓度对应的雾化等级作为所述人脸图像对应的目标雾化等级。Obtain the fogging level corresponding to the current smoke density as the target fogging level corresponding to the face image.
在一个可能的示例中,在所述根据所述雾化等级对预设人脸模板进行加雾处理方面,所述AP110具体用于:In a possible example, in terms of fogging the preset face template according to the fog level, the AP110 is specifically used for:
按照预设的雾化等级与加雾处理参数之间的映射关系,确定与所述目标加雾处理对应的目标加雾处理参数,并根据所述目标加雾处理参数对所述预设人脸模板进行加雾处理。According to the mapping relationship between the preset fogging level and the fogging processing parameters, the target fogging processing parameters corresponding to the target fogging processing are determined, and the preset face is processed according to the target fogging processing parameters The template is fogged.
在一个可能的示例中,在所述将所述人脸图像与所述雾化人脸模板进行匹配方面,所述AP110具体用于:In a possible example, in terms of matching the face image with the atomized face template, the AP110 is specifically used to:
将所述人脸图像中的人脸区域图像划分为P个区域块,所述P个区域块为面积相同的区域块,所述P为大于1的整数;Divide the face area image in the face image into P area blocks, the P area blocks are area blocks with the same area, and the P is an integer greater than 1;
并行将所述P个区域块与所述雾化人脸模板进行匹配,得到P个匹配值;Parallelly matching the P area blocks with the atomized face template to obtain P matching values;
从所述P个匹配值中选取大于预设识别阈值的匹配值,得到Q个匹配值,所述Q为小于或等于所述P的正整数;Selecting a matching value greater than a preset recognition threshold from the P matching values to obtain Q matching values, the Q being a positive integer less than or equal to the P;
在所述Q与所述P之间的比值大于预设阈值时,确定所述人脸图像与所述雾化人脸模板匹配成功。When the ratio between the Q and the P is greater than a preset threshold, it is determined that the face image matches the atomized face template successfully.
基于上述图1A-图1B所描述的移动终端,可用于执行如下所描述的一种解锁控制方法,具体如下:Based on the mobile terminal described above in FIG. 1A-FIG. 1B, it can be used to perform an unlocking control method as described below, specifically as follows:
所述人脸识别装置120获取人脸图像;The face recognition device 120 acquires a face image;
所述AP110在所述人脸图像为含雾图像时,确定所述人脸图像对应的目标雾化等级;根据所述目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板;将所述人脸图像与所述雾化人脸模板进行匹配;以及在所述人脸图像与所述雾化人脸模板匹配成功时,进行解锁操作。When the face image is a foggy image, the AP110 determines the target atomization level corresponding to the face image; performs fogging processing on the preset face template according to the target atomization level to obtain an atomized person a face template; matching the face image with the atomized face template; and performing an unlocking operation when the face image is successfully matched with the atomized face template.
可以看出,本发明实施例中所描述的解锁控制方法,获取人脸图像,在人脸图像为含雾图像时,确定人脸图像对应的目标雾化等级,根据目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板,将人脸图像与雾化人脸模板进行匹配,在人脸图像与雾化人脸模板匹配成功时,进行解锁操作,从而,可以在人脸图像含雾时,可以确定相应的含雾程度,进而,可以对预设人脸模板进行加雾处理,以加雾处理弱化模板图像,可提升人脸识别效率。It can be seen that the unlocking control method described in the embodiment of the present invention acquires a face image, and when the face image is a foggy image, determines the target fogging level corresponding to the face image, and sets the preset value according to the target fogging level. The face template is subjected to fogging processing to obtain an atomized face template, and the face image is matched with the atomized face template. When the face image and the atomized face template are successfully matched, the unlocking operation is performed. When the face image is foggy, the corresponding fogging degree can be determined, and then, the preset face template can be fogged, and the fogging process can weaken the template image, which can improve the efficiency of face recognition.
基于图1A-图1B所描述的移动终端,请参阅图1C,为本发明实施例提供的一种解锁控制方法的实施例流程示意图。本实施例中所描述的解锁控制方法,其可包括以下步骤:Based on the mobile terminal described in FIGS. 1A-1B , please refer to FIG. 1C , which is a schematic flowchart of an embodiment of an unlocking control method provided by an embodiment of the present invention. The unlocking control method described in this embodiment may include the following steps:
101、获取人脸图像。101. Acquire a face image.
其中,可以通过对人脸进行对焦,得到人脸图像,人脸图像可以为包含人脸的图像,或者,仅仅只有人脸的抠图图像。Wherein, the face image may be obtained by focusing on the face, and the face image may be an image containing a face, or a cutout image only having a face.
其中,上述步骤101,获取人脸图像,可以包括如下步骤:Wherein, above-mentioned step 101, obtain face image, can comprise the following steps:
11、获取目标环境参数;11. Obtain target environment parameters;
12、确定与所述目标环境参数对应的目标拍摄参数;12. Determine target shooting parameters corresponding to the target environment parameters;
13、根据所述目标拍摄参数对人脸进行拍摄,得到所述人脸图像。13. Shooting the face according to the target shooting parameters to obtain the face image.
其中,上述目标环境参数可以由环境传感器检测得到,上述环境传感器可以用于检测环境参数,环境传感器可以为以下至少一个:呼吸检测传感器、环境光传感器、电磁检测传感器、环境色温检测传感器、定位传感器、温度传感器、湿度传感器等等,环境参数可以为以下至少一种:呼吸参数、环境亮度、环境色温、环境磁场干扰系数、天气情况、环境光源数目、地理位置等等,呼吸参数可以为以下至少一种:呼吸次数、呼吸频率、呼吸声音、呼吸曲线等等。Wherein, the above-mentioned target environment parameters can be obtained by detecting the environment sensor, and the above-mentioned environment sensor can be used to detect the environment parameter, and the environment sensor can be at least one of the following: breathing detection sensor, ambient light sensor, electromagnetic detection sensor, environmental color temperature detection sensor, positioning sensor , temperature sensor, humidity sensor, etc., the environmental parameters can be at least one of the following: respiratory parameters, ambient brightness, environmental color temperature, environmental magnetic field interference coefficient, weather conditions, the number of environmental light sources, geographical location, etc., the respiratory parameters can be at least one of the following One: breath count, breath rate, breath sound, breath curve, etc.
进一步地,移动终端中可以预先存储拍摄参数与环境参数之间的对应关系,进而,根据该对应关系确定与目标环境参数对应的目标拍摄参数,上述拍摄参数可以包括但不仅限于:焦距、曝光时长、光圈大小、拍照模式、感光度ISO、白平衡参数等等。如此,可以得到在该环境下最佳的图像。Further, the mobile terminal may pre-store the corresponding relationship between shooting parameters and environmental parameters, and then determine the target shooting parameters corresponding to the target environmental parameters according to the corresponding relationship. The above shooting parameters may include but not limited to: focal length, exposure time length , aperture size, camera mode, sensitivity ISO, white balance parameters, etc. In this way, the best image under the environment can be obtained.
102、在所述人脸图像为含雾图像时,确定所述人脸图像对应的目标雾化等级。102. When the face image is a foggy image, determine a target fogging level corresponding to the face image.
其中,在人脸图像为含雾图像时,可以进一步分析该人脸图像中含雾的等级,或者,其含雾程度。Wherein, when the face image is a foggy image, the level of fog in the face image, or the degree of fogging, may be further analyzed.
可选地,在上述步骤101与步骤102之间,可以包含如下步骤:Optionally, between the above step 101 and step 102, the following steps may be included:
检测人脸图像中是否含雾,若是,则确认所述人脸图像为含雾图像。Detect whether the face image contains fog, and if so, confirm that the face image is a fog image.
其中,可以通过检测技术判断人脸图像中是否为含雾图像,例如,通过烟雾检测传感器检测,若其环境中有烟、雾,则人脸图像中则在很大程度上会含雾。另外,则可以通过图像处理的方式检测图像中是否含雾,例如,可以对图像进行特征提取,以得到图像的多种特征,如:分形特征,灰度特征,小波系数变化或者灰度共生矩阵,然后判断这些特征是否符合含雾图像的特征,若是,则说明图像中含雾。Among them, it is possible to judge whether the face image is a foggy image through detection technology, for example, through the detection of a smoke detection sensor, if there is smoke or fog in the environment, the face image will contain fog to a large extent. In addition, it is possible to detect whether there is fog in the image through image processing. For example, feature extraction can be performed on the image to obtain various features of the image, such as: fractal features, gray features, wavelet coefficient changes or gray co-occurrence matrix , and then judge whether these features conform to the characteristics of the foggy image, if so, it means that the image contains fog.
可选地,上述步骤102中,确定所述人脸图像对应的目标雾化等级,可包括如下步骤:Optionally, in the above step 102, determining the target fogging level corresponding to the face image may include the following steps:
21、对所述人脸图像进行图像分割,得到人脸区域图像;21. Perform image segmentation on the face image to obtain a face region image;
22、确定所述人脸区域图像的目标雾化等级。22. Determine a target fogging level of the face region image.
其中,在人脸识别的过程中,最关注的当然是人脸区域,因而,背景的话,可以不用在意,因此,可以对人脸图像进行图像分割,得到人脸区域图像,确定该人脸区域图像对应的雾化等级。Among them, in the process of face recognition, the most concerned is of course the face area. Therefore, the background can be ignored. Therefore, the image of the face image can be segmented to obtain the image of the face area, and the face area can be determined. The fog level corresponding to the image.
可选地,上述步骤22中,确定所述人脸区域图像的雾化等级,可包括如下步骤:Optionally, in the above-mentioned step 22, determining the fogging level of the face region image may include the following steps:
221、对所述人脸区域图像进行特征提取,得到目标特征集;221. Perform feature extraction on the face region image to obtain a target feature set;
222、对所述目标特征集进行量化处理,得到量化特征值;222. Perform quantization processing on the target feature set to obtain quantized feature values;
223、按照预设的特征值与雾化等级之间的映射关系确定与所述量化特征值对应的所述目标雾化等级。223. Determine the target fog level corresponding to the quantified feature value according to a preset mapping relationship between the feature value and the fog level.
其中,上述特征提取可采用如下算法实现:Harris角点检测算法、尺度不变特征变换、SUSAN角点检测算法、分形、小波变换等等,在此不再赘述。上述预设的特征值与雾化等级之间的映射关系可以预先保存在存储器中。进而,在对人脸区域图像进行特征提取之后,可以得到目标特征集,对该目标特征集可以进行量化处理,得到量化特征值,并且按照预设的特征值与雾化等级之间的映射关系确定与量化特征值对应的目标雾化等级。Among them, the above-mentioned feature extraction can be realized by the following algorithms: Harris corner detection algorithm, scale-invariant feature transformation, SUSAN corner detection algorithm, fractal, wavelet transform, etc., which will not be repeated here. The above preset mapping relationship between the characteristic value and the atomization level may be stored in the memory in advance. Furthermore, after the feature extraction is performed on the face area image, the target feature set can be obtained, and the target feature set can be quantified to obtain the quantized feature value, and according to the mapping relationship between the preset feature value and the atomization level A target fogging level corresponding to the quantized feature value is determined.
可选地,上述步骤101与步骤102之间,还可以包含如下步骤:Optionally, between the above step 101 and step 102, the following steps may also be included:
通过烟雾检测传感器获取当前烟雾浓度;Obtain the current smoke concentration through the smoke detection sensor;
那么,在执行步骤102,确定所述人脸图像对应的目标雾化等级,可以按照如下方式实施:Then, in step 102, determining the target fogging level corresponding to the face image can be implemented in the following manner:
获取与所述当前烟雾浓度对应的雾化等级作为所述人脸图像对应的目标雾化等级。Obtain the fogging level corresponding to the current smoke density as the target fogging level corresponding to the face image.
其中,可以通过烟雾检测传感器获取当前烟雾浓度,不同的浓度下会拍摄得到不同的含雾图像。当然,移动终端中可预先存储烟雾浓度与雾化等级之间的映射关系,进而,可以根据该映射关系确定当前烟雾浓度对应的目标雾化等级。Among them, the current smoke concentration can be obtained through the smoke detection sensor, and different fog-containing images will be captured under different concentrations. Certainly, the mapping relationship between the smoke concentration and the atomization level may be stored in advance in the mobile terminal, and further, the target atomization level corresponding to the current smoke concentration may be determined according to the mapping relationship.
103、根据所述目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板。103. Perform fogging processing on a preset face template according to the target atomization level to obtain an atomized face template.
其中,上述预设人脸模板可以预先保存在存储器中,可以根据目标雾化等级对预设人脸模板进行加雾处理,处理之后,预设人脸模板中也存在雾了,即得到雾化人脸模板,即上述步骤103中,可以根据目标雾化等级对预设人脸模板进行加雾处理,得到与人脸图像相同模糊的模板,如此,可以弱化预设人脸模板质量,反向提升了人脸识别效率。上述加雾处理算法的可以参照现有技术,例如,基于雾气理论的图像加雾隐藏算法。Wherein, the above-mentioned preset face template can be pre-stored in the memory, and the preset face template can be fogged according to the target atomization level. Face template, that is, in the above step 103, the preset face template can be fogged according to the target atomization level to obtain a template with the same blur as the face image, so that the quality of the preset face template can be weakened, reverse Improved face recognition efficiency. For the aforementioned fogging processing algorithm, reference may be made to the prior art, for example, an image fogging and hiding algorithm based on fog theory.
可选地,上述步骤103中,根据所述雾化等级对预设人脸模板进行加雾处理,可按照如下方式实施:Optionally, in the above step 103, the fogging process is performed on the preset face template according to the fogging level, which can be implemented in the following manner:
按照预设的雾化等级与加雾处理参数之间的映射关系,确定与所述目标加雾处理对应的目标加雾处理参数,并根据所述目标加雾处理参数对所述预设人脸模板进行加雾处理。According to the mapping relationship between the preset fogging level and the fogging processing parameters, the target fogging processing parameters corresponding to the target fogging processing are determined, and the preset face is processed according to the target fogging processing parameters The template is fogged.
其中,上述加雾处理参数为加雾处理算法中的处理参数,不同的处理参数,对图像雾化的程度不一样,例如:基于雾气理论的图像加雾隐藏算法的雾化处理参数。移动终端的存储器中可以预先存储预设的雾化等级与加雾处理参数之间的映射关系,进而,可以根据该映射关系确定与目标加雾处理对应的目标加雾处理参数,并根据目标加雾处理参数对预设人脸模板进行加雾处理。Wherein, the above-mentioned fogging processing parameters are processing parameters in the fogging processing algorithm, and different processing parameters have different degrees of image fogging, for example: the fogging processing parameters of the image fogging concealment algorithm based on the fog theory. The memory of the mobile terminal can pre-store the mapping relationship between the preset atomization level and the fogging processing parameters, and then, according to the mapping relationship, the target fogging processing parameters corresponding to the target fogging processing can be determined, and according to the target fogging processing The fog processing parameter performs fog processing on the preset face template.
104、将所述人脸图像与所述雾化人脸模板进行匹配。104. Match the face image with the atomized face template.
其中,可以将人脸图像与雾化人脸进行匹配,若两者之间的匹配值大于人脸识别阈值,则进行解锁操作,若两者之间的匹配值小于或等于人脸识别阈值,则可提示用户重新进行人脸识别,上述预设识别阈值可以由用户自行设置或者系统默认。Among them, the face image can be matched with the atomized face, if the matching value between the two is greater than the face recognition threshold, the unlocking operation is performed, if the matching value between the two is less than or equal to the face recognition threshold, Then the user may be prompted to perform face recognition again, and the above-mentioned preset recognition threshold may be set by the user or defaulted by the system.
可选地,上述步骤104中,将所述人脸图像与所述雾化人脸模板进行匹配,可包括如下步骤:Optionally, in the above step 104, matching the face image with the atomized face template may include the following steps:
41、将所述人脸图像中的人脸区域图像划分为P个区域块,所述P个区域块为面积相同的区域块,所述P为大于1的整数;41. Divide the face area image in the face image into P area blocks, the P area blocks are area blocks with the same area, and the P is an integer greater than 1;
42、并行将所述P个区域块与所述雾化人脸模板进行匹配,得到P个匹配值;42. Matching the P area blocks with the atomized face template in parallel to obtain P matching values;
43、从所述P个匹配值中选取大于预设识别阈值的匹配值,得到Q个匹配值,所述Q为小于或等于所述P的正整数;43. Select a matching value greater than a preset recognition threshold from the P matching values to obtain Q matching values, and the Q is a positive integer less than or equal to the P;
44、在所述Q与所述P之间的比值大于预设阈值时,确定所述人脸图像与所述雾化人脸模板匹配成功。44. When the ratio between the Q and the P is greater than a preset threshold, determine that the face image matches the atomized face template successfully.
其中,上述预设识别阈值可以为由用户自行设置,或者系统默认,例如,预设识别阈值=人脸识别阈值/P。上述预设阈值也可以由用户自行设置或者系统默认。进而,可以将人脸图像中的人脸区域图像划分为P个区域快,P为大于1的整数,且P个区域块的面积相同。可以采用P个进程或者线程将P个区域块与雾化人脸模板进行匹配,得到P个匹配值,可以从P个匹配值中选取大于预设识别阈值的匹配值,得到Q个匹配值,在Q与P之间的比值大于预设阈值时,确定人脸图像与雾化人脸模板匹配成功。如此,可以实现快速人脸识别。Wherein, the above-mentioned preset recognition threshold may be set by the user or defaulted by the system, for example, the preset recognition threshold=face recognition threshold/P. The aforementioned preset thresholds may also be set by the user or defaulted by the system. Furthermore, the face region image in the face image can be divided into P regions, where P is an integer greater than 1, and the areas of the P regions are the same. P processes or threads can be used to match P area blocks with the atomized face template to obtain P matching values, and a matching value greater than the preset recognition threshold can be selected from the P matching values to obtain Q matching values. When the ratio between Q and P is greater than the preset threshold, it is determined that the face image matches the fogged face template successfully. In this way, fast face recognition can be realized.
105、在所述人脸图像与所述雾化人脸模板匹配成功时,进行解锁操作。105. When the face image matches the atomized face template successfully, perform an unlocking operation.
其中,在人脸图像与雾化人脸模板匹配成功时,进行解锁操作,上述进行解锁操作,可以为以下至少一种情况:例如,移动终端处于熄屏状态下,解锁操作可以是,点亮屏幕,并进入移动终端的主页面,或者指定页面;移动终端处于亮屏状态下,解锁操作可以是,进入移动终端的主页面,或者指定页面;移动终端某一应用的解锁页面,解锁操作可以是,完成解锁,进入解锁后的页面,例如,移动终端可以处于支付页面,解锁操作可以是,进行支付。上述指定页面可以为以下至少一种:某个应用的页面,或者,用户自行指定的页面。Wherein, when the face image is successfully matched with the atomized face template, the unlocking operation is performed. The above-mentioned unlocking operation may be at least one of the following situations: For example, when the mobile terminal is in a state of turning off the screen, the unlocking operation may be, screen, and enter the main page of the mobile terminal, or a specified page; when the mobile terminal is in the bright state, the unlocking operation can be to enter the main page of the mobile terminal, or a specified page; the unlocking page of an application of the mobile terminal, the unlocking operation can be Yes, complete the unlocking and enter the unlocked page. For example, the mobile terminal can be on the payment page, and the unlocking operation can be to make a payment. The above specified page may be at least one of the following: a page of a certain application, or a page specified by the user.
可以看出,本发明实施例中所描述的解锁控制方法,获取人脸图像,在人脸图像为含雾图像时,确定人脸图像对应的目标雾化等级,根据目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板,将人脸图像与雾化人脸模板进行匹配,在人脸图像与雾化人脸模板匹配成功时,进行解锁操作,从而,可以在人脸图像含雾时,可以确定相应的含雾程度,进而,可以对预设人脸模板进行加雾处理,以加雾处理弱化模板图像,可提升人脸识别效率。It can be seen that the unlocking control method described in the embodiment of the present invention acquires a face image, and when the face image is a foggy image, determines the target fogging level corresponding to the face image, and sets the preset value according to the target fogging level. The face template is subjected to fogging processing to obtain an atomized face template, and the face image is matched with the atomized face template. When the face image and the atomized face template are successfully matched, the unlocking operation is performed. When the face image is foggy, the corresponding fogging degree can be determined, and then, the preset face template can be fogged, and the fogging process can weaken the template image, which can improve the efficiency of face recognition.
与上述一致地,请参阅图2,为本发明实施例提供的一种解锁控制方法的实施例流程示意图。本实施例中所描述的解锁控制方法,其可包括以下步骤:Consistent with the above, please refer to FIG. 2 , which is a schematic flowchart of an embodiment of an unlocking control method provided by an embodiment of the present invention. The unlocking control method described in this embodiment may include the following steps:
201、获取人脸图像。201. Acquire a face image.
202、通过烟雾检测传感器获取当前烟雾浓度。202. Obtain the current smoke concentration through the smoke detection sensor.
203、在所述人脸图像为含雾图像时,获取与所述当前烟雾浓度对应的雾化等级作为所述人脸图像对应的目标雾化等级。203. When the face image is a foggy image, acquire a fog level corresponding to the current smoke concentration as a target fog level corresponding to the face image.
204、根据所述目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板。204. Perform fogging processing on a preset face template according to the target fog level to obtain an atomized face template.
205、将所述人脸图像与所述雾化人脸模板进行匹配。205. Match the face image with the atomized face template.
206、在所述人脸图像与所述雾化人脸模板匹配成功时,进行解锁操作。206. When the face image matches the atomized face template successfully, perform an unlocking operation.
其中,上述步骤201-步骤206的具体描述可参照图1C所描述的解锁控制方法的对应步骤,在此不再赘述。Wherein, for the specific description of the above-mentioned steps 201-206, reference may be made to the corresponding steps of the unlocking control method described in FIG. 1C , which will not be repeated here.
可以看出,本发明实施例中所描述的解锁控制方法,获取人脸图像,通过烟雾检测传感器获取当前烟雾浓度,在人脸图像为含雾图像时,获取与当前烟雾浓度对应的雾化等级作为人脸图像对应的目标雾化等级,根据目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板,将人脸图像与雾化人脸模板进行匹配,在人脸图像与雾化人脸模板匹配成功时,进行解锁操作,从而,可以在人脸图像含雾时,可以确定相应的含雾程度,进而,可以对预设人脸模板进行加雾处理,以加雾处理弱化模板图像,可提升人脸识别效率。It can be seen that the unlocking control method described in the embodiment of the present invention obtains the face image, obtains the current smoke concentration through the smoke detection sensor, and obtains the atomization level corresponding to the current smoke concentration when the face image is a foggy image As the target atomization level corresponding to the face image, the preset face template is fogged according to the target atomization level to obtain the atomized face template, and the face image is matched with the atomized face template, When the image is successfully matched with the atomized face template, the unlocking operation is performed, so that when the face image is foggy, the corresponding degree of fogging can be determined, and then the preset face template can be fogged to increase the fogging effect. Fog processing weakens the template image, which can improve the efficiency of face recognition.
请参阅图3,图3是本发明实施例提供的一种移动终端,包括:应用处理器AP和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述AP执行,所述程序包括用于执行以下步骤的指令:Please refer to FIG. 3. FIG. 3 is a mobile terminal provided by an embodiment of the present invention, including: an application processor AP and a memory; and one or more programs, the one or more programs are stored in the memory, And configured to be executed by the AP, the program includes instructions for performing the following steps:
获取人脸图像;Get face image;
在所述人脸图像为含雾图像时,确定所述人脸图像对应的目标雾化等级;When the face image is a foggy image, determine the target fogging level corresponding to the face image;
根据所述目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板;Perform fogging processing on the preset face template according to the target atomization level to obtain an atomized face template;
将所述人脸图像与所述雾化人脸模板进行匹配;Matching the face image with the atomized face template;
在所述人脸图像与所述雾化人脸模板匹配成功时,进行解锁操作。When the face image matches the atomized face template successfully, an unlocking operation is performed.
在一个可能的示例中,在所述确定所述人脸图像对应的目标雾化等级方面,所述程序包括用于执行以下步骤的指令:In a possible example, in terms of determining the target fogging level corresponding to the face image, the program includes instructions for performing the following steps:
对所述人脸图像进行图像分割,得到人脸区域图像;Carrying out image segmentation to the face image to obtain a face region image;
确定所述人脸区域图像的目标雾化等级。Determine the target fogging level of the face area image.
在一个可能的示例中,所述程序还包括用于执行以下步骤的指令:In one possible example, the program further includes instructions for performing the following steps:
通过烟雾检测传感器获取当前烟雾浓度;Obtain the current smoke concentration through the smoke detection sensor;
所述确定所述人脸图像对应的目标雾化等级,所述程序包括用于执行以下步骤的指令:For determining the target fogging level corresponding to the face image, the program includes instructions for performing the following steps:
获取与所述当前烟雾浓度对应的雾化等级作为所述人脸图像对应的目标雾化等级。Obtain the fogging level corresponding to the current smoke density as the target fogging level corresponding to the face image.
在一个可能的示例中,所述根据所述雾化等级对预设人脸模板进行加雾处理,所述程序包括用于执行以下步骤的指令:In a possible example, the fogging process is performed on the preset face template according to the fogging level, and the program includes instructions for performing the following steps:
按照预设的雾化等级与加雾处理参数之间的映射关系,确定与所述目标加雾处理对应的目标加雾处理参数,并根据所述目标加雾处理参数对所述预设人脸模板进行加雾处理。According to the mapping relationship between the preset fogging level and the fogging processing parameters, the target fogging processing parameters corresponding to the target fogging processing are determined, and the preset face is processed according to the target fogging processing parameters The template is fogged.
在一个可能的示例中,所述将所述人脸图像与所述雾化人脸模板进行匹配,所述程序包括用于执行以下步骤的指令:In a possible example, the matching the face image with the atomized face template, the program includes instructions for performing the following steps:
将所述人脸图像中的人脸区域图像划分为P个区域块,所述P个区域块为面积相同的区域块,所述P为大于1的整数;Divide the face area image in the face image into P area blocks, the P area blocks are area blocks with the same area, and the P is an integer greater than 1;
并行将所述P个区域块与所述雾化人脸模板进行匹配,得到P个匹配值;Parallelly matching the P area blocks with the atomized face template to obtain P matching values;
从所述P个匹配值中选取大于预设识别阈值的匹配值,得到Q个匹配值,所述Q为小于或等于所述P的正整数;Selecting a matching value greater than a preset recognition threshold from the P matching values to obtain Q matching values, the Q being a positive integer less than or equal to the P;
在所述Q与所述P之间的比值大于预设阈值时,确定所述人脸图像与所述雾化人脸模板匹配成功。When the ratio between the Q and the P is greater than a preset threshold, it is determined that the face image matches the atomized face template successfully.
请参阅图4A,图4A是本实施例提供的一种解锁控制装置的结构示意图。该解锁控制装置包括第一获取单元401、确定单元402、加雾处理单元403、匹配单元404和解锁单元405,其中,Please refer to FIG. 4A . FIG. 4A is a schematic structural diagram of an unlocking control device provided in this embodiment. The unlocking control device includes a first acquiring unit 401, a determining unit 402, a fogging processing unit 403, a matching unit 404 and an unlocking unit 405, wherein,
第一获取单元401,用于获取人脸图像;A first acquisition unit 401, configured to acquire a face image;
确定单元402,用于在所述人脸图像为含雾图像时,确定所述人脸图像对应的目标雾化等级;A determining unit 402, configured to determine a target fog level corresponding to the face image when the face image is a foggy image;
加雾处理单元403,用于根据所述目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板;A fogging processing unit 403, configured to perform fogging processing on a preset face template according to the target atomization level to obtain an atomized face template;
匹配单元404,用于将所述人脸图像与所述雾化人脸模板进行匹配;A matching unit 404, configured to match the face image with the atomized face template;
解锁单元405,用于在所述人脸图像与所述雾化人脸模板匹配成功时,进行解锁操作。The unlocking unit 405 is configured to perform an unlocking operation when the face image matches the atomized face template successfully.
可选地,如图4B,图4B是图4A所描述的解锁控制装置的确定单元402的具体细节结构,所述确定单元402可以包括:分割模块4021和确定模块4022,具体如下:Optionally, as shown in FIG. 4B, FIG. 4B is a specific detailed structure of the determination unit 402 of the unlock control device described in FIG. 4A, and the determination unit 402 may include: a division module 4021 and a determination module 4022, specifically as follows:
分割模块4021,用于对所述人脸图像进行图像分割,得到人脸区域图像;A segmentation module 4021, configured to perform image segmentation on the face image to obtain a face region image;
确定模块4022,确定所述人脸区域图像的目标雾化等级。Determining module 4022, determining the target fogging level of the face area image.
可选地,如图4C,图4C为图4A所描述的解锁控制装置的变型结构,其与图4A相比较,还可包括:第二获取单元406,具体如下:Optionally, as shown in FIG. 4C, FIG. 4C is a modified structure of the unlocking control device described in FIG. 4A. Compared with FIG. 4A, it may further include: a second acquisition unit 406, specifically as follows:
第二获取单元406,用于通过烟雾检测传感器获取当前烟雾浓度;The second acquisition unit 406 is configured to acquire the current smoke concentration through the smoke detection sensor;
在所述确定所述人脸图像对应的目标雾化等级方面,所述确定单元402具体用于:In terms of determining the target fogging level corresponding to the face image, the determining unit 402 is specifically configured to:
获取与所述当前烟雾浓度对应的雾化等级作为所述人脸图像对应的目标雾化等级。Obtain the fogging level corresponding to the current smoke density as the target fogging level corresponding to the face image.
可选地,在所述根据所述雾化等级对预设人脸模板进行加雾处理方面,所述加雾处理单元403具体用于:Optionally, in terms of performing fogging processing on the preset face template according to the fogging level, the fogging processing unit 403 is specifically configured to:
按照预设的雾化等级与加雾处理参数之间的映射关系,确定与所述目标加雾处理对应的目标加雾处理参数,并根据所述目标加雾处理参数对所述预设人脸模板进行加雾处理。According to the mapping relationship between the preset fogging level and the fogging processing parameters, the target fogging processing parameters corresponding to the target fogging processing are determined, and the preset face is processed according to the target fogging processing parameters The template is fogged.
可选地,如图4D,图4D是图4A所描述的解锁控制装置的匹配单元404的具体细节结构,所述匹配单元404可包括:划分模块4041、匹配模块4042、选取模块4043和确认模块4044,具体如下:Optionally, as shown in Fig. 4D, Fig. 4D is the specific detailed structure of the matching unit 404 of the unlocking control device described in Fig. 4A, and the matching unit 404 may include: a division module 4041, a matching module 4042, a selection module 4043 and a confirmation module 4044, as follows:
划分模块4041,用于将所述人脸图像中的人脸区域图像划分为P个区域块,所述P个区域块为面积相同的区域块,所述P为大于1的整数;A dividing module 4041, configured to divide the face area image in the face image into P area blocks, the P area blocks are area blocks with the same area, and the P is an integer greater than 1;
匹配模块4042,用于并行将所述P个区域块与所述雾化人脸模板进行匹配,得到P个匹配值;A matching module 4042, configured to match the P area blocks with the atomized face template in parallel to obtain P matching values;
选取模块4043,用于从所述P个匹配值中选取大于预设识别阈值的匹配值,得到Q个匹配值,所述Q为小于或等于所述P的正整数;A selection module 4043, configured to select a matching value greater than a preset recognition threshold from the P matching values to obtain Q matching values, where the Q is a positive integer less than or equal to the P;
确认模块4044,用于在所述Q与所述P之间的比值大于预设阈值时,确定所述人脸图像与所述雾化人脸模板匹配成功。A confirming module 4044, configured to determine that the face image matches the atomized face template successfully when the ratio between the Q and the P is greater than a preset threshold.
可以看出,本发明实施例中所描述的解锁控制装置,可获取人脸图像,在人脸图像为含雾图像时,确定人脸图像对应的目标雾化等级,根据目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板,将人脸图像与雾化人脸模板进行匹配,在人脸图像与雾化人脸模板匹配成功时,进行解锁操作,从而,可以在人脸图像含雾时,可以确定相应的含雾程度,进而,可以对预设人脸模板进行加雾处理,以加雾处理弱化模板图像,可提升人脸识别效率。It can be seen that the unlocking control device described in the embodiment of the present invention can acquire a face image, and when the face image is a foggy image, determine the target fog level corresponding to the face image, and predict the preset fog level according to the target fog level. Set the face template for fogging processing to obtain the atomized face template, match the face image with the atomized face template, and perform the unlocking operation when the face image and the atomized face template are successfully matched, so that When the face image is foggy, the corresponding fogging degree can be determined, and further, fogging processing can be performed on the preset face template to weaken the template image by fogging processing, which can improve the efficiency of face recognition.
可以理解的是,本实施例的解锁控制装置的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that the functions of the program modules of the unlocking control device in this embodiment can be specifically implemented according to the method in the above method embodiment, and the specific implementation process can refer to the relevant description of the above method embodiment, and will not be repeated here.
本发明实施例还提供了另一种移动终端,如图5所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以移动终端为手机为例:The embodiment of the present invention also provides another mobile terminal, as shown in Fig. 5, for the convenience of description, only the parts related to the embodiment of the present invention are shown, and the specific technical details are not disclosed, please refer to the method of the embodiment of the present invention part. The mobile terminal can be any terminal device including a mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, etc. Taking the mobile terminal as a mobile phone as an example:
图5示出的是与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图5,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、传感器950、音频电路960、无线保真(Wireless Fidelity,WiFi)模块970、应用处理器AP980、以及电源990等部件。本领域技术人员可以理解,图5中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 shows a block diagram of a partial structure of a mobile phone related to the mobile terminal provided by the embodiment of the present invention. Referring to FIG. 5 , the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 910, a memory 920, an input unit 930, a sensor 950, an audio circuit 960, a wireless fidelity (Wireless Fidelity, WiFi) module 970, an application processor AP980, and a power supply 990 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 5 is not limited to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
下面结合图5对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 5:
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括触控显示屏933、人脸识别装置931以及其他输入设备932。人脸识别装置931可参照上述结构,具体结构组成可参照上述描述,在此不过多赘述。输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于物理按键、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 930 may include a touch screen 933 , a face recognition device 931 and other input devices 932 . The face recognition device 931 may refer to the above-mentioned structure, and the specific structural composition may refer to the above-mentioned description, which will not be repeated here. The input unit 930 may also include other input devices 932 . Specifically, other input devices 932 may include but not limited to one or more of physical keys, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, and the like.
其中,所述AP980,用于执行如下步骤:Wherein, the AP980 is used to perform the following steps:
获取人脸图像;Get face image;
在所述人脸图像为含雾图像时,确定所述人脸图像对应的目标雾化等级;When the face image is a foggy image, determine the target fogging level corresponding to the face image;
根据所述目标雾化等级对预设人脸模板进行加雾处理,得到雾化人脸模板;Perform fogging processing on the preset face template according to the target atomization level to obtain an atomized face template;
将所述人脸图像与所述雾化人脸模板进行匹配;Matching the face image with the atomized face template;
在所述人脸图像与所述雾化人脸模板匹配成功时,进行解锁操作。When the face image matches the atomized face template successfully, an unlocking operation is performed.
AP980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,AP980可包括一个或多个处理单元,该处理单元可为人工智能芯片、量子芯片;优选的,AP980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到AP980中。AP980 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 920, and calling data stored in the memory 920, the mobile phone is executed. Various functions and processing data, so as to monitor the mobile phone as a whole. Optionally, the AP980 may include one or more processing units, which may be artificial intelligence chips or quantum chips; preferably, the AP980 may integrate an application processor and a modem processor, wherein the application processor mainly handles operations systems, user interfaces, and applications, etc., the modem processor mainly handles wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the AP980.
此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。In addition, the memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobilecommunication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code DivisionMultiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。RF circuitry 910 may be used for the reception and transmission of information. Generally, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 910 may also communicate with networks and other devices via wireless communications. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobilecommunication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (Short Messaging Service, SMS), etc.
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境传感器及接近传感器,其中,环境传感器可根据环境光线的明暗来调节触控显示屏的亮度,接近传感器可在手机移动到耳边时,关闭触控显示屏和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor can include an environment sensor and a proximity sensor, wherein the environment sensor can adjust the brightness of the touch display screen according to the brightness of the ambient light, and the proximity sensor can turn off the touch display screen and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the application of mobile phone posture (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放AP980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone. The audio circuit 960 can transmit the electrical signal converted from the received audio data to the loudspeaker 961, and the loudspeaker 961 converts it into a sound signal for playback; After being received, it is converted into audio data, and then the audio data is processed by the playback AP980, and then sent to another mobile phone through the RF circuit 910, or the audio data is played to the memory 920 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图5示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 970. It provides users with wireless broadband Internet access. Although Fig. 5 shows the WiFi module 970, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted according to needs without changing the essence of the invention.
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与AP980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 990 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the AP980 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be repeated here.
前述图1C或图2所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the aforementioned embodiment shown in FIG. 1C or FIG. 2 , the method flow of each step can be realized based on the structure of the mobile phone.
前述图3、图4A~图4D所示的实施例中,各单元功能可以基于该手机的结构实现。In the aforementioned embodiments shown in FIG. 3 and FIG. 4A to FIG. 4D , the functions of each unit can be realized based on the structure of the mobile phone.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种解锁控制方法的部分或全部步骤。An embodiment of the present invention also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables the computer to execute any part of the unlocking control method described in the above method embodiments or all steps.
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种解锁控制方法的部分或全部步骤。An embodiment of the present invention also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the method described in the above method embodiments. Part or all of the steps of any unlocking control method.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented not only in the form of hardware, but also in the form of software program modules.
所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated units may be stored in a computer-readable memory if implemented in the form of a software program module and sold or used as an independent product. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory. Several instructions are included to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, abbreviated: ROM), random access device (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disk, etc.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The embodiments of the present invention have been described in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only used to help understand the method and core idea of the present invention; at the same time, for Those skilled in the art will have changes in the specific implementation and scope of application according to the idea of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.
Claims (14)
- A kind of 1. mobile terminal, it is characterised in that including application processor AP, and the recognition of face dress being connected with the AP Put, wherein,The face identification device, for obtaining facial image;The AP, for when the facial image is image containing mist, determining that target corresponding to the facial image is atomized grade; Grade is atomized according to the target default face template is carried out to add mist processing, atomized face template;By the face figure As being matched with the atomization face template;And the facial image with it is described atomization face template the match is successful when, It is unlocked operation.
- 2. mobile terminal according to claim 1, it is characterised in that determine target corresponding to the facial image described In terms of being atomized grade, the AP is specifically used for:Image segmentation is carried out to the facial image, obtains human face region image;Determine the target atomization grade of the human face region image.
- 3. mobile terminal according to claim 1, it is characterised in that the mobile terminal also includes:Smoke Detection sensor, for obtaining current smokescope by Smoke Detection sensor;In terms of target atomization grade corresponding to the determination facial image, the AP is specifically used for:Obtain the grade that is atomized corresponding with the current smokescope and be atomized grade as target corresponding to the facial image.
- 4. according to the mobile terminal described in any one of claims 1 to 3, it is characterised in that described according to the atomization grade Default face template is carried out plus mist processing aspect, the AP are specifically used for:According to default atomization grade and add the mapping relations between mist processing parameter, it is determined that adding mist processing corresponding with the target Target add mist processing parameter, and add mist processing parameter to be carried out to the default face template plus mist processing according to the target.
- 5. according to the mobile terminal described in any one of Claims 1-4, it is characterised in that it is described by the facial image with In terms of the atomization face template is matched, the AP is specifically used for:Human face region image in the facial image is divided into P region unit, the P region unit is area identical area Domain block, the P are the integer more than 1;And be about to the P region unit and matched with the atomization face template, obtain P matching value;The matching value for being more than default recognition threshold is chosen from the P matching value, obtains Q matching value, the Q be less than or Equal to the positive integer of the P;When ratio between the Q and the P is more than predetermined threshold value, the facial image and the atomization face template are determined The match is successful.
- 6. one kind solution lock control method, it is characterised in that applied to including application processor AP, and the people being connected with the AP The mobile terminal of face identification device, methods described include:The face identification device obtains facial image;The AP determines that target corresponding to the facial image is atomized grade when the facial image is image containing mist;According to Default face template is carried out the target atomization grade plus mist processing, atomized face template;By the facial image with The atomization face template is matched;And the facial image with it is described atomization face template the match is successful when, carry out Unblock operation.
- 7. one kind solution lock control method, it is characterised in that including:Obtain facial image;When the facial image is image containing mist, determine that target corresponding to the facial image is atomized grade;Grade is atomized according to the target default face template is carried out to add mist processing, atomized face template;The facial image is matched with the atomization face template;When the match is successful for the facial image and the atomization face template, operation is unlocked.
- 8. according to the method for claim 7, it is characterised in that described to determine target atomization etc. corresponding to the facial image Level, including:Image segmentation is carried out to the facial image, obtains human face region image;Determine the target atomization grade of the human face region image.
- 9. according to the method for claim 7, it is characterised in that methods described also includes:Current smokescope is obtained by Smoke Detection sensor;It is described to determine that target corresponding to the facial image is atomized grade, including:Obtain the grade that is atomized corresponding with the current smokescope and be atomized grade as target corresponding to the facial image.
- 10. according to the method described in any one of claim 7 to 9, it is characterised in that it is described according to the atomization grade to default Face template carries out plus mist processing, including:According to default atomization grade and add the mapping relations between mist processing parameter, it is determined that adding mist processing corresponding with the target Target add mist processing parameter, and add mist processing parameter to be carried out to the default face template plus mist processing according to the target.
- 11. according to the method described in any one of claim 7 to 10, it is characterised in that it is described by the facial image with it is described Atomization face template is matched, including:Human face region image in the facial image is divided into P region unit, the P region unit is area identical area Domain block, the P are the integer more than 1;And be about to the P region unit and matched with the atomization face template, obtain P matching value;The matching value for being more than default recognition threshold is chosen from the P matching value, obtains Q matching value, the Q be less than or Equal to the positive integer of the P;When ratio between the Q and the P is more than predetermined threshold value, the facial image and the atomization face template are determined The match is successful.
- 12. one kind solution lock control device, it is characterised in that including:First acquisition unit, for obtaining facial image;Determining unit, for when the facial image is image containing mist, determining target atomization etc. corresponding to the facial image Level;Add mist processing unit, default face template is carried out to add mist processing for being atomized grade according to the target, it is atomized Face template;Matching unit, for the facial image to be matched with the atomization face template;Unlocking unit, for the facial image with it is described atomization face template the match is successful when, be unlocked operation.
- A kind of 13. mobile terminal, it is characterised in that including:Application processor AP and memory;And one or more programs, One or more of programs are stored in the memory, and are configured to be performed by the AP, and described program includes Instruction for such as any one of claim 7-11 methods.
- A kind of 14. computer-readable recording medium, it is characterised in that it is used to store computer program, wherein, the computer Program causes computer to perform the method as described in claim any one of 7-11.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710892324.4A CN107657166A (en) | 2017-09-27 | 2017-09-27 | Unlock control method and related products |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710892324.4A CN107657166A (en) | 2017-09-27 | 2017-09-27 | Unlock control method and related products |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107657166A true CN107657166A (en) | 2018-02-02 |
Family
ID=61116417
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710892324.4A Pending CN107657166A (en) | 2017-09-27 | 2017-09-27 | Unlock control method and related products |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107657166A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109190448A (en) * | 2018-07-09 | 2019-01-11 | 深圳市科脉技术股份有限公司 | Face identification method and device |
| CN109409071A (en) * | 2018-11-13 | 2019-03-01 | 湖北文理学院 | Unlocking method, device and the electronic equipment of electronic equipment |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102750674A (en) * | 2012-04-26 | 2012-10-24 | 长春理工大学 | Video image defogging method based on self-adapting allowance |
| CN103065127A (en) * | 2012-12-30 | 2013-04-24 | 信帧电子技术(北京)有限公司 | Method and device for recognizing human face in fog day image |
| CN105005776A (en) * | 2015-07-30 | 2015-10-28 | 广东欧珀移动通信有限公司 | Fingerprint identification method and device |
| CN105095829A (en) * | 2014-04-29 | 2015-11-25 | 华为技术有限公司 | Face recognition method and system |
| CN106296612A (en) * | 2016-08-09 | 2017-01-04 | 南京工业大学 | Hierarchical monitoring video sharpening system and method for image quality evaluation and weather condition guidance |
| CN106851086A (en) * | 2016-11-28 | 2017-06-13 | 北京奇虎科技有限公司 | A kind of method and apparatus for carrying out photo generation |
-
2017
- 2017-09-27 CN CN201710892324.4A patent/CN107657166A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102750674A (en) * | 2012-04-26 | 2012-10-24 | 长春理工大学 | Video image defogging method based on self-adapting allowance |
| CN103065127A (en) * | 2012-12-30 | 2013-04-24 | 信帧电子技术(北京)有限公司 | Method and device for recognizing human face in fog day image |
| CN105095829A (en) * | 2014-04-29 | 2015-11-25 | 华为技术有限公司 | Face recognition method and system |
| CN105005776A (en) * | 2015-07-30 | 2015-10-28 | 广东欧珀移动通信有限公司 | Fingerprint identification method and device |
| CN106296612A (en) * | 2016-08-09 | 2017-01-04 | 南京工业大学 | Hierarchical monitoring video sharpening system and method for image quality evaluation and weather condition guidance |
| CN106851086A (en) * | 2016-11-28 | 2017-06-13 | 北京奇虎科技有限公司 | A kind of method and apparatus for carrying out photo generation |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109190448A (en) * | 2018-07-09 | 2019-01-11 | 深圳市科脉技术股份有限公司 | Face identification method and device |
| CN109409071A (en) * | 2018-11-13 | 2019-03-01 | 湖北文理学院 | Unlocking method, device and the electronic equipment of electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108985212B (en) | Face recognition method and device | |
| CN107197146B (en) | Image processing method and apparatus, mobile terminal, and computer-readable storage medium | |
| CN107609514B (en) | Face recognition method and related products | |
| CN107292285B (en) | Iris living body detection method and related product | |
| CN107679482B (en) | Unlock control method and related products | |
| CN107657218B (en) | Face recognition method and related product | |
| CN107590461B (en) | Face recognition method and related products | |
| CN107633499B (en) | Image processing method and related product | |
| CN107862265A (en) | Image processing method and related product | |
| CN107832675A (en) | photographing processing method and related product | |
| CN107423699A (en) | Liveness detection method and related products | |
| CN107403147A (en) | Living iris detection method and Related product | |
| CN107633235B (en) | Unlocking control method and related product | |
| CN107480488B (en) | Unlocking control method and related product | |
| CN107613550B (en) | Unlock control method and related products | |
| CN107679481A (en) | Solve lock control method and Related product | |
| CN108345848A (en) | User gaze direction identification method and related product | |
| CN107451455A (en) | Unlock control method and related products | |
| CN107967129A (en) | Display control method and related product | |
| CN107862266A (en) | Image processing method and related product | |
| CN107734129A (en) | Unlock control method and related products | |
| CN107451454A (en) | Solve lock control method and Related product | |
| CN108108137B (en) | Display control method and related product | |
| CN107368791A (en) | Iris living body detection method and related products | |
| CN108121583B (en) | Screen capturing method and related product |
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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180202 |