CN107832598A - Solve lock control method and Related product - Google Patents
Solve lock control method and Related product Download PDFInfo
- Publication number
- CN107832598A CN107832598A CN201710969974.4A CN201710969974A CN107832598A CN 107832598 A CN107832598 A CN 107832598A CN 201710969974 A CN201710969974 A CN 201710969974A CN 107832598 A CN107832598 A CN 107832598A
- Authority
- CN
- China
- Prior art keywords
- vivo detection
- face
- living body
- mobile terminal
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
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
- G06V40/166—Detection; Localisation; Normalisation using acquisition arrangements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2133—Verifying human interaction, e.g., Captcha
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Multimedia (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
- Image Analysis (AREA)
Abstract
本发明实施例公开了一种解锁控制方法及相关产品,其中方法包括:获取目标人脸的预览图像和移动终端的当前位置;在所述当前位置属于预设安全位置集时,从预设的N个活体检测维度中选取与所述当前位置对应的M个活体检测维度,所述N为大于1的整数,所述M为小于所述N的正整数;根据所述M个活体检测维度对所述预览图像中的目标人脸进行活体检测,得到检测结果;在所述检测结果为活体时,对所述目标人脸进行人脸识别,并在人脸识别通过时执行解锁操作。采用本发明,可保证移动终端的安全性,并缩短活体检测的验证时长。
The embodiment of the present invention discloses an unlocking control method and related products, wherein the method includes: acquiring the preview image of the target face and the current location of the mobile terminal; when the current location belongs to the preset security location set, from the preset Select M living body detection dimensions corresponding to the current position from the N living body detection dimensions, the N is an integer greater than 1, and the M is a positive integer smaller than the N; according to the M living body detection dimensions Liveness detection is performed on the target face in the preview image to obtain a detection result; when the detection result is a living body, face recognition is performed on the target face, and an unlocking operation is performed when the face recognition passes. By adopting the invention, the security of the mobile terminal can be guaranteed, and the verification time of living body detection can be shortened.
Description
技术领域technical field
本发明涉及移动终端技术领域,主要涉及了一种解锁控制方法及相关产品。The invention relates to the technical field of mobile terminals, and mainly relates to an unlocking control method and related products.
背景技术Background technique
随着移动终端技术的不断发展,手机、计算机、平板等移动终端的使用越来越普及,且允许采用人脸识别方法进行解锁。为了避免采用照片、视频等二维伪造人脸图像的方法完成人脸识别进行解锁操作,采用活体检测的方法提高移动终端的安全性。然而,活体检测的时间往往比较久,导致延长了整个解锁时长,用户体验差。With the continuous development of mobile terminal technology, the use of mobile terminals such as mobile phones, computers, and tablets is becoming more and more popular, and face recognition methods are allowed to be used for unlocking. In order to avoid the use of two-dimensional forged face images such as photos and videos to complete face recognition for unlocking operations, the method of liveness detection is used to improve the security of mobile terminals. However, the time for liveness detection is often relatively long, resulting in a prolonged unlocking time and poor user experience.
发明内容Contents of the invention
本发明实施例提供了一种解锁控制方法及相关产品,可以保证移动终端的安全性,并缩短活体检测的验证时长。Embodiments of the present invention provide an unlocking control method and related products, which can ensure the safety of mobile terminals and shorten the verification time of live body detection.
第一方面,本发明实施例提供一种解锁控制方法,包括:In a first aspect, an embodiment of the present invention provides an unlocking control method, including:
获取目标人脸的预览图像和移动终端的当前位置;Obtain the preview image of the target face and the current location of the mobile terminal;
在所述当前位置属于预设安全位置集时,从预设的N个活体检测维度中选取与所述当前位置对应的M个活体检测维度,所述N为大于1的整数,所述M为小于所述N的正整数;When the current position belongs to the preset safe position set, M living body detection dimensions corresponding to the current position are selected from the preset N living body detection dimensions, where N is an integer greater than 1, and M is a positive integer less than said N;
根据所述M个活体检测维度对所述预览图像中的目标人脸进行活体检测,得到检测结果;Performing liveness detection on the target face in the preview image according to the M liveness detection dimensions to obtain a detection result;
在所述检测结果为活体时,对所述目标人脸进行人脸识别,并在人脸识别通过时执行解锁操作。When the detection result is a living body, face recognition is performed on the target face, and an unlocking operation is performed when the face recognition passes.
第二方面,本发明实施例提供一种移动终端,包括处理器、与所述处理器连接的摄像头和存储器,其中:In a second aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a camera connected to the processor, and a memory, wherein:
所述存储器,用于存储N个活体检测维度,所述N为大于1的整数;The memory is used to store N living body detection dimensions, and the N is an integer greater than 1;
所述摄像头,用于采集预览图像;The camera is used to collect preview images;
所述处理器,用于获取所述预览图像和所述移动终端的当前位置;在所述当前位置属于预设安全位置集时,从所述N个活体检测维度中选取与所述当前位置对应的M个活体检测维度;根据所述M个活体检测维度对所述预览图像中的目标人脸进行活体检测得到检测结果,所述M为小于所述N的正整数;在所述检测结果为活体时,对所述目标人脸进行人脸识别,并在人脸识别通过时执行解锁操作。The processor is configured to acquire the preview image and the current location of the mobile terminal; when the current location belongs to a preset safe location set, select a location corresponding to the current location from the N living body detection dimensions M liveness detection dimensions; according to the M liveness detection dimensions, the target face in the preview image is carried out liveness detection to obtain a detection result, and the M is a positive integer less than the N; the detection result is When the person is alive, face recognition is performed on the target face, and an unlocking operation is performed when the face recognition passes.
第三方面,本发明实施例提供一种解锁控制装置,包括:In a third aspect, an embodiment of the present invention provides an unlocking control device, including:
获取单元,用于获取目标人脸的预览图像和移动终端的当前位置;An acquisition unit, configured to acquire the preview image of the target face and the current position of the mobile terminal;
选取单元,用于在所述当前位置属于预设安全位置集时,从预设的N个活体检测维度中选取与所述当前位置对应的M个活体检测维度,所述N为大于1的整数,所述M为小于所述N的正整数;A selection unit, configured to select M living body detection dimensions corresponding to the current position from preset N living body detection dimensions when the current position belongs to a preset safe position set, where N is an integer greater than 1 , the M is a positive integer smaller than the N;
检测单元,用于根据所述M个活体检测维度对所述预览图像中的目标人脸进行活体检测,得到检测结果;A detection unit, configured to perform liveness detection on the target face in the preview image according to the M liveness detection dimensions, to obtain a detection result;
识别单元,用于在所述检测结果为活体时,对所述目标人脸进行人脸识别;A recognition unit, configured to perform face recognition on the target face when the detection result is a living body;
解锁单元,用于在人脸识别通过时执行解锁操作。The unlocking unit is configured to perform an unlocking operation when the face recognition is passed.
第四方面,本发明实施例提供了另一种解锁控制方法,应用于包括处理器、与所述处理器连接的摄像头和存储器的移动终端,其中:In a fourth aspect, an embodiment of the present invention provides another unlocking control method, which is applied to a mobile terminal including a processor, a camera connected to the processor, and a memory, wherein:
所述存储器存储N个活体检测维度,所述N为大于1的整数;The memory stores N living body detection dimensions, and the N is an integer greater than 1;
所述摄像头采集预览图像;The camera captures a preview image;
所述处理器获取所述预览图像和所述移动终端的当前位置;在所述当前位置属于预设安全位置集时,从所述N个活体检测维度中选取与所述当前位置对应的M个活体检测维度;根据所述M个活体检测维度对所述预览图像中的目标人脸进行活体检测得到检测结果,所述M为小于所述N的正整数;在所述检测结果为活体时,对所述目标人脸进行人脸识别,并在人脸识别通过时执行解锁操作。The processor obtains the preview image and the current location of the mobile terminal; when the current location belongs to a preset safe location set, selects M corresponding to the current location from the N living body detection dimensions Living body detection dimension; according to the M living body detection dimensions, live detection is performed on the target face in the preview image to obtain a detection result, and the M is a positive integer smaller than the N; when the detection result is a living body, Face recognition is performed on the target face, and an unlocking operation is performed when the face recognition passes.
第五方面,本发明实施例提供另一种移动终端,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,所述程序包括用于如第一方面中所描述的部分或全部步骤的指令。In a fifth aspect, an embodiment of the present invention provides another mobile terminal, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are configured by the above executed by a processor, the program includes instructions for some or all of the steps described in the first aspect.
第六方面,本发明实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储计算机程序,其中,所述计算机程序使得计算机执行如本发明实施例第一方面中所描述的部分或全部步骤。In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program enables a computer to execute the computer program described in the first aspect of the embodiment of the present invention. Some or all of the steps described.
第七方面,本发明实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本发明实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。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 first aspect of the invention embodiment. The computer program product may be a software installation package.
实施本发明实施例,将具有如下有益效果:Implementing the embodiment of the present invention will have the following beneficial effects:
采用了上述的解锁控制方法及相关产品之后,在移动终端的当前位置属于预设安全位置集时,从预设的N个活体检测维度中选取与当前位置对应的M个活体检测维度,并根据M个活体检测维度对获取的预览图像中的目标人脸进行活体检测。当活体检测得到的检测结果为活体时,对目标人脸进行人脸识别,并在人脸识别通过时执行解锁操作。也就是说,根据移动终端的当前位置选取的活体检测维度进行活体检测,保证移动终端的安全性,并提高了移动终端进行解锁控制的灵活性。且减少了活体检测维度,可缩短活体检测的验证时长,便于提高解锁速度。After adopting the above-mentioned unlocking control method and related products, when the current location of the mobile terminal belongs to the preset safe location set, M living detection dimensions corresponding to the current location are selected from the preset N living detection dimensions, and according to M liveness detection dimensions perform liveness detection on the target face in the acquired preview image. When the detection result obtained by the living body detection is a living body, face recognition is performed on the target face, and an unlocking operation is performed when the face recognition passes. That is to say, the living body detection is performed according to the living body detection dimension selected according to the current position of the mobile terminal, so as to ensure the safety of the mobile terminal and improve the flexibility of unlocking control of the mobile terminal. In addition, the dimension of living body detection is reduced, which can shorten the verification time of living body detection and facilitate the improvement of unlocking speed.
附图说明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.
其中:in:
图1为本发明实施例提供的一种解锁控制方法的流程示意图;FIG. 1 is a schematic flowchart of an unlocking control method provided by an embodiment of the present invention;
图2为本发明实施例提供的一种解锁控制装置的结构示意图;Fig. 2 is a schematic structural diagram of an unlocking control device provided by an embodiment of the present invention;
图2A为本发明实施例提供的一种选取单元的结构示意图;FIG. 2A is a schematic structural diagram of a selection unit provided by an embodiment of the present invention;
图2B为本发明实施例提供的一种检测单元的结构示意图;FIG. 2B is a schematic structural diagram of a detection unit provided by an embodiment of the present invention;
图2C为本发明实施例提供的一种识别单元的结构示意图;FIG. 2C is a schematic structural diagram of an identification unit provided by an embodiment of the present invention;
图3为本发明实施例提供的一种移动终端的结构示意图;FIG. 3 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention;
图4为本发明实施例提供的另一种解锁控制方法的流程示意图;FIG. 4 is a schematic flowchart of another unlocking control method provided by an embodiment of the present invention;
图5为本发明实施例提供的另一种移动终端的结构示意图。FIG. 5 is a schematic structural diagram of another mobile terminal provided by 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.
随着人脸识别技术日趋成熟,商业化应用愈加广泛,然而人脸极易用照片、视频等方式进行复制,因此对合法用户人脸的假冒是人脸识别与认证系统安全的重要威胁。目前,常用的人脸活体检测包括基于动态视频的动作指令活体检测、近红外人脸活体检测与3D人脸活体检测。With the maturity of face recognition technology, commercial applications are becoming more and more extensive. However, faces are very easy to copy by means of photos, videos, etc. Therefore, counterfeiting of legitimate user faces is an important threat to the security of face recognition and authentication systems. At present, the commonly used face liveness detection includes motion command liveness detection based on dynamic video, near-infrared face liveness detection and 3D face liveness detection.
本发明实施例所涉及的活体检测维度不做限定,可以是边框、光的反射或画质等,在出现明显边框、光的反射异常或画质很差时,认为预览图像中的目标人脸为非活体。The living body detection dimensions involved in the embodiments of the present invention are not limited, and may be frame, light reflection, or image quality. is non-living.
本发明实施例提供了一种解锁控制方法及相关产品,可以保证移动终端的安全性,并缩短活体检测的验证时长。下面结合附图对本发明实施例进行介绍。Embodiments of the present invention provide an unlocking control method and related products, which can ensure the safety of mobile terminals and shorten the verification time of live body detection. Embodiments of the present invention will be described below in conjunction with the accompanying drawings.
请参阅图1,图1是本发明实施例提供了一种解锁控制方法的流程示意图。如图1所示,上述解锁控制方法包括:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of an unlocking control method provided by an embodiment of the present invention. As shown in Figure 1, the above-mentioned unlocking control method includes:
101:获取目标人脸的预览图像和移动终端的当前位置。101: Obtain a preview image of the target face and the current location of the mobile terminal.
当启动人脸识别时,摄像头或其他图像采集设备采集目标人脸的预览图像,本申请对于获取的预览图像的形式不作限定,可以是采集过程中的某一张图像,也可以是由多张连续图像组成的动态图像。When face recognition is started, the camera or other image acquisition equipment captures the preview image of the target face. This application does not limit the form of the acquired preview image. It can be a certain image in the acquisition process, or it can be composed of multiple images. A dynamic image composed of consecutive images.
在本发明实施例中,对于获取移动终端的当前位置的方法也不作限定,可以通过移动终端支持的全球定位系统(Global Positioning System,GPS)功能或位置服务,在移动终端开启GPS或调用位置服务之后获取移动终端的当前位置;也可以通过无线网络、蓝牙或其他红外设备等无线通讯网络获取当前位置,由于上述无线通讯网络只能在有限区域内进行连接,因此可通过无线通讯网络的地址或域名获取移动终端的当前位置;还可以根据预览图像中的标志物体或者借助移动终端的应用程序中调用的位置信息获取当前位置。其中,标志物体可以是路标、路牌、公交站牌、商场、地标(火车站、纪念碑等)等等;上述应用程序可以是导航应用、公交车查询应用、共享单车应用、天气应用、外卖应用等等。In the embodiment of the present invention, the method for obtaining the current location of the mobile terminal is not limited, and the GPS function or the location service may be invoked on the mobile terminal through the Global Positioning System (Global Positioning System, GPS) function or location service supported by the mobile terminal. Then obtain the current location of the mobile terminal; you can also obtain the current location through wireless communication networks such as wireless networks, Bluetooth or other infrared devices. Since the above wireless communication networks can only be connected within a limited area, you can use the address of the wireless communication network or The domain name obtains the current location of the mobile terminal; the current location can also be obtained according to the symbol object in the preview image or the location information called by the application program of the mobile terminal. Among them, the sign objects can be road signs, road signs, bus stop signs, shopping malls, landmarks (railway stations, monuments, etc.), etc.; the above-mentioned applications can be navigation applications, bus query applications, shared bicycle applications, weather applications, takeaway applications, etc. Wait.
102:在当前位置属于预设安全位置集时,从预设的N个活体检测维度中选取与当前位置对应的M个活体检测维度。102: When the current location belongs to the preset safe location set, select M living body detection dimensions corresponding to the current location from the preset N living body detection dimensions.
其中,预设安全位置集可包括移动终端的历史位置记录中频率大于预设阈值对应的位置、用户输入设置的安全位置,或者根据上述频率选取多个参考位置,用户从多个参考位置筛选的位置等等。Wherein, the preset safe location set may include the location corresponding to the frequency greater than the preset threshold in the historical location record of the mobile terminal, the safe location set by the user input, or multiple reference locations selected according to the above frequency, and the user selects from multiple reference locations location etc.
M为小于N的正整数,也就是说,在当前位置属于预设安全位置集时,可从预设的N个活体检测维度中选取与当前位置对应的M个活体检测维度,保证移动终端的安全性,并提高了移动终端进行解锁控制的灵活性。且减少了活体检测维度,可缩短活体检测的验证时长,便于提高解锁速度。M is a positive integer less than N, that is to say, when the current location belongs to the preset safe location set, M living detection dimensions corresponding to the current location can be selected from the preset N living detection dimensions to ensure the security of the mobile terminal. Security, and improve the flexibility of mobile terminal unlocking control. In addition, the dimension of living body detection is reduced, which can shorten the verification time of living body detection and facilitate the improvement of unlocking speed.
在本发明实施例中,对于如何选取M个活体检测维度也不做限定。可选的,获取所述当前位置的目标安全等级;从所述N个活体检测维度中选取与所述目标安全等级对应的所述M个活体检测维度。In the embodiment of the present invention, there is no limitation on how to select the M living body detection dimensions. Optionally, acquire the target security level of the current location; select the M living body detection dimensions corresponding to the target security level from the N living body detection dimensions.
其中,安全等级可根据移动终端的历史位置记录进行计算得到每个位置的频率和该位置的安全系数进行确定,即预先设置频率和安全系数对应的权值,通过加权计算得到对应的安全值,根据安全值确定安全等级。对于安全等级的具体描述形式不作限定,可以为数字,其中数字越大表示安全等级越高。Among them, the security level can be determined according to the historical location record of the mobile terminal to obtain the frequency of each location and the safety factor of the location, that is, the weight corresponding to the frequency and the safety factor is preset, and the corresponding security value is obtained through weighted calculation. Determine the security level based on the security value. The specific description form of the security level is not limited, and may be a number, wherein a larger number indicates a higher security level.
例如:假设王小二的历史位置记录中家里位置、公司位置的频率分为0.6、0.5,家里位置的安全系数为0.9,而由于公司位置为公共场所,则公司位置的安全系数为0.4。若频率和安全系数的预设权值分为0.5、0.5,则家里位置和公司位置对应的安全值为0.75、0.45。假设安全值与对应的安全等级的映射关系如表1所示,则公司位置的安全等级为4,家里位置的安全等级为3,当数字越大安全等级越高时,公司位置的安全等级小于家里位置的安全等级。For example: Assuming that Wang Xiaoer's historical location record has a frequency of home location and company location of 0.6 and 0.5, the safety factor of the home location is 0.9, and since the company location is a public place, the safety factor of the company location is 0.4. If the preset weights of frequency and safety factor are divided into 0.5 and 0.5, then the corresponding safety values of home location and company location are 0.75 and 0.45. Assuming that the mapping relationship between the security value and the corresponding security level is shown in Table 1, the security level of the company location is 4, and the security level of the home location is 3. When the number is larger, the security level is higher, and the security level of the company location is less than The security level of the home location.
表1Table 1
每一安全等级可与活体检测维度进行关联,也就是说,确定了其安全等级便可确定活体检测维度,从而提高了确定活体检测维度的速度,且针对安全等级进行活体检测,保证移动终端的安全性,并提高了移动终端进行解锁控制的灵活性。Each security level can be associated with the living body detection dimension, that is to say, the living body detection dimension can be determined after its security level is determined, thereby improving the speed of determining the living body detection dimension, and performing liveness detection for the security level to ensure the security of the mobile terminal Security, and improve the flexibility of mobile terminal unlocking control.
举例来说,假设移动终端中预设的N种活体检测维度分别为边框、光的反射和画质。如表2所示的安全等级和活体检测维度之间的映射关系,若移动终端的当前位置为家里位置,如表1所示安全等级为4,活体检测维度为光的反射和画质,减少了边框。For example, it is assumed that the N living body detection dimensions preset in the mobile terminal are frame, light reflection and image quality respectively. As shown in Table 2, the mapping relationship between the security level and the living body detection dimension, if the current location of the mobile terminal is the home location, as shown in Table 1, the security level is 4, and the living body detection dimension is light reflection and image quality, reducing up the border.
表2Table 2
103:根据M个活体检测维度对预览图像中的目标人脸进行活体检测得到检测结果。103: Perform liveness detection on the target face in the preview image according to the M liveness detection dimensions to obtain a detection result.
对于如何根据M个活体检测维度进行活体检测也不做限定,可是每个活体检测维度对应的检测值均大于活体阈值,确认检测结果为活体,也可以每个检测值和预设权值的加权值大于活体阈值时确认检测结果为活体。There are no restrictions on how to perform liveness detection based on the M livingness detection dimensions, but the detection value corresponding to each livingness detection dimension is greater than the livingness threshold, and the detection result is confirmed to be livingness, and each detection value and the weight of the preset weight can also be used. When the value is greater than the living threshold, it is confirmed that the detection result is living.
可选的,获取所述M个活体检测维度中每一活体检测维度的检测值,得到M个检测值;根据所述M个检测值和所述M个活体检测维度中每一活体检测维度对应的预设权值确定所述目标人脸的活体评价值;在所述活体评价值大于活体阈值时,确认所述检测结果为活体。Optionally, the detection value of each living body detection dimension in the M living body detection dimensions is obtained to obtain M detection values; according to the correspondence between the M detection values and each living body detection dimension in the M living body detection dimensions The preset weight of the target face determines the liveness evaluation value of the target face; when the liveness evaluation value is greater than the liveness threshold, it is confirmed that the detection result is a liveness.
其中,每一活体检测维度对应一个预设权值,针对预览图像中的目标人脸每一活体检测维度对应一个检测值,通过预设权值和检测值的加权之和得到目标人脸的活体评价值,也可避免某一活体检测维度的检测值过低导致验证失败的技术问题,可提高活体检测的灵活性。Wherein, each living body detection dimension corresponds to a preset weight, and each living body detection dimension corresponds to a detection value for the target face in the preview image, and the living body of the target face is obtained by the weighted sum of the preset weight and the detection value. The evaluation value can also avoid the technical problem that the detection value of a certain living body detection dimension is too low, which leads to the failure of verification, and can improve the flexibility of living body detection.
举例来说,假设活体阈值为0.8,M个活体检测维度为边框、光的反射和画质,其中边框的预设权值为0.3、光的反射的预设权值为0.4、画质的预设权值为0.3。根据边框、光的反射和画质三个活体检测维度进行活体检测,当边框、光的反射和画质三个活体检测维度对应的检测值分别为0.9、0.7和0.9,则活体评价值为0.3*0.9+0.4*0.7+0.3*0.9=0.82大于活体阈值,确认检测结果为活体;当当边框、光的反射和画质三个活体检测维度对应的检测值分别为0.9、0.7和0.8,则活体评价值为0.3*0.9+0.4*0.7+0.3*0.8=0.79小于活体阈值,确认检测结果为非活体。也就是说,不管每一个活体检测维度的检测值是否大于活体阈值,当活体评价值大于活体阈值时,才确认检测结果为活体,可提高活体检测的灵活性。For example, suppose the living body threshold is 0.8, and the M living body detection dimensions are frame, light reflection and image quality, where the preset weight of frame is 0.3, the preset weight of light reflection is 0.4, and the preset weight of image quality is Set the weight to 0.3. Liveness detection is performed according to the three living body detection dimensions of frame, light reflection and image quality. When the detection values corresponding to the three living body detection dimensions of frame, light reflection and image quality are 0.9, 0.7 and 0.9 respectively, the living body evaluation value is 0.3 *0.9+0.4*0.7+0.3*0.9=0.82 is greater than the living body threshold, confirming that the detection result is living; the detection values corresponding to the three living body detection dimensions of Dangdang frame, light reflection and image quality are 0.9, 0.7 and 0.8 respectively, indicating that the living body The evaluation value of 0.3*0.9+0.4*0.7+0.3*0.8=0.79 is less than the living body threshold, and the detection result is confirmed as non-living body. That is to say, regardless of whether the detection value of each living body detection dimension is greater than the living body threshold, when the living body evaluation value is greater than the living body threshold, the detection result is confirmed as living, which can improve the flexibility of living body detection.
可选的,获取所述移动终端的场景参数和环境参数;根据所述场景参数和所述环境参数确定所述M个活体检测维度中每一活体检测维度对应的预设权值和所述活体阈值。Optionally, acquire scene parameters and environmental parameters of the mobile terminal; determine a preset weight corresponding to each living body detection dimension in the M living body detection dimensions and the living body according to the scene parameters and the environmental parameters threshold.
其中,场景参数可包括以下至少一种:应用类型、占用网速、传输数据和数据类型等。场景参数对应的应用场景可以是移动终端的屏幕解锁、支付解锁和登录解锁等解锁操作,本发明实施例对于具体的场景参数也不作限定。不同的场景参数对于活体检测维度的安全性要求不同,例如:支付解锁时安全性要求更高,则需要提高活体检测的活体阈值。Wherein, the scene parameter may include at least one of the following: application type, occupied network speed, transmission data and data type, and the like. The application scenario corresponding to the scenario parameter may be unlocking operations such as screen unlocking, payment unlocking, and login unlocking of the mobile terminal, and the embodiment of the present invention does not limit specific scenario parameters. Different scene parameters have different security requirements for the liveness detection dimension. For example, if the security requirements are higher when payment is unlocked, the liveness threshold for liveness detection needs to be increased.
环境参数可包括以下至少一种:光线强度、温度、湿度、电磁干扰、由接近传感器检测到的距离值或红外线变化量等,本发明实施例中对于具体的环境参数不作限定,不同的环境参数对于活体检测维度的检测结果具有一定的影响。例如,针对光的反射对于光线强度要求较高。Environmental parameters may include at least one of the following: light intensity, temperature, humidity, electromagnetic interference, distance value or infrared variation detected by proximity sensors, etc., the specific environmental parameters are not limited in the embodiment of the present invention, different environmental parameters It has a certain impact on the detection results of the living body detection dimension. For example, the reflection of light requires high light intensity.
通过场景参数和环境参数确定M个活体检测维度中每一活体检测维度对应的预设权值和活体阈值,可保证移动终端的安全性,并提高活体评价值的准确性。The preset weight and living body threshold corresponding to each living body detection dimension in the M living body detection dimensions are determined by scene parameters and environmental parameters, which can ensure the safety of the mobile terminal and improve the accuracy of the living body evaluation value.
104:在检测结果为活体时,对目标人脸进行人脸识别,并在人脸识别通过时执行解锁操作。104: When the detection result is a living body, perform face recognition on the target face, and perform an unlocking operation when the face recognition passes.
当检测结果为活体时,即预览图像中的目标人脸为活体,可进一步进行人脸识别。对于如何根据预览图像中的目标人脸进行人脸识别的方法不作限定,可以通过基于动作指令活体检测中设置的预设角度、预设动作或预设表情等,提取对应的预览图像中的目标人脸进行人脸识别;也可以选取预览图像中连续的若干张图像中最高评价值对应的目标图像,然后提取上述目标图像中的人脸图像进行人脸识别。When the detection result is a living body, that is, the target face in the preview image is a living body, further face recognition can be performed. There is no limitation on how to perform face recognition based on the target face in the preview image, and the target in the corresponding preview image can be extracted based on the preset angle, preset action or preset expression set in the action command liveness detection face recognition; or select the target image corresponding to the highest evaluation value among several consecutive images in the preview image, and then extract the face image in the target image for face recognition.
可选的,在所述预览图像包括多张目标图像时,对所述预览图像进行拆分,得到所述多张目标图像;对所述多张目标图像中每张目标图像进行图像分割,得到多张人脸图像;获取所述多张人脸图像中每张人脸图像对应的图像评价值,得到多个图像评价值;获取所述多个图像评价值中最高评价值对应的目标人脸图像;对所述目标人脸图像进行人脸识别。Optionally, when the preview image includes multiple target images, split the preview image to obtain the multiple target images; perform image segmentation on each target image in the multiple target images to obtain A plurality of face images; obtain the image evaluation value corresponding to each face image in the plurality of face images, and obtain a plurality of image evaluation values; obtain the target face corresponding to the highest evaluation value in the plurality of image evaluation values image; performing face recognition on the target face image.
其中,图像评价值可为对于人脸图像的整体评价值、焦点评价值、角度评价值、表情评价值和/或特征点完整度中的一种或多种评价值。获取图像评价值的计算公式可以为:Wherein, the image evaluation value may be one or more evaluation values of the overall evaluation value, focus evaluation value, angle evaluation value, expression evaluation value and/or feature point integrity of the face image. The calculation formula for obtaining the image evaluation value can be:
EV=b1×ev1+b2×ev2+b3×ev3+…+bn×evn (1)EV=b 1 ×ev 1 +b 2 ×ev 2 +b 3 ×ev 3 +...+b n ×ev n (1)
式(1)中,EV为图像评价值,ev1、ev2、ev3和evn为不同的评价值,b1、b2、b3和bn分别为ev1、ev2、ev3和evn对应的权重。其中,b1(i=1,2,3,…,n)的具体取值可根据评价值的影响参数设置或采用推荐设置,b1+b2+b3+…+bn=1。In formula (1), EV is the image evaluation value, ev 1 , ev 2 , ev 3 and ev n are different evaluation values, b 1 , b 2 , b 3 and b n are ev 1 , ev 2 , ev 3 respectively The weight corresponding to ev n . Wherein, the specific value of b 1 ( i = 1 , 2 , 3 , .
可以理解,对预览图像进行拆分得到多张目标图像,并提取多张目标图像中的人脸图像得到多张人脸图像,将多张人脸图像中图像评价值最高的人脸图像作为目标人脸图像,对目标人脸图像进行人脸识别。也就是说,选取最高评价值对应的目标人脸图像进行人脸识别,可提高人脸识别的准确性。It can be understood that the preview image is split to obtain multiple target images, and the face images in the multiple target images are extracted to obtain multiple face images, and the face image with the highest image evaluation value among the multiple face images is used as the target Face image, face recognition is performed on the target face image. That is to say, selecting the target face image corresponding to the highest evaluation value for face recognition can improve the accuracy of face recognition.
在如图1所示的解锁控制方法中,在移动终端的当前位置属于预设安全位置集时,从预设的N个活体检测维度中选取与当前位置对应的M个活体检测维度,并根据M个活体检测维度对获取的预览图像中的目标人脸进行活体检测。当活体检测得到的检测结果为活体时,对目标人脸进行人脸识别,并在人脸识别通过时执行解锁操作。也就是说,根据移动终端的当前位置选取的活体检测维度进行活体检测,保证移动终端的安全性,并提高了移动终端进行解锁控制的灵活性。且减少了活体检测维度,可缩短活体检测的验证时长,便于提高解锁速度。In the unlocking control method as shown in Figure 1, when the current location of the mobile terminal belongs to the preset safe location set, M living detection dimensions corresponding to the current position are selected from the preset N living detection dimensions, and according to M liveness detection dimensions perform liveness detection on the target face in the acquired preview image. When the detection result obtained by the living body detection is a living body, face recognition is performed on the target face, and an unlocking operation is performed when the face recognition passes. That is to say, the living body detection is performed according to the living body detection dimension selected according to the current position of the mobile terminal, so as to ensure the safety of the mobile terminal and improve the flexibility of unlocking control of the mobile terminal. In addition, the dimension of living body detection is reduced, which can shorten the verification time of living body detection and facilitate the improvement of unlocking speed.
与图1的实施例一致,请参照图2,图2是本发明实施例提供的一种解锁控制装置。如图2所示,该解锁控制装置200包括:Consistent with the embodiment in FIG. 1 , please refer to FIG. 2 . FIG. 2 is an unlocking control device provided by an embodiment of the present invention. As shown in Figure 2, the unlocking control device 200 includes:
获取单元201,用于获取目标人脸的预览图像和移动终端的当前位置。The obtaining unit 201 is configured to obtain a preview image of a target face and a current location of the mobile terminal.
选取单元202,用于在所述当前位置属于预设安全位置集时,从预设的N个活体检测维度中选取与所述当前位置对应的M个活体检测维度,所述N为大于1的整数,所述M为小于所述N的正整数。The selecting unit 202 is configured to select M living body detection dimensions corresponding to the current position from preset N living body detection dimensions when the current position belongs to a preset safe position set, where N is greater than 1 Integer, the M is a positive integer smaller than the N.
检测单元203,用于根据所述M个活体检测维度对所述预览图像中的目标人脸进行活体检测,得到检测结果。The detecting unit 203 is configured to perform liveness detection on the target face in the preview image according to the M livingness detection dimensions, and obtain a detection result.
识别单元204,用于在所述检测结果为活体时,对所述目标人脸进行人脸识别。The recognition unit 204 is configured to perform face recognition on the target face when the detection result is a living body.
解锁单元205,用于在人脸识别通过时执行解锁操作。The unlocking unit 205 is configured to perform an unlocking operation when the face recognition is passed.
在一个可能的示例中,如图2A所示,所述选取单元202包括:In a possible example, as shown in FIG. 2A, the selecting unit 202 includes:
第一获取模块2021,用于获取所述当前位置的目标安全等级;The first acquiring module 2021 is configured to acquire the target security level of the current location;
选取模块2022,从所述N个活体检测维度中选取与所述目标安全等级对应的所述M个活体检测维度。The selecting module 2022 selects the M living detection dimensions corresponding to the target security level from the N living detection dimensions.
在一个可能的示例中,如图2B所示,所述检测单元203包括:In a possible example, as shown in FIG. 2B, the detection unit 203 includes:
第二获取模块2031,用于获取所述M个活体检测维度中每一活体检测维度的检测值,得到M个检测值;The second acquiring module 2031 is configured to acquire the detection value of each living body detection dimension in the M living body detection dimensions, and obtain M detection values;
确定模块2032,用于根据所述M个检测值和所述M个活体检测维度中每一活体检测维度对应的预设权值确定所述目标人脸的活体评价值;在所述活体评价值大于活体阈值时,确认所述检测结果为活体。A determining module 2032, configured to determine the liveness evaluation value of the target face according to the M detection values and the preset weight corresponding to each living body detection dimension in the M living body detection dimensions; in the living body evaluation value When it is greater than the living body threshold, it is confirmed that the detection result is a living body.
在一个可能的示例中,所述第二获取模块2031,还用于获取所述移动终端的场景参数和环境参数;In a possible example, the second acquiring module 2031 is also configured to acquire scene parameters and environment parameters of the mobile terminal;
所述确定模块2032,还用于根据所述场景参数和所述环境参数确定所述M个活体检测维度中每一活体检测维度对应的预设权值和所述活体阈值。The determining module 2032 is further configured to determine a preset weight corresponding to each living body detection dimension in the M living body detection dimensions and the living body threshold according to the scene parameters and the environmental parameters.
在一个可能的示例中,如图2C所示,所述识别单元204包括:In a possible example, as shown in FIG. 2C, the identifying unit 204 includes:
拆分模块2041,用于在所述预览图像包括多张目标图像时,对所述预览图像进行拆分,得到所述多张目标图像;A splitting module 2041, configured to split the preview image to obtain the multiple target images when the preview image includes multiple target images;
分割模块2042,用于对所述多张目标图像中每张目标图像进行图像分割,得到多张人脸图像;A segmentation module 2042, configured to perform image segmentation on each target image in the multiple target images to obtain multiple face images;
第三获取模块2043,用于获取所述多张人脸图像中每张人脸图像对应的图像评价值,得到多个图像评价值;获取所述多个图像评价值中最高评价值对应的目标人脸图像;The third obtaining module 2043 is used to obtain the image evaluation value corresponding to each face image in the plurality of face images to obtain a plurality of image evaluation values; obtain the target corresponding to the highest evaluation value in the plurality of image evaluation values face image;
识别模块2044,用于对所述目标人脸图像进行人脸识别。The recognition module 2044 is configured to perform face recognition on the target face image.
在如图2所示的解锁控制装置中,在移动终端的当前位置属于预设安全位置集时,从预设的N个活体检测维度中选取与当前位置对应的M个活体检测维度,并根据M个活体检测维度对获取的预览图像中的目标人脸进行活体检测。当活体检测得到的检测结果为活体时,对目标人脸进行人脸识别,并在人脸识别通过时执行解锁操作。也就是说,根据移动终端的当前位置选取的活体检测维度进行活体检测,保证移动终端的安全性,并提高了移动终端进行解锁控制的灵活性。且减少了活体检测维度,可缩短活体检测的验证时长,便于提高解锁速度。In the unlocking control device as shown in FIG. 2, when the current position of the mobile terminal belongs to the preset safe position set, M living body detection dimensions corresponding to the current position are selected from the preset N living body detection dimensions, and according to M liveness detection dimensions perform liveness detection on the target face in the acquired preview image. When the detection result obtained by the living body detection is a living body, face recognition is performed on the target face, and an unlocking operation is performed when the face recognition passes. That is to say, the living body detection is performed according to the living body detection dimension selected according to the current position of the mobile terminal, so as to ensure the safety of the mobile terminal and improve the flexibility of unlocking control of the mobile terminal. In addition, the dimension of liveness detection is reduced, which can shorten the verification time of liveness detection and facilitate the unlocking speed.
可以理解的是,本实施例的解锁控制装置的各程序单元或模块的功能可根据方法实施例中的方法具体实现,其具体实现过程可以参照方法实施例的相关描述,此处不再赘述。It can be understood that the functions of each program unit or module of the unlocking control device in this embodiment can be implemented according to the method in the method embodiment, and the specific implementation process can refer to the relevant description of the method embodiment, and will not be repeated here.
请参阅图3,图3是本发明实施例提供了一种移动终端300的结构示意图。上述移动终端300包括:处理器310、存储器320、摄像头330和环境传感器340,所述处理器310通过总线350连接存储器320、摄像头330和环境传感器340。Please refer to FIG. 3 . FIG. 3 is a schematic structural diagram of a mobile terminal 300 provided by an embodiment of the present invention. The above-mentioned mobile terminal 300 includes: a processor 310 , a memory 320 , a camera 330 and an environment sensor 340 , and the processor 310 is connected to the memory 320 , the camera 330 and the environment sensor 340 through a bus 350 .
本发明实施例对于摄像头的具体形式不作限定,具体可参照移动终端300中配置的摄像头,默认为前置摄像头,还可以后置摄像头或旋转摄像头等。通过多种摄像头进行图像采集,提高了操作的便利性和解锁的灵活性。The embodiment of the present invention does not limit the specific form of the camera. For details, reference may be made to the camera configured in the mobile terminal 300. The default is a front camera, and a rear camera or a rotating camera may also be used. Image acquisition is performed through a variety of cameras, which improves the convenience of operation and the flexibility of unlocking.
基于图3所描述的移动终端300,可执行下述操作:Based on the mobile terminal 300 described in FIG. 3, the following operations can be performed:
在本发明实施例中,存储器320用于存储N个活体检测维度;摄像头330用于采集预览图像。In the embodiment of the present invention, the memory 320 is used to store N living body detection dimensions; the camera 330 is used to collect preview images.
其中,N为大于1的整数。对于本发明实施例中的活体检测维度不做限定,可以是边框、光的反射或画质等,在出现明显边框、光的反射异常或画质很差时,认为预览图像中的目标人脸为非活体。Wherein, N is an integer greater than 1. The living body detection dimension in the embodiment of the present invention is not limited, it can be a frame, light reflection or image quality, etc., when there is an obvious frame, abnormal light reflection or poor image quality, the target face in the preview image is considered is non-living.
当启动人脸识别时,摄像头330或其他图像采集设备对于目标人脸的预览图像,本申请对于获取的预览图像的形式不作限定,可以是采集过程中的某一张图像,也可以是由多张连续图像组成的动态图像。When face recognition is started, the camera 330 or other image acquisition devices will preview the image of the target face. This application does not limit the form of the acquired preview image. It can be a certain image in the acquisition process, or it can be composed of multiple A dynamic image composed of consecutive images.
在本发明实施例中,处理器310用于获取所述预览图像和所述移动终端的当前位置;在所述当前位置属于预设安全位置集时,从所述N个活体检测维度中选取与所述当前位置对应的M个活体检测维度;根据所述M个活体检测维度对所述预览图像中的目标人脸进行活体检测得到检测结果,所述M为小于所述N的正整数;在所述检测结果为活体时,对所述目标人脸进行人脸识别,并在人脸识别通过时执行解锁操作。In the embodiment of the present invention, the processor 310 is configured to obtain the preview image and the current location of the mobile terminal; when the current location belongs to a preset safe location set, select from the N living body detection dimensions The M living body detection dimensions corresponding to the current position; according to the M living body detection dimensions, live body detection is performed on the target face in the preview image to obtain a detection result, and the M is a positive integer smaller than the N; When the detection result is a living body, face recognition is performed on the target face, and an unlocking operation is performed when the face recognition passes.
在本发明实施例中,对于获取移动终端的当前位置的方法也不作限定,可以通过移动终端支持的GPS功能或位置服务,在移动终端开启GPS或调用位置服务之后获取移动终端的当前位置;也可以通过无线网络、蓝牙或其他红外设备等无线通讯网络获取当前位置,由于上述无线通讯网络只能在有限区域内进行连接,因此可通过无线通讯网络的地址或域名获取移动终端的当前位置;还可以根据预览图像中的标志物体或者借助移动终端的应用程序中调用的位置信息获取当前位置。其中,标志物体可以是路标、路牌、公交站牌、商场、地标(火车站、纪念碑等)等等;上述应用程序可以是导航应用、公交车查询应用、共享单车应用、天气应用、外卖应用等等。In the embodiment of the present invention, the method for obtaining the current location of the mobile terminal is not limited, and the current location of the mobile terminal can be obtained after the mobile terminal turns on GPS or calls the location service through the GPS function or location service supported by the mobile terminal; The current location can be obtained through wireless communication networks such as wireless networks, Bluetooth or other infrared devices. Since the above wireless communication networks can only be connected within a limited area, the current location of the mobile terminal can be obtained through the address or domain name of the wireless communication network; The current location can be obtained according to the landmark object in the preview image or the location information invoked in the application program of the mobile terminal. Among them, the sign objects can be road signs, road signs, bus stop signs, shopping malls, landmarks (railway stations, monuments, etc.), etc.; the above-mentioned applications can be navigation applications, bus query applications, shared bicycle applications, weather applications, takeaway applications, etc. Wait.
其中,预设安全位置集可包括移动终端的历史位置记录中频率大于预设阈值对应的位置、用户输入设置的安全位置,或者根据上述频率选取多个参考位置,用户从多个参考位置筛选的位置等等。Wherein, the preset safe location set may include the location corresponding to the frequency greater than the preset threshold in the historical location record of the mobile terminal, the safe location set by the user input, or multiple reference locations selected according to the above frequency, and the user selects from multiple reference locations location etc.
M为小于N的正整数,也就是说,在当前位置属于预设安全位置集时,可从预设的N个活体检测维度中选取与当前位置对应的M个活体检测维度,保证移动终端的安全性,并提高了移动终端进行解锁控制的灵活性。且减少了活体检测维度,可缩短活体检测的验证时长,便于提高解锁速度。M is a positive integer less than N, that is to say, when the current location belongs to the preset safe location set, M living detection dimensions corresponding to the current location can be selected from the preset N living detection dimensions to ensure the security of the mobile terminal. Security, and improve the flexibility of mobile terminal unlocking control. In addition, the dimension of living body detection is reduced, which can shorten the verification time of living body detection and facilitate the improvement of unlocking speed.
在本发明实施例中,对于如何选取M个活体检测维度也不做限定。可选的,在所述处理器310从所述N个活体检测维度中选取与所述当前位置对应的M个活体检测维度方面,所述处理器310具体用于获取所述当前位置的目标安全等级;从所述N个活体检测维度中选取与所述目标安全等级对应的所述M个活体检测维度。In the embodiment of the present invention, there is no limitation on how to select the M living body detection dimensions. Optionally, in the aspect that the processor 310 selects M living body detection dimensions corresponding to the current location from the N living body detection dimensions, the processor 310 is specifically configured to obtain the target security of the current location. Level: selecting the M living body detection dimensions corresponding to the target security level from the N living body detection dimensions.
其中,安全等级可根据移动终端的历史位置记录进行计算得到每个位置的频率和该位置的安全系数进行确定,即预先设置频率和安全系数对应的权值,通过加权计算得到对应的安全值,根据安全值确定安全等级。对于安全等级的具体描述形式不作限定,可以为数字,其中数字越大表示安全等级越高。Among them, the security level can be determined according to the historical location record of the mobile terminal to obtain the frequency of each location and the safety factor of the location, that is, the weight corresponding to the frequency and the safety factor is preset, and the corresponding security value is obtained through weighted calculation. Determine the security level based on the security value. The specific description form of the security level is not limited, and may be a number, wherein a larger number indicates a higher security level.
每一安全等级可与活体检测维度进行关联,也就是说,确定了其安全等级便可确定活体检测维度,从而提高了确定活体检测维度的速度,且针对安全等级进行活体检测,保证移动终端的安全性,并提高了移动终端进行解锁控制的灵活性。Each security level can be associated with the living body detection dimension, that is to say, the living body detection dimension can be determined after its security level is determined, thereby improving the speed of determining the living body detection dimension, and performing liveness detection for the security level to ensure the security of the mobile terminal Security, and improve the flexibility of mobile terminal unlocking control.
对于如何根据M个活体检测维度进行活体检测也不做限定,可是每个活体检测维度对应的检测值均大于活体阈值,确认检测结果为活体,也可以每个检测值和预设权值的加权值大于活体阈值时确认检测结果为活体。There are no restrictions on how to perform liveness detection based on the M livingness detection dimensions, but the detection value corresponding to each livingness detection dimension is greater than the livingness threshold, and the detection result is confirmed to be livingness, and each detection value and the weight of the preset weight can also be used. When the value is greater than the living threshold, it is confirmed that the detection result is living.
可选的,所述存储器320还用于存储所述N个活体检测维度中每一活体检测维度对应的预设权值和活体阈值;在所述处理器310根据所述M个活体检测维度对所述预览图像中的目标人脸进行活体检测得到检测结果方面,所述处理器310具体用于获取所述M个活体检测维度中每一活体检测维度的检测值,得到M个检测值;根据所述M个检测值和所述M个活体检测维度中每一活体检测维度对应的预设权值确定所述目标人脸的活体评价值;在所述活体评价值大于所述活体阈值时,确认所述检测结果为活体。Optionally, the memory 320 is also used to store preset weights and living body thresholds corresponding to each living body detection dimension in the N living body detection dimensions; In terms of liveness detection of the target face in the preview image to obtain the detection result, the processor 310 is specifically configured to obtain the detection value of each of the M livingness detection dimensions to obtain M detection values; according to The M detection values and the preset weights corresponding to each living body detection dimension in the M living body detection dimensions determine the living body evaluation value of the target face; when the living body evaluation value is greater than the living body threshold, Confirm that the test result is a living body.
其中,每一活体检测维度对应一个预设权值,针对预览图像中的目标人脸每一活体检测维度对应一个检测值,通过预设权值和检测值的加权之和得到目标人脸的活体评价值,也可避免某一活体检测维度的检测值过低导致验证失败的技术问题,可提高活体检测的灵活性。Wherein, each living body detection dimension corresponds to a preset weight, and each living body detection dimension corresponds to a detection value for the target face in the preview image, and the living body of the target face is obtained by the weighted sum of the preset weight and the detection value. The evaluation value can also avoid the technical problem that the detection value of a certain living body detection dimension is too low, which leads to the failure of verification, and can improve the flexibility of living body detection.
可选的,所述环境传感器340用于获取所述移动终端的环境参数;所述处理器310还用于获取所述移动终端的场景参数;根据所述场景参数和所述环境参数确定所述M个活体检测维度中每一活体检测维度对应的预设权值和所述活体阈值。Optionally, the environment sensor 340 is used to obtain the environmental parameters of the mobile terminal; the processor 310 is also used to obtain the scene parameters of the mobile terminal; The preset weight corresponding to each living body detection dimension in the M living body detection dimensions and the living body threshold.
其中,场景参数可包括以下至少一种:应用类型、占用网速、传输数据和数据类型等。场景参数对应的应用场景可以是移动终端的屏幕解锁、支付解锁和登录解锁等解锁操作,本发明实施例对于具体的场景参数也不作限定。不同的场景参数对于活体检测维度的安全性要求不同,例如:支付解锁时安全性要求更高,则需要提高活体检测的活体阈值。Wherein, the scene parameter may include at least one of the following: application type, occupied network speed, transmission data and data type, and the like. The application scenario corresponding to the scenario parameter may be unlocking operations such as screen unlocking, payment unlocking, and login unlocking of the mobile terminal, and the embodiment of the present invention does not limit specific scenario parameters. Different scene parameters have different security requirements for the liveness detection dimension. For example, if the security requirements are higher when payment is unlocked, the liveness threshold for liveness detection needs to be increased.
环境参数可包括以下至少一种:光线强度、温度、湿度、电磁干扰、由接近传感器检测到的距离值或红外线变化量等,本发明实施例中对于具体的环境参数不作限定,不同的环境参数对于活体检测维度的检测结果具有一定的影响。例如,针对光的反射对于光线强度要求较高。Environmental parameters may include at least one of the following: light intensity, temperature, humidity, electromagnetic interference, distance value or infrared variation detected by proximity sensors, etc., the specific environmental parameters are not limited in the embodiment of the present invention, different environmental parameters It has a certain impact on the detection results of the living body detection dimension. For example, the reflection of light requires high light intensity.
通过场景参数和环境参数确定M个活体检测维度中每一活体检测维度对应的预设权值和活体阈值,可保证移动终端的安全性,并提高活体评价值的准确性。The preset weight and living body threshold corresponding to each living body detection dimension in the M living body detection dimensions are determined by scene parameters and environmental parameters, which can ensure the safety of the mobile terminal and improve the accuracy of the living body evaluation value.
当检测结果为活体时,即目标人脸为活体,可进一步进行人脸识别。对于如何根据预览图像中的目标人脸进行人脸识别的方法不作限定,可以通过基于动作指令活体检测中设置的预设角度、预设动作或预设表情等,提取对应的预览图像中的目标人脸进行人脸识别;也可以选取预览图像中连续的若干张图像中最高评价值对应的目标图像,然后提取上述目标图像中的人脸图像进行人脸识别。When the detection result is a living body, that is, the target face is a living body, further face recognition can be performed. There is no limitation on how to perform face recognition based on the target face in the preview image, and the target in the corresponding preview image can be extracted based on the preset angle, preset action or preset expression set in the action command liveness detection face recognition; or select the target image corresponding to the highest evaluation value among several consecutive images in the preview image, and then extract the face image in the target image for face recognition.
可选的,在所述处理器310对所述目标人脸进行人脸识别方面,所述处理器310具体用于在所述预览图像包括多张目标图像时,对所述预览图像进行拆分,得到所述多张目标图像;对所述多张目标图像中每张目标图像进行图像分割,得到多张人脸图像;获取所述多张人脸图像中每张人脸图像对应的图像评价值,得到多个图像评价值;获取所述多个图像评价值中最高评价值对应的目标人脸图像;对所述目标人脸图像进行人脸识别。Optionally, in terms of performing face recognition on the target face by the processor 310, the processor 310 is specifically configured to split the preview image when the preview image includes multiple target images , to obtain the multiple target images; perform image segmentation on each target image in the multiple target images to obtain multiple face images; obtain the image evaluation corresponding to each face image in the multiple target images value, obtaining a plurality of image evaluation values; acquiring a target face image corresponding to the highest evaluation value among the plurality of image evaluation values; performing face recognition on the target face image.
其中,图像评价值可为对于人脸图像的整体评价值、焦点评价值、角度评价值、表情评价值和/或特征点完整度中的一种或多种评价值。Wherein, the image evaluation value may be one or more evaluation values of the overall evaluation value, focus evaluation value, angle evaluation value, expression evaluation value and/or feature point integrity of the face image.
可以理解,对预览图像进行拆分得到多张目标图像,并提取多张目标图像中的人脸图像得到多张人脸图像,将多张人脸图像中图像评价值最高的人脸图像作为目标人脸图像,对目标人脸图像进行人脸识别。也就是说,选取最高评价值对应的目标人脸图像进行人脸识别,可提高人脸识别的准确性。It can be understood that the preview image is split to obtain multiple target images, and the face images in the multiple target images are extracted to obtain multiple face images, and the face image with the highest image evaluation value among the multiple face images is used as the target Face image, face recognition is performed on the target face image. That is to say, selecting the target face image corresponding to the highest evaluation value for face recognition can improve the accuracy of face recognition.
在如图3所示的移动终端中,在移动终端的当前位置属于预设安全位置集时,从预设的N个活体检测维度中选取与当前位置对应的M个活体检测维度,并根据M个活体检测维度对获取的预览图像中的目标人脸进行活体检测。当活体检测得到的检测结果为活体时,对目标人脸进行人脸识别,并在人脸识别通过时执行解锁操作。也就是说,根据移动终端的当前位置选取的活体检测维度进行活体检测,保证移动终端的安全性,并提高了移动终端进行解锁控制的灵活性。且减少了活体检测维度,可缩短活体检测的验证时长,便于提高解锁速度。In the mobile terminal shown in Figure 3, when the current location of the mobile terminal belongs to the preset safe location set, M living detection dimensions corresponding to the current location are selected from the preset N living detection dimensions, and according to M Liveness detection is performed on the target face in the obtained preview image. When the detection result obtained by the living body detection is a living body, face recognition is performed on the target face, and an unlocking operation is performed when the face recognition passes. That is to say, the living body detection is performed according to the living body detection dimension selected according to the current position of the mobile terminal, so as to ensure the safety of the mobile terminal and improve the flexibility of unlocking control of the mobile terminal. In addition, the dimension of living body detection is reduced, which can shorten the verification time of living body detection and facilitate the improvement of unlocking speed.
与图3的实施例一致,请参照图4,图4为本发明实施例提供的一种解锁控制方法,应用于如图3所描述的移动终端。其中:Consistent with the embodiment in FIG. 3 , please refer to FIG. 4 . FIG. 4 is an unlocking control method provided by an embodiment of the present invention, which is applied to the mobile terminal as described in FIG. 3 . in:
401:存储器存储N个活体检测维度。401: The memory stores N living body detection dimensions.
402:摄像头采集预览图像。402: The camera collects preview images.
403:处理器获取预览图像和移动终端的当前位置;在当前位置属于预设安全位置集时,从N个活体检测维度中选取与当前位置对应的M个活体检测维度;根据M个活体检测维度对预览图像中的目标人脸进行活体检测得到检测结果;在检测结果为活体时,对目标人脸进行人脸识别,并在人脸识别通过时执行解锁操作。403: The processor acquires the preview image and the current location of the mobile terminal; when the current location belongs to the preset safe location set, select M living body detection dimensions corresponding to the current location from the N living body detection dimensions; according to the M living body detection dimensions Perform liveness detection on the target face in the preview image to obtain the detection result; when the detection result is live, perform face recognition on the target face, and perform an unlocking operation when the face recognition passes.
在一个可能的示例中,所述处理器从所述N个活体检测维度中选取与所述当前位置对应的M个活体检测维度包括:所述处理器获取所述当前位置的目标安全等级;从所述N个活体检测维度中选取与所述目标安全等级对应的所述M个活体检测维度。In a possible example, the selecting, by the processor, of the M living body detection dimensions corresponding to the current location from the N living body detection dimensions includes: acquiring the target security level of the current location by the processor; The M living body detection dimensions corresponding to the target security level are selected from the N living body detection dimensions.
在一个可能的示例中,所述存储器存储所述N个活体检测维度中每一活体检测维度对应的预设权值和活体阈值;In a possible example, the memory stores a preset weight and a living body threshold corresponding to each living body detection dimension in the N living body detection dimensions;
所述处理器根据所述M个活体检测维度对所述预览图像中的目标人脸进行活体检测得到检测结果包括:所述处理器获取所述M个活体检测维度中每一活体检测维度的检测值,得到M个检测值;根据所述M个检测值和所述M个活体检测维度中每一活体检测维度对应的预设权值确定所述目标人脸的活体评价值;在所述活体评价值大于所述活体阈值时,确认所述检测结果为活体。The processor performing liveness detection on the target face in the preview image according to the M liveness detection dimensions to obtain the detection result includes: the processor acquiring the detection of each liveness detection dimension in the M liveness detection dimensions value, to obtain M detection values; determine the living body evaluation value of the target face according to the M detection values and the preset weights corresponding to each living body detection dimension in the M living body detection dimensions; in the living body When the evaluation value is greater than the living body threshold, it is confirmed that the detection result is a living body.
在一个可能的示例中,在所述处理器获取所述M个活体检测维度中每一活体检测维度的检测值,得到M个检测值之前,所述方法还包括:所述环境传感器获取所述移动终端的环境参数;所述处理器获取所述移动终端的场景参数;根据所述场景参数和所述环境参数确定所述M个活体检测维度中每一活体检测维度对应的预设权值和所述活体阈值。In a possible example, before the processor acquires the detection value of each of the M life detection dimensions to obtain M detection values, the method further includes: the environment sensor acquires the The environmental parameters of the mobile terminal; the processor acquires the scene parameters of the mobile terminal; according to the scene parameters and the environmental parameters, the preset weights and values corresponding to each living body detection dimension in the M living body detection dimensions are determined The living body threshold.
在一个可能的示例中,所述处理器对目标人脸进行人脸识别包括:在所述预览图像包括多张目标图像时,对所述预览图像进行拆分,得到所述多张目标图像;对所述多张目标图像中每张目标图像进行图像分割,得到多张人脸图像;获取所述多张人脸图像中每张人脸图像对应的图像评价值,得到多个图像评价值;获取所述多个图像评价值中最高评价值对应的目标人脸图像;对所述目标人脸图像进行人脸识别。In a possible example, the face recognition performed by the processor on the target face includes: when the preview image includes multiple target images, splitting the preview image to obtain the multiple target images; performing image segmentation on each target image in the multiple target images to obtain multiple face images; obtaining an image evaluation value corresponding to each face image in the multiple target images to obtain a plurality of image evaluation values; Acquiring a target face image corresponding to the highest evaluation value among the plurality of image evaluation values; performing face recognition on the target face image.
在如图4所示的解锁控制方法中,在移动终端的当前位置属于预设安全位置集时,从预设的N个活体检测维度中选取与当前位置对应的M个活体检测维度,并根据M个活体检测维度对获取的预览图像中的目标人脸进行活体检测。当活体检测得到的检测结果为活体时,对目标人脸进行人脸识别,并在人脸识别通过时执行解锁操作。也就是说,根据移动终端的当前位置选取的活体检测维度进行活体检测,保证移动终端的安全性,并提高了移动终端进行解锁控制的灵活性。且减少了活体检测维度,可缩短活体检测的验证时长,便于提高解锁速度。In the unlocking control method as shown in Figure 4, when the current location of the mobile terminal belongs to the preset security location set, M living detection dimensions corresponding to the current position are selected from the preset N living detection dimensions, and according to M liveness detection dimensions perform liveness detection on the target face in the acquired preview image. When the detection result obtained by the living body detection is a living body, face recognition is performed on the target face, and an unlocking operation is performed when the face recognition passes. That is to say, the living body detection is performed according to the living body detection dimension selected according to the current position of the mobile terminal, so as to ensure the safety of the mobile terminal and improve the flexibility of unlocking control of the mobile terminal. In addition, the dimension of living body detection is reduced, which can shorten the verification time of living body detection and facilitate the improvement of unlocking speed.
与图1、图2、图3和图4的实施例一致,请参照图5,图5是本发明实施例提供的一种移动终端的结构示意图,如图5所示,该移动终端500包括处理器510、存储器520、通信接口530以及一个或多个程序540,其中,一个或多个程序540被存储在存储器520中,并且被配置由处理器510执行,程序540包括用于执行以下步骤的指令:Consistent with the embodiments of FIG. 1 , FIG. 2 , FIG. 3 and FIG. 4 , please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention. As shown in FIG. 5 , the mobile terminal 500 includes Processor 510, memory 520, communication interface 530 and one or more programs 540, wherein, one or more programs 540 are stored in the memory 520, and are configured to be executed by the processor 510, the program 540 includes the following steps for performing The command:
获取目标人脸的预览图像和移动终端的当前位置;Obtain the preview image of the target face and the current location of the mobile terminal;
在所述当前位置属于预设安全位置集时,从预设的N个活体检测维度中选取与所述当前位置对应的M个活体检测维度,所述N为大于1的整数,所述M为小于所述N的正整数;When the current position belongs to the preset safe position set, M living body detection dimensions corresponding to the current position are selected from the preset N living body detection dimensions, where N is an integer greater than 1, and M is a positive integer less than said N;
根据所述M个活体检测维度对所述预览图像中的目标人脸进行活体检测,得到检测结果;Performing liveness detection on the target face in the preview image according to the M liveness detection dimensions to obtain a detection result;
在所述检测结果为活体时,对所述目标人脸进行人脸识别,并在人脸识别通过时执行解锁操作。When the detection result is a living body, face recognition is performed on the target face, and an unlocking operation is performed when the face recognition passes.
可以看出,本发明实施例中,在移动终端的当前位置属于预设安全位置集时,从预设的N个活体检测维度中选取与当前位置对应的M个活体检测维度,并根据M个活体检测维度对获取的预览图像中的目标人脸进行活体检测。当活体检测得到的检测结果为活体时,对目标人脸进行人脸识别,并在人脸识别通过时执行解锁操作。也就是说,根据移动终端的当前位置选取的活体检测维度进行活体检测,保证移动终端的安全性,并提高了移动终端进行解锁控制的灵活性。且减少了活体检测维度,可缩短活体检测的验证时长,便于提高解锁速度。It can be seen that in the embodiment of the present invention, when the current location of the mobile terminal belongs to the preset safe location set, M living detection dimensions corresponding to the current location are selected from the preset N living detection dimensions, and according to the M The liveness detection dimension performs liveness detection on the target face in the acquired preview image. When the detection result obtained by the living body detection is a living body, face recognition is performed on the target face, and an unlocking operation is performed when the face recognition passes. That is to say, the living body detection is performed according to the living body detection dimension selected according to the current position of the mobile terminal, so as to ensure the safety of the mobile terminal and improve the flexibility of unlocking control of the mobile terminal. In addition, the dimension of living body detection is reduced, which can shorten the verification time of living body detection and facilitate the improvement of unlocking speed.
作为一种可选的实施例,在所述从预设的N个活体检测维度中选取与所述当前位置对应的M个活体检测维度方面,上述程序540具体用于执行以下步骤的指令:As an optional embodiment, in terms of selecting M living body detection dimensions corresponding to the current position from the preset N living body detection dimensions, the above-mentioned program 540 is specifically used to execute the following steps:
获取所述当前位置的目标安全等级;Obtain the target security level of the current location;
从所述N个活体检测维度中选取与所述目标安全等级对应的所述M个活体检测维度。Selecting the M living body detection dimensions corresponding to the target security level from the N living body detection dimensions.
作为一种可选的实施例,在所述根据所述M个活体检测维度对所述预览图像中的目标人脸进行活体检测,得到检测结果方面,上述程序540具体用于执行以下步骤的指令:As an optional embodiment, in terms of performing liveness detection on the target face in the preview image according to the M livingness detection dimensions and obtaining the detection result, the above-mentioned program 540 is specifically used to execute the following steps: :
获取所述M个活体检测维度中每一活体检测维度的检测值,得到M个检测值;Obtain the detection value of each living body detection dimension in the M living body detection dimensions, and obtain M detection values;
根据所述M个检测值和所述M个活体检测维度中每一活体检测维度对应的预设权值确定所述目标人脸的活体评价值;determining the living body evaluation value of the target face according to the M detection values and the preset weight corresponding to each living body detection dimension in the M living body detection dimensions;
在所述活体评价值大于活体阈值时,确认所述检测结果为活体。When the living body evaluation value is greater than the living body threshold, it is confirmed that the detection result is a living body.
作为一种可选的实施例,在所述获取所述M个活体检测维度中每一活体检测维度的检测值,得到M个检测值之前,上述程序540还用于执行以下步骤的指令:As an optional embodiment, before acquiring the detection value of each of the M living body detection dimensions to obtain M detection values, the above-mentioned program 540 is also used to execute the following steps:
获取所述移动终端的场景参数和环境参数;Obtain scene parameters and environment parameters of the mobile terminal;
根据所述场景参数和所述环境参数确定所述M个活体检测维度中每一活体检测维度对应的预设权值和所述活体阈值。A preset weight corresponding to each of the M living body detection dimensions and the living body threshold are determined according to the scene parameter and the environment parameter.
作为一种可选的实施例,在所述对所述目标人脸进行人脸识别方面,上述程序540具体用于执行以下步骤的指令:As an optional embodiment, in terms of performing face recognition on the target face, the above-mentioned program 540 is specifically used to execute instructions for the following steps:
在所述预览图像包括多张目标图像时,对所述预览图像进行拆分,得到所述多张目标图像;When the preview image includes multiple target images, splitting the preview image to obtain the multiple target images;
对所述多张目标图像中每张目标图像进行图像分割,得到多张人脸图像;Image segmentation is performed on each target image in the plurality of target images to obtain multiple face images;
获取所述多张人脸图像中每张人脸图像对应的图像评价值,得到多个图像评价值;Acquire the image evaluation value corresponding to each face image in the plurality of face images, and obtain a plurality of image evaluation values;
获取所述多个图像评价值中最高评价值对应的目标人脸图像;Acquiring the target face image corresponding to the highest evaluation value among the plurality of image evaluation values;
对所述目标人脸图像进行人脸识别。Face recognition is performed on the target face image.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于存储计算机程序,该计算机程序使得计算机执行如方法实施例中记载的任一方法的部分或全部步骤,计算机包括移动终端。An embodiment of the present invention also provides a computer storage medium, wherein the computer storage medium is used to store a computer program, and the computer program enables the computer to perform some or all steps of any method described in the method embodiments, and the computer includes a mobile terminal.
本发明实施例还提供一种计算机程序产品,计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,计算机程序可操作来使计算机执行如方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,计算机包括移动终端。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 cause the computer to execute any part of the method as described in the method embodiments or all steps. The computer program product may be a software installation package, and the computer includes a mobile terminal.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。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 embodiments, the description of each embodiment has its own emphases, and for the part not described in detail in a certain embodiment, refer to the 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, such as the division of units, which is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated 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.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it 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 integrated unit can be realized in the form of hardware or in the form of software functional unit.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。An integrated unit may be stored in a computer-readable memory if implemented in the form of a software function unit 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 in various embodiments of the present invention. The aforementioned memory includes: various media capable of storing program codes such as U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。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)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710969974.4A CN107832598B (en) | 2017-10-17 | 2017-10-17 | Unlocking control method and related product |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710969974.4A CN107832598B (en) | 2017-10-17 | 2017-10-17 | Unlocking control method and related product |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107832598A true CN107832598A (en) | 2018-03-23 |
| CN107832598B CN107832598B (en) | 2020-08-14 |
Family
ID=61648263
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710969974.4A Expired - Fee Related CN107832598B (en) | 2017-10-17 | 2017-10-17 | Unlocking control method and related product |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107832598B (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108875688A (en) * | 2018-06-28 | 2018-11-23 | 北京旷视科技有限公司 | A kind of biopsy method, device, system and storage medium |
| CN109543635A (en) * | 2018-11-29 | 2019-03-29 | 北京旷视科技有限公司 | Biopsy method, device, system, unlocking method, terminal and storage medium |
| WO2019196793A1 (en) * | 2018-04-12 | 2019-10-17 | Oppo广东移动通信有限公司 | Image processing method and apparatus, and electronic device and computer-readable storage medium |
| CN110399763A (en) * | 2018-04-24 | 2019-11-01 | 深圳奥比中光科技有限公司 | Face identification method and system |
| CN114973379A (en) * | 2022-06-14 | 2022-08-30 | 平安银行股份有限公司 | Terminal-based risk detection method, device, equipment and storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130188840A1 (en) * | 2012-01-20 | 2013-07-25 | Cyberlink Corp. | Liveness detection system based on face behavior |
| EP2752155A1 (en) * | 2013-01-07 | 2014-07-09 | Seiko Instruments Inc. | Living body information detection apparatus and living body information detection program |
| CN104143083A (en) * | 2014-07-11 | 2014-11-12 | 北京神州智联科技有限公司 | Face recognition system based on process management |
| CN104270503A (en) * | 2014-09-12 | 2015-01-07 | 上海闻泰电子科技有限公司 | Mobile phone unlocking method based on geographical location information |
| CN105844203A (en) * | 2015-01-12 | 2016-08-10 | 阿里巴巴集团控股有限公司 | Method and device for human face liveness detection |
| CN106096519A (en) * | 2016-06-01 | 2016-11-09 | 腾讯科技(深圳)有限公司 | Live body discrimination method and device |
| US20160366129A1 (en) * | 2015-06-10 | 2016-12-15 | Alibaba Group Holding Limited | Liveness detection method and device, and identity authentication method and device |
-
2017
- 2017-10-17 CN CN201710969974.4A patent/CN107832598B/en not_active Expired - Fee Related
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130188840A1 (en) * | 2012-01-20 | 2013-07-25 | Cyberlink Corp. | Liveness detection system based on face behavior |
| EP2752155A1 (en) * | 2013-01-07 | 2014-07-09 | Seiko Instruments Inc. | Living body information detection apparatus and living body information detection program |
| CN104143083A (en) * | 2014-07-11 | 2014-11-12 | 北京神州智联科技有限公司 | Face recognition system based on process management |
| CN104270503A (en) * | 2014-09-12 | 2015-01-07 | 上海闻泰电子科技有限公司 | Mobile phone unlocking method based on geographical location information |
| CN105844203A (en) * | 2015-01-12 | 2016-08-10 | 阿里巴巴集团控股有限公司 | Method and device for human face liveness detection |
| US20160366129A1 (en) * | 2015-06-10 | 2016-12-15 | Alibaba Group Holding Limited | Liveness detection method and device, and identity authentication method and device |
| CN106096519A (en) * | 2016-06-01 | 2016-11-09 | 腾讯科技(深圳)有限公司 | Live body discrimination method and device |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2019196793A1 (en) * | 2018-04-12 | 2019-10-17 | Oppo广东移动通信有限公司 | Image processing method and apparatus, and electronic device and computer-readable storage medium |
| EP3633546A4 (en) * | 2018-04-12 | 2020-10-21 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | IMAGE PROCESSING METHOD AND DEVICE, ELECTRONIC DEVICE AND COMPUTER READABLE STORAGE MEDIUM |
| US11170204B2 (en) | 2018-04-12 | 2021-11-09 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Data processing method, electronic device and computer-readable storage medium |
| CN110399763A (en) * | 2018-04-24 | 2019-11-01 | 深圳奥比中光科技有限公司 | Face identification method and system |
| CN108875688A (en) * | 2018-06-28 | 2018-11-23 | 北京旷视科技有限公司 | A kind of biopsy method, device, system and storage medium |
| CN109543635A (en) * | 2018-11-29 | 2019-03-29 | 北京旷视科技有限公司 | Biopsy method, device, system, unlocking method, terminal and storage medium |
| CN114973379A (en) * | 2022-06-14 | 2022-08-30 | 平安银行股份有限公司 | Terminal-based risk detection method, device, equipment and storage medium |
| CN114973379B (en) * | 2022-06-14 | 2025-04-22 | 平安银行股份有限公司 | Terminal-based risk detection method, device, equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107832598B (en) | 2020-08-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107077589B (en) | Facial spoofing detection in image-based biometrics | |
| CN105590097B (en) | Dual-camera collaborative real-time face recognition security system and method under dark vision conditions | |
| CN107832598A (en) | Solve lock control method and Related product | |
| US8938092B2 (en) | Image processing system, image capture apparatus, image processing apparatus, control method therefor, and program | |
| CN106303599B (en) | Information processing method, system and server | |
| CN106844492A (en) | A kind of method of recognition of face, client, server and system | |
| CN107679481A (en) | Solve lock control method and Related product | |
| CN113780212A (en) | User identity verification method, device, equipment and storage medium | |
| CN103383732A (en) | Image processing method and device | |
| CN107045716A (en) | A kind of object detecting method and computer equipment | |
| TWI706332B (en) | Graphic coding display method and device and computer equipment | |
| KR102022971B1 (en) | Method for object of image and apparatus for the same | |
| CN108764100B (en) | A target behavior detection method and server | |
| CN111065044A (en) | Data association analysis method, device and computer storage medium based on big data | |
| CN113469138B (en) | Object detection method and device, storage medium and electronic device | |
| CN104572123A (en) | Script generation method and device | |
| CN112818874B (en) | Image processing method, device, equipment and storage medium | |
| CN110119456A (en) | Retrieve the method and device of image | |
| CN113489897B (en) | Image processing method and related device | |
| CN113537145B (en) | Method, device and storage medium for rapidly solving false detection and missing detection in target detection | |
| US11755758B1 (en) | System and method for evaluating data files | |
| CN112241660A (en) | A vision-based anti-theft monitoring method and device | |
| CN105072117B (en) | Finger prints processing method and relevant apparatus and system | |
| CN109214224B (en) | Risk identification method and device for information coding | |
| CN106470331A (en) | A kind of monitoring method, CCTV camera and monitoring system |
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 | ||
| CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200814 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |