Device unlocking method, device, electronic device and storage medium
By using power information to control the sleep mode and the camera to detect facial feature information in the terminal device, quick unlocking without manual buttons is achieved in the state of off screen, solving the problem of poor user experience and improving unlocking efficiency.
Patent Information
- Application Number
- CN202010984499.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-18
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2040-09-18
AI Technical Summary
When the terminal device is off, users need to frequently press the power button to light the screen before using face unlocking, which makes the unlocking process time-consuming and labor-intensive, especially in scenarios where frequent screen unlocking is required.
By monitoring broadcast events, the device is obtained by obtaining the power information of the device, the control device enters deep sleep mode, and receives detection information for unlocking operations within the target control time, including using the camera to detect facial feature information for unlocking, avoiding manual key pressing.
It greatly simplifies the device unlocking process and improves the user experience. It no longer requires manual button pressing or the help of sensing devices to improve unlocking efficiency.
Smart Images

Figure CN112149091B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal device control technology, and in particular to a device unlocking method, device, electronic device and storage medium. Background Art
[0002] With the increasing development of terminal devices such as smart phones, users have more and more frequent needs to unlock terminal devices. After the terminal mobile phone device is locked and the screen is turned off, the conventional unlocking methods of smart phone terminals include: fingerprint unlocking, face unlocking, touch screen sliding pattern unlocking, touch screen manual password unlocking, etc.
[0003] Among the above unlocking methods, more and more users prefer to use contactless face unlocking for unlocking. For conventional terminal device face unlocking, the user needs to manually press the power button of the terminal device to light up the screen when the screen is off before the face unlocking detection program can be started. Therefore, in situations where the screen needs to be locked and unlocked frequently, it is necessary to always press the power button of the terminal device to use face unlocking to enter the user interface. This frequent operation will bring more inconvenience to the user experience and urgently needs to be improved. For example, in scenarios where users are often interrupted from using terminal devices in public places such as subways or buses, and frequent lock or unlock operations are required in this scenario, there is an urgent need for a method to improve the original conventional operation method. Summary of the invention
[0004] In order to solve the technical problem that the face unlocking detection program will only be started after the user manually presses the power button of the terminal device to turn on the screen when the screen is off, resulting in a time-consuming and labor-intensive unlocking process, the present application provides a device unlocking method, apparatus, electronic device and storage medium.
[0005] According to one aspect of an embodiment of the present application, a device unlocking method is provided, including:
[0006] When it is determined that the screen of the device to be unlocked is off according to the monitored broadcast event, obtaining current power information of the device to be unlocked;
[0007] Controlling the device to be unlocked to enter a deep sleep mode after a target control time corresponding to the current power information according to the current power information;
[0008] Receiving detection information detected within the target control time;
[0009] An unlocking operation is performed on the device to be unlocked according to the detection information.
[0010] Further, controlling the device to be unlocked to enter a deep sleep mode after a target control time corresponding to the current power information according to the current power information includes:
[0011] When the current power information is greater than or equal to the preset power information, determining a target power range to which the current power information belongs;
[0012] Obtain the correspondence between the preset power range and the control time;
[0013] Determine the target control time corresponding to the target power range according to the preset correspondence between the power range and the control time;
[0014] generating a shallow sleep instruction according to the target control time;
[0015] The device to be unlocked is prevented from entering a deep sleep mode after a target control time according to the shallow sleep instruction.
[0016] Further, the receiving detection information detected within the target control time includes:
[0017] Sending a working instruction to a camera device located on one side of the screen of the device to be unlocked at the target control time, wherein the working instruction is used to control the camera device to enter a working state;
[0018] Acquire a facial image of a current object captured by the camera device;
[0019] The facial features obtained by analyzing the facial image are used as the detection information.
[0020] Further, performing an unlocking operation on the device to be unlocked according to the detection information includes:
[0021] extracting feature information according to the facial image;
[0022] comparing the characteristic information with pre-stored characteristic information;
[0023] When the characteristic information matches the pre-stored characteristic information, the device to be unlocked is controlled to perform an unlocking operation according to the characteristic information, and the screen is changed from an off state to a display state.
[0024] Furthermore, the method further comprises:
[0025] When it is determined according to the feature information that there is an obstruction on the face of the current object, acquiring touch information acting on the screen of the device to be unlocked;
[0026] The device to be unlocked is controlled to perform an unlocking operation according to the touch information.
[0027] Furthermore, the method further comprises:
[0028] Obtaining historical usage records of the screen of the device to be unlocked;
[0029] determining a target time period based on the historical usage records;
[0030] A control instruction is generated according to the target time period, and the control instruction is used to control the screen of the device to be unlocked to delay entering an off state within the target time period.
[0031] Furthermore, the method further comprises:
[0032] Obtaining connection information of the device to be unlocked;
[0033] Acquire at least one smart home device connected to the device to be unlocked according to the connection information;
[0034] Receiving device failure information of the smart home device;
[0035] When the device fault information meets a preset condition, determining a sleep mode of the device to be unlocked;
[0036] When the sleep mode of the device to be unlocked is a deep sleep mode, a wake-up instruction is generated according to the fault information, and the wake-up instruction is used to control the device to be unlocked to perform a vibration operation and control the device to be unlocked to switch from the deep sleep mode to the shallow sleep mode.
[0037] According to another aspect of an embodiment of the present application, a device unlocking apparatus is provided, including:
[0038] An acquisition module, configured to acquire current power information of the device to be unlocked when it is determined that the screen of the device to be unlocked is off according to the monitored broadcast event;
[0039] A control module, configured to control the device to be unlocked to enter a deep sleep mode after a target control time corresponding to the current power information according to the current power information;
[0040] A receiving module, used to receive detection information detected within the target control time;
[0041] The unlocking module is used to perform an unlocking operation on the video to be unlocked according to the detection information.
[0042] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above steps are executed when the program is run.
[0043] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: the memory is used to store computer programs; and the processor is used to execute the steps in the above method by running the program stored in the memory.
[0044] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps in the above method.
[0045] Compared with the prior art, the above technical solution provided by the embodiment of the present application has the following advantages: the embodiment of the present application controls the device to be unlocked to enter the deep sleep mode after the target control time corresponding to the current power information through the current power information, and then receives the detection information within the target control time to unlock, and no longer needs to manually press the power button of the terminal device to light up the screen, nor does it need to use sensing devices such as distance sensors and gravity sensors. This greatly improves the process of device unlocking and enhances the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0048] Figure 1 A flowchart of a device unlocking method provided in an embodiment of the present application;
[0049] Figure 2 A flowchart of a device unlocking method provided by another embodiment of the present application;
[0050] Figure 3 A flowchart of a device unlocking method provided by another embodiment of the present application;
[0051] Figure 4 A block diagram of a device unlocking apparatus provided in an embodiment of the present application;
[0052] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0054] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another similar entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0055] The embodiments of the present application provide a device unlocking method, apparatus and system. The method provided by the embodiments of the present invention can be applied to any required electronic device, for example, it can be a server, terminal and other electronic devices, which are not specifically limited here, and for the convenience of description, they are referred to as electronic devices in the following.
[0056] According to one aspect of the embodiments of the present application, a method embodiment of a device unlocking method is provided. Figure 1 A flow chart of a control method for a smart home device provided in an embodiment of the present application, such as Figure 1 As shown, the method also includes:
[0057] Step S11, when it is determined that the screen of the device to be unlocked is off according to the monitored broadcast event, the current power information of the device to be unlocked is obtained;
[0058] In the embodiment of the present application, the device to be unlocked can be a mobile terminal such as an Android phone or a tablet computer. When the current object (user) clicks the virtual button on the screen or clicks the lock screen button set on the device, a lock screen broadcast event will be triggered, and the device to be unlocked will control the screen state to be off according to the broadcast event. Then, the current power information of the device to be unlocked is obtained at this time, and the power information can be a specific value.
[0059] Step S12, controlling the device to be unlocked to enter a deep sleep mode after a target control time corresponding to the current power information according to the current power information;
[0060] In an embodiment of the present application, the device to be unlocked is controlled to enter a deep sleep mode after a target control time corresponding to the current power information according to the current power information, including: when the current power information is greater than or equal to the preset power information, determining the target power range to which the current power information belongs; obtaining the correspondence between the preset power range and the control time; determining the target control time corresponding to the target power range according to the correspondence between the preset power range and the control time; generating a shallow sleep instruction according to the target control time; and preventing the device to be unlocked from entering a deep sleep mode after the target control time according to the shallow sleep instruction.
[0061] It is understandable that the correspondence between the power range and the control time can be preset by the developer, for example: the power range is 100%-95%, the corresponding control time is 50 minutes, the power range is 95%-90%, the corresponding control time is 45 minutes, the power range is 85%-90%, and the corresponding control time is 40 minutes. Therefore, after determining the current power information, the target power range to which the current power information belongs and the target control time corresponding to the target power range can be determined, and then the shallow sleep instruction PARTIAL_WAKE_LOCK is automatically generated according to the target control time.
[0062] Step S13, receiving detection information detected within the target control time;
[0063] In an embodiment of the present application, detection information detected within a target control time is received, including: sending a work instruction to a camera device located on one side of a screen of a device to be unlocked during the target control time, the work instruction being used to control the camera device to enter a working state; acquiring a facial image of the current object taken by the camera device; and using facial features obtained by analyzing the facial image as detection information.
[0064] In an embodiment of the present application, the camera device is located on the same side as the screen of the device to be unlocked, which is the front camera of the device to be unlocked. The face of the current object is scanned by the camera device to obtain a facial image, and then the facial features extracted based on the facial image may be facial contours, eye pattern features, etc.
[0065] It should be noted that the shallow sleep command is used to prevent the device from entering the deep sleep mode, during which the screen is always off, and then the camera of the device is controlled to be in working state within the target control time, so as to ensure that the detection information for unlocking is obtained by scanning through the camera without turning on the screen. Compared with the prior art of first triggering a button or triggering a gravity sensor to turn on the screen and then unlocking, this saves time.
[0066] Step S14: unlocking the device to be unlocked according to the detection information.
[0067] In an embodiment of the present application, an unlocking operation is performed on the device to be unlocked according to the detection information, including: extracting feature information based on the facial image; comparing the feature information with pre-stored feature information; when the feature information matches the pre-stored feature information, controlling the device to be unlocked to perform an unlocking operation according to the feature information, and the screen changes from an off state to a display state.
[0068] In an embodiment of the present application, the obtained detection image is processed to obtain the required first feature information. The first feature information itself may also be a processed first image containing facial features of the user. The pre-stored feature information may be a processed second image containing facial features of a legitimate user. Then, by judging whether the similarity between the first image and the second image is greater than a preset value (for example, 70%), it can be determined whether the first feature information matches the first preset facial data of the pre-stored legitimate user, thereby determining the legitimacy of the identity of the user performing facial recognition unlocking.
[0069] The embodiment of the present application controls the device to be unlocked to enter a deep sleep mode after the target control time corresponding to the current power information through the current power information, and then receives the detection information within the target control time to unlock the device. It is no longer necessary to manually press the power button of the terminal device to light up the screen, nor is it necessary to use sensing devices such as distance sensors and gravity sensors. This greatly improves the process of unlocking the device and enhances the user experience.
[0070] The method provided in the embodiment of the present application can also determine additional feature information based on the facial image, wherein the additional feature information can specifically include: one or more of the user's facial expression data, the user's facial action data, and other special action data made by the user. For example, the second feature information can be: a special facial action made by the user such as a crooked mouth, closed eyes, pouting, or sticking out the tongue.
[0071] Determine whether to trigger a target operation based on the additional feature information. The target operation may include: turning off the facial recognition unlocking function or starting an application in the device to be unlocked. The feature information may be one or more of the user's special facial expression features, special facial movement features, and other special movement features that are pre-stored.
[0072] The method provided in the embodiment of the present application also includes: when it is determined based on the feature information that there is an obstruction on the face of the current object, acquiring touch information acting on the screen of the device to be unlocked; and controlling the device to be unlocked to perform an unlocking operation based on the touch information.
[0073] It can be understood that by detecting the obstruction, it is determined whether the current object is wearing a mask. If the current object is wearing a mask, the touch information of the current object user on the screen is determined. The touch information can be a sliding path or fingerprint information. When the touch information matches the preset touch information, the device to be unlocked is controlled to perform the unlocking operation. In this way, the embodiment of the present application can be unlocked in a variety of ways within the target control time, which provides great convenience for the user.
[0074] Figure 2 A flowchart of a device unlocking method provided in an embodiment of the present application, such as Figure 2 As shown, the method may include the following steps:
[0075] Step S21, obtaining the historical usage record of the screen of the device to be unlocked;
[0076] In an embodiment of the present application, the historical usage record includes: the number of times the screen of the device to be unlocked is used each day, the start and end time of each screen use, and the duration, as well as the application used each time.
[0077] Step S22, determining a target time period according to historical usage records;
[0078] In the embodiment of the present application, the time period with the most screen usage times is determined based on the historical usage records, and the time period with the most screen usage times is used as the target time period.
[0079] Step S23, generating a control instruction according to the target time period, where the control instruction is used to control the screen of the device to be unlocked to enter a dark state in the target time period with a delay.
[0080] In an embodiment of the present application, the user's screen usage is analyzed through historical usage records, so that the screen of the device to be unlocked is automatically delayed to enter the off state during the target time period, providing convenience for the user.
[0081] Figure 3 A flowchart of a device unlocking method provided in an embodiment of the present application, such as Figure 3 As shown, the method may include the following steps:
[0082] Step S31, obtaining connection information of the device to be unlocked;
[0083] Step S32, obtaining at least one smart home device connected to the device to be unlocked according to the connection information;
[0084] In an embodiment of the present application, at least one smart home device connected to the device to be unlocked may be: an air conditioner, a refrigerator, a sweeping robot, an air purifier, a washing machine, etc.
[0085] Step S33, receiving device failure information of the smart home device;
[0086] In an embodiment of the present application, the device to be unlocked and the smart home device are pre-connected to the network. When a fault occurs in the smart home device, the fault code will be automatically sent to the device to be unlocked. The device to be unlocked determines the device fault information of the smart home device based on the fault code, such as a compressor failure of an air conditioner, a spin failure of a washing machine, and a map failure of a sweeping robot.
[0087] Step S34, when the device fault information meets the preset condition, determining the sleep mode of the device to be unlocked;
[0088] In the embodiment of the present application, the device fault information satisfies the preset condition, which can be determined by, according to the fault level corresponding to the device fault information, when the device fault level reaches the preset level, the device fault information satisfies the preset condition. The corresponding relationship between the device fault information and the fault level can be preset by the developer.
[0089] Step S35, when the sleep mode of the device to be unlocked is the deep sleep mode, a wake-up instruction is generated according to the fault information, and the wake-up instruction is used to control the device to be unlocked to perform a vibration operation and control the device to be unlocked to switch from the deep sleep mode to the shallow sleep mode.
[0090] In the embodiment of the present application, when the device to be unlocked is in deep sleep and receives device fault information of the smart home device, the device to be unlocked is awakened according to the device fault information. On the one hand, the user is reminded of the fault of the smart home device by vibration, and on the other hand, the deep sleep mode is converted to the shallow sleep mode, without the user touching the button and relying on the terminal's induction to wake up the screen. After hearing the vibration, the user can quickly unlock the device directly when the screen is off.
[0091] Figure 4 This is a block diagram of a device unlocking device provided in an embodiment of the present application. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 4 As shown, the device comprises:
[0092] The acquisition module 41 is used to acquire the current power information of the device to be unlocked when it is determined that the screen of the device to be unlocked is off according to the monitored broadcast event;
[0093] A control module 42, configured to control the device to be unlocked to enter a deep sleep mode after a target control time corresponding to the current power information according to the current power information;
[0094] A receiving module 43, used to receive detection information detected within the target control time;
[0095] The unlocking module 44 is used to perform an unlocking operation on the video to be unlocked according to the detection information.
[0096] Furthermore, the control module 42 is specifically used to determine the target power range to which the current power information belongs when the current power information is greater than or equal to the preset power information; obtain the correspondence between the preset power range and the control time; determine the target control time corresponding to the target power range according to the correspondence between the preset power range and the control time; generate a shallow sleep instruction according to the target control time; and prevent the device to be unlocked from entering a deep sleep mode after the target control time according to the shallow sleep instruction.
[0097] Further, receiving detection information detected within the target control time includes:
[0098] Sending a working instruction to a camera device located on one side of the screen of the device to be unlocked at a target control time, the working instruction being used to control the camera device to enter a working state;
[0099] Acquire a facial image of a current object captured by a camera device;
[0100] The facial features obtained by analyzing the facial image are used as detection information.
[0101] Furthermore, the unlocking module 44 is specifically used to extract feature information based on the facial image; compare the feature information with the pre-stored feature information; when the feature information matches the pre-stored feature information, control the device to be unlocked to perform an unlocking operation according to the feature information, and change the screen from the off state to the display state.
[0102] Furthermore, the embodiment of the present application provides that when it is determined according to the feature information that there is an obstruction on the face of the current object, touch information acting on the screen of the device to be unlocked is obtained;
[0103] The device to be unlocked is controlled to perform an unlocking operation according to the touch information.
[0104] Furthermore, the device provided in the embodiment of the present application also includes an analysis module for obtaining historical usage records of the screen of the device to be unlocked; determining a target time period based on the historical usage records; and generating a control instruction based on the target time period, the control instruction being used to control the screen of the device to be unlocked to delay entering an off state within the target time period.
[0105] Furthermore, the device provided in the embodiment of the present application also includes: a fault processing module, used to obtain connection information of the device to be unlocked; obtain at least one smart home device connected to the device to be unlocked based on the connection information; receive device fault information of the smart home device; when the device fault information meets a preset condition, determine the sleep mode of the device to be unlocked; when the sleep mode of the device to be unlocked is a deep sleep mode, generate a wake-up instruction based on the fault information, the wake-up instruction is used to control the device to be unlocked to perform a vibration operation, and control the device to be unlocked to switch from the deep sleep mode to the shallow sleep mode.
[0106] The present application also provides an electronic device, such as Figure 5 As shown, the electronic device may include: a processor 1501 , a communication interface 1502 , a memory 1503 and a communication bus 1504 , wherein the processor 1501 , the communication interface 1502 , and the memory 1503 communicate with each other via the communication bus 1504 .
[0107] Memory 1503, used for storing computer programs;
[0108] The processor 1501 is used to implement the steps of the above embodiment when executing the computer program stored in the memory 1503.
[0109] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0110] The communication interface is used for communication between the above terminal and other devices.
[0111] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0112] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0113] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer executes the device unlocking method described in any one of the above embodiments.
[0114] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the device unlocking method described in any one of the above embodiments.
[0115] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk SolidState Disk), etc.
[0116] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
[0117] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A device unlocking method, characterized in that: include: When it is determined that the screen of the device to be unlocked is off according to the monitored broadcast event, obtaining current power information of the device to be unlocked; Controlling the device to be unlocked to enter a deep sleep mode after a target control time corresponding to the current power information according to the current power information; Receiving detection information detected within the target control time; Performing an unlocking operation on the device to be unlocked according to the detection information; Among them, controlling the device to be unlocked to enter a deep sleep mode after a target control time corresponding to the current power information according to the current power information includes: When the current power information is greater than or equal to the preset power information, determining a target power range to which the current power information belongs; Obtain the correspondence between the preset power range and the control time; Determine the target control time corresponding to the target power range according to the preset correspondence between the power range and the control time; generating a shallow sleep instruction according to the target control time; Preventing the device to be unlocked from entering a deep sleep mode within a target control time according to the shallow sleep instruction, and controlling the device to be unlocked to enter a deep sleep mode after the target control time according to the shallow sleep instruction; The receiving of detection information detected within the target control time includes: Sending a working instruction to a camera device located on one side of the screen of the device to be unlocked at the target control time, wherein the working instruction is used to control the camera device to enter a working state; Acquire a facial image of a current object captured by the camera device; The facial features obtained by analyzing the facial image are used as the detection information.
2. The method according to claim 1, characterized in that: The unlocking operation on the device to be unlocked according to the detection information includes: extracting feature information according to the facial image; comparing the characteristic information with pre-stored characteristic information; When the characteristic information matches the pre-stored characteristic information, the device to be unlocked is controlled to perform an unlocking operation according to the characteristic information, and the screen is changed from an off state to a display state.
3. The method according to claim 2, characterized in that The method further comprises: When it is determined according to the feature information that there is an obstruction on the face of the current object, acquiring touch information acting on the screen of the device to be unlocked; The device to be unlocked is controlled to perform an unlocking operation according to the touch information.
4. The method according to claim 1, characterized in that: The method further comprises: Obtaining historical usage records of the screen of the device to be unlocked; determining a target time period based on the historical usage records; A control instruction is generated according to the target time period, and the control instruction is used to control the screen of the device to be unlocked to delay entering an off state within the target time period.
5. The method according to claim 1, characterized in that The method further comprises: Obtaining connection information of the device to be unlocked; Acquire at least one smart home device connected to the device to be unlocked according to the connection information; Receiving device failure information of the smart home device; When the device fault information meets a preset condition, determining the sleep mode of the device to be unlocked; When the sleep mode of the device to be unlocked is a deep sleep mode, a wake-up instruction is generated according to the fault information, and the wake-up instruction is used to control the device to be unlocked to perform a vibration operation and control the device to be unlocked to switch from the deep sleep mode to the shallow sleep mode.
6. A device unlocking device, characterized in that: include: An acquisition module, configured to acquire current power information of the device to be unlocked when it is determined that the screen of the device to be unlocked is off according to the monitored broadcast event; A control module, configured to control the device to be unlocked to enter a deep sleep mode after a target control time corresponding to the current power information according to the current power information; A receiving module, used to receive detection information detected within the target control time; An unlocking module, used to perform an unlocking operation on the device to be unlocked according to the detection information; Among them, the control module is specifically used to determine the target power range to which the current power information belongs when the current power information is greater than or equal to the preset power information; obtain the correspondence between the preset power range and the control time; determine the target control time corresponding to the target power range according to the correspondence between the preset power range and the control time; generate a shallow sleep instruction according to the target control time; control to prevent the device to be unlocked from entering a deep sleep mode within the target control time according to the shallow sleep instruction, and control the device to be unlocked to enter a deep sleep mode after the target control time according to the shallow sleep instruction; Among them, the receiving module is specifically used to send a working instruction to the camera device located on one side of the screen of the device to be unlocked at the target control time, and the working instruction is used to control the camera device to enter a working state; obtain a facial image of the current object taken by the camera device; and use the facial features obtained by analyzing the facial image as the detection information.
7. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the method steps of any one of claims 1 to 5 when executed.
8. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein: The processor, the communication interface, and the memory communicate with each other via a communication bus; wherein: Memory, used to store computer programs; A processor, configured to execute the method steps of any one of claims 1 to 5 by running a program stored in a memory.
Citation Information
Patent Citations
Background program cleaning method and system for mobile terminal
CN105700663A
Screen unlocking method and device, mobile terminal and computer readable medium
CN108804894A
Unlocking method and mobile terminal
CN110516515A