CN107622191B - Unlocking control method and related product - Google Patents

Unlocking control method and related product Download PDF

Info

Publication number
CN107622191B
CN107622191B CN201710806393.9A CN201710806393A CN107622191B CN 107622191 B CN107622191 B CN 107622191B CN 201710806393 A CN201710806393 A CN 201710806393A CN 107622191 B CN107622191 B CN 107622191B
Authority
CN
China
Prior art keywords
face image
preset
executing
mobile terminal
system resource
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
Application number
CN201710806393.9A
Other languages
Chinese (zh)
Other versions
CN107622191A (en
Inventor
王健
惠方方
郭子青
周海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710806393.9A priority Critical patent/CN107622191B/en
Publication of CN107622191A publication Critical patent/CN107622191A/en
Priority to PCT/CN2018/101720 priority patent/WO2019047715A1/en
Application granted granted Critical
Publication of CN107622191B publication Critical patent/CN107622191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/66Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
    • H04M1/667Preventing unauthorised calls from a telephone set
    • H04M1/67Preventing unauthorised calls from a telephone set by electronic means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses an unlocking control method and a related product, which comprise the following steps: collecting a face image; executing a first operation and a second operation in parallel, wherein the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with a preset face template; and when the face image is successfully matched with the preset face template and the face image is a real face image, executing unlocking operation. The embodiment of the invention is beneficial to improving the speed and the safety of unlocking control of the mobile terminal.

Description

Unlocking control method and related product
Technical Field
The invention relates to the technical field of mobile terminals, in particular to an unlocking control 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, with the increasing security requirement of smart phones, various biometric information unlocking schemes come into existence, such as fingerprint unlocking, face unlocking, iris unlocking and the like, wherein the face unlocking is performed at a high unlocking speed and has a high recognition success rate, so that the biometric information unlocking scheme becomes the primary choice of numerous smart phones.
Disclosure of Invention
The embodiment of the invention provides an unlocking control method and a related product, aiming at improving the speed and the safety of unlocking control of a mobile terminal.
In a first aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a face image acquisition device connected to the processor, and a memory, where:
the face image acquisition device is used for acquiring a face image;
the memory is used for storing a preset face template;
the processor is configured to execute a first operation and a second operation in parallel, where the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with the preset face template; and the unlocking module is used for executing unlocking operation when the face image is successfully matched with the preset face template and the face image is a real face image.
In a second aspect, an embodiment of the present invention provides an unlocking control method, including:
collecting a face image;
executing a first operation and a second operation in parallel, wherein the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with a preset face template;
and when the face image is successfully matched with the preset face template and the face image is a real face image, 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 acquisition unit is used for acquiring a face image;
the processing unit is configured to execute a first operation and a second operation in parallel, where the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with a preset face template; and the unlocking module is used for executing unlocking operation when the face image is successfully matched with the preset face template and the face image is a real face image.
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 invention, the mobile terminal firstly collects the face image; secondly, executing a first operation and a second operation in parallel, wherein the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with a preset face template; and finally, when the face image is successfully matched with the preset face template and the face image is a real face image, executing unlocking operation. Therefore, the mobile terminal improves the safety of face unlocking of the mobile terminal by judging whether the face image is a real face image, and the first operation and the second operation are executed in parallel instead of in series, so that the time consumption is reduced, and the speed of unlocking control of the mobile terminal is improved.
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. 2 is a schematic flowchart of an unlocking control method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another unlocking control method disclosed in the embodiment of the present invention;
FIG. 4 is a schematic flow chart illustrating another unlocking control method disclosed in the embodiments 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 the face image acquisition device, and the face image acquisition device can be a universal camera module, such as a front-facing 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 the main board is provided with a processor 110, a memory 120, a front camera 130, a SIM card slot and the like, the auxiliary board is provided with a vibrator, an integrated sound cavity and a VOOC flash charging interface, the front camera 130 forms a human face image acquisition device of the mobile terminal 100, wherein,
the face image collecting device 130 is configured to collect a face image;
the memory 120 is configured to store a preset face template;
the processor 110 is configured to execute a first operation and a second operation in parallel, where the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with the preset face template; and the unlocking module is used for executing unlocking operation when the face image is successfully matched with the preset face template and the face image is a real face image.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal by using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile terminal. Alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The memory 120 may be used to store software programs and modules, and the processor 110 executes various functional applications and data processing of the mobile terminal by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile terminal, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
It can be seen that, in the embodiment of the invention, the mobile terminal firstly collects the face image; secondly, executing a first operation and a second operation in parallel, wherein the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with a preset face template; and finally, when the face image is successfully matched with the preset face template and the face image is a real face image, executing unlocking operation. Therefore, the mobile terminal improves the safety of face unlocking of the mobile terminal by judging whether the face image is a real face image, and the first operation and the second operation are executed in parallel instead of in series, so that the time consumption is reduced, and the speed of unlocking control of the mobile terminal is improved.
In one possible example, in terms of performing the first operation and the second operation in parallel, the processor 110 is specifically configured to: and executing the first operation at a first time node, executing the second operation at a second time node, wherein the time length required for executing the first operation is a first reference time length, the time length required for executing the second operation is a second reference time length, and the time difference between the first time node and the second time node is smaller than the time difference between the first reference time length and the second reference time length.
In one possible example, in terms of performing the first operation at the first time node and performing the second operation at the second time node, the processor 110 is specifically configured to: allocating a first system resource to the first operation when the first time node executes the first operation; and a second resource allocating unit configured to allocate a second system resource to the second operation when the second operation is executed by the second time node, wherein the second system resource is smaller than the first system resource.
In a possible example, in the aspect that when it is detected that the face image is successfully matched with the preset face template and the face image is a real face image, the processor 110 is specifically configured to: and when the face image is successfully matched with the preset face template and the face image is a real face image, executing a third operation and a fourth operation in parallel, wherein the third operation is to remove the screen locking interface and load a system desktop, and the fourth operation is to light the touch display screen.
In a possible example, in the aspect that when it is detected that the face image is successfully matched with the preset face template and the face image is a real face image, the processor 110 is specifically configured to: when the face image is successfully matched with the preset face template, removing a screen locking interface; and the system is used for executing a third operation and a fourth operation in parallel when the face image is detected to be a real face image, wherein the third operation is to light up the touch display screen, and the fourth operation is to load a system desktop.
Referring to fig. 2, fig. 2 is a schematic flowchart of an unlocking control method according to an embodiment of the present invention, which is applied to a mobile terminal, and as shown in the figure, the unlocking control method includes:
s201, the mobile terminal collects a face image;
in a possible example, before the mobile terminal acquires a 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 event to be unlocked detected by the mobile terminal may be a detected event to be unlocked in a screen-off state, or a detected event to be unlocked in a screen-on state, where the trigger condition for detecting the event to be unlocked may be triggered by a touch operation, a pressing operation, a voice operation, and the like of a user, for example, for a mobile terminal in a screen-off standby state, the trigger condition may be not limited, and the trigger condition may be triggered by long pressing of a touch display screen.
S202, the mobile terminal executes a first operation and a second operation in parallel, wherein the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with a preset face template;
for example, the infrared sensor is used to detect whether the temperature distribution of the face conforms to the temperature distribution of the real face, or the face image is a three-dimensional face image, and the like, which is not limited herein.
The parallel execution of the first operation and the second operation may be a dual-process parallel operation of an operating system, or may also be a dual-process parallel operation of one process, or may also be a parallel operation of two CPUs of a dual-core system, which is not limited herein.
And S203, when the mobile terminal detects that the face image is successfully matched with the preset face template and the face image is a real face image, executing unlocking operation.
When the second operation matching fails, the mobile terminal interrupts the execution of the first operation, and power consumption of the mobile terminal is reduced.
When the matching degree of the face image and the preset face template is greater than a preset threshold, the face image and the preset face template are successfully matched, and the preset threshold may preset different preset thresholds according to different to-be-unlocked events, which is not limited herein.
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.
The preset face template is a face data template, and the face data template refers to a set of corresponding relations between positions of feature points of a face of a registered user and feature values of the feature points (the feature values may be capacitances, inductances, voltages, currents, relative values, and the like).
It can be seen that, in the embodiment of the invention, the mobile terminal firstly collects the face image; secondly, executing a first operation and a second operation in parallel, wherein the first operation is to match the face image with a preset face template, and the second operation is to detect whether the face image is a real face image; and finally, when the face image is successfully matched with the preset face template and the face image is a real face image, executing unlocking operation. Therefore, the mobile terminal improves the safety of face unlocking of the mobile terminal by judging whether the face image is a real face image, and the first operation and the second operation are executed in parallel instead of in series, so that the time consumption is reduced, and the speed of unlocking control of the mobile terminal is improved.
In one possible example, the performing the first operation and the second operation in parallel includes:
and executing the first operation at a first time node, executing the second operation at a second time node, wherein the time length required for executing the first operation is a first reference time length, the time length required for executing the second operation is a second reference time length, and the time difference between the first time node and the second time node is smaller than the time difference between the first reference time length and the second reference time length.
Wherein the first reference duration is greater than the second reference duration.
The first time node and the second time node may be the same time node or different time nodes.
For example, the first reference time duration is 250ms, the second reference time duration is 120ms, the time difference between the first reference time duration and the second reference time duration is 130ms, and when the first time node is 32 minutes and 15 seconds and 20 milliseconds at 5 pm, the second time node may be any time node between 32 minutes and 15 seconds at 5 pm and 20 milliseconds at 32 minutes and 15 seconds at 5 pm and 150 milliseconds at 32 minutes and 15 seconds at 5 pm.
It can be seen that, in this example, the mobile terminal executes the first operation and the second operation in parallel at different time nodes, but not at the same time node, so that the first operation and the second operation may be executed in parallel, and the started time node may also be flexibly controlled, so that the mobile terminal may have additional flexible time to process higher-level events, which is beneficial to improving flexibility of the mobile terminal unlocking operation.
In one possible example, the performing the first operation at the first time node and the performing the second operation at the second time node includes:
allocating a first system resource to the first operation when the first time node executes the first operation;
and when the second time node executes the second operation, allocating a second system resource to the second operation, wherein the second system resource is smaller than the first system resource.
The first system resource and the second system resource may be determined according to an optimal allocation record in historical system resource allocation records, where the optimal allocation record may be a record with the fastest execution speed of the first operation and the second operation, or may be a preset mapping relationship between reference durations required by different operations and resource amounts of the required system resources, the mapping relationship is queried by using the first reference duration as a query identifier to determine the first system resource, and the mapping relationship is queried by using the second reference duration as a query identifier to determine the second system resource.
It can be seen that, in this example, the mobile terminal allocates different system resources according to different operation requirements, instead of blindly enabling the first operation and the second operation to use the same system resource, which is beneficial to reducing power consumption of the mobile terminal and improving accuracy of resource allocation.
In a possible example, the executing an unlocking operation when it is detected that the face image is successfully matched with the preset face template and the face image is a real face image includes:
and when the face image is successfully matched with the preset face template and the face image is a real face image, executing a third operation and a fourth operation in parallel, wherein the third operation is to remove the screen locking interface and load a system desktop, and the fourth operation is to light the touch display screen.
The event to be unlocked is a screen-off unlocking event.
The third operation is executed at a third time node, the fourth operation is executed at a fourth time node, the time length required for executing the third operation is a third reference time length, the time length required for executing the fourth operation is a fourth reference time length, and the time difference between the third time node and the fourth time node is smaller than the time difference between the third reference time length and the fourth reference time length.
The third time node and the fourth time node may be the same time node or different time nodes.
Therefore, in this example, the mobile terminal executes the third operation and the fourth operation in parallel on the basis of the parallel first operation and the parallel second operation, and performs double parallel operations, so as to further improve the unlocking processing speed of the mobile terminal.
In a possible example, the executing an unlocking operation when it is detected that the face image is successfully matched with the preset face template and the face image is a real face image includes:
when the face image is successfully matched with the preset face template, removing a screen locking interface;
and when the face image is detected to be a real face image, executing a third operation and a fourth operation in parallel, wherein the third operation is to light the touch display screen, and the fourth operation is to load a system desktop.
The event to be unlocked is a screen-off unlocking event.
It can be seen that, in this example, the mobile terminal executes the third operation and the fourth operation in parallel on the basis of the parallel first operation and the parallel second operation, and performs double parallel operations, so as to further increase the speed of the unlocking processing of the mobile terminal, and when the second operation succeeds before the first operation, the second operation makes full use of the extra time to execute other steps in the unlocking operation, instead of just waiting for the completion of the first operation, which is beneficial to improving the rationality of the execution of the unlocking operation of the mobile terminal, and when it is determined that the face image is successfully matched and is a real face image, the operation of lighting the touch display screen is performed, which is beneficial to reducing the power consumption of the mobile terminal.
Referring to fig. 3, please refer to fig. 3 in accordance with the embodiment shown in fig. 2, where fig. 3 is a flowchart illustrating an unlocking control method according to an embodiment of the present invention, and is applied to a mobile terminal. As shown in the figure, the unlocking control method includes:
s301, the mobile terminal collects a face image.
And S302, the mobile terminal executes a first operation at a first time node and executes a second operation at a second time node, wherein the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with a preset face template.
The time length required for executing the first operation is a first reference time length, the time length required for executing the second operation is a second reference time length, and the time difference between the first time node and the second time node is smaller than the time difference between the first reference time length and the second reference time length.
And S303, when the mobile terminal detects that the face image is successfully matched with the preset face template and the face image is a real face image, executing a third operation and a fourth operation in parallel, wherein the third operation is to remove the screen locking interface and load a system desktop, and the fourth operation is to light a touch display screen.
The event to be unlocked is a screen-off unlocking event.
It can be seen that, in the embodiment of the invention, the mobile terminal firstly collects the face image; secondly, executing a first operation and a second operation in parallel, wherein the first operation is to match the face image with a preset face template, and the second operation is to detect whether the face image is a real face image; and finally, when the face image is successfully matched with the preset face template and the face image is a real face image, executing unlocking operation. Therefore, the mobile terminal improves the safety of face unlocking of the mobile terminal by judging whether the face image is a real face image, and the first operation and the second operation are executed in parallel instead of in series, so that the time consumption is reduced, and the speed of unlocking control of the mobile terminal is improved.
In addition, the mobile terminal executes the first operation and the second operation in parallel at different time nodes, but not executes the first operation and the second operation in parallel at the same time node, so that the first operation and the second operation can be executed in parallel, and the started time nodes can be flexibly controlled, so that the mobile terminal can have extra flexible time to process higher-level matters, and the flexibility of unlocking operation of the mobile terminal is improved.
In addition, the mobile terminal executes the third operation and the fourth operation in parallel on the basis of the parallel first operation and the parallel second operation, and the double parallel operations further improve the unlocking processing speed of the mobile terminal.
Referring to fig. 4, please refer to fig. 4 in accordance with the embodiment shown in fig. 2, where fig. 4 is a flowchart illustrating an unlocking control method according to an embodiment of the present invention, and is applied to a mobile terminal. As shown in the figure, the unlocking control method includes:
s401, the mobile terminal collects a face image.
S402, the mobile terminal allocates a first system resource at a first time node to execute a first operation, allocates a second system resource at a second time node to execute a second operation, the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with a preset face template.
Wherein the second system resource is smaller than the first system resource.
The time length required for executing the first operation is a first reference time length, the time length required for executing the second operation is a second reference time length, and the time difference between the first time node and the second time node is smaller than the time difference between the first reference time length and the second reference time length.
And S403, when the face image is successfully matched with the preset face template, the mobile terminal removes the screen locking interface.
And S404, when the mobile terminal detects that the face image is a real face image, executing a third operation and a fourth operation in parallel, wherein the third operation is to light up a touch display screen, and the fourth operation is to load a system desktop.
The event to be unlocked is a screen-off unlocking event.
It can be seen that, in the embodiment of the invention, the mobile terminal firstly collects the face image; secondly, executing a first operation and a second operation in parallel, wherein the first operation is to match the face image with a preset face template, and the second operation is to detect whether the face image is a real face image; and finally, when the face image is successfully matched with the preset face template and the face image is a real face image, executing unlocking operation. Therefore, the mobile terminal improves the safety of face unlocking of the mobile terminal by judging whether the face image is a real face image, and the first operation and the second operation are executed in parallel instead of in series, so that the time consumption is reduced, and the speed of unlocking control of the mobile terminal is improved.
In addition, the mobile terminal allocates different system resources according to different operation requirements, instead of blindly enabling the first operation and the second operation to use the same system resources, which is beneficial to reducing the power consumption of the mobile terminal and improving the accuracy of resource allocation.
In addition, the mobile terminal executes the third operation and the fourth operation in parallel on the basis of the parallel first operation and the parallel second operation, and double parallel operations further improve the unlocking processing speed of the mobile terminal.
In accordance with the embodiments shown in fig. 2, 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 program includes instructions for performing the following steps;
collecting a face image;
executing a first operation and a second operation in parallel, wherein the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with a preset face template;
and when the face image is successfully matched with the preset face template and the face image is a real face image, executing unlocking operation.
It can be seen that, in the embodiment of the invention, the mobile terminal firstly collects the face image; secondly, executing a first operation and a second operation in parallel, wherein the first operation is to match the face image with a preset face template, and the second operation is to detect whether the face image is a real face image; and finally, when the face image is successfully matched with the preset face template and the face image is a real face image, executing unlocking operation. Therefore, the mobile terminal improves the safety of face unlocking of the mobile terminal by judging whether the face image is a real face image, and the first operation and the second operation are executed in parallel instead of in series, so that the time consumption is reduced, and the speed of unlocking control of the mobile terminal is improved.
In one possible example, in terms of the parallel execution of the first operation and the second operation, the instructions in the program are specifically configured to perform the following steps: and executing the first operation at a first time node, executing the second operation at a second time node, wherein the time length required for executing the first operation is a first reference time length, the time length required for executing the second operation is a second reference time length, and the time difference between the first time node and the second time node is smaller than the time difference between the first reference time length and the second reference time length.
In one possible example, in the aspect that the first operation is performed at the first time node and the second operation is performed at the second time node, the instructions in the program are specifically configured to perform the following steps: allocating a first system resource to the first operation when the first time node executes the first operation; and a second resource allocating unit configured to allocate a second system resource to the second operation when the second operation is executed by the second time node, wherein the second system resource is smaller than the first system resource.
In a possible example, in the aspect of executing an unlocking operation when it is detected that the face image is successfully matched with the preset face template and the face image is a real face image, the instruction in the program is specifically configured to execute the following steps: and when the face image is successfully matched with the preset face template and the face image is a real face image, executing a third operation and a fourth operation in parallel, wherein the third operation is to remove the screen locking interface and load a system desktop, and the fourth operation is to light the touch display screen.
In a possible example, in the aspect of executing an unlocking operation when it is detected that the face image is successfully matched with the preset face template and the face image is a real face image, the instruction in the program is specifically configured to execute the following steps: when the face image is successfully matched with the preset face template, removing a screen locking interface; and the system is used for executing a third operation and a fourth operation in parallel when the face image is detected to be a real face image, wherein the third operation is to light up the touch display screen, and the fourth operation is to load a system desktop.
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 the actions of the mobile terminal, e.g., processing unit 602 is configured to support the mobile terminal to perform steps S201-S203 in fig. 2, steps S301-S303 in fig. 3, steps S401-S404 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 above-mentioned collecting unit 603 is configured to collect a face image;
the processing unit 602 is configured to execute a first operation and a second operation in parallel, where the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with a preset face template; and the unlocking module is used for executing unlocking operation when the face image is successfully matched with the preset face template and the face image is a real face image.
In a possible example, in terms of executing the first operation and the second operation in parallel, the processing unit 602 is specifically configured to: and executing the first operation at a first time node, executing the second operation at a second time node, wherein the time length required for executing the first operation is a first reference time length, the time length required for executing the second operation is a second reference time length, and the time difference between the first time node and the second time node is smaller than the time difference between the first reference time length and the second reference time length.
In a possible example, in terms of performing the first operation at a first time node and performing the second operation at a second time node, the processing unit 602 is specifically configured to: allocating a first system resource to the first operation when the first time node executes the first operation; and a second resource allocating unit configured to allocate a second system resource to the second operation when the second operation is executed by the second time node, wherein the second system resource is smaller than the first system resource.
In a possible example, in the aspect that when it is detected that the face image is successfully matched with the preset face template and the face image is a real face image, the processing unit 602 is specifically configured to: and when the face image is successfully matched with the preset face template and the face image is a real face image, executing a third operation and a fourth operation in parallel, wherein the third operation is to remove the screen locking interface and load a system desktop, and the fourth operation is to light the touch display screen.
In a possible example, in the aspect that when it is detected that the face image is successfully matched with the preset face template and the face image is a real face image, the processing unit 602 is specifically configured to: when the face image is successfully matched with the preset face template, removing a screen locking interface; and the system is used for executing a third operation and a fourth operation in parallel when the face image is detected to be a real face image, wherein the third operation is to light up the touch display screen, and the fourth operation is to load a system desktop.
The processing unit 602 may be a processor or a controller, the acquisition unit 603 may be a human face image acquisition 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 (13)

1. A mobile terminal is characterized by comprising a processor, a human face image acquisition device and a memory, wherein the human face image acquisition device is connected with the processor, and the mobile terminal comprises:
the face image acquisition device is used for acquiring a face image;
the memory is used for storing a preset face template;
the processor is used for executing a first operation and a second operation in parallel at different time nodes, and when the second operation fails to be matched, the first operation is interrupted; the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with the preset face template; the unlocking device is used for executing unlocking operation when the face image is successfully matched with the preset face template and the face image is a real face image;
wherein the first operation is performed at a first time node, allocating a first system resource to the first operation, the second operation is performed at a second time node, allocating a second system resource to the second operation; the first system resource and the second system resource are determined according to the optimal distribution record in the historical system resource distribution records or the preset mapping relation between the reference time length required by different operations and the resource amount of the required system resource; and when the matching degree of the face image and the preset face template is greater than a preset threshold value, the face image and the preset face template are successfully matched, and the preset threshold value is preset with different values according to different events to be unlocked.
2. The mobile terminal of claim 1, wherein in connection with the parallel execution of the first operation and the second operation, the processor is specifically configured to: the time length required for executing the first operation is a first reference time length, the time length required for executing the second operation is a second reference time length, and the time difference between the first time node and the second time node is smaller than the time difference between the first reference time length and the second reference time length.
3. The mobile terminal of claim 2, wherein the second system resource is smaller than the first system resource.
4. The mobile terminal according to any one of claims 1 to 3, wherein in the aspect of performing an unlocking operation when it is detected that the face image is successfully matched with the preset face template and the face image is a real face image, the processor is specifically configured to: and when the face image is successfully matched with the preset face template and the face image is a real face image, executing a third operation and a fourth operation in parallel, wherein the third operation is to remove a screen locking interface and load a system desktop, and the fourth operation is to light a touch display screen.
5. The mobile terminal according to any one of claims 1 to 3, wherein in the aspect of performing an unlocking operation when it is detected that the face image is successfully matched with the preset face template and the face image is a real face image, the processor is specifically configured to: when the face image is successfully matched with the preset face template, removing a screen locking interface; and the system is used for executing a third operation and a fourth operation in parallel when the face image is detected to be a real face image, wherein the third operation is to light up the touch display screen, and the fourth operation is to load a system desktop.
6. An unlock control method, characterized by comprising:
collecting a face image;
executing a first operation and a second operation in parallel at different time nodes, and interrupting the execution of the first operation when the second operation fails to be matched; the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with a preset face template; wherein the first operation is performed at a first time node, allocating a first system resource to the first operation, the second operation is performed at a second time node, allocating a second system resource to the second operation; the first system resource and the second system resource are determined according to the optimal distribution record in the historical system resource distribution records or the preset mapping relation between the reference time length required by different operations and the resource amount of the required system resource;
when the face image is successfully matched with the preset face template and the face image is a real face image, executing unlocking operation;
when the matching degree of the face image and the preset face template is greater than a preset threshold value, the face image and the preset face template are successfully matched, and the preset threshold value is preset with different values according to different events to be unlocked.
7. The method of claim 6, wherein performing the first operation and the second operation in parallel comprises:
the time length required for executing the first operation is a first reference time length, the time length required for executing the second operation is a second reference time length, and the time difference between the first time node and the second time node is smaller than the time difference between the first reference time length and the second reference time length.
8. The method of claim 7, wherein the second system resource is smaller than the first system resource.
9. The method according to any one of claims 6 to 8, wherein when it is detected that the face image is successfully matched with the preset face template and the face image is a real face image, the performing an unlocking operation includes:
and when the face image is successfully matched with the preset face template and the face image is a real face image, executing a third operation and a fourth operation in parallel, wherein the third operation is to remove a screen locking interface and load a system desktop, and the fourth operation is to light a touch display screen.
10. The method according to any one of claims 6 to 8, wherein when it is detected that the face image is successfully matched with the preset face template and the face image is a real face image, the performing an unlocking operation includes:
when the face image is successfully matched with the preset face template, removing a screen locking interface;
and when the face image is detected to be a real face image, executing a third operation and a fourth operation in parallel, wherein the third operation is to light the touch display screen, and the fourth operation is to load a system desktop.
11. A mobile terminal is characterized by comprising a processing unit and an acquisition unit,
the acquisition unit is used for acquiring a face image;
the processing unit is used for executing a first operation and a second operation in parallel at different time nodes, and when the second operation fails to be matched, the first operation is interrupted; the first operation is to detect whether the face image is a real face image, and the second operation is to match the face image with a preset face template; the unlocking device is used for executing unlocking operation when the face image is successfully matched with the preset face template and the face image is a real face image;
wherein the first operation is performed at a first time node, allocating a first system resource to the first operation, the second operation is performed at a second time node, allocating a second system resource to the second operation; the first system resource and the second system resource are determined according to the optimal distribution record in the historical system resource distribution records or the preset mapping relation between the reference time length required by different operations and the resource amount of the required system resource; and when the matching degree of the face image and the preset face template is greater than a preset threshold value, the face image and the preset face template are successfully matched, and the preset threshold value is preset with different values according to different events to be unlocked.
12. A mobile terminal comprising a processor, memory, a communications interface, and one or more programs stored in the memory and configured for execution by the processor, the programs including instructions for performing the steps in the method of any of claims 6-10.
13. 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 6-10, the computer comprising a mobile terminal.
CN201710806393.9A 2017-09-08 2017-09-08 Unlocking control method and related product Active CN107622191B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710806393.9A CN107622191B (en) 2017-09-08 2017-09-08 Unlocking control method and related product
PCT/CN2018/101720 WO2019047715A1 (en) 2017-09-08 2018-08-22 Unlocking control method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710806393.9A CN107622191B (en) 2017-09-08 2017-09-08 Unlocking control method and related product

Publications (2)

Publication Number Publication Date
CN107622191A CN107622191A (en) 2018-01-23
CN107622191B true CN107622191B (en) 2020-03-10

Family

ID=61089836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710806393.9A Active CN107622191B (en) 2017-09-08 2017-09-08 Unlocking control method and related product

Country Status (2)

Country Link
CN (1) CN107622191B (en)
WO (1) WO2019047715A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107622191B (en) * 2017-09-08 2020-03-10 Oppo广东移动通信有限公司 Unlocking control method and related product
CN107622232B (en) 2017-09-08 2020-01-14 Oppo广东移动通信有限公司 Unlocking control method and related product
CN110414199B (en) * 2018-04-26 2021-08-03 Oppo广东移动通信有限公司 Control method and device of mobile terminal, electronic equipment and readable storage medium
CN110162952B (en) * 2019-05-30 2024-03-22 努比亚技术有限公司 Face unlocking method and device based on time difference and readable storage medium
CN111079114B (en) * 2019-12-13 2023-07-28 Oppo(重庆)智能科技有限公司 Unlocking method, unlocking device, terminal and computer readable storage medium
CN111623885B (en) * 2020-06-01 2021-09-14 上海闻泰电子科技有限公司 Infrared temperature measuring device and infrared temperature measuring method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004906A (en) * 2010-11-18 2011-04-06 无锡中星微电子有限公司 Face identification system and method
CN103279999A (en) * 2013-05-14 2013-09-04 苏州福丰科技有限公司 Card reading system based on face recognition
CN104751110A (en) * 2013-12-31 2015-07-01 汉王科技股份有限公司 Bio-assay detection method and device
CN105426730A (en) * 2015-12-28 2016-03-23 小米科技有限责任公司 Login authentication processing method and device as well as terminal equipment
CN107092820A (en) * 2017-03-13 2017-08-25 宇龙计算机通信科技(深圳)有限公司 Terminal, ultrasonic fingerprint unlocking method and tripper

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050031173A1 (en) * 2003-06-20 2005-02-10 Kyungtae Hwang Systems and methods for detecting skin, eye region, and pupils
US8316436B2 (en) * 2009-03-27 2012-11-20 Sony Corporation User-defined multiple input mode authentication
CN101770613A (en) * 2010-01-19 2010-07-07 北京智慧眼科技发展有限公司 Social insurance identity authentication method based on face recognition and living body detection
US9596084B2 (en) * 2011-09-09 2017-03-14 Facebook, Inc. Initializing camera subsystem for face detection based on sensor inputs
CN103530599B (en) * 2013-04-17 2017-10-24 Tcl集团股份有限公司 The detection method and system of a kind of real human face and picture face
US9510196B2 (en) * 2014-03-17 2016-11-29 Qualcomm Incorporated Method and apparatus for authenticating a user on a mobile device
CN106295672B (en) * 2015-06-12 2019-10-29 中移信息技术有限公司 A kind of face identification method and device
CN106296888B (en) * 2015-06-24 2022-05-13 西安中兴新软件有限责任公司 Unlocking method and device based on face recognition and terminal
CN106529408B (en) * 2016-10-10 2018-04-13 深圳云天励飞技术有限公司 A kind of method and device of Face datection
CN106845438A (en) * 2017-02-13 2017-06-13 联想(北京)有限公司 A kind of face identification method, device and electronic equipment
CN107622191B (en) * 2017-09-08 2020-03-10 Oppo广东移动通信有限公司 Unlocking control method and related product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004906A (en) * 2010-11-18 2011-04-06 无锡中星微电子有限公司 Face identification system and method
CN103279999A (en) * 2013-05-14 2013-09-04 苏州福丰科技有限公司 Card reading system based on face recognition
CN104751110A (en) * 2013-12-31 2015-07-01 汉王科技股份有限公司 Bio-assay detection method and device
CN105426730A (en) * 2015-12-28 2016-03-23 小米科技有限责任公司 Login authentication processing method and device as well as terminal equipment
CN107092820A (en) * 2017-03-13 2017-08-25 宇龙计算机通信科技(深圳)有限公司 Terminal, ultrasonic fingerprint unlocking method and tripper

Also Published As

Publication number Publication date
WO2019047715A1 (en) 2019-03-14
CN107622191A (en) 2018-01-23

Similar Documents

Publication Publication Date Title
CN107622191B (en) Unlocking control method and related product
CN107622232B (en) Unlocking control method and related product
US20210357488A1 (en) Fingerprint Recognition Method and Apparatus, and Touchscreen Terminal
CN107832670B (en) Face recognition method and related product
CN107831996B (en) Face recognition starting method and related product
CN107729836B (en) Face recognition method and related product
US20180268121A1 (en) Method For Unlocking Screen Of Terminal Having Fingerprint Identification Sensors And Terminal
CN107808127B (en) Face recognition method and related product
CN107527019B (en) Unlocking control method and related product
CN107451453B (en) Unlocking control method and related product
CN107491672B (en) Unlocking processing method and related product
CN107437016B (en) Application control method and related product
CN108429879A (en) Electronic equipment, camera control method and Related product
CN107657219B (en) Face detection method and related product
CN107454251B (en) Unlocking control method and related product
CN107480998B (en) Information processing method and related product
CN106684985B (en) Wireless charging control method and wireless charging device
CN107295192B (en) Unlocking control method and related product
CN107832669B (en) Face detection method and related product
CN107563338B (en) Face detection method and related product
CN107451451B (en) Unlocking control method and related product
CN107729832B (en) Face detection method and related product
CN107508965B (en) Image acquisition method and related product
CN107463819B (en) Unlocking processing method and related product
CN107483705B (en) Biometric pattern opening 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: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant