Smart lock and control method based on face recognition
By introducing a preset time period at the minute level to the smart lock for face recognition verification, and requiring confirmation instructions and not unlocking the lock if it is not confirmed within the second level time, the problem of accidentally unlocking caused by users' back or long stay is solved, reducing security risks and maintaining a good user experience.
Patent Information
- Application Number
- CN202411593743.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2044-11-08
AI Technical Summary
Existing smart locks are prone to unlocking by mistake when users turn back or stay for a long time, resulting in security risks and affecting user experience.
After the face recognition verification is passed within a period of time after the user leaves, the user is required to enter confirmation instructions in time to execute lock unlocking. If the input is not entered in time, the lock will not be unlocked, and the facial recognition module will be disabled within a certain period of time to reduce the risk of accidentally unlocking.
It effectively avoids the problem of accidentally unlocking caused by users' back or long-term stay, reduces security risks, and has a small impact on user experience.
Smart Images

Figure CN119399864B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart lock technology, and more particularly to a smart lock including a face recognition module and a control method based on face recognition. The present application also relates to a computer-readable storage medium and a computer program product. Background Art
[0002] Facial recognition technology is increasingly being used in smart locks due to its security and convenience. It's primarily used to unlock the door using facial recognition. That is, the smart lock uses facial features to authenticate the user and unlocks the door once verification is successful.
[0003] Some smart locks with facial recognition unlocking capabilities temporarily disable this feature (usually for 5-10 seconds) after the user leaves the house to prevent the user from looking back and causing the smart lock to re-recognize the legitimate user's face and unlock again. Disabling the facial recognition unlocking feature can, to a certain extent, reduce the probability of accidental unlocking by looking back, thereby reducing security risks. However, in some scenarios, such smart locks may still accidentally unlock, leaving room for improvement. Summary of the Invention
[0004] One of the purposes of this application is to provide a smart lock including a face recognition module, which can better avoid the problem of accidental unlocking caused by the user turning back or even staying at the door for a long time, reduce the security risks caused by accidental unlocking, and have little impact on the user's experience of re-unlocking.
[0005] A first aspect of the present application provides a smart lock, comprising an inner panel and an outer panel provided with a face recognition module, the smart lock also comprising a control module, the control module being at least used to: obtain a first moment, the first moment being used to indicate the time when a first user goes out; if the face recognition module passes the face recognition verification of the user outside the door within a first preset time period starting from the first moment, output a first instruction; wherein the first preset time period is a time period at the minute level; the outer panel is at least used to: under the control of the first instruction, output a prompt message, the prompt message is used to guide the user to input a preset confirmation instruction; the control module is also used to: if no confirmation instruction input by the user outside the door is received within a second preset time period after the face recognition verification is passed, not instruct the smart lock to perform an unlocking operation, wherein the second preset time period is a time period at the second level.
[0006] In combination with the first aspect, in a possible implementation, the outer panel is provided with a human body sensing module, and the human body sensing module is at least used for: realizing human body perception within a certain distance range around the outer panel; the face recognition module is at least used for: being automatically triggered to perform face recognition verification when the human body sensing module perceives a human body; the control module is also used for: when the face recognition module passes the face recognition verification of the user outside the door and the triggering mode of the face recognition module is automatic triggering, checking whether the second moment is within the first preset time period, wherein the second moment is used to indicate the time when the face recognition verification is passed; if it is within the first preset time period, outputting the first instruction.
[0007] In combination with the first aspect, in a possible implementation, the control module is also used to: control the disabling of the human body sensing module and / or the disabling of the face recognition module within a third preset time period starting from the first moment, wherein the third preset time period is a time period of seconds.
[0008] In combination with the first aspect, in a possible implementation, the outer panel is provided with a front display screen, and the front display screen is used to: be awakened in response to the first instruction, and display a prompt interface, wherein the prompt interface includes the prompt information and a confirmation control; if the confirmation control is not performed by the user outside the door to perform the preset operation, the control module does not receive the confirmation instruction.
[0009] In combination with the first aspect, in a possible implementation, the outer panel is provided with a front display screen, and the front display screen is used to: be awakened in response to the first instruction and display a prompt interface, wherein the prompt interface includes the prompt information; if the preset button on the outer panel is not pressed by the user outside the door to perform the preset operation, the control module does not receive the confirmation instruction.
[0010] In combination with the first aspect, in a possible implementation, the control module is further configured to: if the confirmation instruction is not received within the second preset time period, instruct to turn off the front display screen.
[0011] In combination with the first aspect, in a possible implementation, the outer panel is provided with a speaker and a preset button, and the speaker is used to: play the prompt information in response to the first instruction; if the preset button is not pressed by the user outside the door to perform the preset operation, the control module does not receive the confirmation instruction.
[0012] In combination with the first aspect, in a possible implementation, the control module is also used to: output an unlocking instruction to control the smart lock to perform an unlocking operation when the confirmation instruction is received within the second preset time period; and / or, output an unlocking instruction when the second moment is not within the first preset time period; and / or, output an unlocking instruction when the face recognition module passes the face recognition verification of the user outside the door and the triggering mode of the face recognition module is manual triggering.
[0013] In combination with the first aspect, in one possible implementation, the inner panel is provided with an inner handle and / or an unlocking button; the control module is used to: instruct the smart lock to perform an unlocking operation when a rotation signal of the inner handle or a trigger signal of the unlocking button is obtained; and use the time corresponding to the rotation signal or the trigger signal as the first moment.
[0014] With reference to the first aspect, in a possible implementation, the control module is configured to: when a locking signal is acquired after performing an unlocking operation, use a time corresponding to the locking signal as the first moment.
[0015] The second aspect of the present application provides a method for obtaining a first moment, wherein the first moment is used to indicate the time when the first user goes out; when the face recognition module passes the face recognition verification of the user outside the door within a first preset time period starting from the first moment, a first instruction is output to control the outer panel to output a prompt message; wherein the prompt message is used to guide the user to input a preset confirmation instruction, and the first preset time period is a time period at the minute level; when no confirmation instruction input by the user outside the door is received within a second preset time period after the face recognition verification is passed, the smart lock is not instructed to perform an unlocking operation, wherein the second preset time period is a time period at the second level.
[0016] A third aspect of the present application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor is caused to execute any possible method of the second aspect.
[0017] A fourth aspect of the present application provides a computer program product, comprising a computer program, which enables a computer to execute any possible method of the second aspect when the computer program is executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is a schematic diagram of the architecture of a smart lock system in an exemplary application scenario of the present application.
[0019] Figure 2This is a flowchart of one of the exemplary control methods of the smart lock according to an embodiment of the present application.
[0020] Figure 3 This is a schematic diagram of an exemplary prompt interface of the front display screen in an embodiment of the present application.
[0021] Figure 4 This is a flow chart of another exemplary control method for the smart lock according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to clearly and completely describe the technical solution of the present application, further explanation will be given below in conjunction with embodiments and drawings.
[0023] If the facial recognition unlocking function is disabled immediately after the user leaves the house, a prolonged disablement period can significantly impact the user experience. For example, a user might forget something and want to unlock the door immediately. A prolonged disablement period can result in a long wait time or require the user to perform relatively complex manual operations on the smart lock before re-enabling facial recognition verification and unlocking. To account for this, facial recognition is typically disabled for a short period of time, such as 5-10 seconds, after which the function is re-enabled. However, this solution can still lead to accidental unlocking. For example, in some scenarios, a user might linger at the door for an extended period after leaving the house, perhaps chatting with a neighbor or waiting for an elevator. If the user remains at the door for longer than the disabled period and accidentally looks back, the smart lock's facial recognition verification may be successful, leading to accidental unlocking. Since the user is unaware of this process, it is very likely that the user will not notice that the door lock is open and then leave, which will create security risks and even lead to safety accidents.
[0024] In addition to the aforementioned direct disabling solution, in other solutions, the smart lock will automatically detect the user's posture data and, after a series of calculations, determine whether the user is facing the door lock directly or looking at the door lock from the side after going out. If the user is facing the door lock directly, the lock will be unlocked, and if the user is looking at the door lock from the side, the lock will not be unlocked, thereby preventing the user from accidentally unlocking the door by looking back to a certain extent. In some solutions, the smart lock will perform a second facial recognition on the user, and unlock the door if both facial recognitions pass, thereby reducing the risk of accidental unlocking. However, when the user stays and wanders in front of the door for a long time, the user's possible postures become more diverse. For example, when a user goes out with a pet and waits for the elevator at the door, the pet may run around unexpectedly during the waiting period, causing the user's posture to change a lot during this period, which is easy to be misjudged by the smart lock or recognized by the second facial recognition, which will still cause the problem of accidental unlocking.
[0025] This application proposes an improved solution that separates the facial recognition verification and unlocking steps within a relatively long period of time after the user leaves the house (hereinafter referred to as the first preset period for ease of description and distinction). After the facial recognition verification is passed, the user is required to promptly and actively input a confirmation instruction before unlocking is performed. If the confirmation instruction is not received, the door will not be unlocked. With this solution, even in the scenario where the user stays at the door for a long time, the problem of accidental unlocking can be better avoided, reducing the security risks caused by accidental unlocking. At the same time, if the user wants to unlock the door again, the use of this solution has little impact on the user's experience of unlocking the door again.
[0026] See also Figure 1 , Figure 1 Schematic diagram of an exemplary application scenario of the smart lock provided in an embodiment of the present application. The smart lock in an embodiment of the present application may include an outer panel for facing the outside of the door and an inner panel for facing the inside of the door.
[0027] A face recognition module (not shown in the figure) is provided on the outer panel, which is mainly used to analyze and verify the user's facial features, so as to determine whether the user is a legitimate user. The module in the embodiment of the present application can adopt the face recognition module or other possible modules in the prior art, and the present application does not limit this. For example, the face recognition module or smart lock may include hardware such as a camera that can capture images. When the face recognition module is triggered, it can obtain the captured image and analyze it to identify the facial image features, and then match the identified facial image features with the pre-set facial feature information of the user with unlocking authority (i.e., the legitimate user). If the two match successfully, it can be considered that the face recognition verification is passed.
[0028] The smart lock also includes a control module (not shown in the figure), which can adopt the control chip, single-chip microcomputer, etc. in the prior art, or other possible forms, which is not limited in this application. It can be understood that in actual applications, the control module can be implemented by a physical component or a combination of multiple physical components. The control module can be set at any possible position of the smart lock, such as the outer panel, inner panel or other possible positions, which is not limited in this application. For example, in some smart locks, the control module includes an external main control and an internal main control. The external main control can be set in the outer panel, and the internal main control is set in the inner panel. The two are electrically connected, such as Figure 4 As shown. For example, in some other smart locks, the control module adopts a main control, which can be set in the outer panel.
[0029] Optionally, the smart lock may also include one or more other functional modules, such as other biometric recognition modules other than the face recognition module, a human body sensing module, a digital recognition module, a wireless communication module, a security authentication module, etc.
[0030] In addition to the face recognition module, other biometric recognition modules include but are not limited to modules that can collect and recognize one or more human biometric data such as fingerprints, finger veins, irises, and voice. These biometric recognition modules can be set on the outer panel.
[0031] A human body sensing module primarily uses one or a combination of technologies, such as radar, infrared, and ultrasonic waves, to sense human presence within a certain distance around the outer panel. It can sense the approach or movement of a person. The human body sensing module can also be installed on the outer panel.
[0032] Digital identification modules include but are not limited to modules that can collect and identify one or more digital keys such as passwords, door cards, mobile phones, electronic keys, etc.
[0033] Wireless communication modules are typically used to establish wireless communications with cloud servers, mobile devices, door cards, electronic keys, and other devices via wireless communication protocols such as WiFi, BLE, NFC, ZigBee, and Zig-Wave. Examples of wireless communication modules include WiFi, NB-IoT, or 4G / 5G modules.
[0034] The security authentication module can support symmetric algorithms (such as DES, AES, SM4, etc.) and / or asymmetric algorithms (such as RSA, ECC, SM2, etc.). It is generally used to store key data such as public keys, private keys, symmetric keys, digital certificates, etc. required by the algorithm, as well as to realize secure authentication and encrypted communication with electronic keys, cloud services and other servers, terminal device applications, etc. through algorithms.
[0035] Optionally, a front display screen may be provided on the outer panel. The front display screen may adopt a display panel in the prior art, such as an LCD LED panel such as IPS (In-Plane Switching), VA (Vertical Alignment), TN (Twisted Nematic), TFT (Thin Film Transistor), or an OLED panel. When the front display screen adopts a touch screen, the smart lock may further include a touch screen interaction module to provide rich information display and powerful input capabilities, thereby realizing simple and easy-to-use human-computer interaction.
[0036] Optionally, buttons, such as a doorbell button, a confirmation button, character buttons, etc., may be provided on the outer panel to facilitate user input.
[0037] Optionally, a rear display screen may be provided on the inner panel, and the rear display screen may also adopt a display panel in the prior art, which is not limited in this application.
[0038] Optionally, buttons, such as an unlock button, a lock button, etc., may also be provided on the inner panel.
[0039] It will be understood that the smart lock in the embodiment of the present application may also include other necessary or possible components, such as a lock body, a battery, a sensor, a camera, a speaker, a microphone, a handle, etc.
[0040] The control module can be directly or indirectly connected to one or more possible modules and components, such as the face recognition module, to exchange information and instructions. It can also be used to coordinate the scheduling of various modules to realize various possible functions of the smart lock. For example, the control module and various modules can be connected via UART (Universal Asynchronous Receiver / Transmitter), I2C (Inter-Integrated Circuit), SPI (Serial Peripheral Interface), etc.
[0041] Below, taking the interaction process between a user (for example, the first user) inside the door, the smart lock, and other possible participating entities in the scenario where the user unlocks the door and goes out as an example, the structure, function, and execution method of the smart lock in the embodiment of the present application are further explained.
[0042] See also Figure 2 and Figure 4 , Figure 2 and Figure 4 They are respectively flowchart diagrams of one of the smart lock control methods in the embodiments of the present application.
[0043] S110, the first user operates the smart lock from inside the door to unlock it.
[0044] S210: The control module obtains a first moment.
[0045] The first moment is primarily used to indicate the time the first user leaves the house. Generally, when a user is about to leave the house, they will complete the process of leaving and locking the door within a relatively short period of time after unlocking the door from the inside. Therefore, in some possible implementations, the time when the first user unlocks the door from the inside, or the time when the door is unlocked and then locked from the inside, or a time point near these points, can be used as the first moment. The first moment is primarily used as the starting point for the first preset time period. As long as it can roughly indicate the time the first user leaves the house, this application does not limit the specific value of the first moment.
[0046] For example, in one possible implementation, when a user unlocks the door by turning the inside handle, the control module can obtain a rotation signal from the inside handle and then instruct the motor in the smart lock to perform the unlocking operation. The control module can also record the time point corresponding to the rotation signal as the first moment.
[0047] In another possible implementation, when the user presses the unlock button on the inner panel of the door, the control module can obtain a trigger signal from the unlock button and then instruct the motor in the smart lock body to perform the unlock operation. At the same time, the control module can record the time corresponding to the trigger signal as the first moment.
[0048] In another possible implementation, after the user unlocks the door by turning the handle or pressing the unlock button, and then detects a lock signal, the control module can record the time point corresponding to the lock signal as the first moment.
[0049] Alternatively, for a smart lock with a mechanical lock body, it can use a door magnetic sensor, Hall sensor, geomagnetism, etc. to assist in detecting the lock signal. For a smart lock with a fully automatic electronic lock body, since the fully automatic electronic lock body itself has the function of detecting the lock signal integrated, it can directly detect the lock signal.
[0050] S220, when the face recognition module successfully verifies the face of the user outside the door within a first preset time period starting from the first moment, the control module outputs a first instruction.
[0051] The first preset time period is a minute-level time period. In the embodiment of the present application, a minute-level time period refers to a time interval described in minutes as a basic unit, generally describing a longer time period relative to a second-level time period, such as 1.5 minutes, 5 minutes, 10 minutes, etc. It is understood that the specific value of the first preset time period can be adjusted according to the user's travel habits.
[0052] A second-level time period refers to a time interval described in seconds, typically describing a shorter time period, illustratively ranging from 1 to 59 seconds. It is understood that, although minute-level time periods can also be measured in seconds in practical applications, there is still an order of magnitude difference between the two. In the embodiments of this application, a second-level time period is necessarily shorter than a minute-level time period.
[0053] As previously mentioned, in existing solutions that directly disable the facial recognition unlocking function, if the time period for disabling the facial recognition unlocking function after the user leaves the door is too long, it may affect the user's experience of re-unlocking the door. Therefore, in these solutions, the disabling time is set to be relatively short, usually in the order of seconds, such as 10 seconds. After the disabling time, the first preset time period in the embodiment of the present application is a relatively longer time period of a minute, such as 5 minutes. Moreover, during the first preset time period starting from the first moment, the facial recognition unlocking function may not be disabled or not completely disabled, and the facial recognition module may still perform facial recognition verification on the user outside the door.
[0054] It is understandable that the user outside the door here could be the first user who unlocked the door and left, the second user who left with the first user, or a third user who was already outside the door. As long as they are outside the door at that time, they may be verified by the active facial recognition module. As long as the user outside the door is a legitimate user who has previously entered facial feature information, they may pass the verification of the facial recognition module.
[0055] If the verification is successful and the verification is successful within a first preset time period, the control module will not directly output an unlock command, but will instead output a first command. This first command can be used directly or indirectly to control the exterior panel to output a pre-set prompt message. This application does not limit the specific form of the first command.
[0056] S230: The external panel outputs prompt information under the control of the first instruction.
[0057] Prompt information is primarily used to guide users to enter preset confirmation instructions. Prompt information can be presented in one or more different forms, such as text, icons, animations, and voice. Different presentation forms may require different hardware and / or software for the external panel.
[0058] In one possible implementation, the outer panel of the smart lock is provided with a front display screen, which can be configured to be awakened in response to a first command and display a prompt interface. The prompt interface includes at least prompt information. The prompt information can be presented in a visual form such as text, an icon, or an animation, for example, displaying the text "To unlock, please click to confirm."
[0059] Alternatively, see Figure 3 In the case where the front display screen is a touch screen, the prompt interface may include a confirmation control, allowing the user to perform a preset operation on the confirmation control, such as clicking, sliding, etc., to input a confirmation instruction. Optionally, the prompt interface may also include a cancel control, and the user may perform a preset operation on the cancel control to input a cancel instruction.
[0060] Optionally, the outer panel may be provided with preset buttons, such as a "Confirm" button, a doorbell button, etc., and a prompt message may prompt the user to enter a confirmation instruction by performing a preset operation on the preset button. For example, the display screen may provide a text prompt "To unlock, press the 'Confirm' button" or a text prompt "To unlock, press the 'Doorbell' button twice in a row." The user can then enter the confirmation instruction by pressing the "Confirm" button or pressing the doorbell button twice in a row, guided by the prompt message.
[0061] In another possible implementation, a speaker may be provided on the outer panel, and the speaker may be configured to play a prompt message in response to the first instruction. In this case, the prompt message may be presented in the form of a voice. After hearing the played voice message, the user may, under the guidance of the voice message, perform a preset operation on a preset button to enter a confirmation instruction.
[0062] S240: If no confirmation instruction is received from the user outside the door within a second preset time period after the face recognition verification is passed, the control module does not instruct the smart lock to perform the unlocking operation.
[0063] The second preset time period is a time period of seconds, and can be 5 seconds for example. For the time period of seconds, please refer to the above description. It can also be clear from the above description that the second preset time period is necessarily shorter than the first preset time period.
[0064] In some possible implementations, the second preset time period can be set to less than 10 seconds, thereby better preventing an illegal user from entering a confirmation instruction after a legitimate user inadvertently passes the face recognition verification but leaves.
[0065] In some possible implementations, the first preset time period may be set to 12 to 120 times the second preset time period. For example, the second preset time period may be set to 5 seconds, and the first preset time period may be set to 5 minutes.
[0066] In some possible implementations, a second moment can be used to indicate the time when the user outside the door passed facial recognition verification. Similar to the first moment, the second moment is primarily used as the starting point for the second preset time period. As long as it can roughly indicate the time when facial recognition verification passed, this application does not limit the specific method of setting it.
[0067] The user outside the door can enter the confirmation instruction through the possible methods mentioned above, etc., but if the user outside the door does not follow the guidance of the prompt information and enter the confirmation instruction in the preset operation method (including the case of entering the aforementioned cancellation instruction), or the user outside the door does not perform any operation, it is considered that the control module has not received the confirmation instruction.
[0068] If the control module does not receive the confirmation instruction, or although it receives the confirmation instruction, it is not received within the second preset time period, the control module will not output the unlocking instruction, that is, it will not instruct the smart lock to perform the unlocking operation.
[0069] Optionally, the prompt interface displayed on the front display screen may further include a countdown, which is based on the second preset time period to guide and clearly indicate to the user how much time period is required to enter the confirmation instruction, such as Figure 3 shown.
[0070] Optionally, if the front display screen has been awakened before, and the control module does not receive a confirmation instruction within a second preset time period, the control module may also instruct to turn off the front display screen.
[0071] S250, when a confirmation instruction input by the user outside the door is received within the preset second time period, the control module outputs an unlocking instruction to instruct the smart lock to perform an unlocking operation.
[0072] In the embodiment of the present application, a first preset time period, measured in minutes, is introduced as the duration of the false unlock protection in the face recognition unlocking control logic. The processing steps during the false unlock protection period are modified to require the user to promptly and proactively enter a confirmation command within a second preset time period, measured in seconds. Otherwise, the unlock instruction will not be issued. This way, even if a legitimate user remains at the door for an extended period (as long as it is shorter than the first preset time period), adopts various postures during this period, or turns back once or multiple times, the smart lock will not falsely unlock after passing the face recognition verification, thus completely eliminating the problem of false unlocking due to turning back. Furthermore, the shorter second preset time period ensures that it is difficult for an unauthorized user to enter a confirmation command without the legitimate user present, thereby reducing the security risks of the smart lock. If the user outside the door wishes to unlock the door again, they only need to perform a simple and convenient confirmation operation, which has minimal impact on the user experience during the false unlock protection period. In other words, the smart lock using this solution not only reduces security risks but also provides a good balance between user unlocking experience and a good user experience.
[0073] In some implementations, the facial recognition module can be configured with multiple triggering methods, such as manual triggering and automatic triggering. Manual triggering refers to a method in which the facial recognition module can be triggered to perform facial recognition verification when the user directly performs certain preset operations on the smart lock. For example, in a smart lock equipped with a front display, the user touches any position on the front display or presses any button to wake up the front display, and then clicks the facial recognition control on the front display to manually trigger the facial recognition module.
[0074] Automatic triggering refers to a method in which the smart lock triggers the facial recognition module to perform facial recognition verification without the user having to manually operate the smart lock. For example, some smart locks may include a human presence sensor module that automatically triggers the facial recognition module when it detects a person within a certain distance.
[0075] The above-mentioned step S220 may include a step of determining whether a confirmation instruction is received within a second preset time period. This step may be implemented in a variety of specific ways. The following is an example of an implementation method based on the trigger method. Figure 4 , this method may include steps S261 to S262.
[0076] S261, when the face recognition module passes the face recognition verification of the user outside the door and the triggering mode of the face recognition module is automatic triggering, the control module checks whether the second moment is within the first preset time period.
[0077] For example, if the facial recognition module successfully verifies the face of the user outside the door, it can send a pass instruction and the corresponding second time to the control module. After receiving the pass instruction, the control module can determine whether the trigger mode of the facial recognition module is automatic. If so, it can check whether the second time is within the first preset time period. It should be noted that the order of the control module determining the trigger mode and checking the second time, etc., can vary and is not limited by this application.
[0078] S262: If it is within the first preset time period, the control module outputs a first instruction.
[0079] Optionally, in order to reduce the impact on the user's experience of re-unlocking, the aforementioned method may further include the following steps S270 and / or S280.
[0080] S270: If the triggering mode of the face recognition module is manual triggering, the control module outputs an unlocking instruction.
[0081] If the facial recognition module is manually triggered, it indicates that the user outside the door has a clear intention to re-unlock the door and that facial recognition verification has passed, rather than a misjudgment due to inadvertent turning back. Therefore, regardless of whether the second moment indicating facial recognition success is within the first preset time period, the door can be unlocked. This implementation method can avoid unnecessary waiting when the user needs to re-unlock the door, which would affect the user experience.
[0082] S280: If the vehicle is not within the first preset time period, the control module outputs an unlocking command.
[0083] If it is not within the first preset time period, it means that the user outside the door has passed the face recognition verification again after a long time. At this time, the smart lock has exited the control logic of preventing accidental opening when leaving the door, and is in the conventional face recognition unlocking logic, so it can unlock the door for the user.
[0084] Generally speaking, the probability of a user locking the door and leaving directly after exiting is relatively high. The probability of a user stopping and looking back being recognized by facial recognition is relatively low. The probability of a user looking back and wanting to unlock the door again is also relatively low. Although the solution of the above embodiment can effectively address the problem of accidental unlocking caused by users stopping for a long time, since it does not prohibit the facial recognition function, the facial recognition module will inevitably be triggered and work every time the user exits, regardless of whether they stop or not. This may cause some unnecessary triggering, resulting in increased power consumption of the smart lock.
[0085] To this end, the above-mentioned embodiment can be combined with the step of forcibly disabling the face recognition function for a short period of time, thereby reducing the number of times the face recognition module is unnecessarily triggered for face recognition and the corresponding working time, thereby reducing the power consumption of the smart lock.
[0086] In one implementation, see Figure 4 After step S201 and before step S202, the following steps may also be included:
[0087] S290, the control module disables the face recognition function of the smart lock within a third preset time period starting from the first moment.
[0088] The third preset time period is a time period in seconds, and as can be seen from the above description, it is necessarily shorter than the first preset time period. In some implementations, the first preset time period can be set to 4 to 120 times the third preset time period. For example, if the first preset time period is set to 5 minutes, the third preset time period can be set to 10 seconds.
[0089] It is understandable that since both the third preset time period and the first preset time period also start from the first moment, they are actually inclusive of each other. During the third preset time period starting from the first moment, since the facial recognition function is disabled, the smart lock cannot actually perform automatic facial recognition verification.
[0090] In some possible implementations, the control module may disable the facial recognition function by directly disabling the facial recognition module. In other possible implementations, when the facial recognition module is configured to be automatically triggered by the human body sensing module, the control module may prevent the facial recognition module from being automatically triggered during a third preset time period by disabling the human body sensing module. In still other possible implementations, when forcibly disabling the facial recognition module during the third preset time period, both the human body sensing module and the facial recognition module may be disabled simultaneously.
[0091] It should be noted that, in the embodiment of the present application, when the human body sensing module and / or the face recognition module are disabled, the corresponding modules are in a power-off state.
[0092] Directly disabling the facial recognition module may cause some problems in some special scenarios. For example, if a user wants to unlock the door immediately after leaving the house and realizing that they have forgotten something, but the facial recognition module is disabled during the third preset time, they have to wait for a while. After the third preset time period has passed, the facial recognition module will be turned on and then automatically perform facial recognition, enter a confirmation command to unlock the door, or verify the unlocking by entering a password on the outside panel. For another example, in places where people come and go frequently, such a situation may sometimes occur: the first user has just left the house and closed the door, and then turns around to find a third user at the door wanting to enter. Faced with this situation, the third user also needs to wait for the third preset time period to pass before using automatic facial recognition to unlock the door, or perform some manual operations to verify the unlocking.
[0093] By disabling the human sensing module alone, the facial recognition module won't be automatically triggered during the third preset time period, reducing power consumption to a certain extent. Since the facial recognition module itself isn't disabled and may be powered on, facial recognition can be performed quickly when a user attempts to verify their identity outside the door without having to re-enable it. This reduces power consumption while also preventing the facial recognition module from having to be re-enabled, potentially impacting the user's experience when re-unlocking the door.
[0094] It is understood that the smart lock in the embodiments of this application can be a standalone smart lock product or a smart lock integrated into a smart door, and this application does not limit this. It is understood that when integrated into a smart door, the specific structure of the smart lock can be appropriately adjusted according to the actual application.
[0095] Those skilled in the art will appreciate that, in addition to being provided as smart locks and smart doors and control methods, the embodiments of the present application may also be provided as computer-readable storage media or computer program products. Therefore, the present application may be implemented entirely in hardware, entirely in software, or in a combination of software and hardware.
[0096] The present application may also take the form of a computer program product implemented on one or more computer-readable storage media containing computer-usable program code. Specifically, embodiments of the present application further provide a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform some or all of the steps of any of the aforementioned implementations of the display method.
[0097] When implemented in software, the functions may be stored on or transmitted over as one or more instructions or codes on a computer-readable medium.
[0098] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0099] It should be understood that in the various embodiments of the present application, the execution order of each step should be determined by its function and internal logic. The size of the sequence number of each step does not mean the order of execution and does not constitute any limitation on the implementation process of the embodiment.
[0100] It should also be understood that, in order to clearly describe the technical solutions of the embodiments of the present application, the words "first" and "second" are used in the embodiments of the present application to distinguish between identical or similar items with substantially the same functions and effects, or concepts with certain differences. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or execution order, and the words "first" and "second" do not necessarily mean different.
[0101] It should be understood that in the structural descriptions of this application, the terms "upper," "lower," "front," "back," "left," "right," "top," "bottom," "inner," and "outer" and the like, indicating orientations or positional relationships, are generally based on the orientations or positional relationships shown in the accompanying drawings. These orientations or positional relationships are for ease of description and do not indicate or imply that the devices or components referred to must have specific orientations or positional relationships, or must be constructed and operated in specific orientations or positional relationships. Therefore, they should not be construed as limitations on this application.
[0102] The same or similar parts between the various embodiments in this specification can be referred to each other. As long as there is no logical contradiction, different embodiments can be combined with each other.
Claims
1. A smart lock comprising an inner panel and an outer panel provided with a face recognition module, characterized in that: The smart lock also includes a control module, The control module is at least configured to: obtain a first moment, the first moment being used to indicate the time when the first user goes out; and output a first instruction if the face recognition module successfully verifies the face of the user outside the door within a first preset time period starting from the first moment; wherein the first preset time period is a time period of minutes; The outer panel is at least used to: output prompt information under the control of the first instruction, wherein the prompt information is used to guide the user to input a preset confirmation instruction; The control module is also used to: not instruct the smart lock to perform an unlocking operation if no confirmation instruction input by the user outside the door is received within a second preset time period after the face recognition verification is passed, wherein the second preset time period is a time period of seconds.
2. The smart lock according to claim 1, characterized in that: The outer panel is provided with a human body sensing module, and the human body sensing module is at least used for: realizing human body sensing within a certain distance range around the outer panel; The face recognition module is at least used for: being automatically triggered to perform face recognition verification when the human body sensing module senses a human body; The control module is also used to: when the face recognition module passes the face recognition verification of the user outside the door and the triggering mode of the face recognition module is automatic triggering, check whether the second moment is within the first preset time period, wherein the second moment is used to indicate the time when the face recognition verification is passed; if it is within the first preset time period, output the first instruction.
3. The smart lock according to claim 1, characterized in that: The control module is further configured to control disabling of the human body sensing module and / or disabling of the face recognition module within a third preset time period starting from the first moment, wherein the third preset time period is a time period of seconds.
4. The smart lock according to any one of claims 1 to 3, characterized in that: The outer panel is provided with a front display screen, and the front display screen is used to: be awakened in response to the first instruction and display a prompt interface, wherein the prompt interface includes the prompt information; If the confirmation control in the prompt interface or the preset button on the outer panel is not operated by the user outside the door, the control module does not receive the confirmation instruction; The control module is further configured to instruct the front display screen to turn off if the confirmation instruction is not received within the second preset time period.
5. The smart lock according to any one of claims 1 to 3, characterized in that: The outer panel is provided with a speaker and preset buttons. The speaker is used to: play the prompt information in response to the first instruction; If the preset button is not pressed by the user outside the door to perform the preset operation, the control module does not receive the confirmation instruction.
6. The smart lock according to any one of claims 1 to 3, characterized in that: The control module is also used to: output an unlocking instruction to control the smart lock to perform an unlocking operation when the confirmation instruction is received within the second preset time period; and / or output an unlocking instruction when the face recognition module passes the face recognition verification of the user outside the door and the triggering mode of the face recognition module is manual triggering.
7. The smart lock according to claim 2, characterized in that: The control module is further configured to output an unlocking instruction when the second moment is not within the first preset time period.
8. The smart lock according to any one of claims 1 to 3, characterized in that: The inner panel is provided with an inner handle and / or an unlocking button; The control module is used to: instruct the smart lock to perform an unlocking operation when a rotation signal of the inner handle or a trigger signal of the unlocking button is obtained; use the time corresponding to the rotation signal or the trigger signal as the first moment, or, when a locking signal is obtained after performing the unlocking operation, use the time corresponding to the locking signal as the first moment.
9. A control method based on face recognition applied to a smart lock, characterized in that: The smart lock includes an outer panel and an inner panel provided with a face recognition module; the method includes: Obtaining a first moment, where the first moment is used to indicate a time when the first user goes out; If the facial recognition module successfully verifies the face of the user outside the door within a first preset time period starting from the first moment, output a first instruction to control the outer panel to output a prompt message; wherein the prompt message is used to guide the user to enter a preset confirmation instruction, and the first preset time period is a time period of minutes; If no confirmation instruction is received from the user outside the door within a second preset time period after the face recognition verification is passed, the smart lock will not be instructed to perform the unlocking operation, wherein the second preset time period is a time period of seconds.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is caused to perform the method according to claim 9 .
11. A computer program product comprising a computer program, characterized in that When the computer program is executed, the computer is caused to perform the method according to claim 9.
Citation Information
Patent Citations
Smart door lock control method and smart door lock capable of face recognition
CN110033544A
Door lock control method and device, electronic equipment and intelligent door lock
CN116798148A