CN107679473B - Unlock control method and related products - Google Patents
Unlock control method and related products Download PDFInfo
- Publication number
- CN107679473B CN107679473B CN201710873971.0A CN201710873971A CN107679473B CN 107679473 B CN107679473 B CN 107679473B CN 201710873971 A CN201710873971 A CN 201710873971A CN 107679473 B CN107679473 B CN 107679473B
- Authority
- CN
- China
- Prior art keywords
- light intensity
- parameter
- ambient light
- flicker
- fill
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000029058 respiratory gaseous exchange Effects 0.000 claims abstract description 115
- 238000004590 computer program Methods 0.000 claims description 16
- 238000013507 mapping Methods 0.000 claims description 15
- 238000004891 communication Methods 0.000 claims description 6
- 230000002596 correlated effect Effects 0.000 claims 8
- 230000000875 corresponding effect Effects 0.000 claims 8
- 230000001502 supplementing effect Effects 0.000 claims 4
- 239000013589 supplement Substances 0.000 claims 2
- 230000003213 activating effect Effects 0.000 claims 1
- 230000004397 blinking Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000000295 complement effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000004907 flux Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/161—Detection; Localisation; Normalisation
- G06V40/166—Detection; Localisation; Normalisation using acquisition arrangements
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F21—LIGHTING
- F21V—FUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
- F21V33/00—Structural combinations of lighting devices with other articles, not otherwise provided for
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/10—Image acquisition
- G06V10/12—Details of acquisition arrangements; Constructional details thereof
- G06V10/14—Optical characteristics of the device performing the acquisition or on the illumination arrangements
- G06V10/141—Control of illumination
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Telephone Function (AREA)
- Studio Devices (AREA)
Abstract
本发明实施例公开了一种解锁控制方法及相关产品,其中方法包括:获取环境光线强度;在所述环境光线强度小于第一阈值时,根据所述环境光线强度确定呼吸灯的第一闪烁参数;按照所述第一闪烁参数启动所述呼吸灯,所述呼吸灯用于对人脸进行补光。采用本发明,可提高环境光线强度弱时的人脸信息识别率。
The embodiment of the present invention discloses an unlocking control method and related products, wherein the method comprises: obtaining the ambient light intensity; when the ambient light intensity is less than a first threshold, determining a first flashing parameter of a breathing light according to the ambient light intensity; starting the breathing light according to the first flashing parameter, and the breathing light is used to fill in light for a human face. The present invention can improve the recognition rate of human face information when the ambient light intensity is weak.
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 has become more and more popular, and face recognition methods are allowed to be used for unlocking. In the prior art, unlocking is performed when the face image to be verified collected by the image collector matches the preset face image. However, the acquisition process of the image collector to collect the face image to be verified has a certain dependence on the ambient light intensity. In the environment where the ambient light intensity is weak, the mobile terminal is in an environment with weak ambient light intensity. The success rate of recognizing the face information in the face image to be verified low, causing the unlock to fail.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种解锁控制方法及相关产品,可以提高环境光线强度弱时的人脸信息识别率。The embodiments of the present invention provide an unlocking control method and related products, which can improve the recognition rate of face information when the ambient light intensity is weak.
第一方面,本发明实施例提供一种解锁控制方法,包括:In a first aspect, an embodiment of the present invention provides an unlocking control method, including:
获取环境光线强度;Get the ambient light intensity;
在所述环境光线强度小于第一阈值时,根据所述环境光线强度确定呼吸灯的第一闪烁参数;When the ambient light intensity is less than the first threshold, determining the first flickering parameter of the breathing light according to the ambient light intensity;
按照所述第一闪烁参数启动所述呼吸灯,所述呼吸灯用于对人脸进行补光。The breathing light is activated according to the first flickering parameter, and the breathing light is used to fill light on the human face.
第二方面,本发明实施例提供一种移动终端,包括处理器、与所述处理器连接的环境光传感器、呼吸灯和存储器,其中:In a second aspect, an embodiment of the present invention provides a mobile terminal, including a processor, an ambient light sensor connected to the processor, a breathing light, and a memory, wherein:
所述环境光传感器,用于获取环境光线强度;the ambient light sensor for acquiring ambient light intensity;
所述存储器,用于存储第一阈值;the memory for storing the first threshold;
所述处理器,用于在所述环境光线强度小于所述第一阈值时,根据所述环境光线强度确定所述呼吸灯的第一闪烁参数;the processor, configured to determine a first flickering parameter of the breathing light according to the ambient light intensity when the ambient light intensity is less than the first threshold;
所述呼吸灯,用于按照所述第一闪烁参数对人脸进行补光。The breathing light is used to fill light on the face according to the first flickering parameter.
第三方面,本发明实施例提供一种解锁控制装置,包括:In a third aspect, an embodiment of the present invention provides an unlocking control device, including:
获取单元,用于获取环境光线强度;The acquisition unit is used to acquire the ambient light intensity;
确定单元,用于在所述环境光线强度小于第一阈值时,根据所述环境光线强度确定呼吸灯的第一闪烁参数;a determining unit, configured to determine a first flickering parameter of the breathing light according to the ambient light intensity when the ambient light intensity is less than a first threshold;
启动单元,用于按照所述第一闪烁参数启动所述呼吸灯,所述呼吸灯用于对人脸进行补光。A start-up unit, configured to start the breathing light according to the first flickering parameter, and the breathing light is used to fill light on the human face.
第四方面,本发明实施例提供了另一种解锁控制方法,应用于包括处理器、与所述处理器连接的环境光传感器、呼吸灯和存储器的移动终端,其中: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, an ambient light sensor connected to the processor, a breathing light, and a memory, wherein:
所述环境光传感器获取环境光线强度;The ambient light sensor obtains ambient light intensity;
所述存储器存储第一阈值;the memory stores a first threshold;
所述处理器在所述环境光线强度小于所述第一阈值时,根据所述环境光线强度确定所述呼吸灯的第一闪烁参数;When the ambient light intensity is less than the first threshold, the processor determines a first flickering parameter of the breathing light according to the ambient light intensity;
所述呼吸灯按照所述第一闪烁参数对人脸进行补光。The breathing light fills the human face with light according to the first flickering parameter.
第五方面,本发明实施例提供另一种移动终端,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,所述程序包括用于如第一方面中所描述的部分或全部步骤的指令。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 The processor executes the program comprising instructions for some or all of the steps as 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 causes a computer to execute the method 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 cause a computer to execute the Some or all of the steps described in the first aspect of the embodiment of the invention. The computer program product may be a software installation package.
实施本发明实施例,将具有如下有益效果:Implementing the embodiment of the present invention will have the following beneficial effects:
采用了上述的解锁控制方法及相关产品之后,获取环境光线强度,在环境光线强度小于第一阈值时,根据环境光线强度确定呼吸灯的第一闪烁参数,则呼吸灯按照第一闪烁参数进行启动。也就是说,在环境光线强度弱时的采用呼吸灯对人脸进行补光,提高了环境光线强度弱时的环境光线强度弱时的人脸信息识别率。After the above unlocking control method and related products are adopted, the ambient light intensity is obtained, and when the ambient light intensity is less than the first threshold, the first flickering parameter of the breathing light is determined according to the ambient light intensity, and the breathing light is activated according to the first flickering parameter . That is to say, when the ambient light intensity is weak, the breathing lamp is used to fill light on the face, which improves the face information recognition rate when the ambient light intensity is weak and the ambient light intensity is weak.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying 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. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
其中:in:
图1为本发明实施例提供的一种移动终端的结构示意图;FIG. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
图2为本发明实施例提供的一种解锁控制方法的流程示意图;2 is a schematic flowchart of an unlocking control method provided by an embodiment of the present invention;
图3为本发明实施例提供的另一种解锁控制方法的流程示意图;3 is a schematic flowchart of another unlocking control method provided by an embodiment of the present invention;
图4为本发明实施例提供的一种解锁控制装置的结构示意图;4 is a schematic structural diagram of an unlocking control device according to an embodiment of the present invention;
图4A为本发明实施例提供的一种第一确定单元的结构示意图;4A is a schematic structural diagram of a first determination unit according to an embodiment of the present invention;
图4B为本发明实施例提供的一种启动单元的结构示意图;4B is a schematic structural diagram of a startup unit according to an embodiment of the present invention;
图5为本发明实施例提供的另一种移动终端的结构示意图。FIG. 5 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall 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 "comprising" and "having" and any variations thereof are intended to cover 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 also includes For other steps or units inherent to 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 appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may 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 with wireless communication functions, 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). Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on. For the convenience of description, the devices mentioned above are collectively referred to as mobile terminals. The embodiments of the present invention will be described in detail below.
本发明实施例提供了一种解锁控制方法及相关产品,可以提高环境光线强度弱时的人脸信息识别率。下面结合附图对本发明实施例进行介绍。The embodiments of the present invention provide an unlocking control method and related products, which can improve the recognition rate of face information when the ambient light intensity is weak. The embodiments of the present invention will be described below with reference to the accompanying drawings.
请参阅图1,图1是本发明实施例提供了一种移动终端100的结构示意图,上述移动终端100包括:壳体、触控显示屏、主板、电池和副板,主板上设置有前置摄像头21、处理器110、存储器120、环境光传感器130、呼吸灯140和客户识别模块(Subscriber IdentityModule,SIM)卡槽等,副板上设置有振子、一体音腔和VOOC闪充接口。Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of a
本发明实施例所涉及的图像采集器可包括上述前置摄像头21,在此不作限定,具体可参照移动终端100中配置的摄像头,默认为前置摄像头21,还可以后置摄像头或旋转摄像头等。通过多种摄像头进行图像采集,提高了操作的便利性和解锁的灵活性。The image collector involved in this embodiment of the present invention may include the above-mentioned
基于图1所描述的移动终端100,可执行下述操作:Based on the
在本发明实施例中,环境光传感器130可位于移动终端100的右上方、前置摄像头21的左边,用于获取环境光线强度。In this embodiment of the present invention, the ambient
其中,环境光线强度指移动终端100所处的拍摄环境下,自然光、灯光、或烛光等发光源照射在目标人脸表面的受光程度,与发光源的发光强度成正比,与距离的平方成反比,斜射面上的照度还与光线入射角的余弦函数有关。单位勒克斯(Lux或Lx),即在1平方米面积上所得的光通量是1流明时,环境光线强度是1勒克斯。The ambient light intensity refers to the degree of light received by a luminous source such as natural light, lighting, or candle light on the surface of the target face in the shooting environment where the
在本发明实施例中,存储器120用于存储第一阈值。In this embodiment of the present invention, the
其中,第一阈值用于判断是否需要启动呼吸灯140进行补光,在环境光线强度小于第一阈值时,可开启呼吸灯140进行补光;而在环境光线强度大于或等于第一阈值时,图像采集器可借助环境光线强度或者触控显示屏的亮度进行目标人脸图像采集,从而节省移动终端100的功耗。The first threshold is used to determine whether the
在本发明实施例中,处理器110用于在所述环境光线强度小于所述第一阈值时,根据所述环境光线强度确定所述呼吸灯140的第一闪烁参数。In this embodiment of the present invention, the
其中,第一闪烁参数包括多个维度信息,可以是闪烁亮度、闪烁颜色和闪烁频率等。也就是说,在环境光线强度小于第一阈值时,处理器110根据呼吸灯140的实际功率、实际使用情况、可调范围、损耗等综合因素确定与环境光线强度对应的第一闪烁参数,并通知呼吸灯140按照第一闪烁参数启动。The first flickering parameter includes multiple dimension information, which may be flickering brightness, flickering color, flickering frequency, and the like. That is to say, when the ambient light intensity is less than the first threshold, the
可选的,存储器120还用于存储历史解锁记录;在所述处理器110根据所述环境光线强度确定所述呼吸灯的第一闪烁参数方面,所述处理器110具体用于根据所述历史解锁记录获取光线强度阈值;获取所述光线强度阈值与所述环境光线强度之差,得到第一补光强度值;根据所述第一补光强度值确定所述第一闪烁参数。Optionally, the
其中,历史解锁记录包括解锁成功时的环境光线强度、解锁时间、目标人脸图像的质量参数(例如:人脸偏移角度、遮挡程度、光线质量参数等)、解锁成功率等等。本发明实施例对于如何根据历史解锁记录获取光线强度阈值不作限定,可根据历史解锁记录中包括的环境光线强度、解锁时间、目标人脸图像的光线质量参数、解锁成功率等中每一维度中对应参数和光线强度之间的关系确定光线强度阈值。Among them, the historical unlocking record includes the ambient light intensity when the unlocking is successful, the unlocking time, the quality parameters of the target face image (for example, the face offset angle, the degree of occlusion, the light quality parameters, etc.), the unlocking success rate, and so on. This embodiment of the present invention does not limit how to obtain the light intensity threshold according to the historical unlocking record, and can be based on the ambient light intensity, unlocking time, light quality parameters of the target face image, unlocking success rate, etc. included in the historical unlocking record in each dimension. The relationship between the corresponding parameter and the light intensity determines the light intensity threshold.
第一补光强度值为当前环境光线强度下进行人脸识别所需要补光的光线强度值。在确定光线强度阈值之后,可根据光线强度阈值和环境光线强度之间的差值获取第一补光强度值,并根据第一补光强度值确定第一闪烁参数,则在呼吸灯140按照第一闪烁参数进行启动时,可满足第一补光强度值,从而提高人脸信息识别率。The first supplementary light intensity value is the light intensity value of the supplementary light required for face recognition under the current ambient light intensity. After the light intensity threshold is determined, the first supplementary light intensity value can be obtained according to the difference between the light intensity threshold and the ambient light intensity, and the first flickering parameter is determined according to the first supplementary light intensity value. When a flickering parameter is activated, the first fill light intensity value can be satisfied, thereby improving the recognition rate of face information.
可选的,所述存储器120还用于存储补光强度值和闪烁参数之间的映射关系;在所述处理器110根据所述第一补光强度值确定所述第一闪烁参数方面,所述处理器110具体用于根据所述映射关系查找与所述第一补光强度值对应的所述第一闪烁参数。Optionally, the
处理器110根据呼吸灯140的可调范围可得到多组闪烁参数,在不同的环境光线强度下对每一组闪烁参数进行测试,得到该组闪烁参数对应的补光强度值,得到补光强度值和闪烁参数之间的映射关系并将其存储于存储器120。处理器110在确定第一补光强度值之后,可根据存储器120中存储的映射关系查找第一补光强度值对应的第一闪烁参数,提高查找效率和补光的准确性。The
举例来说,如表1所示的补光强度值和闪烁参数之间的映射关系,假设第一补光强度值为20勒克斯,通过查表可知第一闪烁参数中的闪烁频率:2赫兹,闪烁颜色:黄色,闪烁亮度:20坎德拉。For example, as shown in the mapping relationship between the fill light intensity value and the flicker parameter shown in Table 1, assuming that the first fill light intensity value is 20 lux, the flicker frequency in the first flicker parameter can be known by looking up the table: 2 Hz, Blinking Color: Yellow, Blinking Brightness: 20 Candela.
表1Table 1
在本发明实施例中,呼吸灯140用于按照所述第一闪烁参数对人脸进行补光。In the embodiment of the present invention, the
可选的,所述处理器110还用于获取所述第一闪烁参数对应的工作参数;在所述呼吸灯140按照所述第一闪烁参数对人脸进行补光方面,所述呼吸灯140具体用于根据所述工作参数对所述人脸进行补光。Optionally, the
其中,工作参数可包括电压、电流、耗电功率等,在处理器110确定第一闪烁参数之后,根据第一闪烁参数和呼吸灯140的实际功率、实际使用情况、和损耗确定具体的工作参数,则移动终端100可针对上述工作参数进行分配,再根据其工作参数启动呼吸灯140,对人脸识别进行补光,提高了补光效率。The working parameters may include voltage, current, power consumption, etc. After the
可以看出,本发明实施例中,环境光传感器获取环境光线强度,处理器在环境光线强度小于第一阈值时,根据环境光线强度确定呼吸灯的第一闪烁参数,并通知呼吸灯按照第一闪烁参数进行启动。也就是说,在环境光线强度弱时的采用呼吸灯对人脸进行补光,提高了环境光线强度弱时的人脸信息识别率。It can be seen that, in this embodiment of the present invention, the ambient light sensor obtains the ambient light intensity, and when the ambient light intensity is less than the first threshold, the processor determines the first flickering parameter of the breathing light according to the ambient light intensity, and notifies the breathing light to follow the first Flash parameters to start. That is to say, when the ambient light intensity is weak, the breathing lamp is used to fill light on the face, which improves the recognition rate of the face information when the ambient light intensity is weak.
可选的,所述存储器120还用于存储第二阈值;所述处理器110还用于确定与所述第一闪烁参数对应的所述拍摄参数;获取目标人脸图像的光线质量参数;在所述光线质量参数小于所述第二阈值时,确定所述呼吸灯的第二闪烁参数;所述图像采集器用于根据拍摄参数获取所述目标人脸图像;所述呼吸灯140还用于在所述光线质量参数小于所述第二阈值时,将所述第一闪烁参数调整为所述第二闪烁参数。Optionally, the
图像采集器的拍摄参数可包括曝光时间、闪光灯的闪光时间和闪烁亮度等,处理器110根据第一闪烁参数确定图像采集器的拍摄参数,即通过呼吸灯140配合图像采集器进行目标人脸图像采集,可提高目标人脸图像的采集效果,从而提高人脸信息识别率。The shooting parameters of the image collector may include exposure time, flashing time of the flash, and flickering brightness, etc. The
其中,光线质量参数与目标人脸图像的识别率相关,当光线质量参数高时,识别率高,反之,光线质量参数越低识别率越低;第二闪烁参数对应的第二补光强度值大于第一补光强度值;第二阈值用于判断是否需要增强补光强度,也就是说若图像采集器采集的目标人脸图像的光线质量参数小于第二阈值,需要重新确定呼吸灯140的闪烁参数,在呼吸灯140按照第二闪烁参数进行工作时,以提高环境光线强度,进而获取光线质量参数较高的目标人脸图像。Among them, the light quality parameter is related to the recognition rate of the target face image. When the light quality parameter is high, the recognition rate is high. On the contrary, the lower the light quality parameter is, the lower the recognition rate is; the second fill light intensity value corresponding to the second flicker parameter Greater than the first fill light intensity value; the second threshold value is used to judge whether to enhance the fill light intensity, that is to say, if the light quality parameter of the target face image collected by the image collector is less than the second threshold value, it is necessary to re-determine the value of the
第二闪烁参数与第一闪烁参数类似,包括多个维度信息,可以是闪烁亮度、闪烁颜色和闪烁频率等。呼吸灯140将第一闪烁参数调整为第二闪烁参数的具体方法,可参照第一闪烁参数的步骤,在此不再赘述。The second flickering parameter is similar to the first flickering parameter, and includes multiple dimensional information, which may be flickering brightness, flickering color, flickering frequency, and the like. For the specific method of adjusting the first flickering parameter to the second flickering parameter by the
本发明实施例对于第二闪烁参数不作限定,在光线质量参数小于第二阈值时,可继续调整第二闪烁参数,按照从小到大的补光强度值对于的闪烁参数进行补光,避免了一开始就采用最大补光强度值对于的闪烁参数进行补光而导致移动终端的电量浪费,且在光线质量参数大于第二阈值时,根据图像采集器采集的目标人脸图像和预设人脸图像的匹配值进行解锁控制,提高了环境光线强度弱时的人脸信息识别率和解锁的成功率。This embodiment of the present invention does not limit the second flickering parameter. When the light quality parameter is less than the second threshold, the second flickering parameter can be adjusted continuously, and the flickering parameter is supplemented according to the supplementary light intensity value from small to large, so as to avoid a From the beginning, the flickering parameter of the maximum fill light intensity value is used to fill light, which leads to a waste of power of the mobile terminal, and when the light quality parameter is greater than the second threshold, the target face image and the preset face image collected by the image collector are used. The matching value is used to unlock control, which improves the recognition rate of face information and the success rate of unlocking when the ambient light intensity is weak.
可选的,处理器110在所述光线质量参数小于第二阈值时,获取所述光线质量参数对应的匹配阈值;在所述目标人脸图像与预设人脸图像的匹配值大于所述匹配阈值时进行解锁。Optionally, the
也就是说,若图像采集器采集的目标人脸图像的光线质量参数小于第二阈值,处理器110可根据光线质量参数确定人脸识别的匹配阈值,且在目标人脸图像与预设人脸图像的匹配值大于匹配阈值时,对移动终端进行解锁。即在外部补光的光线强度不能进行人脸识别时,降低人脸识别的匹配阈值,提供一种解锁方式,提供了解锁的灵活性。That is to say, if the light quality parameter of the target face image collected by the image collector is smaller than the second threshold, the
与图1的实施例一致,请参照图2,图2为本发明实施例提供的一种解锁控制方法,应用于如图2所描述的移动终端。其中:Consistent with the embodiment in FIG. 1 , please refer to FIG. 2 . FIG. 2 is an unlocking control method provided by an embodiment of the present invention, which is applied to the mobile terminal described in FIG. 2 . in:
201:环境光传感器获取环境光线强度。201: The ambient light sensor obtains the ambient light intensity.
202:存储器存储第一阈值。202: The memory stores the first threshold.
203:处理器在环境光线强度小于第一阈值时,根据环境光线强度确定呼吸灯的第一闪烁参数。203: When the ambient light intensity is less than the first threshold, the processor determines a first flickering parameter of the breathing light according to the ambient light intensity.
204:呼吸灯按照第一闪烁参数对人脸进行补光。204: The breathing light fills the face with light according to the first flickering parameter.
可以看出,本发明实施例中,环境光传感器获取环境光线强度,处理器在环境光线强度小于第一阈值时,根据环境光线强度确定呼吸灯的第一闪烁参数,并通知呼吸灯按照第一闪烁参数进行启动。也就是说,在环境光线强度弱时的采用呼吸灯对人脸进行补光,提高了环境光线强度弱时的人脸信息识别率。It can be seen that, in this embodiment of the present invention, the ambient light sensor obtains the ambient light intensity, and when the ambient light intensity is less than the first threshold, the processor determines the first flickering parameter of the breathing light according to the ambient light intensity, and notifies the breathing light to follow the first Flash parameters to start. That is to say, when the ambient light intensity is weak, the breathing lamp is used to fill light on the face, which improves the recognition rate of the face information when the ambient light intensity is weak.
在一个可能的示例中,所述存储器还存储历史解锁记录,所述处理器根据环境光线强度确定呼吸灯的第一闪烁参数包括:所述处理器根据所述历史解锁记录获取光线强度阈值;获取所述光线强度阈值与所述环境光线强度之差,得到第一补光强度值;根据所述第一补光强度值确定所述第一闪烁参数。In a possible example, the memory further stores a historical unlocking record, and the processor determining the first flickering parameter of the breathing light according to the ambient light intensity includes: the processor acquiring a light intensity threshold according to the historical unlocking record; acquiring A first supplementary light intensity value is obtained from the difference between the light intensity threshold and the ambient light intensity; the first flickering parameter is determined according to the first supplementary light intensity value.
在一个可能的示例中,所述存储器还存储补光强度值和闪烁参数之间的映射关系;所述处理器根据所述第一补光强度值确定所述第一闪烁参数包括:所述处理器根据所述映射关系查找与所述第一补光强度值对应的所述第一闪烁参数。In a possible example, the memory further stores a mapping relationship between the supplementary light intensity value and the flickering parameter; and the processor determining the first flickering parameter according to the first supplementary light intensity value includes: the processing The controller searches for the first flickering parameter corresponding to the first supplementary light intensity value according to the mapping relationship.
在一个可能的示例中,所述存储器还存储第二阈值,在所述呼吸灯按照第一闪烁参数对人脸进行补光之后,In a possible example, the memory further stores a second threshold, and after the breathing lamp fills the face with light according to the first flickering parameter,
所述处理器确定与所述第一闪烁参数对应的所述拍摄参数;the processor determines the shooting parameter corresponding to the first flickering parameter;
所述图像采集器根据拍摄参数获取目标人脸图像;The image collector obtains the target face image according to the shooting parameters;
所述处理器获取所述目标人脸图像的光线质量参数;在所述光线质量参数小于所述第二阈值时,确定所述呼吸灯的第二闪烁参数,所述第二闪烁参数对应的第二补光强度值大于所述第一补光强度值;The processor obtains the light quality parameter of the target face image; when the light quality parameter is less than the second threshold, determines the second flickering parameter of the breathing light, and the second flickering parameter corresponds to the first flickering parameter. The second fill light intensity value is greater than the first fill light intensity value;
所述呼吸灯将所述第一闪烁参数调整为所述第二闪烁参数。The breathing light adjusts the first flickering parameter to the second flickering parameter.
在一个可能的示例中,所述呼吸灯按照第一闪烁参数对人脸进行补光包括:In a possible example, the breathing lamp performing supplementary light on the face according to the first flickering parameter includes:
所述处理器获取所述第一闪烁参数对应的工作参数;obtaining, by the processor, a working parameter corresponding to the first flickering parameter;
所述呼吸灯根据所述工作参数对所述人脸进行补光。The breathing lamp performs supplementary light on the face according to the working parameter.
可选的,处理器在所述光线质量参数小于第二阈值时,获取所述光线质量参数对应的匹配阈值;在所述目标人脸图像与预设人脸图像的匹配值大于所述匹配阈值时进行解锁。Optionally, when the light quality parameter is less than a second threshold, the processor obtains a matching threshold corresponding to the light quality parameter; when the matching value between the target face image and the preset face image is greater than the matching threshold to unlock.
请参照图3,图3为本发明实施例提供的另一种解锁控制方法,应用于如图1所描述的移动终端。如图3所示,包括:Please refer to FIG. 3 . FIG. 3 is another unlocking control method provided by an embodiment of the present invention, which is applied to the mobile terminal described in FIG. 1 . As shown in Figure 3, including:
301:获取环境光线强度。301: Get the ambient light intensity.
其中,环境光线强度指移动终端所处的拍摄环境下,自然光、灯光、或烛光等发光源照射在目标人脸表面的受光程度,与发光源的发光强度成正比,与距离的平方成反比,斜射面上的照度还与光线入射角的余弦函数有关。单位勒克斯(Lux或Lx),即在1平方米面积上所得的光通量是1流明时,环境光线强度是1勒克斯。Among them, the ambient light intensity refers to the light-receiving degree of natural light, lighting, or candle light and other light-emitting sources illuminating the target face surface in the shooting environment where the mobile terminal is located, which is proportional to the light-emitting intensity of the light-emitting source and inversely proportional to the square of the distance. The illuminance on the inclined plane is also related to the cosine function of the incident angle of the light. Unit Lux (Lux or Lx), that is, when the luminous flux obtained in 1 square meter area is 1 lumen, the ambient light intensity is 1 Lux.
302:在环境光线强度小于第一阈值时,根据环境光线强度确定呼吸灯的第一闪烁参数。302: When the ambient light intensity is less than the first threshold, determine a first flickering parameter of the breathing light according to the ambient light intensity.
其中,第一阈值用于判断是否需要启动呼吸灯进行补光,在环境光线强度小于第一阈值时,可开启呼吸灯进行补光;而在环境光线强度大于或等于第一阈值时,图像采集器可借助环境光线强度或者触控显示屏的亮度进行目标人脸图像采集,从而节省移动终端的功耗。The first threshold is used to determine whether the breathing light needs to be activated for supplementary light. When the ambient light intensity is less than the first threshold, the breathing light can be turned on for supplementary light; and when the ambient light intensity is greater than or equal to the first threshold, the image capture The device can use the ambient light intensity or the brightness of the touch screen to capture the target face image, thereby saving the power consumption of the mobile terminal.
第一闪烁参数包括多个维度信息,可以是闪烁亮度、闪烁颜色和闪烁频率等。也就是说,在环境光线强度小于第一阈值时,处理器根据呼吸灯的实际功率、实际使用情况、可调范围、损耗等综合因素确定与环境光线强度对应的第一闪烁参数,并通知呼吸灯按照第一闪烁参数启动。The first flickering parameter includes multiple dimensional information, which may be flickering brightness, flickering color, flickering frequency, and the like. That is to say, when the ambient light intensity is less than the first threshold, the processor determines the first flickering parameter corresponding to the ambient light intensity according to the actual power of the breathing lamp, actual usage, adjustable range, loss and other comprehensive factors, and notifies the breathing light The light is activated according to the first blink parameter.
在一个可能的示例中,所述根据所述环境光线强度确定呼吸灯的第一闪烁参数,包括:根据历史解锁记录获取光线强度阈值;获取所述光线强度阈值与所述环境光线强度之差,得到第一补光强度值;根据所述第一补光强度值确定所述第一闪烁参数。In a possible example, the determining the first flickering parameter of the breathing light according to the ambient light intensity includes: acquiring a light intensity threshold according to a historical unlocking record; acquiring a difference between the light intensity threshold and the ambient light intensity, obtaining a first supplementary light intensity value; and determining the first flickering parameter according to the first supplementary light intensity value.
其中,历史解锁记录包括解锁成功时的环境光线强度、解锁时间、目标人脸图像的质量参数(例如:人脸偏移角度、遮挡程度、光线质量参数等)、解锁成功率等等。本发明实施例对于如何根据历史解锁记录获取光线强度阈值不作限定,可根据历史解锁记录中包括的环境光线强度、解锁时间、目标人脸图像的光线质量参数、解锁成功率等中每一维度中对应参数和光线强度之间的关系确定光线强度阈值。Among them, the historical unlocking record includes the ambient light intensity when the unlocking is successful, the unlocking time, the quality parameters of the target face image (for example, the face offset angle, the degree of occlusion, the light quality parameters, etc.), the unlocking success rate, and so on. This embodiment of the present invention does not limit how to obtain the light intensity threshold according to the historical unlocking record, and can be based on the ambient light intensity, unlocking time, light quality parameters of the target face image, unlocking success rate, etc. included in the historical unlocking record in each dimension. The relationship between the corresponding parameter and the light intensity determines the light intensity threshold.
第一补光强度值为当前环境光线强度下进行人脸识别所需要补光的光线强度值。在确定光线强度阈值之后,可根据光线强度阈值和环境光线强度之间的差值获取第一补光强度值,并根据第一补光强度值确定第一闪烁参数,则在呼吸灯按照第一闪烁参数进行启动时,可满足第一补光强度值,从而提高人脸信息识别率。The first supplementary light intensity value is the light intensity value of the supplementary light required for face recognition under the current ambient light intensity. After the light intensity threshold is determined, the first supplementary light intensity value can be obtained according to the difference between the light intensity threshold and the ambient light intensity, and the first flickering parameter is determined according to the first supplementary light intensity value. When the flickering parameter is activated, the first fill light intensity value can be satisfied, thereby improving the recognition rate of face information.
在一个可能的示例中,所述根据所述第一补光强度值确定所述第一闪烁参数,包括:根据补光强度值和闪烁参数之间的映射关系查找与所述第一补光强度值对应的所述第一闪烁参数。In a possible example, the determining the first flickering parameter according to the first supplementary light intensity value includes: searching for a correlation between the first supplementary light intensity and the first supplementary light intensity according to a mapping relationship between the supplementary light intensity value and the flickering parameter value corresponding to the first flickering parameter.
处理器根据呼吸灯的可调范围可得到多组闪烁参数,在不同的环境光线强度下对每一组闪烁参数进行测试,得到该组闪烁参数对应的补光强度值,得到补光强度值和闪烁参数之间的映射关系并将其存储于存储器。处理器在确定第一补光强度值之后,可根据存储器中存储的映射关系查找第一补光强度值对应的第一闪烁参数,提高查找效率和补光的准确性。The processor can obtain multiple groups of flickering parameters according to the adjustable range of the breathing light, and test each group of flickering parameters under different ambient light intensities to obtain the complementary light intensity value corresponding to this group of flickering parameters, and obtain the complementary light intensity value and The mapping relationship between the blinking parameters is stored in the memory. After determining the first supplementary light intensity value, the processor may search for the first flickering parameter corresponding to the first supplementary light intensity value according to the mapping relationship stored in the memory, thereby improving search efficiency and supplementary light accuracy.
303:按照第一闪烁参数启动呼吸灯。303: Activate the breathing light according to the first blinking parameter.
也就是说,在环境光线强度小于第一阈值时,通过呼吸灯按照与环境光线强度对应的第一闪烁参数对人脸进行补光,提高了环境光线强度弱时的人脸信息识别率。That is, when the ambient light intensity is less than the first threshold, the breathing light is used to fill light on the face according to the first flickering parameter corresponding to the ambient light intensity, which improves the recognition rate of face information when the ambient light intensity is weak.
在一个可能的示例中,所述按照所述第一闪烁参数启动所述呼吸灯,包括:获取所述第一闪烁参数对应的工作参数;根据所述工作参数启动所述呼吸灯。In a possible example, the starting the breathing light according to the first blinking parameter includes: acquiring a working parameter corresponding to the first blinking parameter; and starting the breathing light according to the working parameter.
其中,工作参数可包括电压、电流、耗电功率等,在处理器确定第一闪烁参数之后,根据第一闪烁参数和呼吸灯的实际功率、实际使用情况、和损耗确定具体的工作参数,则移动终端可针对上述工作参数进行分配,再根据其工作参数启动呼吸灯,对人脸识别进行补光,提高了补光效率。The working parameters may include voltage, current, power consumption, etc. After the processor determines the first flickering parameter, the specific working parameters are determined according to the first flickering parameter and the actual power, actual usage, and consumption of the breathing light, then The mobile terminal can be allocated according to the above working parameters, and then activate the breathing light according to its working parameters to perform supplementary light for face recognition, thereby improving the supplementary light efficiency.
如图3所示的解锁控制方法中,获取环境光线强度,在环境光线强度小于第一阈值时,根据环境光线强度确定呼吸灯的第一闪烁参数,则呼吸灯按照第一闪烁参数进行启动。也就是说,在环境光线强度弱时的采用呼吸灯对人脸进行补光,提高了环境光线强度弱时的人脸信息识别率。In the unlocking control method shown in FIG. 3 , the ambient light intensity is obtained, and when the ambient light intensity is less than the first threshold, the first flickering parameter of the breathing light is determined according to the ambient light intensity, and the breathing light is activated according to the first flickering parameter. That is to say, when the ambient light intensity is weak, the breathing lamp is used to fill light on the face, which improves the recognition rate of the face information when the ambient light intensity is weak.
在一个可能的示例中,在所述按照所述第一闪烁参数启动所述呼吸灯之后,所述方法还包括:确定与所述第一闪烁参数对应的拍摄参数;根据所述拍摄参数获取目标人脸图像;获取所述目标人脸图像的光线质量参数;在所述光线质量参数小于第二阈值时,将所述呼吸灯的第一闪烁参数调整为第二闪烁参数。In a possible example, after starting the breathing light according to the first flickering parameter, the method further includes: determining a shooting parameter corresponding to the first flickering parameter; acquiring a target according to the shooting parameter face image; acquiring the light quality parameter of the target face image; when the light quality parameter is less than the second threshold, adjusting the first flickering parameter of the breathing light to the second flickering parameter.
图像采集器的拍摄参数可包括曝光时间、闪光灯的闪光时间和闪烁亮度等,处理器根据第一闪烁参数确定图像采集器的拍摄参数,即通过呼吸灯配合图像采集器进行目标人脸图像采集,可提高目标人脸图像的采集效果,从而提高人脸信息识别率。The shooting parameters of the image collector may include exposure time, flashing time of the flash, and flickering brightness, etc. The processor determines the shooting parameters of the image collector according to the first flickering parameter, that is, the target face image is collected through the breathing light and the image collector, The collection effect of the target face image can be improved, thereby improving the recognition rate of face information.
其中,光线质量参数与目标人脸图像的识别率相关,当光线质量参数高时,识别率高,反之,光线质量参数越低识别率越低;第二闪烁参数对应的第二补光强度值大于第一补光强度值;第二阈值用于判断是否需要增强补光强度,也就是说若图像采集器采集的目标人脸图像的光线质量参数小于第二阈值,需要重新确定呼吸灯的闪烁参数,在呼吸灯按照第二闪烁参数进行工作时,以提高环境光线强度,进而获取光线质量参数较高的目标人脸图像。Among them, the light quality parameter is related to the recognition rate of the target face image. When the light quality parameter is high, the recognition rate is high. On the contrary, the lower the light quality parameter is, the lower the recognition rate is; the second fill light intensity value corresponding to the second flicker parameter Greater than the first fill light intensity value; the second threshold value is used to judge whether the fill light intensity needs to be enhanced, that is to say, if the light quality parameter of the target face image collected by the image collector is less than the second threshold value, it is necessary to re-determine the flickering of the breathing light parameter, when the breathing light works according to the second flickering parameter, the ambient light intensity is increased, and the target face image with a higher light quality parameter is obtained.
第二闪烁参数与第一闪烁参数类似,包括多个维度信息,可以是闪烁亮度、闪烁颜色和闪烁频率等。呼吸灯将第一闪烁参数调整为第二闪烁参数的具体方法,可参照第一闪烁参数的步骤,在此不再赘述。The second flickering parameter is similar to the first flickering parameter, and includes multiple dimensional information, which may be flickering brightness, flickering color, flickering frequency, and the like. For the specific method of adjusting the first flickering parameter to the second flickering parameter by the breathing lamp, reference may be made to the steps of the first flickering parameter, which will not be repeated here.
本发明实施例对于第二闪烁参数不作限定,在光线质量参数小于第二阈值时,可继续调整第二闪烁参数,按照从小到大的补光强度值对于的闪烁参数进行补光,避免了一开始就采用最大补光强度值对于的闪烁参数进行补光而导致移动终端的电量浪费,且在光线质量参数大于第二阈值时,根据图像采集器采集的目标人脸图像和预设人脸图像的匹配值进行解锁控制,提高了环境光线强度弱时的人脸信息识别率和解锁的成功率。This embodiment of the present invention does not limit the second flickering parameter. When the light quality parameter is less than the second threshold, the second flickering parameter can be adjusted continuously, and the flickering parameter is supplemented according to the supplementary light intensity value from small to large, so as to avoid a From the beginning, the flickering parameter of the maximum fill light intensity value is used to fill light, which leads to a waste of power of the mobile terminal, and when the light quality parameter is greater than the second threshold, the target face image and the preset face image collected by the image collector are used. The matching value is used to unlock control, which improves the recognition rate of face information and the success rate of unlocking when the ambient light intensity is weak.
可选的,在所述光线质量参数小于第二阈值时,获取所述光线质量参数对应的匹配阈值;在所述目标人脸图像与预设人脸图像的匹配值大于所述匹配阈值时进行解锁。Optionally, when the light quality parameter is less than a second threshold, obtain a matching threshold corresponding to the light quality parameter; when the matching value between the target face image and the preset face image is greater than the matching threshold Unlock.
也就是说,若图像采集器采集的目标人脸图像的光线质量参数小于第二阈值,可根据光线质量参数确定人脸识别的匹配阈值,且在目标人脸图像与预设人脸图像的匹配值大于匹配阈值时,对移动终端进行解锁。即在外部补光的光线强度不能进行人脸识别时,降低人脸识别的匹配阈值,提供一种解锁方式,提供了解锁的灵活性。That is to say, if the light quality parameter of the target face image collected by the image collector is less than the second threshold, the matching threshold for face recognition can be determined according to the light quality parameter, and the matching threshold between the target face image and the preset face image can be determined. When the value is greater than the matching threshold, the mobile terminal is unlocked. That is, when the light intensity of the external supplementary light cannot perform face recognition, the matching threshold of face recognition is lowered, an unlocking method is provided, and the unlocking flexibility is provided.
与图3的实施例一致,请参照图4,图4是本发明实施例提供的一种解锁控制装置,应用于如图1所描述的移动终端。如图4所示,该解锁控制装置400包括:Consistent with the embodiment of FIG. 3 , please refer to FIG. 4 . FIG. 4 is an unlocking control apparatus provided by an embodiment of the present invention, which is applied to the mobile terminal described in FIG. 1 . As shown in FIG. 4 , the unlocking
第一获取单元401,用于获取环境光线强度。The first acquiring
第一确定单元402,用于在所述环境光线强度小于第一阈值时,根据所述环境光线强度确定呼吸灯的第一闪烁参数。The first determining
启动单元403,用于按照所述第一闪烁参数启动所述呼吸灯,所述呼吸灯用于对人脸进行补光。The
如图4所示的解锁控制装置中,获取环境光线强度,在环境光线强度小于第一阈值时,根据环境光线强度确定呼吸灯的第一闪烁参数,则呼吸灯按照第一闪烁参数进行启动。也就是说,在环境光线强度弱时的采用呼吸灯对人脸进行补光,提高了环境光线强度弱时的人脸信息识别率。In the unlocking control device shown in FIG. 4 , the ambient light intensity is obtained, and when the ambient light intensity is less than the first threshold, the first flickering parameter of the breathing light is determined according to the ambient light intensity, and the breathing light is activated according to the first flickering parameter. That is to say, when the ambient light intensity is weak, the breathing lamp is used to fill light on the face, which improves the recognition rate of the face information when the ambient light intensity is weak.
在一个可能的示例中,如图4A所示,所述第一确定单元402包括:In a possible example, as shown in FIG. 4A , the first determining
第一获取模块4021,用于根据历史解锁记录获取光线强度阈值;The first obtaining
第二获取模块4022,用于获取所述光线强度阈值与所述环境光线强度之差,得到第一补光强度值;A
确定模块4023,用于根据所述第一补光强度值确定所述第一闪烁参数。A
在一个可能的示例中,所述确定模块4023具体用于根据补光强度值和闪烁参数之间的映射关系查找与所述第一补光强度值对应的所述第一闪烁参数。In a possible example, the determining
在一个可能的示例中,所述装置400还包括:In a possible example, the
第二确定单元404,用于确定与所述第一闪烁参数对应的拍摄参数;a second determining
第二获取单元405,用于根据所述拍摄参数获取目标人脸图像;A second obtaining
第三获取单元406,用于获取所述目标人脸图像的光线质量参数;A third obtaining
调整单元407,用于在所述光线质量参数小于第二阈值时,将所述呼吸灯的第一闪烁参数调整为第二闪烁参数,所述第二闪烁参数对应的第二补光强度值大于所述第一补光强度值。An
可选的,所述装置400还包括:Optionally, the
第四获取单元,用于在所述光线质量参数小于第二阈值时,获取所述光线质量参数对应的匹配阈值;a fourth obtaining unit, configured to obtain a matching threshold corresponding to the light quality parameter when the light quality parameter is less than a second threshold;
解锁单元,用于在所述目标人脸图像与预设人脸图像的匹配值大于所述匹配阈值时进行解锁。An unlocking unit, configured to unlock when the matching value between the target face image and the preset face image is greater than the matching threshold.
在一个可能的示例中,如图4B所示,所述启动单元403包括:In a possible example, as shown in FIG. 4B , the
第三获取模块4031,用于获取所述第一闪烁参数对应的工作参数;A third obtaining
启动模块4032,用于根据所述工作参数启动所述呼吸灯。An
可以理解的是,本实施例的解锁控制装置的各程序模块的功能可根据方法实施例中的方法具体实现,其具体实现过程可以参照方法实施例的相关描述,此处不再赘述。It can be understood that the functions of each program module of the unlocking control device in this embodiment can be specifically implemented according to the method in the method embodiment, and the specific implementation process can refer to the relevant description of the method embodiment, which will not be repeated here.
与图1、图2、图3和图4的实施例一致,请参照图5,图5是本发明实施例提供的一种移动终端的结构示意图。如图5所示,该移动终端500包括处理器510、存储器520、通信接口530以及一个或多个程序540,其中,一个或多个程序540被存储在存储器520中,并且被配置由处理器510执行,程序540包括用于执行以下步骤的指令:Consistent with the embodiments in FIG. 1 , FIG. 2 , FIG. 3 , and FIG. 4 , please refer to FIG. 5 , which is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 5, the
获取环境光线强度;Get the ambient light intensity;
在所述环境光线强度小于第一阈值时,根据所述环境光线强度确定呼吸灯的第一闪烁参数;When the ambient light intensity is less than the first threshold, determining the first flickering parameter of the breathing light according to the ambient light intensity;
按照所述第一闪烁参数启动所述呼吸灯,所述呼吸灯用于对人脸进行补光。The breathing light is activated according to the first flickering parameter, and the breathing light is used to fill light on the human face.
可以看出,本发明实施例中,获取环境光线强度,在环境光线强度小于第一阈值时,根据环境光线强度确定呼吸灯的第一闪烁参数,则呼吸灯按照第一闪烁参数进行启动。也就是说,在环境光线强度弱时的采用呼吸灯对人脸进行补光,提高了环境光线强度弱时的人脸信息识别率。It can be seen that, in this embodiment of the present invention, the ambient light intensity is obtained, and when the ambient light intensity is less than the first threshold, the first flickering parameter of the breathing light is determined according to the ambient light intensity, and the breathing light is activated according to the first flickering parameter. That is to say, when the ambient light intensity is weak, the breathing lamp is used to fill light on the face, which improves the recognition rate of the face information when the ambient light intensity is weak.
作为一种可选的实施例,在所述根据所述环境光线强度确定呼吸灯的第一闪烁参数方面,上述程序540具体用于执行以下步骤的指令:As an optional embodiment, in the aspect of determining the first flickering parameter of the breathing light according to the ambient light intensity, the
根据历史解锁记录获取光线强度阈值;Obtain the light intensity threshold according to the historical unlocking record;
获取所述光线强度阈值与所述环境光线强度之差,得到第一补光强度值;obtaining the difference between the light intensity threshold and the ambient light intensity to obtain a first supplementary light intensity value;
根据所述第一补光强度值确定所述第一闪烁参数。The first flickering parameter is determined according to the first supplementary light intensity value.
作为一种可选的实施例,在所述根据所述第一补光强度值确定所述第一闪烁参数方面,上述程序540具体用于执行以下步骤的指令:As an optional embodiment, in the aspect of determining the first flickering parameter according to the first supplementary light intensity value, the above-mentioned
根据补光强度值和闪烁参数之间的映射关系查找与所述第一补光强度值对应的所述第一闪烁参数。The first flicker parameter corresponding to the first fill light intensity value is searched according to the mapping relationship between the fill light intensity value and the flicker parameter.
作为一种可选的实施例,在所述按照所述第一闪烁参数启动所述呼吸灯之后,上述程序540还用于执行以下步骤的指令:As an optional embodiment, after the breathing light is started according to the first flickering parameter, the
确定与所述第一闪烁参数对应的拍摄参数;determining a shooting parameter corresponding to the first flickering parameter;
根据所述拍摄参数获取目标人脸图像;Acquiring a target face image according to the shooting parameters;
获取所述目标人脸图像的光线质量参数;obtaining the light quality parameter of the target face image;
在所述光线质量参数小于第二阈值时,将所述呼吸灯的第一闪烁参数调整为第二闪烁参数,所述第二闪烁参数对应的第二补光强度值大于所述第一补光强度值。When the light quality parameter is less than the second threshold, the first flickering parameter of the breathing light is adjusted to a second flickering parameter, and the second fill light intensity value corresponding to the second flicker parameter is greater than the first fill light intensity value.
作为一种可选的实施例,在所述获取所述目标人脸图像的光线质量参数之后,上述程序540还用于执行以下步骤的指令:As an optional embodiment, after the acquisition of the light quality parameter of the target face image, the
在所述光线质量参数小于第二阈值时,获取所述光线质量参数对应的匹配阈值;When the light quality parameter is less than a second threshold, acquiring a matching threshold corresponding to the light quality parameter;
在所述目标人脸图像与预设人脸图像的匹配值大于所述匹配阈值时进行解锁。The unlocking is performed when the matching value between the target face image and the preset face image is greater than the matching threshold.
作为一种可选的实施例,在所述按照所述第一闪烁参数启动所述呼吸灯方面,上述程序540具体用于执行以下步骤的指令:As an optional embodiment, in the aspect of starting the breathing light according to the first flickering parameter, the
获取所述第一闪烁参数对应的工作参数;obtaining the working parameter corresponding to the first flickering parameter;
根据所述工作参数启动所述呼吸灯。The breathing light is activated according to the operating parameters.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于存储计算机程序,该计算机程序使得计算机执行如方法实施例中记载的任一方法的部分或全部步骤,计算机包括移动终端。An embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium is used for storing a computer program, and the computer program causes the computer to execute part or all of the steps of any of the methods described in the method embodiments, and the computer includes a mobile terminal.
本发明实施例还提供一种计算机程序产品,计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,计算机程序可操作来使计算机执行如方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,计算机包括移动终端。An embodiment of the present invention further 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 a computer to execute a part of any of the methods described in the method embodiments or all steps. The computer program product can be a software installation package, and the computer includes a mobile terminal.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all 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. As in accordance with 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 are all 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 emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative, for example, the division of units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be combined or integrated into Another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The integrated unit can be implemented either in the form of hardware or in the form of software functional units.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention is essentially 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 cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of 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.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The embodiments of the present invention have been introduced in detail above, and specific examples are used to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present invention; at the same time, for Those skilled in the art, according to the idea of the present invention, will have changes in the specific embodiments and application scope. In conclusion, the contents of this specification should not be construed as limiting the present invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710873971.0A CN107679473B (en) | 2017-09-22 | 2017-09-22 | Unlock control method and related products |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710873971.0A CN107679473B (en) | 2017-09-22 | 2017-09-22 | Unlock control method and related products |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107679473A CN107679473A (en) | 2018-02-09 |
CN107679473B true CN107679473B (en) | 2020-12-08 |
Family
ID=61138210
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710873971.0A Active CN107679473B (en) | 2017-09-22 | 2017-09-22 | Unlock control method and related products |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107679473B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108391011B (en) * | 2018-03-07 | 2020-07-14 | 维沃移动通信有限公司 | Face recognition method and mobile terminal |
CN108966455A (en) * | 2018-06-19 | 2018-12-07 | Oppo广东移动通信有限公司 | Mobile terminal, breathing lamp control method thereof and storage medium |
CN109241908A (en) * | 2018-09-04 | 2019-01-18 | 深圳市宇墨科技有限公司 | Face identification method and relevant apparatus |
CN109146498A (en) * | 2018-09-04 | 2019-01-04 | 深圳市宇墨科技有限公司 | Face method of payment and relevant apparatus |
CN109167922B (en) * | 2018-10-22 | 2021-05-04 | 北京旷视科技有限公司 | Image processing method and device and electronic equipment |
CN109766759A (en) * | 2018-12-12 | 2019-05-17 | 成都云天励飞技术有限公司 | Emotion recognition method and related products |
CN109862278B (en) * | 2019-04-19 | 2022-08-16 | 努比亚技术有限公司 | Light supplementing method and device for face recognition and computer readable storage medium |
CN112667984A (en) * | 2020-12-31 | 2021-04-16 | 上海商汤临港智能科技有限公司 | Identity authentication method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104065862A (en) * | 2013-03-18 | 2014-09-24 | 联想(北京)有限公司 | Information processing method and electronic device |
CN105376422A (en) * | 2015-12-09 | 2016-03-02 | 上海斐讯数据通信技术有限公司 | Breathing lamp brightness automatic adjusting method and system, and mobile terminal |
CN105701376A (en) * | 2016-01-12 | 2016-06-22 | 上海斐讯数据通信技术有限公司 | Intelligent terminal combination unlock method and intelligent terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170187866A1 (en) * | 2015-10-17 | 2017-06-29 | Eric Qing Li | Automatic Volume Control Based on Context and Location |
-
2017
- 2017-09-22 CN CN201710873971.0A patent/CN107679473B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104065862A (en) * | 2013-03-18 | 2014-09-24 | 联想(北京)有限公司 | Information processing method and electronic device |
CN105376422A (en) * | 2015-12-09 | 2016-03-02 | 上海斐讯数据通信技术有限公司 | Breathing lamp brightness automatic adjusting method and system, and mobile terminal |
CN105701376A (en) * | 2016-01-12 | 2016-06-22 | 上海斐讯数据通信技术有限公司 | Intelligent terminal combination unlock method and intelligent terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107679473A (en) | 2018-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107679473B (en) | Unlock control method and related products | |
KR102281256B1 (en) | Method for controlling white balance and an electronic device thereof | |
US9635279B2 (en) | Image acquisition method and apparatus | |
CN109327691B (en) | Image shooting method and device, storage medium and mobile terminal | |
CN104853111A (en) | Shooting method and terminal | |
CN104243842A (en) | Flashlight intensity control method and image pickup device | |
CN108881875B (en) | Image white balance processing method and device, storage medium and terminal | |
CN101710922A (en) | Shooting method and system based on mobile terminal | |
CN109729281A (en) | Image processing method, device, storage medium and terminal | |
WO2017071240A1 (en) | Camera shooting exposure processing method and terminal | |
CN103618851A (en) | Self-photographing method and terminal | |
CN108288046B (en) | Unlocking control method and related product | |
CN205318073U (en) | External flash light based on cell -phone radio communication draws sudden strain of a muscle with light | |
CN109040729A (en) | Image white balance correcting, device, storage medium and terminal | |
CN115775321A (en) | Method and device for adjusting brightness of lighting lamp, electronic equipment and storage medium | |
CN116055712A (en) | Method, device, chip, electronic equipment, and medium for determining film yield | |
CN203407048U (en) | External flash lamp and shooting system | |
CN107272301A (en) | Plug-in flash lamp and photographing system using same | |
CN105845090A (en) | Method and device for adjusting backlight | |
WO2015154531A1 (en) | Method and device for adjusting illumination brightness, illumination method and illumination device | |
WO2019041362A1 (en) | Illumination control system and method | |
CN209435327U (en) | A kind of intelligent photographic light control system | |
CN108401119B (en) | An image processing method, mobile terminal and related media products | |
CN204517927U (en) | Electronic equipment | |
CN103491687A (en) | Externally-arranged wireless flash lamp for mobile phone or portable computer |
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 | ||
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. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |