Methods, devices, and readable storage media for unlocking control
By detecting the distance between the target and the device, the smart door lock determines the nature of the target's needs and triggers facial recognition only when there is a need to enter the door. This solves the problem of false activation caused by people who do not need to enter the door and improves the device's battery life.
Patent Information
- Application Number
- CN202311052530.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-17
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2043-08-17
AI Technical Summary
Existing smart door locks initiate a facial recognition process when they detect someone approaching, which can lead to accidental activation even when someone who doesn't need to enter passes by, resulting in wasted power consumption and reduced battery life.
By detecting the distance between the target and the device, it is determined whether the target is someone who needs to enter the door or not. The facial recognition process is only triggered when it is determined that the target needs to enter the door; otherwise, the device is put back into standby mode to avoid accidental activation.
This effectively prevents the facial recognition device from being accidentally activated by people who do not intend to enter the room, reducing device power consumption and extending battery life.
Smart Images

Figure CN119495139B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the field of unlocking control, and more particularly, to a method, device and readable storage medium for unlocking control. BACKGROUND
[0002] With the increasing demand for life convenience, the face recognition unlocking function of the smart door lock is favored by users. At present, when the smart door lock senses that a human body is close to the door lock, it will start the face recognition process: starting the face recognition camera, capturing the image, comparing the image, and opening the door. Even if a person who has no need to enter the door passes by the door, the face recognition will be started, which will cause waste of power consumption and seriously affect the endurance of the smart door lock. SUMMARY
[0003] The present application provides a method, device and readable storage medium for unlocking control. Through the method, device and readable storage medium, when a target is detected, it can be determined whether the target is a person who has no need to enter the door or a person who has need to enter the door. When it is determined that the target is a person who has no need to enter the door, the face recognition process will not be triggered, and the device will be restored to a standby state. In this way, the false start of the face recognition device of the device caused by the passing of a person who has no need to enter the door can be effectively avoided, so as to reduce the power consumption of the device and improve the endurance time of the device.
[0004] In a first aspect, a method for unlocking control is provided, which is applied to a device. The method comprises: when a first target appears in a detection range of the device, obtaining distance information of the first target; determining whether the first target is a person who has no need to enter the door or a person who has need to enter the door according to the distance information of the first target; when it is determined that the first target is a person who has no need to enter the door, restoring the device to a standby state, or when it is determined that the first target is a person who has need to enter the door, performing face recognition on the first target.
[0005] The distance information of the first target refers to the distance between the first target and the device.
[0006] Optionally, the device can be a smart door lock, and the device can also be other devices with face recognition function, such as a face clock-in machine, etc. The smart door lock can be, for example, a house entry door lock, a unit building access control, a gate access control, a car door lock, etc.
[0007] In the embodiments of the present application, the device (for example, a smart door lock) can determine whether the target is a person without an entry demand or a person with an entry demand when the target is detected. When the target is determined to be a person without an entry demand, the face recognition process is not triggered, and the device returns to the standby state. In this way, the face recognition device can be effectively prevented from being started up by mistake due to a person without an entry demand passing by, so that the power consumption of the device can be reduced, and the endurance time of the device can be improved.
[0008] In combination with the first aspect, in a possible implementation manner, the distance information of the first target includes N distance values, where the N distance values are obtained by periodically measuring the distance between the first target and the device starting from when the first target is detected, and the N distance values are respectively denoted as an i-th distance value according to the measurement sequence, i = 1, 2, 3, …, (N-1), N, and N is an integer greater than or equal to 1.
[0009] It should be understood that the i-th distance value refers to the i-th distance value in the N distance values.
[0010] In combination with the first aspect, in a possible implementation manner, determining whether the first target is a person without an entry demand or a person with an entry demand according to the distance information of the first target includes: determining whether a preset condition is met according to the distance information of the first target, the preset condition being that a second distance value in the N distance values is less than or equal to a first distance value in the N distance values; and when the preset condition is met, determining whether the first target is a person without an entry demand or a person with an entry demand according to the distance information of the first target within a first time length, a starting time of the first time length being a time when it is determined that the preset condition is met.
[0011] Optionally, the device includes a multimedia chip, and the first time length can be a time period from when the multimedia chip starts to be started to when the starting is successful, where the time when the multimedia chip starts to be started can be the time when it is determined that the distance information of the first target meets the preset condition, or can be the time when the first target is detected to appear in the detection range of the device.
[0012] In some embodiments, when the preset condition is met, the first target is periodically determined to be a person without an entry demand or a person with an entry demand within the first time length according to the distance information of the first target.
[0013] In the embodiments of the present application, a trigger condition (the first target is staying or approaching) for determining whether the first target is a person without an entry demand is set, and the determination is started only when the trigger condition is met. In this way, the face recognition can be effectively prevented from being triggered by mistake due to a person without an entry demand passing by, and the power consumption of the device can be further saved, and the endurance time of the device can be improved.
[0014] As a possible implementation, the person without the need to enter the door of the first target is periodically identified according to the distance information of the current first target in the first time length, it is considered that the more distance information samples of the first target, the more accurate the obtained identification result is, and therefore the final identification result of the person without the need to enter the door is based on the result obtained at the end of the first time length, so that the accuracy of identifying the person without the need to enter the door of the first target can be obviously improved.
[0015] With reference to the first aspect, in a possible implementation, the method further includes: stopping periodically measuring the distance between the first target and the device at the end of the first time length.
[0016] In the embodiment of the application, the measurement of the distance information of the first target is stopped after the final identification result is obtained, so that the power consumption of the device can be saved to some extent and the endurance time of the device can be improved.
[0017] With reference to the first aspect, in a possible implementation, the device starts to periodically measure the distance between the first target and the device when the first target is detected, including: the device starts to measure the distance between the first target and the device every first time period when the first target is detected; the first target is determined to be a person without the need to enter the door or a person with the need to enter the door according to the distance information of the first target in the first time length, including: the first target is determined to be a person without the need to enter the door or a person with the need to enter the door according to the distance information of the first target every second time period in the first time length; the first time period is less than or equal to the second time period.
[0018] In the embodiment of the application, the distance measurement period is limited to be less than the person without the need to enter the door determination period, so that the distance information of the first target used in each person without the need to enter the door determination process is the latest and different from the last time (the distance information sample of the first target used in the last determination process is increased), so that the device can be prevented from repeatedly determining the same distance information, and unnecessary resource consumption can be avoided.
[0019] With reference to the first aspect, in a possible implementation, when N is less than 10, the first target is determined to be a person without the need to enter the door or a person with the need to enter the door according to the distance information of the first target in the first time length, including: it is determined whether the Nth distance value is an invalid value; if the Nth distance value is an invalid value, the first target is determined to be a person without the need to enter the door; or if the Nth distance value is not an invalid value and the Nth distance value is greater than a first threshold value, the first target is determined to be a person without the need to enter the door.
[0020] In the embodiments of the present application, a method for determining whether a first target is a person without door entry demand or a person with door entry demand is provided. When the number of distance values of the first target currently acquired is less than 10, whether the first target is a person without door entry demand or a person with door entry demand can be determined according to the last acquired distance value.
[0021] In combination with the first aspect, in a possible implementation, when N is greater than or equal to 10, determining whether the first target is a person without door entry demand or a person with door entry demand according to the distance information of the first target within the first time length comprises: determining whether there is an invalid value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value; if there is an invalid value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value, and the (N-2)th distance value, the (N-1)th distance value and the Nth distance value are all invalid values, it is determined that the first target is a person without door entry demand; or if there is an invalid value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value, and the non-invalid values in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value are greater than a first threshold value, it is determined that the first target is a person without door entry demand.
[0022] In the embodiments of the present application, another method for determining whether a first target is a person without door entry demand or a person with door entry demand is provided. When the number of distance values of the first target currently acquired is greater than or equal to 10, whether the first target is a person without door entry demand or a person with door entry demand can be determined according to the last acquired three distance values.
[0023] In combination with the first aspect, in a possible implementation, when N is greater than or equal to 10, determining whether the first target is a person without door entry demand or a person with door entry demand according to the distance information of the first target within the first time length comprises: when there is no invalid value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value, and the (N-2)th distance value, the (N-1)th distance value and the Nth distance value are all less than a second threshold value, it is determined that the first target is a person with door entry demand; or when there is no invalid value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value, and the (N-2)th distance value, the (N-1)th distance value and the Nth distance value are all greater than a first threshold value, it is determined that the first target is a person without door entry demand, wherein the second threshold value is less than the first threshold value.
[0024] In some embodiments, the first threshold value is any value between 1.1 meters and 1.2 meters.
[0025] In some embodiments, the second threshold value is any value between 0.7 meters and 0.9 meters.
[0026] In the embodiments of the present application, another method for determining whether the first target is a person without door entry demand or a person with door entry demand is provided. When the number of the distance values of the first target currently acquired is greater than or equal to 10, whether the first target is a person without door entry demand or a person with door entry demand can be determined according to the last three distance values.
[0027] In combination with the first aspect, in a possible implementation, when N is greater than or equal to 10, determining whether the first target is a person without door entry demand or a person with door entry demand according to the distance information of the first target within the first time length comprises: when there is no invalid value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value, and the (N-2)th distance value, the (N-1)th distance value and the Nth distance value are neither all less than the second threshold value nor all greater than the first threshold value, determining whether there is a distance value less than or equal to a third threshold value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value, wherein the third threshold value is the sum of the smallest distance value in the N distance values and the first calibration distance; when there is a distance value less than or equal to the third threshold value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value, determining that the first target is a person with door entry demand; or when there is no distance value less than or equal to the third threshold value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value, and they are all greater than a fourth threshold value, determining that the first target is a person without door entry demand, the fourth threshold value being the sum of the average of the distance values corresponding to the time points of the last three successful face recognitions and the second calibration distance; or when there is no distance value less than or equal to the third threshold value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value, and the first speed is greater than a fifth threshold value, determining that the first target is a person without door entry demand, wherein the first speed = (the (N-2)th distance value-the Nth distance value) / (the first time period*2).
[0028] In some embodiments, the first calibration distance is any value between 0.05 and 0.15.
[0029] In some embodiments, the second calibration distance is any value between 0.1 and 0.3.
[0030] The first (N-2) distance value, the first (N-1) distance value and the first N distance value can be not all less than the second threshold value or not all greater than the first threshold value, can include that any one of the first (N-2) distance value, the first (N-1) distance value and the first N distance value is not less than the second threshold value or not greater than the first threshold value, can include that one of the first (N-2) distance value, the first (N-1) distance value and the first N distance value is not less than the second threshold value or not greater than the first threshold value, and the other two of the first (N-2) distance value, the first (N-1) distance value and the first N distance value are less than the second threshold value or greater than the first threshold value, can include that one of the first (N-2) distance value, the first (N-1) distance value and the first N distance value is less than the second threshold value, and the other two of the first (N-2) distance value, the first (N-1) distance value and the first N distance value are greater than the first threshold value, can include that two of the first (N-2) distance value, the first (N-1) distance value and the first N distance value are less than the second threshold value, and the other one of the first (N-2) distance value, the first (N-1) distance value and the first N distance value is greater than the first threshold value, and can include that one of the first (N-2) distance value, the first (N-1) distance value and the first N distance value is not less than the second threshold value or not greater than the first threshold value, and the other two of the first (N-2) distance value, the first (N-1) distance value and the first N distance value are less than the second threshold value and greater than the first threshold value respectively.
[0031] In the embodiments of the application, another method for determining whether the first target is a person without the door entering demand or a person with the door entering demand is provided. When the number of the distance values of the first target obtained is greater than or equal to 10, whether the first target is a person without the door entering demand can be determined according to the last three distance values, the minimum value of the distance values obtained, and the average value of the distance values corresponding to the time when the face recognition is successful for the last three times or the moving speed of the first target.
[0032] In a second aspect, a device is provided, which can be used to implement the method in the first aspect and any possible implementation manner of the first aspect. The device comprises corresponding modules for performing the method in the first aspect and any possible implementation manner of the first aspect. The modules comprised by the device can be implemented in a software and / or hardware manner.
[0033] In a third aspect, a device is provided, which comprises a memory and a processor. The memory is configured to store program code, and the processor is configured to execute the program code stored in the memory to implement the method in the first aspect or any possible implementation manner of the first aspect.
[0034] In a fourth aspect, a readable storage medium is provided, which stores a program or instructions, when the program or instructions are executed, the method in the first aspect or any possible implementation manner of the first aspect is implemented.
[0035] In a fifth aspect, a chip system is provided, which stores instructions, when the instructions are executed on a device, the chip system is caused to execute the method in the first aspect or any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF DRAWINGS
[0036] Figure 1 is a schematic flow chart of an existing intelligent door lock control method;
[0037] Figure 2 is a schematic diagram of a moving route of a person with a door entry demand and a person without a door entry demand in front of a door provided by an embodiment of the present application;
[0038] Figure 3 is a schematic flow chart of a method of unlocking control provided by an embodiment of the present application;
[0039] Figure 4 is an example diagram of distance information of a group of first targets provided by an embodiment of the present application;
[0040] Figure 5 is a schematic flow chart of a method of determining whether a first target is a person without a door entry demand according to distance information of the first target provided by an embodiment of the present application;
[0041] Figure 6 is a schematic diagram of determining a target algorithm from a plurality of algorithms for identifying a person without a door entry demand provided by an embodiment of the present application;
[0042] Figure 7 is a functional module schematic diagram of a device of unlocking control provided by an embodiment of the present application;
[0043] Figure 8 is a schematic flow chart of another method of unlocking control provided by an embodiment of the present application. DETAILED DESCRIPTION
[0044] The technical solutions in the present application will be described below with reference to the drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments.
[0045] The technical solutions in the embodiments of the present application will be described below with reference to the drawings.
[0046] The terms "first", "second", "third", etc. are used herein only to describe different instances, and do not imply or suggest relative importance or a number of the technical features indicated. Thus, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of the embodiments, the meaning of "a plurality of" is two or more, unless otherwise specified.
[0047] The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be limiting on the present application. As used in the specification and the appended claims of the present application, the singular forms "a", "an" and "the" are intended to include the plural forms as well, e.g., "one", "one or more", unless the context clearly indicates otherwise. It will be further understood that the terms "comprises", "comprising", "includes" and / or "including", when used herein, specify "including, but not limited to", unless otherwise indicated. The term "and / or", used in the description of the present application, means that there can be three relationships; for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects.
[0048] In the present specification, the phrase "one embodiment" or "some embodiments" etc. means that the specific features, structures or characteristics described in connection with the embodiment are included in one or more embodiments of the present application. Thus, the phrases "one embodiment", "some embodiments", "another embodiment", "further embodiments" etc. appearing in different places in the present specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "comprise", "include", "have" and their conjugates mean "including, but not limited to", unless otherwise specifically emphasized.
[0049] The method provided by the embodiments of the present application can be applied to devices with face recognition function, such as smart door locks, smart terminals, etc., and can also be applied to any device with face recognition function, such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, notebook computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiments of the present application do not make any limitation on the specific type of the device.
[0050] With the increasing demand for life convenience, the face recognition unlocking function of the intelligent door lock is favored by users. At present, the intelligent door lock can sense the approach of a human body to the door lock through a person infrared radiation (PIR) or ultrasonic wave, and when the approach of a human body to the door lock is sensed, a face recognition process will be started: starting a face recognition camera, taking a picture, image comparison, and opening the door. Even if a person who has no need to enter the door passes in front of the door, the face recognition will be started, which will cause a waste of power consumption and seriously affect the endurance of the intelligent door lock. Taking Huawei intelligent door lock Pro as an example, through big data analysis, it can be known that if the number of people who pass in front of the door without the need to enter the door is greater than 15 times per day on average, the endurance time of the intelligent door lock will be reduced by at least one month, and the greater the number of people, the greater the impact on the endurance time of the intelligent door lock.
[0051] Exemplarily, Figure 1 An existing intelligent door lock control method 100 is shown in a schematic flowchart. The intelligent door lock includes a controller, a door leaving signal triggering device, and a face recognition device, as shown in Figure 1 The method 100 includes:
[0052] S101: The controller detects whether there is a door leaving signal triggered by the door leaving signal triggering device.
[0053] S102: When there is the door leaving signal triggered by the door leaving signal triggering device, the controller controls the face recognition device to stop face recognition operation within a first preset time length according to the door leaving signal.
[0054] In this method, the door leaving signal triggered by the door leaving signal triggering device is taken as a determination reference for distinguishing between entering personnel and leaving personnel, so as to avoid the false start of the face recognition device caused by the personnel leaving, and make the face recognition device stop face recognition operation and enter a dormant state within the first preset time length, so as to reduce the power consumption of the face recognition intelligent door lock.
[0055] However, although this method plays a role in reducing the power consumption of the intelligent door lock to a certain extent, the method reduces the power consumption of the intelligent door lock by avoiding the false start of the face recognition device caused by the personnel leaving, and does not solve the power consumption problem caused by the false start of the face recognition device caused by the people who have no need to enter the door. In addition, due to the difference in frequency, the power consumption caused by the false start of the face recognition device caused by the people who have no need to enter the door is generally much higher than the power consumption caused by the false start of the face recognition device caused by the personnel leaving.
[0056] Therefore, the application provides a method, device and readable storage medium for unlocking control. Through the method, device and readable storage medium, the power consumption of the smart door lock can be reduced and the endurance time of the smart door lock can be improved by effectively avoiding the false start of the face recognition device caused by the passing of the person without the need to enter the door.
[0057] In order to more clearly understand the motion routes of the person with the need to enter the door and the person without the need to enter the door in front of the door, exemplary, Figure 2 a motion route schematic diagram of the person with the need to enter the door and the person without the need to enter the door in front of the door is shown.
[0058] As Figure 2 shown, the dashed line route represents the route of the person without the need to enter the door, and the solid line route represents the route of the person with the need to enter the door, Figure 2 a motion route example of the person with the need to enter the door 1, the person with the need to enter the door 2, the person without the need to enter the door 1, the person without the need to enter the door 2 and the person without the need to enter the door 3 in front of the door is shown, and Figure 2 it can be known that, in the actual scenario of unlocking by face recognition, when the user (for example, the person with the need to enter the door 1 and the person with the need to enter the door 2) needs to enter the door, the user generally walks straight to the door, the distance between the user and the door becomes closer and closer, and the motion speed gradually slows down, and finally tends to 0 (at this time, the distance between the user and the door is very close). When the user (for example, the person without the need to enter the door 1, the person without the need to enter the door 2 and the person without the need to enter the door 3) passes in front of the door, generally, in the ranging range of the smart door lock, the distance between the user and the door is always changing, the distance between the user and the door generally will not become closer and closer, and with a high probability, the user first approaches and then moves away, and the motion speed of the user will not slow down as the distance between the user and the door becomes smaller, and when the distance between the user and the door is closest, the motion speed of the user will not tend to 0. Therefore, whether the face recognition function of the smart door lock is woken up can be further determined by identifying whether the user is the person with the need to enter the door or the person without the need to enter the door.
[0059] Exemplary, Figure 3 a schematic flowchart of a method 300 for unlocking control provided by the application is shown. As Figure 3 shown, the method 300 includes:
[0060] S301: When a first target appears in the detection range of the device in the case that the device is in a standby state, acquiring distance information of the first target.
[0061] Optionally, the device is a smart door lock, and the device can also be other devices with face recognition function, such as a face clock-in machine, etc., wherein the smart door lock can be, for example, a house entrance door lock, can also be a unit building access control, can also be a gate access control, can also be a car door lock, etc.
[0062] In an ideal state, the detection range of the device is a fan-shaped area, the image acquisition device of the device is the center of the fan-shaped area, and the detection range has a clear field of vision (FOV), and a specific diagram can be seen from the dashed fan-shaped area shown in Figure 2
[0063] The first target refers to a target detected by the sensing device of the device, which can be a dynamic target or a static target, and the sensing device of the device can be, for example, a person infrared radiation (PIR).
[0064] The distance information of the first target refers to the distance between the first target and the device, which can be, for example, the horizontal distance between the first target and the device, or the straight-line distance between the first target and the device, etc., wherein the distance value can be the average of the distances between the device and multiple feature points on the first target, or can be the maximum of the distances between the device and multiple feature points on the first target, or can be the minimum of the distances between the device and multiple feature points on the first target.
[0065] Specifically, the distance information of the first target can refer to multiple distance values between the first target and the device, which can be obtained by measuring at a certain distance measuring frequency when the first target appears in the detection range of the device, wherein the measuring process can stop when the multimedia chip is started, and the multimedia chip is started when the first target appears in the detection range of the device.
[0066] In an implementable manner, when the device detects that the first target appears in the detection range, it further determines whether the first target is a human body, and if so, obtains the distance information of the first target, wherein the human body detection technology can be used to determine whether the first target is a human body.
[0067] Optionally, the device can detect whether the first target appears in the detection range through a sensor; or can detect whether the first target appears in the detection range through a distance measuring module, specifically, when the distance measuring module measures the distance of the same object continuously for two or more times, the distance is different, it can be determined that the first target appears in the detection range.
[0068] In some embodiments, the distance information of the first target is acquired by a time of flight (TOF) method, which is a 3D measurement technique commonly used for measuring distances or for 3D imaging cameras.
[0069] S302: Determine whether the first target is a person without the need to enter the door according to the distance information of the first target. If yes, perform step S303; if not, perform step S304.
[0070] In some embodiments, the step can also be described as “determine whether the first target is passing in front of the door according to the distance information of the first target. If yes, perform step S303; if not, perform step S304”.
[0071] Specifically, the motion route and / or motion speed of the first target are acquired according to the distance information of the first target, and then it is determined whether the first target is a person without the need to enter the door according to the motion route and / or motion speed of the first target.
[0072] In some embodiments, when the direction corresponding to the motion route of the first target is the door, it is determined that the first target is a person with the need to enter the door; when the direction corresponding to the motion route of the first target is not the door, it is determined that the first target is a person without the need to enter the door.
[0073] In some embodiments, when the motion speed of the first target is from fast to slow, and finally approaches 0 within a range where the distance between the first target and the device is less than a first threshold, it is determined that the first target is a person with the need to enter the door; otherwise, it is determined that the first target is a person without the need to enter the door.
[0074] In some embodiments, when the direction corresponding to the motion route of the first target is the door, and the motion speed of the first target is from fast to slow, and finally approaches 0 within a range where the distance between the first target and the device is less than a first threshold, it is determined that the first target is a person with the need to enter the door; otherwise, it is determined that the first target is a person without the need to enter the door.
[0075] S303: Restore the device to a standby state.
[0076] It should be understood that the restoration of the device to the standby state includes the powering off of the multimedia chip of the device and the like.
[0077] That is, when it is determined that the first target is a person without the need to enter the door, the face recognition process is not triggered.
[0078] S304: Perform face recognition on the first target.
[0079] That is, when it is determined that the first target is a person with the need to enter the door, the face recognition process is triggered.
[0080] In the embodiments of the present application, taking the intelligent door lock as an example, when the target is detected, it is determined whether the target is a person without door entry demand or a person with door entry demand. When it is determined that the target is a person without door entry demand, the face recognition process is not triggered, and the intelligent door lock is restored to a standby state. In this way, the face recognition device can be effectively prevented from being started up due to a person without door entry demand passing by, so as to reduce the power consumption of the intelligent door lock and improve the endurance time of the intelligent door lock.
[0081] In order to more clearly understand Figure 3 The distance information of the first target obtained in step S301 in the embodiments shown is exemplarily, Figure 4 An example diagram of a set of distance information of the first target provided by the embodiments of the present application is shown.
[0082] As Figure 4 shown, the distance information of the first target can be a set of distance values composed of distances between the first target and the device (for example: intelligent door lock) obtained by ranging. The multiple distances can be obtained by periodic ranging by the device from the detection of the first target.
[0083] In an implementation manner, the distance information of the first target includes a set of first distance values, and the set of first distance values includes N distance values, where N is an integer not less than 1. In order to facilitate the subsequent person without door entry demand recognition algorithm (i.e. Figure 3 The execution process of S302 in the embodiments shown), in the embodiments, the last three distance values in the N distance values are respectively denoted as D1, D2 and D3, and the minimum distance value in the N distance values is denoted as D m The distance values corresponding to the face recognition success time in the last three face recognition processes are respectively denoted as D f1 , D f2 , and D f3 The average value of D f1 , D f2 , and D f3 is denoted as D f , that is, D f =(D f1 +D f2 +D f3 ) / 3.
[0084] Wherein, if the distance value corresponding to the face recognition success time in the last three face recognition processes is greater than 1.5 meters, or equal to 0 or -1, it is not recorded, that is, D f1 , D f2 , and D f3The value of D is the distance value corresponding to the time when the face recognition is successful in the last three times of effective face recognition process. If the number of times of the last three times of effective face recognition process is less than 3, D is taken as the default value: 0.9 m. f The value of D is the distance value corresponding to the time when the face recognition is successful in the last three times of effective face recognition process. If the number of times of the last three times of effective face recognition process is less than 3, D is taken as the default value: 0.9 m.
[0085] D1, D2, and D3 can be used to represent the motion position of the first target corresponding to the last time period in the measurement time of the distance information of the first target. The acquisition time of the set of distance values corresponding to the last three times of successful face recognition is earlier than the acquisition time of the set of first distance values, and the time difference with the acquisition time of the set of first distance values is the shortest.
[0086] The N distance values can be represented as: d1, d2, d3, d4, d5, d6, d7, d8, d9, d 10 , …, d (N-3) , d (N-2) , d (N-1) , d N . Wherein, D1, D2, and D3 are d (N-2) , d (N-1) , d N , respectively. The unit of the N distance values is mm.
[0087] It can be understood that the distance values in the set of first distance values can be periodically measured from the detection of the first target, or can be periodically measured from the detection of the first target and the first target meeting the measurement condition. For example, after recording the distance value between the first target and the device corresponding to the mth measurement period in the mth measurement period, the set of first distance values includes n distance values (i.e. N = n); when the measurement period enters the m+1th measurement period from the mth measurement period, the device records the distance value between the first target and the device corresponding to the m+1th measurement period, and the set of first distance values includes n+1 distance values (i.e. N = n+1). That is, the number N of distance values included in the set of first distance values gradually increases as the distance measurement process proceeds; each distance measurement increases the value of N by 1, and the values of corresponding D1, D2, and D3 also change, and the value of D m may also change, and the value of D f is obtained according to the three sets of distance values closest to the acquisition time of the set of first distance values, and its value does not change with the recording process of the set of first distance values.
[0088] The first target meeting the measurement condition can be that the distance between the first target and the device is measured twice, and the distance values of the two measurements are equal, or the distance value of the second measurement is less than the distance value of the first measurement. In some embodiments, the two distance values are the first two distance values in the set of first distance values.
[0089] Exemplarily, Figure 5 A schematic flow chart of a method 500 for determining whether the first target is a person without the need to enter a door according to the distance information of the first target is shown. As Figure 5 shown, the method 500 includes:
[0090] When the first target is detected and the first target meets the measurement condition, the set of first distance values is started to be recorded periodically, the multimedia chip is started to be activated, and the person without the need to enter a door is started to be recognized (i.e., the method 500 is started to be executed).
[0091] The first target meeting the measurement condition can be that the distance between the first target and the device is measured twice, and the distance values of the two measurements are equal, or the distance value of the second measurement is less than the distance value of the first measurement. In some embodiments, the two distance values are the first two distance values in the set of first distance values.
[0092] S501, determining whether N is less than 10, if yes, executing step S502; if no, executing step S504.
[0093] N is the number of distance values in the set of first distance values corresponding to the first target.
[0094] In some embodiments, when N is greater than or equal to 5, S501 is started to be executed.
[0095] S502: determining whether d N is equal to 0, or d N is equal to -1, if yes, determining that the first target is a person without the need to enter a door; if no, further executing step S503.
[0096] d N is the distance value recorded in the set of first distance values most recently, and d N may also be represented by D3.
[0097] Wherein, the data being "0" or the data being "-1" represents a distance measurement error, which can be caused by the first target being located outside the ranging range, or caused by a sensor (target detection sensor or ranging sensor) failure, or caused by other reasons, which are not limited in the present application.
[0098] S503: determining d N whether greater than 1.1 meters, if yes, determining that the first target is a person without door entry demand; if not, determining that the first target is a person with door entry demand.
[0099] Optionally, the threshold value 1.1 meters in this step can be replaced by any value between 1 meter and 1.2 meters.
[0100] S504: determining whether there is 0 or -1 in the three distance values D1, D2, D3, if yes, executing step S505; if not, executing step S507.
[0101] Wherein, the explanation of D1, D2, D3 is referred to the explanation in the embodiment shown in Figure 4 For brevity, it will not be repeated here.
[0102] S505: determining whether the three distance values D1, D2, D3 are all 0 or -1, if yes, determining that the first target is a person without door entry demand; if not, further executing step S506.
[0103] S506: determining whether the data not equal to 0 and not equal to -1 in the three distance values D1, D2, D3 is greater than 1.1m, if yes, determining that the first target is a person without door entry demand; if not, determining that the first target is a person with door entry demand.
[0104] Optionally, the threshold value 1.1 meters in this step can be replaced by any value between 1 meter and 1.2 meters.
[0105] S507: preprocessing the N distance values in the first distance value set.
[0106] In some embodiments, the preprocessing of the N distance values in the first distance value set includes:
[0107] (1) removing the distance values equal to 0 or -1 in the N distance values;
[0108] (2) determining the values of D m , D f , (D3-D1) / (ranging period x 2).
[0109] Wherein, D mis the minimum distance value in the N distance values; the last measured distance values in the last three successful face recognition are respectively recorded as D f1 , D f2 , D f3 , D f , D f1 , D f2 , D f3 , D f is the average value of D f1 , D f2 , and D f3 , that is, D m = (D m + D m + D m ) / 3.
[0110] The value of (D3-D1) / (ranging period*2) can be understood as the average speed of the first target in the time period from the measurement time of D1 to the measurement time of D3.
[0111] Wherein, the ranging period can be 1ms, can also be 0.5ms, can also be other period length, the application does not limit this.
[0112] S508: determine whether the three distance values D1, D2 and D3 are all less than 0.75 meters, if yes, determine that the first target is a person with door entry demand; if not, further execute step S509.
[0113] Optionally, the threshold value 0.75 meters in this step can be replaced by any value between 0.7 meters and 0.9 meters.
[0114] Wherein, this step S508 can be called core area determination algorithm.
[0115] S509: determine whether the three distance values D1, D2 and D3 are all greater than 1.1 meters, if yes, determine that the first target is a person without door entry demand; if not, further execute step S510.
[0116] Optionally, the threshold value 1.1 meters in this step can be replaced by any value between 1 meter and 1.2 meters.
[0117] Wherein, this step S509 can be called edge area determination algorithm.
[0118] S510: determine whether the three distance values D1, D2 and D3 are all greater than (D m +100)mm, if yes, further execute step S511 and step S512; if not, determine that the first target is a person with door entry demand.
[0119] Optionally, the threshold value (D m +100)mm in this step can be replaced by (D m +50)mm to (D many value between (D
[0120] S511: determine whether the three distance values D1, D2, D3 are all greater than (D f +200) mm, if yes, determine that the first target is a person without door entry demand; if no, determine that the first target is a person with door entry demand.
[0121] Optionally, the threshold (D f +200) mm in this step can be replaced by (D f +100) mm to (D f +300) mm.
[0122] S512: determine whether the value of (D3-D1) / (ranging period*2) is greater than 50 mm, if yes, determine that the first target is a person without door entry demand; if no, determine that the first target is a person with door entry demand.
[0123] Optionally, the threshold 50 mm in this step can be replaced by any value between 30 mm and 100 mm.
[0124] wherein, the steps S510 to S512 can be referred to as a critical region determination algorithm.
[0125] It should be understood that the method 500 is executed in the period from the start of the multimedia chip to the success of the start, that is, the person without door entry demand recognition algorithm is run in the period from the start of the multimedia chip to the success of the start, specifically, the method 500 is periodically executed in the period from the start of the multimedia chip to the success of the start.
[0126] In some embodiments, the method 500 (i.e., the person without door entry demand recognition algorithm) is executed once every time the distance value in the set of first distance values corresponding to the first target increases by a (i.e., the value of N+a), and thus the determination result of whether the first target is a person without door entry demand can change. Since the more the distance values in the set of first distance values (the larger the value of N), the more accurate the determination result, the determination result corresponding to the success of the start of the multimedia chip can be taken as the final determination result, wherein a is a positive integer greater than or equal to 1.
[0127] In some other embodiments, method 500 (i.e., the algorithm for identifying people who do not need to enter) is executed periodically. Since the distance measurement of the first target is performed periodically, the number of distance values in the set of first distance values may be more than the previous execution (N increases) each time method 500 is executed. Therefore, the determination result of whether the first target is a person who does not need to enter may change. Since the more distance values in the set of first distance values (the larger N is), the more accurate the determination result is, the determination result corresponding to the successful startup of the multimedia chip can be used as the final determination result.
[0128] In this embodiment of the application, a method is provided to determine whether a first target is a person who does not need to enter or a person who does need to enter. In this method, during the time period from the start of the multimedia chip to its successful start, the distance to the first target is periodically measured, and the result of the periodic distance measurement is used to determine whether the first target is a person who does not need to enter or a person who does need to enter. This allows the device to return to standby mode when the first target is a person who does not need to enter, and not to enter the subsequent face recognition process. This can avoid power consumption of the multimedia chip and face recognition device during the face recognition process, thereby improving the battery life of the device.
[0129] By adjusting Figure 5 The parameters of the person recognition algorithm without entry requirements described in the illustrated embodiment (e.g.) Figure 5 D in the illustrated embodiment m D f By combining various defined thresholds, we can derive a human recognition algorithm suitable for different apartment types that does not require entry.
[0130] For example, Figure 6 This illustration shows a schematic diagram of determining a target algorithm from multiple recognition algorithms according to an embodiment of this application.
[0131] When the device is actually running, it first runs multiple algorithms simultaneously before the algorithm takes effect. Each of these algorithms outputs the success rate of recognizing people who need to enter the door and the success rate of recognizing people who do not need to enter the door. Then, the system continuously filters these multiple algorithms and finally selects the target algorithm that is most suitable for the user's apartment type. This target algorithm is then used as the algorithm that takes effect.
[0132] In one example, the algorithm with a success rate of over 99% in recognizing people with a need to enter is identified as the target algorithm. If multiple algorithms all have a success rate of over 99% in recognizing people with a need to enter, then the algorithm with the highest success rate in recognizing people without a need to enter among those algorithms with a success rate of over 99% is identified as the target algorithm. Figure 6As shown, recognition algorithms 1, 2, and 3 run simultaneously. Algorithm 1 has a 92% success rate in identifying people with a need to enter, and a success rate >50% in identifying people without a need to enter. Algorithm 2 has a 100% success rate in identifying people with a need to enter, and a success rate <5% in identifying people without a need to enter. Algorithm 3 has a 99% success rate in identifying people with a need to enter, and a success rate <30% in identifying people without a need to enter. Algorithms 2 and 3 have a success rate higher than 99% in identifying people with a need to enter. Since Algorithm 3 has a higher success rate in identifying people without a need to enter than Algorithm 2, Algorithm 3 is selected as the target algorithm.
[0133] In this embodiment of the application, before the device actually runs the person recognition algorithm that does not require entry, it is possible to pre-run multiple person recognition algorithms with different parameters that do not require entry simultaneously. Based on the success rate of the recognition results of these multiple person recognition algorithms with different parameters, the final person recognition algorithm that does not require entry can be determined. This can improve the recognition accuracy of the person recognition algorithm that does not require entry, thereby improving the user experience while extending the device's battery life.
[0134] To more clearly understand how the unlocking control method provided in this application embodiment specifically improves the device's battery life, exemplarily, Figure 7 A schematic diagram of the functional modules of an unlocking control device 700 provided in an embodiment of this application is shown.
[0135] like Figure 7 As shown, the device 700 includes a sensing module 710, a ranging module 720, a control module 730, a multimedia chip 740, and a face recognition module 750. Specifically, the sensing module 710 and the ranging module 720 are connected to the control module 730, the control module 730 is connected to the multimedia chip 740, and the multimedia chip 740 is connected to the face recognition module 750.
[0136] The sensing module 710 is used to detect whether the first target appears within the detection range of the device.
[0137] The equipment includes the device 700.
[0138] In one implementation, the device may directly include the aforementioned sensing module 710, ranging module 720, control module 730, multimedia chip 740, and face recognition module 750.
[0139] Optionally, the device is a smart door lock, and the device can also be other devices with face recognition function, for example, a face clock-in machine, etc., wherein the smart door lock can be a house entrance door lock, can also be a unit building access control, can also be a gate access control, can also be a car door lock, etc.
[0140] In an ideal state, the detection range of the device is a fan-shaped area, the image acquisition device of the device is the center of the fan-shaped area, and the detection range has a clear field of view angle FOV, and a specific diagram can be seen from the dashed fan-shaped area shown in Figure 2 .
[0141] The first target refers to a target detected by the sensing device of the device, which can be a dynamic target or a static target.
[0142] In some embodiments, the sensing module 710 can be a human body infrared sensor PIR.
[0143] The ranging module 720 is configured to measure the distance between the first target and the device to obtain distance information of the first target.
[0144] The explanation of the distance information of the first target is the same as the explanation of the distance information of the first target in S301 in the embodiment shown in Figure 3 , or the explanation of the distance information of the first target is the same as the explanation of the set of first distance values in the embodiment shown in Figure 4 , and for brevity, will not be repeated here.
[0145] In some embodiments, the ranging module 720 can be a time-of-flight TOF ranging module.
[0146] The control module 730 is configured to determine whether the first target is a person without the need to enter the door according to the distance information of the first target, and to power off the multimedia chip 740 after the multimedia chip is successfully started, i.e., to restore the device to a standby state, when it is determined that the first target is a person without the need to enter the door.
[0147] Wherein, as the distance measurement of the distance measurement module 720 continues, the number of distance values included in the distance information of the first target gradually increases, and in the time period when the multimedia chip starts to start and starts successfully, the control module 730 determines whether the first target is a person without the need to enter the door according to the distance information of the first target. In an example, the control module 730 periodically determines whether the first target is a person without the need to enter the door according to the distance information of the first target, obtains a determination result each time, and when the multimedia chip 740 starts successfully, the control module 730 determines a final output result according to a plurality of determined results, for example, the last obtained result in the plurality of results can be taken as the final output result, wherein the time difference between the time when the last obtained result is obtained and the time when the multimedia chip starts successfully is the shortest, and then the subsequent operation (i.e., whether to restore the device to a standby state or perform a face recognition operation) is determined according to the final output result.
[0148] In another example, when the multimedia chip 740 starts successfully, the control module 730 can also determine the subsequent operation (i.e., whether to restore the device to a standby state or perform a face recognition operation) according to any determination result in the plurality of obtained determination results.
[0149] In some embodiments, the control module 730 may, for example, be a microcontroller unit (MCU).
[0150] In some embodiments, the sensing module 710 and the distance measurement module 720 can be arranged on the control module 730.
[0151] The multimedia chip 740 is configured to perform a start operation according to an instruction issued by the control module 730, and is further configured to perform a face recognition operation in cooperation with the face recognition module 750 when the first target is a person with the need to enter the door.
[0152] Wherein, the multimedia chip 740 is usually in a power-off or standby state, and is powered on or awakened by the control module 730 when it is necessary to perform a face recognition process.
[0153] In some embodiments, the multimedia chip 740 may, for example, be a system on chip (SOC).
[0154] The face recognition module 750 is configured to perform face recognition on the first target when it is determined that the first target is a person with the need to enter the door.
[0155] In some embodiments, the face recognition module 750 may, for example, be a face recognition camera.
[0156] In some embodiments, the face recognition module 750 can be arranged on the multimedia chip 740.
[0157] Since the multimedia chip and the face recognition module playing a major role in the face recognition process are high power consumption modules, in the embodiment of the present application, when a target is detected, it can be determined whether the target is a person without door entry demand or a person with door entry demand. When it is determined that the target is a person without door entry demand, the control module controls the multimedia chip to power off, and the face recognition process is not triggered. In this way, the false start of the face recognition device caused by a person without door entry demand passing by can be effectively avoided, so as to reduce the power consumption of the intelligent door lock and improve the endurance time of the intelligent door lock.
[0158] Exemplarily, Figure 8 A schematic flowchart of another method 800 for unlocking control provided by the embodiment of the present application is shown. As Figure 8 shown, the execution subject of the method is a control module and a multimedia chip, wherein the control module is provided with a sensing module and a distance measuring module, and the multimedia chip is provided with a face recognition module. The method 800 includes the following steps:
[0159] S801: When the sensing module detects a first target, the distance information of the first target is obtained by the distance measuring module.
[0160] The explanation of this step is the same as that of S301 in the embodiment shown in Figure 3 For brevity, the explanation is not repeated here.
[0161] The explanation of the distance information of the first target is the same as that of the distance information of the first target in S301 in the embodiment shown in Figure 3 or the explanation of the distance information of the first target is the same as that of the set of first distance values in the embodiment shown in Figure 4 For brevity, the explanation is not repeated here.
[0162] The distance information of the first target can be a set of first distance values, and the set of first distance values includes N distance values.
[0163] In some embodiments, the distance measuring module periodically measures the distance between the first target and the device. Each measured distance is recorded in the set of first distance values, and the measurement is continued until the multimedia chip is successfully started.
[0164] In one implementation, the distance measuring module stops measuring distance by calling the person_is_go_away function.
[0165] S802: Determine whether the first target meets the measurement condition. If yes, execute step S803.
[0166] The first target meeting the measurement condition can be that the distance between the first target and the device is measured twice, and the measured distance values are equal, or the second measured distance value is smaller than the first measured distance value. In some embodiments, the two measured distance values are the first two distance values in a set of N distance values recorded in the first distance values.
[0167] The measurement condition can also be described as a preset condition.
[0168] S803: The control module starts to pull up the multimedia chip.
[0169] This step can also be described as: the control module starts to power on the multimedia chip.
[0170] S804: The control module periodically determines whether the first target is a person without an entry requirement or a person with an entry requirement according to the distance information of the first target, and continues to determine until the multimedia chip is successfully started, and further executes step S807.
[0171] As the distance module continues to measure the distance, the number of distance values included in the distance information of the first target gradually increases. During the period when the multimedia chip starts to start and is successfully started, the control module determines whether the first target is a person without an entry requirement according to the distance information of the first target. In one example, the control module periodically determines whether the first target is a person without an entry requirement according to the distance information of the first target. Each time a determination is made, a determination result is obtained. According to the determined multiple results, a final output result is determined. For example, the last obtained result in the multiple results can be used as the final output, or the latest obtained determination result can overwrite the last obtained determination result, that is, the final determination result is based on the last obtained determination result.
[0172] In another example, the final determination result can be any of the obtained multiple determination results.
[0173] S805: In response to the operation of the control module starting to pull up the multimedia chip, the multimedia chip is powered on and started.
[0174] S806: The multimedia chip initializes the 3D imaging camera.
[0175] It should be understood that the execution order of S804 and S805 is not limited, and S804 and S805 can be executed simultaneously.
[0176] In some embodiments, S804 is periodically executed during the period from when the multimedia chip is powered on and started to when the multimedia chip is successfully started; that is, when the multimedia chip is powered on and started, S804 is started to be executed; when the multimedia chip is successfully started, S804 is stopped to be executed.
[0177] S807: When the multimedia chip is successfully started, it is determined whether the final determination result is a person without door entry demand or a person with door entry demand, if it is a person without door entry demand, step S808 is executed, and if it is a person with door entry demand, step S809 is executed.
[0178] Wherein, the explanation of the final determination result is described in the above step S804, and is not repeated here for brevity.
[0179] S808: The multimedia chip is powered off, and the device returns to the standby state.
[0180] S809: The control module starts the face recognition process.
[0181] The following steps S810 to S813 are the step descriptions of the face recognition process.
[0182] S810: The first image of the first target is collected.
[0183] Wherein, the first image of the first target can be the face image of the first target, and can also be the overall image of the first target.
[0184] S811: Face feature extraction is performed on the first image, when the face feature extraction is successful, step S812 is executed, and when the face feature extraction fails, step S813 is executed.
[0185] S812: Face feature comparison is performed, if the comparison is successful, the door is opened, and if the comparison fails, the door is not opened.
[0186] Specifically, the face features in the extracted first image are compared with the face features of the person with door entry demand saved in the device.
[0187] S813: It is determined whether the face recognition is timed out, if yes, the door is not opened, and if no, step S810 is returned.
[0188] Since the multimedia chip and the face recognition module, which play a major role in the face recognition process, are high-power consumption modules, in the embodiment of the present application, when the target is detected, it is determined whether the target is a person without door entry demand or a person with door entry demand, when it is determined that the target is a person without door entry demand, the control module controls the multimedia chip to be powered off, and the face recognition process is not triggered, thus, the false start of the face recognition device caused by the person without door entry demand can be effectively avoided, and the power consumption of the intelligent door lock can be reduced, and the endurance time of the intelligent door lock can be improved.
[0189] Compared with the existing face recognition unlocking method, the face recognition function of the device is woken up for 2-4 seconds instead of 15 seconds for the scene where people without the need to enter the door pass, and the power consumption of the device is saved by more than 70%. For the scene with large traffic (for example, the entrance door is opposite to the stairwell, and the entrance door is opposite to the 1st floor elevator room), the endurance level of the device can be improved by more than 2 months.
[0190] One or more of the modules or units described herein can be implemented in software, hardware, or a combination of both. When any of the above modules or units is implemented in software, the software exists in the form of program instructions, and is stored in a memory, and a processor can be used to execute the program instructions and implement the above method flow. The processor can include, but is not limited to, at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller unit (MCU), or an artificial intelligence processor, and various computing devices running software, each of which can include one or more cores for executing software instructions to perform operations or processing. The processor can be built into a SoC (system on chip) or an application specific integrated circuit (ASIC), or can be a separate semiconductor chip. In addition to the core for executing software instructions to perform operations or processing, the processor can further include necessary hardware accelerators, such as a field programmable gate array (FPGA), a PLD (programmable logic device), or a logic circuit implementing special logic operations.
[0191] When the modules or units described herein are implemented in hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a DSP, an MCU, an artificial intelligence processor, an ASIC, a SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator, or a non-integrated discrete device, which can run necessary software or be independent of software to execute the above method flow.
[0192] When the modules or units described in the specification are implemented by using software, the program product can be implemented in the form of program code instructions. The program code instructions can be executed by one or more processors of the device. The above-mentioned program code instructions can be stored in a device-accessible medium, such as a computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), an optical disk, and the like. The program code instructions can also be transmitted from a network or a computer medium to a device through a wired medium or a wireless medium. The device can receive the program code instructions and execute the program code instructions.
[0193] Those skilled in the art can understand that the units and method steps of the examples described in combination with the embodiments disclosed in the specification can be implemented in hardware or in combination of software and hardware. Whether the functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0194] The above description is merely a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A method for unlocking control, applied to a device, characterized in that, The method comprises: when detecting that a first target appears in a detection range of the device, acquiring distance information of the first target; determining whether the first target is a person without an entry requirement or a person with an entry requirement according to the distance information of the first target; when determining that the first target is a person without an entry requirement, restoring the device to a standby state, or when determining that the first target is a person with an entry requirement, performing face recognition on the first target; the distance information of the first target comprises N distance values, wherein the N distance values are obtained by periodically measuring the distance between the first target and the device starting from when the device detects the first target, and the N distance values are respectively denoted as an i-th distance value according to the order of measurement, i = 1, 2, 3, …, (N-1), N; N is an integer not less than 1; when the N is greater than or equal to 10, the determining whether the first target is a person without an entry requirement or a person with an entry requirement according to the distance information of the first target comprises: when there is no invalid value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value, and the (N-2)th distance value, the (N-1)th distance value and the Nth distance value are neither all less than a second threshold value nor all greater than a first threshold value, determining whether there is a distance value less than or equal to a third threshold value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value, wherein the third threshold value is the sum of the smallest distance value in the N distance values and a first calibration distance; when there is a distance value less than or equal to the third threshold value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value, determining that the first target is a person with an entry requirement; or when there is no distance value less than or equal to the third threshold value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value, and all are greater than a fourth threshold value, determining that the first target is a person without an entry requirement, wherein the fourth threshold value is the sum of the average of the distance values corresponding to the time points when the last three face recognitions are successful and a second calibration distance; or when there is no distance value less than or equal to the third threshold value in the (N-2)th distance value, the (N-1)th distance value and the Nth distance value, and a first speed is greater than a fifth threshold value, determining that the first target is a person without an entry requirement, wherein the first speed = ((N-2)th distance value - Nth distance value) / (first time period x 2).
2. The method of claim 1, wherein, The determining whether the first target is a person without an entry requirement or a person with an entry requirement according to the distance information of the first target comprises: determining whether a preset condition is met according to the distance information of the first target, wherein the preset condition is that a 2nd distance value in the N distance values is less than or equal to a 1st distance value in the N distance values; when the preset condition is met, determining whether the first target is a person without an entry requirement or a person with an entry requirement according to the distance information of the first target within a first time length, wherein the starting time of the first time length is the time when it is determined that the preset condition is met.
3. The method of claim 2, wherein, The method further comprises: At an ending moment of the first time length, the periodic measurement of the distance between the first target and the device is stopped.
4. The method of claim 2 or 3, wherein, the device starts to periodically measure the distance between the first target and the device upon detecting the first target, comprising: the device starts to measure the distance between the first target and the device every first time period upon detecting the first target; the determining, within the first time length, whether the first target is a person without door entry demand or a person with door entry demand according to the distance information of the first target, comprising: the determining, within the first time length, whether the first target is a person without door entry demand or a person with door entry demand according to the distance information of the first target every second time period; wherein the first time period is less than or equal to the second time period.
5. The method according to any one of claims 2 to 4, characterized in that, when the N is less than 10, the determining, within the first time length, whether the first target is a person without door entry demand or a person with door entry demand according to the distance information of the first target, comprising: determining whether the Nth distance value is an invalid value; if the Nth distance value is an invalid value, determining that the first target is a person without door entry demand; or if the Nth distance value is not an invalid value, and the Nth distance value is greater than a first threshold value, determining that the first target is a person without door entry demand.
6. An apparatus, comprising: comprising: one or more processors; one or more memories; and one or more programs, wherein the one or more programs are stored in the one or more memories and comprise instructions which, when executed by the one or more processors, cause the device to perform the method of any one of claims 1 to 5.
7. A readable storage medium, characterized by, The storage medium has a program or instruction stored therein, and when the program or instruction is executed, the method of any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Bluetooth-based distance-controllable intelligent door lock unlocking method
CN107610292A
Access control method and access control device
CN107730663A