A method and device for unlocking a smart lock, a smart lock, and a storage medium
The smart lock's camera device compares facial features in real time to determine whether the target person is a user with unlocking permission, reminds strangers to stay away, and unlocks the door when it is determined to be a biometric unlocking method. This solves the problem of strangers peeping at passwords and improves the security and flexibility of smart locks.
Patent Information
- Application Number
- CN202411967753.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-12-30
AI Technical Summary
When the owner of a smart lock brings a stranger home, the stranger may peek at the password, resulting in lower security of the door lock.
The smart lock uses a camera to capture facial features in real time, compares them with a stored set of facial features, and determines whether the target person is a user with unlocking permission. If a stranger is present, the lock will be reminded to stay away and will only be unlocked when it is determined to be a biometric unlocking method.
Effectively prevent strangers from peeping at the password, improve the security of smart locks, flexibly respond to various unlocking scenarios, and enhance the security and flexibility of door locks.
Smart Images

Figure CN119785461B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart locks, and in particular to a method and device for unlocking a smart lock, a smart lock, and a storage medium. Background Art
[0002] With the improvement of the convenience of smart door locks, people have new requirements for the security of smart door locks. Traditional solutions only warn and drive away strangers when there are strangers staying outside the door, but they cannot cover the possibility that the stranger can peek at the password when the owner of the smart lock brings a stranger home and enters the password to open the door, resulting in lower security of the door lock. Summary of the Invention
[0003] In view of this, the present invention provides an unlocking processing method, device, smart lock and storage medium for a smart lock to solve the problem that when the owner of the smart lock brings a stranger home and enters a password to open the door, there is a possibility that the stranger may peek at the password, resulting in low security of the door lock.
[0004] In a first aspect, the present invention provides an unlocking processing method for a smart lock, which is applied to a smart lock, wherein the smart lock stores a facial feature set of a first user with unlocking authority, and the method includes: in response to a target person performing an unlocking operation, comparing the facial features of all persons photographed by a camera installed by the smart lock at a first moment with the stored facial feature set of the first user with unlocking authority; if the target person is the first user, and there is a second user among all the persons photographed at the first moment, reminding the second user to stay away, and the second user is a user who does not have unlocking authority; if there is a second user among all the persons photographed by the camera installed by the smart lock at a second moment, and the target person is the first user, determining whether the unlocking method of the target person is a biometric unlocking method, wherein the second moment is after the first moment, and all persons photographed at the second moment include the target person; when it is determined that the unlocking method of the target person is the biometric unlocking method, unlocking the smart lock.
[0005] The unlocking processing method of the smart lock provided by the present invention can respond to the target person performing the unlocking operation, and can compare the facial features of all people photographed by the camera device installed in the smart lock at the first moment with the facial feature set of users with unlocking authority. If the target person is the first user and there is a second user among all the people photographed at the first moment, the second user needs to be prompted to stay away. If it is determined that the second user still exists among all the people in the picture photographed by the camera device after prompting the second user to stay away, it is determined whether the unlocking method of the target person is the biometric unlocking method. When it is determined that the unlocking method of the target person is the biometric unlocking method, the door is unlocked normally, which can effectively avoid the password leakage problem caused by the owner subconsciously using the password to unlock when a stranger follows, thereby improving the security of the smart lock.
[0006] In an optional embodiment, when it is determined that the target person's unlocking method is not a biometric unlocking method, the method further includes: in response to the target person's unlocking method being password unlocking, prompting the user with information that there is a second user within the preset security range; obtaining the target person's unlocking method for the second time, in response to the target person still needing to unlock by password, controlling the password button area to keep the light black, silent but in an available state.
[0007] When the present invention determines that there are non-family members around the smart lock, but the user still uses the password to unlock it, the password key area is controlled to keep the light, screen and sound in a black and silent state, reducing the possibility of strangers peeping.
[0008] In an optional embodiment, the method also includes: if the target person is detected to be a second user, and the first user does not exist among all the persons photographed at the second moment, detecting whether the password entered by the target person is a temporary password, and the temporary password is a time-limited password set by the first user for unlocking; if the password entered by the target person is a temporary password, performing the normal unlocking operation of the smart lock.
[0009] If the present invention determines that the person unlocking the door is not a family member and that all persons do not include family members, but determines that the password entered by the person unlocking the door is a temporary password, normal unlocking and door opening will be performed, thereby meeting the unlocking requirements of multiple scenarios and improving the flexibility of door unlocking.
[0010] In an optional embodiment, the method further includes: if the password entered by the target person is not a temporary password, keeping the smart lock in a locked state, and setting the password entered by the target person to an invalid state, notifying the first user so that the first user resets a fixed password for unlocking.
[0011] If the present invention responds to a user without authorized unlocking authority inputting a long-term password to unlock, the smart lock remains locked, the old password is abolished, and the security of the smart lock is guaranteed.
[0012] In an optional embodiment, the method also includes: if the target person is detected to be the second user and the first user exists among all the persons photographed at the second moment and the password entered by the target user is a long-term password; executing the smart lock unlocking operation, and setting the password entered by the target person to an invalid state, notifying the first user so that the first user can reset the fixed password for unlocking.
[0013] When the present invention detects that all persons include users with unlocking authority, even if the person unlocking the door is a person who does not have unlocking authority, the door can still be unlocked, but the current password needs to be abolished to prevent the person who does not have unlocking authority from remembering the password, thereby improving the security of the smart lock.
[0014] In an optional embodiment, the following steps are performed in response to the target person performing the unlocking operation: a radar module or an infrared sensor device is used to detect whether a person enters the preset range of the smart lock; if a person is detected to enter the preset range of the smart lock, it is determined that the target person performs the unlocking operation.
[0015] The present invention uses a radar module or an infrared sensor device to detect whether a person enters the preset range of the smart lock. If a person is detected to be within the preset range of the smart lock, that is, after determining that the target person performs the unlocking operation, the unlocking processing method of the smart lock is executed without the need for manual operation by the person, making the smart lock processing more sensitive.
[0016] In an optional implementation, if the second user does not exist among all the photographed persons, the door is unlocked and opened normally in response to the user's unlocking operation.
[0017] In a second aspect, the present invention provides an unlocking processing device for a smart lock, which is applied to a smart lock, wherein the smart lock stores a facial feature set of a first user with unlocking authority, and the device includes: a facial comparison module, which is used to respond to the target person to perform an unlocking operation, and compare the facial features of all persons photographed by the camera device installed in the smart lock at the first moment with the stored facial feature set of the first user with unlocking authority; a stay-away reminder module, which is used to remind the second user to stay away if the target person is the first user and there is a second user among all the persons photographed at the first moment, and the second user is a user who does not have unlocking authority; an unlocking method judgment module, which is used to determine whether the unlocking method of the target person is a biometric unlocking method if there is a second user among all the persons photographed by the camera device installed in the smart lock at the second moment, and the target person is the first user, wherein the second moment is after the first moment, and all persons photographed at the second moment include the target person; a smart lock unlocking module, which is used to unlock the smart lock when it is determined that the unlocking method of the target person is a biometric unlocking method.
[0018] In a third aspect, the present invention provides a smart lock, which includes a camera device and a controller. The controller includes: a memory and a processor. The memory and the processor are communicatively connected to each other. Computer instructions are stored in the memory. The processor executes the computer instructions to execute the unlocking processing method of the smart lock according to the first aspect or any corresponding embodiment thereof.
[0019] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the unlocking processing method for a smart lock according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 1 is a flow chart of a method for unlocking a smart lock according to an embodiment of the present invention;
[0022] Figure 2 1 is a flowchart illustrating a method for unlocking a smart lock according to an embodiment of the present invention;
[0023] Figure 3 1 is a flow chart of another smart lock unlocking processing method according to an embodiment of the present invention;
[0024] Figure 4 is a structural block diagram of a smart lock according to an embodiment of the present invention;
[0025] Figure 5 This is a structural block diagram of an unlocking processing device for a smart lock according to an embodiment of the present invention;
[0026] Figure 6 Schematic diagram of the hardware structure of the controller according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0028] According to an embodiment of the present invention, an embodiment of an unlocking processing method for a smart lock is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0029] In this embodiment, a method for unlocking a smart lock is provided, which is applied to a smart lock. The smart lock stores a facial feature set of a first user who has unlocking authority. The first user in the embodiment of the present invention is a user who has unlocking authority for the smart lock, which may include a family member. Family members may record facial features in the smart lock in advance so that family members have unlocking authority for the smart lock. A camera device is installed on the smart lock to extract facial features of people approaching the smart lock. The type of the camera device is not limited and may be a wide-angle lens, which may observe the movement of people within a large range. The camera device may be in a shooting state in real time to monitor the scene outside the door in real time. Other personnel monitoring modules such as a radar module installed in the smart lock may also be used to monitor whether there is anyone approaching within a certain range from the smart lock. If someone approaches the smart lock, the camera device is started to shoot the scene outside the door. This is just an example. Figure 1 Flowchart of the unlocking processing method of the smart lock according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0030] Step S101, in response to the target person performing the unlocking operation, the facial features of all persons photographed by the camera device installed in the smart lock at the first moment are compared with the stored facial feature set of the first user who has the unlocking authority.
[0031] The embodiment of the present invention does not limit the way in which the smart lock responds to the target person to perform the unlocking operation. It can be through the image captured by the camera device to determine that the distance between the target person and the smart lock is less than a certain distance threshold, or it can be in response to the target person's touch screen operation on the smart lock. For example, after the smart lock responds to the target person performing the unlocking operation, Figure 2 As shown, facial feature analysis can be performed on all persons within the photographic range captured by a camera device (such as a wide-angle lens) at the first moment (i.e., the moment when the target person performs unlocking) and compared with the stored facial feature set of the first user who has unlocking authority, wherein the target person is included in all persons within the photographic range.
[0032] Step S102: If the target person is the first user and there is a second user among all the people photographed at the first moment, the second user is reminded to stay away.
[0033] The second user is a user who does not have unlocking authority.
[0034] The embodiment of the present invention compares the facial features of all photographed persons with the stored first user who has unlocking authority to determine whether the target person is the first user and whether there is a second user among all persons photographed at the first moment, wherein the second user is a user who does not have unlocking authority, taking non-family members as an example, Figure 2As shown, if there is a second user among all the people photographed at the first moment, the second user can be reminded to stay away. The method of reminding the second user to stay away is not limited. It can be a reminder sound asking strangers to stay away, or it can be controlling the smart lock to light up a reminder light so that the target person can see it and remind the stranger to stay away. This is just an example.
[0035] Step S103: If there is a second user among all the persons photographed by the camera device installed in the smart lock at the second moment, and the target person is the first user, determine whether the unlocking method of the target person is a biometric unlocking method.
[0036] The second moment is after the first moment, and all persons photographed at the second moment include the target person.
[0037] After the smart lock of the embodiment of the present invention prompts the stranger to stay away, the image captured by the camera device at the second moment can be obtained, wherein the second moment is after the first moment, that is, the camera device captures the image after prompting the stranger to stay away, such as Figure 2 As shown, the facial features of all people in the image taken at the second moment can be compared again with the stored first user with unlocking authority. If it is determined that there is still a second user among all the people photographed at the second moment, and after determining that the target person is the first user, it is determined whether the unlocking method of the target person is a biometric unlocking method. There is no limitation on the biometric unlocking method, and it can be updated according to the unlocking method actually updated in the future, such as facial recognition, fingerprint recognition, or palm recognition, etc., just as an example.
[0038] Step S104: When it is determined that the target person's unlocking method is the biometric unlocking method, the smart lock is unlocked.
[0039] In the embodiment of the present invention, when it is determined that the target person's unlocking method is the biometric unlocking method, the normal unlocking and door opening of the smart lock is performed.
[0040] The unlocking processing method of the smart lock provided in this embodiment responds to the target person performing the unlocking operation. The facial features of all people captured by the camera device installed in the smart lock at the first moment can be compared with the facial feature set of users with unlocking authority. If the target person is the first user and there is a second user among all the people captured at the first moment, the second user needs to be prompted to move away. If it is determined that the second user is still among all the people in the picture captured by the camera device after prompting the second user to move away, it is determined whether the unlocking method of the target person is the biometric unlocking method. When it is determined that the unlocking method of the target person is the biometric unlocking method, the door is unlocked normally, which can effectively avoid the password leakage problem caused by the owner subconsciously using the password to unlock when a stranger follows, thereby improving the security of the smart lock.
[0041] In this embodiment, a method for unlocking a smart lock is provided, which is applied to a smart lock. The smart lock stores a facial feature set of a first user who has unlocking authority. Figure 3 Flowchart of the unlocking processing method of the smart lock according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0042] Step S301, in response to the target person performing the unlocking operation, the facial features of all persons photographed by the camera installed in the smart lock at the first moment are compared with the stored facial feature set of the first user who has the unlocking authority.
[0043] Specifically, the above step S301 includes:
[0044] Step S3011, responding to the target person to perform the unlocking operation through the following steps: detecting whether there is a person entering the preset range of the smart lock through a radar module or infrared sensor device.
[0045] Step S3012: If it is detected that a person enters the preset range of the smart lock, the target person is determined to perform the unlocking operation.
[0046] The smart lock of the embodiment of the present invention is equipped with a radar module or an infrared sensor device, wherein the infrared sensor device can be but not limited to a passive infrared sensor module (Passive Infra-Red, PIR), etc. The radar module or PIR module monitors in real time whether there is a person entering the preset range of the smart lock. If it is detected that a person has entered the preset range of the smart lock, it can be determined that the target person performs the unlocking operation. At this time, Figure 2 As shown, the camera device can be activated to capture images within the field of view, and then compared with the stored facial feature set of people with unlocking authority, which is just an example.
[0047] The present invention uses a radar module or an infrared sensor device to detect whether a person enters the preset range of the smart lock. If a person is detected to be within the preset range of the smart lock, that is, after determining that the target person performs the unlocking operation, the unlocking processing method of the smart lock is executed without the need for manual operation by the person, making the smart lock processing more sensitive.
[0048] Step S302: If the target person is the first user and there is a second user among all the people photographed at the first moment, the second user is reminded to stay away. The second user does not have the unlocking permission. Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.
[0049] Step S303: If the second user is among all persons photographed by the camera installed in the smart lock at the second moment, and the target person is the first user, determine whether the unlocking method of the target person is the biometric unlocking method, wherein the second moment is after the first moment, and all persons photographed at the second moment include the target person. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.
[0050] Step S304: When it is determined that the target person's unlocking method is biometric unlocking, the smart lock is unlocked. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.
[0051] In an optional embodiment, when it is determined that the target person's unlocking method is not a biometric unlocking method, the target person's unlocking method is responded to as password unlocking, and the user is prompted with information that there is a second user within the preset security range; the target person's unlocking method is obtained for the second time, and it is responded to that the target person still needs to unlock with a password, and the password button area is controlled to keep the light black and the screen silent but in an available state.
[0052] like Figure 2 As shown, in the embodiment of the present invention, if it is determined that the target person's unlocking method is not a biometric unlocking method, that is, the response to the target person's unlocking method is password unlocking, the user can be prompted whether there is a second user within the preset security range who still wants to unlock with a password. After prompting the target person, it can be determined again whether the target person still wants to unlock with a password. If it is determined that the target person still wants to unlock with a password, when the user uses the password to open the door, the password button area is controlled to keep the light black and remain silent when entering the password. Afterwards, after the user enters the correct password, the door is unlocked and opened. This is just an example.
[0053] When the present invention determines that there are non-family members around the smart lock, but the user still uses the password to unlock it, the password key area is controlled to keep the light, screen and sound in a black and silent state, reducing the possibility of strangers peeping.
[0054] In an optional embodiment, if the target person is detected to be the second user and the first user does not exist among all the persons photographed at the second moment, it is detected whether the password entered by the target person is a temporary password, and the temporary password is a time-limited password set by the first user for unlocking; if the password entered by the target person is a temporary password, the normal unlocking operation of the smart lock is performed.
[0055] like Figure 2As shown, in the embodiment of the present invention, if the target person is detected to be the second user and the first user does not exist among all the people photographed at the second moment, it is detected whether the target person uses a temporary password to unlock the door. If the password entered by the target person is a temporary password, the normal unlocking operation of the smart lock can be performed.
[0056] If the present invention determines that the person unlocking the door is not a family member and that all persons do not include family members, but determines that the password entered by the person unlocking the door is a temporary password, normal unlocking and door opening will be performed, thereby meeting the unlocking requirements of multiple scenarios and improving the flexibility of door unlocking.
[0057] In an optional embodiment, if the password entered by the target person is not a temporary password, the smart lock is kept in a locked state, and the password entered by the target person is set to an invalid state, and the first user is notified so that the first user can reset a fixed password for unlocking.
[0058] like Figure 2 As shown, in the embodiment of the present invention, if the password entered by the target person is not a temporary password, that is, when the long-term password is used to unlock the lock, the smart lock can remain locked, the current long-term password can be abolished, and all first users can be notified so that the first users can know the unlocking status of the smart lock in time and reset the fixed password for unlocking. This is just an example.
[0059] If the present invention responds to a user without authorized unlocking authority inputting a long-term password to unlock, the smart lock remains locked, the old password is abolished, and the security of the smart lock is guaranteed.
[0060] In an optional embodiment, if the target person is detected to be the second user and the first user is among all the people photographed at the second moment and the password entered by the target user is a long-term password; the smart lock unlocking operation is performed, and the password entered by the target person is set to an invalid state, and the first user is notified so that the first user resets the fixed password for unlocking.
[0061] like Figure 2 As shown, in an embodiment of the present invention, if it is detected that the target person performing the unlocking operation is not a person with unlocking authority, but there is a first user (such as a family member) among all the people photographed at the second moment, when the target person uses a long-term password to unlock, the smart lock unlocking operation can be performed, the door is unlocked, and the current long-term password can be abolished at the same time, and all first users can be notified so that the first users can know the unlocking status of the smart lock in time and reset the fixed password for unlocking. This is just an example.
[0062] When the present invention detects that all persons include users with unlocking authority, even if the person unlocking the door is a person who does not have unlocking authority, the door can still be unlocked, but the current password needs to be abolished to prevent the person who does not have unlocking authority from remembering the password, thereby improving the security of the smart lock.
[0063] In an optional implementation, if the second user does not exist among all the photographed persons, the door is unlocked and opened normally in response to the user's unlocking operation.
[0064] like Figure 2 As shown, in the embodiment of the present invention, if it is determined that there is no person who does not have the unlocking authority among all the photographed persons, the door can be unlocked normally. The user can choose biometric unlocking or password unlocking to realize the unlocking and opening of the smart lock.
[0065] In this embodiment, a smart lock is also provided. Figure 4 As shown, the smart lock includes a camera device and a controller. The controller includes a memory and a processor. The memory and the processor are communicatively connected to each other. Computer instructions are stored in the memory. The processor executes the computer instructions to execute the above-mentioned unlocking method of the smart lock.
[0066] In this embodiment, a smart lock unlocking processing device is also provided. The device is used to implement the above-mentioned embodiments and preferred embodiments. The details that have been described will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
[0067] This embodiment provides an unlocking processing device for a smart lock, which is applied to a smart lock. The smart lock stores a facial feature set of a first user who has unlocking authority, such as Figure 5 As shown, it includes: a facial comparison module 501, which is used to respond to the target person performing an unlocking operation, and compare the facial features of all people photographed by the camera device installed in the smart lock at the first moment with the stored facial feature set of the first user who has the unlocking permission; a stay away reminder module 502, which is used to remind the second user to stay away if the target person is the first user and there is a second user among all the people photographed at the first moment, and the second user is a user who does not have the unlocking permission; an unlocking method judgment module 503, which is used to determine whether the unlocking method of the target person is a biometric unlocking method if there is a second user among all the people photographed by the camera device installed in the smart lock at the second moment, and the target person is the first user, wherein the second moment is after the first moment, and all the people photographed at the second moment include the target person; a smart lock unlocking module 504, which is used to unlock the smart lock when it is determined that the unlocking method of the target person is a biometric unlocking method.
[0068] In some optional embodiments, when it is determined that the unlocking method of the target person is not a biometric unlocking method, the unlocking processing device of the smart lock also includes: a security prompt module, which is used to respond to the target person's unlocking method as password unlocking, and prompt the user that there is information about a second user within the preset security range; a password unlocking module, which is used to obtain the target person's unlocking method for the second time, and in response to the target person still needing to unlock by password, control the password button area to keep the light black, silent but in an available state.
[0069] In some optional embodiments, the unlocking processing device of the smart lock also includes: a password detection module, which is used to detect whether the password entered by the target person is a temporary password if it is detected that the target person is the second user and the first user does not exist among all the people photographed at the second moment. The temporary password is a time-limited password set by the first user for unlocking; a password unlocking module, which is used to perform the normal unlocking operation of the smart lock if the password entered by the target person is a temporary password.
[0070] In some optional embodiments, the unlocking processing device of the smart lock also includes: a lock holding module, which is used to keep the smart lock in a locked state if the password entered by the target person is not a temporary password, and set the password entered by the target person to an invalid state, and notify the first user so that the first user can reset the fixed password for unlocking.
[0071] In some optional embodiments, the unlocking processing device of the smart lock also includes: a password response module, which is used to detect that the target person is the second user and the first user is among all the people photographed at the second moment and the password entered by the target user is a long-term password; a password invalidation operation module, which is used to execute the smart lock unlocking operation, and set the password entered by the target person to an invalid state, and notify the first user so that the first user can reset the fixed password for unlocking.
[0072] In some optional embodiments, the following steps are performed in response to the target person performing the unlocking operation: a radar module or an infrared sensor device is used to detect whether a person enters the preset range of the smart lock; if a person is detected to enter the preset range of the smart lock, it is determined that the target person performs the unlocking operation.
[0073] In some optional embodiments, the unlocking processing device of the smart lock further includes: a normal unlocking module, which is used to respond to the user's unlocking operation to unlock the door normally if there is no second user among all the photographed persons.
[0074] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0075] The unlocking processing device of the smart lock in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0076] The embodiment of the present invention further provides a controller having the above Figure 5 The unlocking processing device of the smart lock shown.
[0077] See also Figure 6 , Figure 6 : is a schematic diagram of the structure of a controller provided by an optional embodiment of the present invention, such as Figure 6 As shown, the controller includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components utilize different buses to communicate with each other and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the controller, including instructions stored in or on the memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple controllers can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.
[0078] The processor 10 may be a central processing unit, a network processor, or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic, or any combination thereof.
[0079] The memory 20 stores instructions that can be executed by at least one processor 10, so as to enable at least one processor 10 to execute the method shown in the above embodiment.
[0080] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created according to the use of the controller, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely located relative to the processor 10, and these remote memories may be connected to the controller via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0081] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0082] The controller also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 can be connected via a bus or other means. Figure 6 The bus connection is taken as an example.
[0083] The input device 30 can receive input digital or character information and generate key signal input related to the user settings and function control of the controller, such as a touch screen, a keypad, a mouse, a trackpad, a touch pad, an indicator stick, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 can include a display device, an auxiliary lighting device (e.g., an LED), and a tactile feedback device (e.g., a vibration motor). The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display, and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0084] The embodiment of the present invention also provides a computer-readable storage medium. The above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the method shown in the above embodiment is implemented.
[0085] Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention. Such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for unlocking a smart lock, characterized in that: Applied to a smart lock, the smart lock stores a facial feature set of a first user with unlocking authority, the method comprising: In response to the target person performing an unlocking operation, the facial features of all persons captured by the camera installed in the smart lock at the first moment are compared with the stored facial feature set of the first user who has the unlocking authority; If the target person is the first user, and there is a second user among all the people photographed at the first moment, remind the second user to stay away, and the second user is a user who does not have unlocking authority; If the second user exists among all persons photographed by the camera installed in the smart lock at the second moment, and the target person is the first user, determining whether the unlocking method of the target person is the biometric unlocking method, wherein the second moment is after the first moment, and all persons photographed at the second moment include the target person; When it is determined that the target person's unlocking method is biometric unlocking, the smart lock is unlocked; When it is determined that the target person's unlocking method is not a biometric unlocking method, the method also includes: in response to the target person's unlocking method being password unlocking, prompting the user with information that a second user exists within the preset security range; obtaining the target person's unlocking method for the second time, and in response to the target person still needing to unlock by password, controlling the password button area to keep the light black and the screen silent but in an available state.
2. The method according to claim 1, characterized in that The method further comprises: If the target person is detected to be the second user and the first user does not exist among all the people photographed at the second moment, detecting whether the password entered by the target person is a temporary password, wherein the temporary password is a time-limited password set by the first user for unlocking; If the password entered by the target person is a temporary password, the smart lock will be unlocked normally.
3. The method according to claim 2, characterized in that The method further comprises: If the password entered by the target person is not a temporary password, the smart lock is kept in a locked state, and the password entered by the target person is set to an invalid state, and the first user is notified so that the first user resets a fixed password for unlocking.
4. The method according to claim 1, wherein The method further comprises: If the target person is detected to be the second user and the first user is present among all persons photographed at the second moment and the password entered by the target user is a long-term password; Execute the smart lock unlocking operation, set the password entered by the target person to an invalid state, and notify the first user so that the first user can reset the fixed password for unlocking.
5. The method according to claim 1, wherein Respond to the target person and perform the unlocking operation through the following steps: Use radar module or infrared sensor device to detect whether there is a person entering the preset range of the smart lock; If a person is detected entering the preset range of the smart lock, the target person is determined to perform the unlocking operation.
6. The method according to claim 1, characterized in that If the second user does not exist among all the photographed persons, the door is unlocked and opened normally in response to the user's unlocking operation.
7. An unlocking processing device for a smart lock, characterized in that: Applied to a smart lock, the smart lock stores a facial feature set of a first user with unlocking authority, the device comprising: A facial comparison module is configured to compare the facial features of all persons captured by the camera installed in the smart lock at the first moment with the stored facial feature set of the first user who has the unlocking permission in response to the target person performing the unlocking operation; A stay-away reminder module is used to remind the second user to stay away if the target person is the first user and there is a second user among all the people photographed at the first moment, and the second user is a user who does not have the unlocking permission; an unlocking mode determination module, configured to determine whether the target person's unlocking mode is a biometric unlocking mode if a second user is included among all persons photographed by the camera installed in the smart lock at a second moment, and the target person is the first user, wherein the second moment is after the first moment, and all persons photographed at the second moment include the target person; A smart lock unlocking module is used to unlock the smart lock when it is determined that the target person's unlocking method is a biometric unlocking method; When it is determined that the target person's unlocking method is not a biometric unlocking method, the device also includes: a security prompt module, which is used to respond to the target person's unlocking method as password unlocking, and prompt the user to know that there is a second user within the preset security range; a password unlocking module, which is used to obtain the target person's unlocking method for the second time, and in response to the target person still needing to unlock by password, control the password button area to keep the light black and the screen silent but in an available state.
8. A smart lock, characterized in that: The smart lock includes a camera device and a controller, the controller includes a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the unlocking processing method of the smart lock described in any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, which are used to enable a computer to execute the unlocking processing method for the smart lock according to any one of claims 1 to 6.
Citation Information
Patent Citations
Temporary password safety protection method and system for intelligent door lock
CN110322603A
Following identification method and computer readable storage medium
CN113284274A