CN107491672B - Unlocking processing method and related product - Google Patents
Unlocking processing method and related product Download PDFInfo
- Publication number
- CN107491672B CN107491672B CN201710585002.5A CN201710585002A CN107491672B CN 107491672 B CN107491672 B CN 107491672B CN 201710585002 A CN201710585002 A CN 201710585002A CN 107491672 B CN107491672 B CN 107491672B
- Authority
- CN
- China
- Prior art keywords
- image
- biological
- unlocked
- event
- face image
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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; 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
-
- 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/18—Eye characteristics, e.g. of the iris
- G06V40/19—Sensors therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Multimedia (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Signal Processing (AREA)
- Ophthalmology & Optometry (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses an unlocking processing method and a related product, which comprises the following steps: when the face image is detected, adjusting the focal length of the camera module; when the definition of the face image is larger than a preset threshold value, acquiring at least one biological image of a user; and when the at least one biological image is successfully matched with the preset biological template set, executing unlocking operation. The embodiment of the invention is beneficial to improving the speed and the safety of the unlocking operation of the mobile terminal.
Description
Technical Field
The invention relates to the technical field of mobile terminals, in particular to an unlocking processing method and a related product.
Background
With the popularization and application of smart phones in a large number, smart phones can support more and more applications and have more and more powerful functions, and smart phones develop towards diversification and individuation and become indispensable electronic products in user life.
At present, most of smart phones adopt biological information unlocking schemes, such as face unlocking, iris unlocking and the like, and the security coefficient of the biological unlocking schemes seriously affects the security of the mobile phone, so how to ensure the security coefficient of the biological unlocking schemes becomes a problem which needs to be rigorously solved.
Disclosure of Invention
The embodiment of the invention provides an unlocking processing method and a related product, aiming at improving the convenience and safety of unlocking operation of a mobile terminal.
In a first aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a biological image capturing device connected to the processor, a camera driving device, and a memory, wherein,
the biological image acquisition device is used for acquiring a biological image;
the camera driving device is used for adjusting the focal length of the camera module;
the processor is used for adjusting the focal length of the camera module through the camera driving device when a face image is detected; the biological image acquisition device is used for acquiring at least one biological image when the definition of the face image is detected to be greater than a preset threshold value; and the unlocking operation is executed when the at least one biological image is successfully matched with the preset biological template set stored in the memory.
In a second aspect, an embodiment of the present invention provides an unlocking processing method, including:
when the face image is detected, adjusting the focal length of the camera module;
when the definition of the face image is detected to be larger than a preset threshold value, at least one biological image is collected;
and when the at least one biological image is successfully matched with the preset biological template set, executing unlocking operation.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processing unit and a collecting unit,
the processing unit is used for adjusting the focal length of the camera module when the face image is detected; the face image acquisition unit is used for acquiring at least one biological image when the definition of the face image is detected to be greater than a preset threshold value; and the unlocking operation is executed when the at least one biological image is successfully matched with the preset biological template set.
In a fourth aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps of any of the methods in the second aspect of the present invention.
In a fifth aspect, the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in any one of the methods in the second aspect of the present invention, and the computer includes a mobile terminal.
In a sixth aspect, 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 perform some or all of the steps described in any one of the methods according to the second aspect of the embodiments of the present invention. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It can be seen that, in the embodiment of the present invention, the mobile terminal firstly adjusts the focal length of the camera module when detecting the face image; secondly, when the definition of the face image is detected to be larger than a preset threshold value, at least one biological image is collected; and finally, executing unlocking operation when the at least one biological image is successfully matched with the preset biological template set. Therefore, the mobile terminal obtains the face image with high definition through the focal length of the camera module which is adjusted through accurate zooming, the matching speed of unlocking operation of the mobile terminal is favorably improved, and the unlocking safety of the mobile terminal is favorably improved due to higher definition.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 2A is a schematic flowchart of an unlocking processing method according to an embodiment of the present invention;
fig. 2B is an exemplary diagram of a face preview image of a mobile terminal according to an embodiment of the present invention;
fig. 2C is an exemplary diagram of a face preview image of another mobile terminal disclosed in the embodiment of the present invention;
fig. 3 is a schematic flow chart of another unlocking processing method disclosed in the embodiment of the present invention;
fig. 4 is a schematic flowchart of another unlocking processing method disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a block diagram of functional units of a mobile terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, 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 in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
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 invention. The appearances of the 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 explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The Mobile terminal according to the embodiment of the present invention may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like, which have wireless communication functions. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal.
The mobile terminal described in the embodiment of the invention is provided with a biological image acquisition device, the biological image acquisition device specifically comprises an iris image acquisition device and a face image acquisition device, wherein the iris image acquisition device can comprise an infrared light source and an iris camera, the infrared light source is used for emitting infrared light to irradiate the iris of a user to form reflected light, the iris camera is used for acquiring the reflected light to form an iris image, and the face image acquisition device can be a universal camera module, such as a front camera. The following describes embodiments of the present invention in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a mobile terminal 100 according to an embodiment of the present invention, where the mobile terminal 100 includes: the mobile terminal comprises a shell, a touch display screen, a main board, a battery and an auxiliary board, wherein an infrared light source 21, an iris camera 22, a front camera 23, a processor 110, a memory 120, a camera driving device 130, a SIM card slot and the like are arranged on the main board, a vibrator, an integrated sound cavity and a VOOC flash charging interface are arranged on the auxiliary board, the infrared light source 21 and the iris camera 22 form an iris image acquisition device of the mobile terminal 100, the front camera 23 forms a face image acquisition device of the mobile terminal 100, the iris image acquisition device and the face image acquisition device are collectively called a biological image acquisition device of the mobile terminal 100, wherein,
the biological image acquisition device is used for acquiring a biological image;
when the biological image acquisition device is an iris image acquisition device, the infrared light source 21 is used for emitting infrared light to irradiate the iris of a user to form reflected light, the iris camera 22 is used for collecting the reflected light to form an iris image, and the processor 110 acquires the iris image and then executes processing procedures such as iris image quality evaluation, iris region positioning (including coarse positioning and fine positioning), iris preprocessing, iris feature point extraction, iris template generation and the like on the iris image.
The camera driving device 130 is configured to adjust a focal length of the camera module;
wherein, the camera module can be iris camera module, also can leading camera module, perhaps the latter camera module, the iris camera module includes infrared source and iris camera, and former camera module includes leading camera, and rearmounted camera module includes rearmounted camera.
The processor 110 is configured to adjust a focal length of the camera module through the camera driving device when a face image is detected; the biological image acquisition device is used for acquiring at least one biological image when the definition of the face image is detected to be greater than a preset threshold value; and is configured to execute an unlocking operation when the at least one biometric image is successfully matched with the preset biometric template set stored in the memory 120.
It can be seen that, in the embodiment of the present invention, the mobile terminal firstly adjusts the focal length of the camera module when detecting the face image; secondly, when the definition of the face image is detected to be larger than a preset threshold value, at least one biological image is collected; and finally, executing unlocking operation when the at least one biological image is successfully matched with the preset biological template set. Therefore, the mobile terminal obtains the face image with high definition through the focal length of the camera module which is adjusted through accurate zooming, the matching speed of unlocking operation of the mobile terminal is favorably improved, and the unlocking safety of the mobile terminal is favorably improved due to higher definition.
In one possible example, in the aspect of adjusting the focal length of the camera module when the face image is detected, the processor 110 is specifically configured to: when the face image is detected, acquiring a distance parameter and integrity of the face image; and determining a zoom factor according to the distance parameter and the integrity; and is used for adjusting the focal length of the camera module through the camera driving device 130 according to the zoom factor.
In one possible example, in the determining the zoom factor according to the distance parameter and the completeness, the processor 110 is specifically configured to: obtaining a mapping relationship between the zoom multiple and the integrity corresponding to the distance parameter stored in the memory 120; and the zoom factor corresponding to the integrity is determined according to the mapping relation.
In one possible example, in the above acquiring at least one biological image when the sharpness of the face image is detected to be greater than the preset threshold, the processor 110 is specifically configured to: acquiring the security level of an event to be unlocked; the system comprises a biological image definition threshold and a safety level, wherein the biological image definition threshold is used for acquiring a biological image definition of a user; and when the definition of the face image is greater than or equal to the definition threshold, acquiring the at least one biological image according to the security level of the event to be unlocked.
In a possible example, in the aspect of performing an unlocking operation when the matching of the at least one biological image with the preset biological template set stored in the memory 120 is successful, the processor 110 is specifically configured to: determining a matching degree threshold value of the at least one biological image according to the definition of the face image; and matching the at least one biological image with the preset biological template set; and is configured to perform an unlocking operation when a matching degree of the at least one biological image with the preset biological template set stored in the memory 120 is greater than or equal to the threshold matching degree.
Referring to fig. 2A, fig. 2A is a schematic flowchart of an unlocking processing method applied to a mobile terminal according to an embodiment of the present invention, where as shown in the figure, the unlocking processing method includes:
s201, when the mobile terminal detects a face image, adjusting the focal length of a camera module;
in one possible example, before the mobile terminal detects the face image, the method further includes:
detecting an event to be unlocked;
and opening a front camera to capture a human face image.
The event to be unlocked may be, for example, a desktop event to be unlocked, an application event to be unlocked, a file event to be unlocked, or the like, which is not limited herein. The event to be unlocked by the desktop refers to an event to be unlocked for locking the desktop, the event to be unlocked by the application refers to an event to be unlocked for a specific operation of the application, such as application starting, application deleting and the like, and the event to be unlocked by the file refers to an event to be unlocked for the file, such as an event to be unlocked for a target file.
The trigger condition for detecting the event to be unlocked by the mobile terminal may be that the mobile terminal detects the event to be unlocked of the application to be unlocked, where the event to be unlocked may be specifically triggered by touch operation, pressing operation, voice operation, and the like of the user, for example, for the mobile terminal in the off-screen standby state, pressing a power key or a Home key triggers the event to be unlocked, where the trigger condition is not limited.
The focal length of the camera module can be adjusted step by step according to a fixed zoom multiple by a stepping motor of the camera module, and also can be adjusted by determining an appropriate zoom multiple by determining environmental parameters and system parameters, without limitation, wherein the environmental parameters can be environmental light intensity, and the system parameters can be parameters such as current focal length.
In a possible example, the adjusting the focal length of the camera module when the face image is detected includes:
when the face image is detected, acquiring a distance parameter and integrity of the face image;
determining a zoom multiple according to the distance parameter and the integrity;
and adjusting the focal length of the camera module according to the zoom multiple.
The distance parameter is the distance between the mobile terminal and the face of the user, and the integrity is the integrity of the face contour.
The distance parameters of the face images can be acquired by a distance sensor of the mobile terminal or an infrared sensor, and the integrity can be matched with the preset face images with different integrity to acquire the integrity corresponding to the face images.
Wherein, the camera module preview image's of the multiple that zooms width and degree of depth can be adjusted.
The specific implementation manner of determining the zoom multiple according to the distance parameter and the integrity may be that a reference range of the zoom multiple is roughly determined according to the distance parameter, and a target zoom multiple in the reference range of the zoom multiple is accurately determined as the zoom multiple according to the integrity.
And determining a zoom multiple which enables the integrity of the face image to reach a preset integrity threshold according to the distance parameter and the integrity.
Wherein, adjust the focus of above-mentioned camera module according to above-mentioned zoom multiple and can be according to above-mentioned zoom multiple devices such as step motor of adjusting mobile terminal camera module to adjust the focus of camera module, make the definition of face image reach and predetermine the threshold value.
Therefore, in the example, the mobile terminal determines the zoom multiple according to the distance parameter and the integrity instead of using the fixed zoom multiple, which is beneficial to improving the definition and the integrity of the face image, thereby improving the accuracy of focusing of the mobile terminal.
In this possible example, the determining the zoom factor according to the distance parameter and the completeness includes:
acquiring a mapping relation between the zoom multiple and the integrity corresponding to the distance parameter;
and determining the zoom multiple corresponding to the integrity according to the mapping relation.
For example, when the distance parameter is 30cm and the integrity is 80%, the corresponding zoom multiple is 2 times for focusing, and when the integrity is 40%, the corresponding zoom multiple is 10 times for focusing; when the distance parameter is 60cm and the integrity is 80%, the corresponding zoom multiple is 5 times for focusing, and when the integrity is 40%, the corresponding zoom multiple is 15 times for focusing.
For example, when the distance parameter is 30cm, as shown in fig. 2B, the integrity of the face is 70%, the zoom multiple required to be determined is a zoom multiple that can make the integrity of the acquired face image be 100%, as shown in fig. 2C, by adjusting the focal length of the camera module according to the zoom multiple, the acquired face image is changed from 70% in fig. 2B to 100% in fig. 2C, and the sharpness still can meet the requirement.
Therefore, in this example, the mobile terminal determines the zoom multiple corresponding to the distance parameter and the integrity by obtaining a pre-stored mapping relationship, which is beneficial to improving the convenience of zoom adjustment of the mobile terminal and improving the speed of unlocking processing of the mobile terminal.
S202, when the mobile terminal detects that the definition of the face image is greater than a preset threshold value, at least one biological image is collected;
the biological image may be a face image and an iris image.
The face image may be a partial or complete face image, and the iris image may be a monocular iris image or a binocular iris image.
In a possible example, the acquiring at least one biological image when the sharpness of the face image is detected to be greater than a preset threshold includes:
acquiring the security level of an event to be unlocked;
inquiring a mapping relation between a preset security level and a biological image definition threshold according to the security level, and determining a definition threshold corresponding to the security level;
and when the definition of the face image is greater than or equal to the definition threshold, acquiring the at least one biological image according to the security level of the event to be unlocked.
The security level may be set by a system or may be set by a user, and is not limited herein, for example, the security level may be set to be a high security level, a medium security level, or a low security level, and different definitions are set according to different security levels, for example, when the security level is high, a higher definition threshold value needs to be corresponded, and when the security level is low, a lower definition threshold value needs to be corresponded.
The at least one biological image is acquired according to the security level of the event to be unlocked, all features of two biological images of the face image and the iris image can be acquired at a high security level, partial features of the two biological images of the face image and the iris image can be acquired at a medium security level, or one biological image of the face image and the iris image can be acquired at a low security level.
It can be seen that, in this example, the mobile terminal determines the definition threshold value when acquiring the biological image according to the different security levels of the event to be unlocked, the security level is lower, the definition threshold value is low, the speed of acquiring the biological image is higher, the security level is high, the definition threshold value is high, the security of the mobile terminal is effectively ensured, moreover, the security level is distinguished for the event to be unlocked, the security management that the user can only unify and the mode is single for a large scene can be avoided, and the fineness, the comprehensiveness and the flexibility of the security management of the mobile terminal can be improved.
And S203, when the mobile terminal successfully matches the at least one biological image with a preset biological template set, executing an unlocking operation.
In a possible example, when the at least one biometric image is successfully matched with the preset biometric template set, the performing an unlocking operation includes:
determining a matching degree threshold value of the at least one biological image according to the definition of the face image;
matching the at least one biological image with the preset biological template set;
and when the matching degree of the at least one biological image and the preset biological template set is detected to be greater than or equal to the matching degree threshold value, executing unlocking operation.
The implementation manner of the mobile terminal executing the unlocking operation may be to switch the current state of the mobile terminal to an unlocking state, where the current state includes a screen locking state, a disabled state, and the like, and is not limited here.
Wherein the set of biological templates comprises at least one of: one or more iris information templates and one or more face information templates.
The iris information template is an iris data template, and the iris data template is a collective image of correspondence between the positions of characteristic points of the iris of the registered user and characteristic values (the characteristic values may be capacitances, inductances, voltages, currents, relative values, and the like) of specific points.
The face information template is a face data template, and the fingerprint data template is a set of correspondence between positions of feature points of the face of the registered user and feature values of the feature points (the feature values may be capacitances, inductances, voltages, currents, relative values, and the like).
The definition threshold value is high, the corresponding matching degree threshold value is high, the definition threshold value is low, the corresponding matching degree threshold value is low, and the matching speed of the mobile terminal can be improved.
Therefore, in the example, the mobile terminal determines the matching degree threshold according to the definition of the face image, and performs the unlocking operation according to the matching degree threshold, so that the security of the mobile terminal is ensured, and meanwhile, the matching speed and flexibility of the mobile terminal are improved.
It can be seen that, in the embodiment of the present invention, the mobile terminal firstly adjusts the focal length of the camera module when detecting the face image; secondly, when the definition of the face image is detected to be larger than a preset threshold value, at least one biological image is collected; and finally, executing unlocking operation when the at least one biological image is successfully matched with the preset biological template set. Therefore, the mobile terminal obtains the face image with high definition through the focal length of the camera module which is adjusted through accurate zooming, the matching speed of unlocking operation of the mobile terminal is favorably improved, and the unlocking safety of the mobile terminal is favorably improved due to higher definition.
Referring to fig. 3, fig. 3 is a flowchart illustrating an unlocking processing method according to an embodiment of the present invention, and the method is applied to a mobile terminal. As shown in the figure, the unlocking processing method includes:
s301, when the mobile terminal detects a face image, the distance parameter and the integrity of the face image are obtained.
And S302, the mobile terminal acquires a mapping relation between the zoom multiple and the integrity corresponding to the distance parameter.
And S303, the mobile terminal determines the zoom multiple corresponding to the integrity according to the mapping relation.
And S304, the mobile terminal adjusts the focal length of the camera module according to the zoom multiple.
S305, when the mobile terminal detects that the definition of the face image is greater than a preset threshold value, at least one biological image is collected.
And S306, when the mobile terminal successfully matches the at least one biological image with a preset biological template set, executing an unlocking operation.
The above S305 and S306 may refer to corresponding steps in the embodiment described with reference to fig. 2A.
It can be seen that, in the embodiment of the present invention, the mobile terminal firstly adjusts the focal length of the camera module when detecting the face image; secondly, when the definition of the face image is detected to be larger than a preset threshold value, at least one biological image is collected; and finally, executing unlocking operation when the at least one biological image is successfully matched with the preset biological template set. Therefore, the mobile terminal obtains the face image with high definition through the focal length of the camera module which is adjusted through accurate zooming, the matching speed of unlocking operation of the mobile terminal is favorably improved, and the unlocking safety of the mobile terminal is favorably improved due to higher definition.
In addition, the mobile terminal determines the zoom multiple according to the distance parameter and the integrity instead of using the fixed zoom multiple, so that the definition and the integrity of the face image are improved, the focusing accuracy of the mobile terminal is improved, and the zoom multiple corresponding to the distance parameter and the integrity is determined by the mobile terminal through acquiring the pre-stored mapping relation, so that the zoom adjustment convenience of the mobile terminal is improved, and the unlocking processing speed of the mobile terminal is improved.
Referring to fig. 4, please refer to fig. 4 in accordance with the embodiment shown in fig. 2A, where fig. 4 is a schematic flowchart of an unlocking processing method according to an embodiment of the present invention, and is applied to a mobile terminal. As shown in the figure, the unlocking processing method includes:
s401, when the mobile terminal detects a face image, the distance parameter and the integrity of the face image are obtained.
S402, the mobile terminal obtains the mapping relation between the zoom multiple and the integrity corresponding to the distance parameter.
And S403, the mobile terminal determines the zoom multiple corresponding to the integrity according to the mapping relation.
And S404, the mobile terminal adjusts the focal length of the camera module according to the zoom multiple.
S405, the mobile terminal obtains the security level of the event to be unlocked.
S406, the mobile terminal inquires a mapping relation between a preset security level and a biological image definition threshold according to the security level, and determines the definition threshold corresponding to the security level.
And S407, when the mobile terminal detects that the definition of the face image is greater than or equal to the definition threshold, acquiring the at least one biological image according to the security level of the event to be unlocked.
S408, the mobile terminal determines the threshold value of the matching degree of the at least one biological image according to the definition of the face image.
S409, the mobile terminal matches the at least one biometric image with the preset biometric template set.
And S410, when the matching degree of the at least one biological image and the preset biological template set is greater than or equal to the matching degree threshold value, the mobile terminal executes unlocking operation.
It can be seen that, in the embodiment of the present invention, the mobile terminal firstly adjusts the focal length of the camera module when detecting the face image; secondly, when the definition of the face image is larger than a preset threshold value, at least one biological image is collected; and finally, executing unlocking operation when the at least one biological image is successfully matched with the preset biological template set. Therefore, the mobile terminal obtains the face image with high definition through the focal length of the camera module which is adjusted through accurate zooming, the matching speed of unlocking operation of the mobile terminal is favorably improved, and the unlocking safety of the mobile terminal is favorably improved due to higher definition.
In addition, the mobile terminal confirms the definition threshold value when gathering the biological image according to the security level of the event of waiting to unlock of difference, the security level is lower, the definition threshold value is low, it is very fast to gather the speed of biological image, the security level is high, the definition threshold value is high, effectively ensure mobile terminal's security, and then confirm the matching degree threshold value according to the definition, promote the matching speed, moreover, distinguish the security level to waiting to unlock the event, avoid the user only can be unified to big scene, the security management of mode singleness, be favorable to improving mobile terminal security management's fineness, comprehensiveness and flexibility.
In accordance with the embodiments shown in fig. 2A, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention, and as shown in the drawing, the mobile terminal includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps;
when the face image is detected, adjusting the focal length of the camera module;
when the definition of the face image is detected to be larger than a preset threshold value, at least one biological image is collected;
and when the at least one biological image is successfully matched with the preset biological template set, executing unlocking operation.
It can be seen that, in the embodiment of the present invention, the mobile terminal firstly adjusts the focal length of the camera module when detecting the face image; secondly, when the definition of the face image is detected to be larger than a preset threshold value, at least one biological image is collected; and finally, executing unlocking operation when the at least one biological image is successfully matched with the preset biological template set. Therefore, the mobile terminal obtains the face image with high definition through the focal length of the camera module which is adjusted through accurate zooming, the matching speed of unlocking operation of the mobile terminal is favorably improved, and the unlocking safety of the mobile terminal is favorably improved due to higher definition.
In one possible example, in the aspect of adjusting the focal length of the camera module when the face image is detected, the instructions in the program are specifically configured to perform the following steps: when the face image is detected, acquiring a distance parameter and integrity of the face image; and determining a zoom factor according to the distance parameter and the integrity; and the focal length of the camera module is adjusted according to the zoom multiple.
In one possible example, in the aspect of determining the zoom factor according to the distance parameter and the completeness, the instructions in the program are specifically configured to perform the following steps: acquiring a mapping relation between the zoom multiple and the integrity corresponding to the distance parameter; and the zoom factor corresponding to the integrity is determined according to the mapping relation.
In one possible example, in the above-mentioned aspect of acquiring at least one biological image when the sharpness of the detected face image is greater than the preset threshold, the instructions in the program are specifically configured to perform the following steps: acquiring the security level of an event to be unlocked; the system comprises a biological image definition threshold and a safety level, wherein the biological image definition threshold is used for acquiring a biological image definition of a user; and the system is used for collecting the at least one biological image according to the security level of the event to be unlocked when the definition of the face image is detected to be greater than or equal to the definition threshold.
In a possible example, in the aspect of performing an unlocking operation when the matching of the at least one biological image with the preset biological template set is successful, the instructions in the program are specifically configured to perform the following steps: determining a matching degree threshold value of the at least one biological image according to the definition of the face image; and matching the at least one biological image with the preset biological template set; and the unlocking operation is executed when the matching degree of the at least one biological image and the preset biological template set is greater than or equal to the matching degree threshold value.
The above description has introduced the solution of the embodiment of the present invention mainly from the perspective of the method-side implementation process. It is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software, with the exemplary elements and algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The embodiment of the present invention may perform the division of the functional units for the mobile terminal according to the method example described above, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In case of an integrated unit, fig. 6 shows a block diagram of one possible functional unit composition of the mobile terminal involved in the above embodiment. The mobile terminal 600 includes: a processing unit 602 and an acquisition unit 603. Processing unit 602 is configured to control and manage actions of the mobile terminal, e.g., processing unit 602 is configured to support the mobile terminal to perform steps S201-S203 in fig. 2A, steps S301-S306 in fig. 3, steps S401-S410 in fig. 4, and/or other processes for the techniques described herein. The acquisition unit 603 is used for supporting communication between the mobile terminal and other devices. The mobile terminal may further include a storage unit 601 for storing program codes and data of the mobile terminal.
The processing unit 602 is configured to adjust a focal length of the camera module when the face image is detected; and is used for collecting at least one biological image through the collecting unit 603 when the definition of the face image is detected to be greater than a preset threshold; and the unlocking operation is executed when the at least one biological image is successfully matched with the preset biological template set.
In a possible example, in terms of adjusting the focal length of the camera module when the face image is detected, the processing unit 602 is specifically configured to: when the face image is detected, acquiring a distance parameter and integrity of the face image; and determining a zoom factor according to the distance parameter and the integrity; and the focal length of the camera module is adjusted according to the zoom multiple.
In one possible example, in the aspect of determining the zoom factor according to the distance parameter and the completeness, the processing unit 602 is specifically configured to: acquiring a mapping relation between the zoom multiple and the integrity corresponding to the distance parameter; and the zoom factor corresponding to the integrity is determined according to the mapping relation.
In a possible example, in the above-mentioned acquiring unit 603, when it is detected that the sharpness of the face image is greater than a preset threshold, the processing unit 602 is specifically configured to: acquiring the security level of an event to be unlocked; the system comprises a biological image definition threshold and a safety level, wherein the biological image definition threshold is used for acquiring a biological image definition of a user; and is configured to acquire the at least one biological image through the acquisition unit 603 according to the security level of the event to be unlocked when the definition of the face image is greater than or equal to the definition threshold.
In a possible example, in terms of performing an unlocking operation when the at least one biometric image is successfully matched with the preset biometric template set, the processing unit 602 is specifically configured to: determining a matching degree threshold value of the at least one biological image according to the definition of the face image; and matching the at least one biological image with the preset biological template set; and the unlocking operation is executed when the matching degree of the at least one biological image and the preset biological template set is detected to be greater than or equal to the matching degree threshold value.
The processing unit 602 may be a processor or a controller, the acquiring unit 603 may be an iris image acquiring device or a face image acquiring device, and the storage unit 601 may be a memory.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above methods according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (8)
1. A mobile terminal is characterized by comprising a processor, a biological image acquisition device connected with the processor, a camera driving device and a memory, wherein,
the biological image acquisition device is used for acquiring a biological image;
the camera driving device is used for adjusting the focal length of the camera module;
the processor is configured to, when an event to be unlocked is detected, start a front-facing camera to capture a face image, and when the face image is detected, adjust a focal length of the camera module through the camera driving device, where the processor is specifically configured to: when the face image is detected, acquiring a distance parameter and integrity of the face image; and for determining a zoom factor from the distance parameter and the completeness; the camera driving device is used for adjusting the focal length of the camera module according to the zoom multiple;
and when it is detected that the definition of the face image is greater than a preset threshold, acquiring at least one biological image through the biological image acquisition device, wherein the processor is specifically configured to: the method comprises the steps of obtaining the security level of an event to be unlocked, wherein the event to be unlocked is a desktop event to be unlocked, an application event to be unlocked and a file event to be unlocked;
the system comprises a biological image definition threshold and a safety level, wherein the biological image definition threshold is used for acquiring a biological image definition of a user; the system comprises a definition threshold value, a safety level threshold value and a characteristic threshold value, wherein the definition threshold value is used for detecting the definition of the face image, and the at least one biological image is acquired according to the safety level of the event to be unlocked when the definition of the face image is larger than or equal to the definition threshold value, wherein when the safety level of the event to be unlocked is high, all characteristics of two biological images of the face image and the iris image are acquired, or when the safety level of the event to be unlocked is medium, partial characteristics of the two biological images of the face image and the iris image are acquired; or when the security level of the event to be unlocked is low, acquiring one biological image of the face image or the iris image;
and when the at least one biometric image is successfully matched with the preset biometric template set stored in the memory, an unlocking operation is performed, and the processor is specifically configured to: determining a matching degree threshold value of the at least one biological image according to the definition of the face image; and for matching the at least one biological image with the set of preset biological templates; and the unlocking operation is executed when the matching degree of the at least one biological image and the preset biological template set stored in the memory is greater than or equal to the threshold matching degree.
2. The mobile terminal of claim 1, wherein in said determining a zoom factor based on said distance parameter and said completeness, said processor is specifically configured to: acquiring a mapping relation between a zoom multiple and a completeness corresponding to the distance parameter stored in the memory; and the zoom factor corresponding to the integrity is determined according to the mapping relation.
3. An unlocking processing method, characterized in that the method comprises:
detecting an event to be unlocked, and starting a front camera to capture a face image;
when detecting during the face image, adjust the focus of camera module, include:
when the face image is detected, acquiring a distance parameter and integrity of the face image;
determining a zoom multiple according to the distance parameter and the integrity;
adjusting the focal length of the camera module according to the zoom multiple;
when the definition of the face image is detected to be greater than a preset threshold value, acquiring at least one biological image, including:
the method comprises the steps of obtaining the security level of an event to be unlocked, wherein the event to be unlocked is a desktop event to be unlocked, an application event to be unlocked and a file event to be unlocked;
inquiring a mapping relation between a preset security level and a biological image definition threshold according to the security level, and determining a definition threshold corresponding to the security level;
when the definition of the face image is detected to be greater than or equal to the definition threshold, acquiring the at least one biological image according to the security level of the event to be unlocked, wherein when the security level of the event to be unlocked is high, all characteristics of the two biological images of the face image and the iris image are acquired, or when the security level of the event to be unlocked is medium, partial characteristics of the two biological images of the face image and the iris image are acquired; or when the security level of the event to be unlocked is low, acquiring one biological image of the face image or the iris image;
and when the at least one biological image is successfully matched with the preset biological template set, executing unlocking operation, wherein the unlocking operation comprises the following steps:
determining a matching degree threshold value of the at least one biological image according to the definition of the face image;
matching the at least one biological image with the preset biological template set;
and when the matching degree of the at least one biological image and the preset biological template set is greater than or equal to the matching degree threshold value, performing unlocking operation.
4. The method of claim 3, wherein determining a zoom factor based on the distance parameter and the completeness comprises:
acquiring a mapping relation between a zoom multiple and integrity corresponding to the distance parameter;
and determining the zoom multiple corresponding to the integrity according to the mapping relation.
5. A mobile terminal is characterized by comprising a processing unit and an acquisition unit,
the processing unit is used for starting a front camera to capture a face image when detecting an event to be unlocked, and adjusting the focal length of the camera module when detecting the face image, wherein the processing unit is specifically used for: when the face image is detected, acquiring a distance parameter and integrity of the face image; and for determining a zoom factor from the distance parameter and the completeness; the focal length of the camera module is adjusted according to the zoom multiple;
and the processing unit is used for acquiring at least one biological image through the acquisition unit when the definition of the face image is detected to be greater than a preset threshold, and the processing unit is specifically used for: the method comprises the steps of obtaining the security level of an event to be unlocked, wherein the event to be unlocked is a desktop event to be unlocked, an application event to be unlocked and a file event to be unlocked;
the system comprises a biological image definition threshold and a safety level, wherein the biological image definition threshold is used for acquiring a biological image definition of a user; the system comprises an acquisition unit, a definition threshold value and a safety level threshold value, wherein the acquisition unit is used for acquiring at least one biological image according to the safety level of an event to be unlocked when the definition of the face image is greater than or equal to the definition threshold value, wherein when the safety level of the event to be unlocked is high, all characteristics of two biological images of the face image and the iris image are acquired, or when the safety level of the event to be unlocked is medium, partial characteristics of the two biological images of the face image and the iris image are acquired; or when the security level of the event to be unlocked is low, acquiring one biological image of the face image or the iris image;
and the processing unit is configured to, when the at least one biometric image is successfully matched with the preset biometric template set, execute an unlocking operation, and is specifically configured to: determining a matching degree threshold value of the at least one biological image according to the definition of the face image; and for matching the at least one biological image with the set of preset biological templates; and the unlocking operation is executed when the matching degree of the at least one biological image and the preset biological template set is detected to be greater than or equal to the threshold value of the matching degree.
6. The mobile terminal according to claim 5, wherein in said determining a zoom factor from the distance parameter and the completeness, the processing unit is specifically configured to: acquiring a mapping relation between a zoom multiple and integrity corresponding to the distance parameter; and the zoom factor corresponding to the integrity is determined according to the mapping relation.
7. A terminal comprising a processor, memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 3-4.
8. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of claims 3-4, the computer comprising a mobile terminal.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710585002.5A CN107491672B (en) | 2017-07-18 | 2017-07-18 | Unlocking processing method and related product |
PCT/CN2018/091870 WO2019015433A1 (en) | 2017-07-18 | 2018-06-19 | Unlocking processing method and related product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710585002.5A CN107491672B (en) | 2017-07-18 | 2017-07-18 | Unlocking processing method and related product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107491672A CN107491672A (en) | 2017-12-19 |
CN107491672B true CN107491672B (en) | 2021-01-22 |
Family
ID=60644513
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710585002.5A Active CN107491672B (en) | 2017-07-18 | 2017-07-18 | Unlocking processing method and related product |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107491672B (en) |
WO (1) | WO2019015433A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107491672B (en) * | 2017-07-18 | 2021-01-22 | Oppo广东移动通信有限公司 | Unlocking processing method and related product |
CN108304708A (en) * | 2018-01-31 | 2018-07-20 | 广东欧珀移动通信有限公司 | Mobile terminal, face unlocking method and related product |
CN110188658A (en) * | 2019-05-27 | 2019-08-30 | Oppo广东移动通信有限公司 | Personal identification method, device, electronic equipment and storage medium |
CN110493519B (en) * | 2019-08-19 | 2021-03-23 | 惠州Tcl移动通信有限公司 | Image acquisition method of mobile terminal, computer readable medium and computer device |
CN112232278B (en) * | 2020-11-04 | 2024-02-20 | 上海菲戈恩微电子科技有限公司 | 3D structured light self-adaptive precision implementation method and system |
KR102274270B1 (en) * | 2020-12-10 | 2021-07-08 | 주식회사 케이티앤씨 | System for acquisiting iris image for enlarging iris acquisition range |
CN112905964B (en) * | 2021-01-29 | 2023-05-09 | 北京紫光展锐通信技术有限公司 | Unlocking method for user equipment, storage medium, chip and related equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105701462A (en) * | 2016-01-11 | 2016-06-22 | 成都布林特信息技术有限公司 | Identity identification method |
CN105787477A (en) * | 2016-04-11 | 2016-07-20 | 北京奇虎科技有限公司 | Iris recognition method and terminal |
CN106295471A (en) * | 2015-05-24 | 2017-01-04 | 江西恒盛晶微技术有限公司 | A kind of embedded bio characteristic information acquisition system based on DSP |
CN106650671A (en) * | 2016-12-27 | 2017-05-10 | 深圳英飞拓科技股份有限公司 | Human face identification method, apparatus and system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105868599A (en) * | 2015-01-22 | 2016-08-17 | 中兴通讯股份有限公司 | Terminal unlocking method and device and terminal |
CN105550631B (en) * | 2015-08-25 | 2019-03-22 | 宇龙计算机通信科技(深圳)有限公司 | A kind of iris image acquiring method and device |
CN105320943A (en) * | 2015-10-22 | 2016-02-10 | 北京天诚盛业科技有限公司 | Biometric identification apparatus and biometric identification method therefor |
CN107491672B (en) * | 2017-07-18 | 2021-01-22 | Oppo广东移动通信有限公司 | Unlocking processing method and related product |
-
2017
- 2017-07-18 CN CN201710585002.5A patent/CN107491672B/en active Active
-
2018
- 2018-06-19 WO PCT/CN2018/091870 patent/WO2019015433A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106295471A (en) * | 2015-05-24 | 2017-01-04 | 江西恒盛晶微技术有限公司 | A kind of embedded bio characteristic information acquisition system based on DSP |
CN105701462A (en) * | 2016-01-11 | 2016-06-22 | 成都布林特信息技术有限公司 | Identity identification method |
CN105787477A (en) * | 2016-04-11 | 2016-07-20 | 北京奇虎科技有限公司 | Iris recognition method and terminal |
CN106650671A (en) * | 2016-12-27 | 2017-05-10 | 深圳英飞拓科技股份有限公司 | Human face identification method, apparatus and system |
Also Published As
Publication number | Publication date |
---|---|
WO2019015433A1 (en) | 2019-01-24 |
CN107491672A (en) | 2017-12-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107491672B (en) | Unlocking processing method and related product | |
CN107480601B (en) | Detection method and related product | |
CN107450708B (en) | Unlocking control method and related product | |
CN107832670B (en) | Face recognition method and related product | |
EP3471015A1 (en) | Face recognition method and related product | |
CN107527019B (en) | Unlocking control method and related product | |
CN107451453B (en) | Unlocking control method and related product | |
CN107622243B (en) | Unlocking control method and related product | |
CN107622232B (en) | Unlocking control method and related product | |
CN108319837A (en) | Electronic equipment, face template input method and Related product | |
CN107622191B (en) | Unlocking control method and related product | |
KR20180067654A (en) | Facial verification method and electronic device | |
CN107463813A (en) | Condition control method and Related product | |
CN107437016B (en) | Application control method and related product | |
CN107657219B (en) | Face detection method and related product | |
CN107277265A (en) | Solve lock control method and Related product | |
CN109840515B (en) | Face posture adjusting method and device and terminal | |
CN107563338B (en) | Face detection method and related product | |
CN107451451B (en) | Unlocking control method and related product | |
CN107508965B (en) | Image acquisition method and related product | |
CN107465512B (en) | Authorization processing method and related product | |
CN107463822B (en) | Biometric pattern control method and related product | |
CN107483705B (en) | Biometric pattern opening method and related product | |
CN112468722B (en) | Shooting method, device, equipment and storage medium | |
CN107403146A (en) | detection method and related product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
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 |