Cross-lock door opening method and system for an intelligent door lock
By replacing face recognition comparison by neighbor smart lock, automatic unlocking is achieved when face recognition failure of smart lock face recognition is solved, solving the problem that smart lock cannot be unlocked.
Patent Information
- Application Number
- CN202510543573.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-27
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-04-27
AI Technical Summary
When the face recognition comparison function of the smart lock fails, it will not be unlocked and cause trouble to use.
By selecting the closest neighbor smart lock as an alternative lock, face recognition comparison and delay unlocking, a cross-door lock recognition method is established.
When face recognition comparison failures are made, the automatic unlocking of the smart lock is realized, solving the problem that the face recognition comparison failure cannot be unlocked.
Smart Images

Figure CN120071485B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent locks, and particularly relates to a cross-lock door opening method and system for an intelligent door lock. Background Art
[0002] Intelligent locks adopt a zero-trust mechanism, that is, unlocking can only be ensured when accurately identifying a person consistent with the registered personal identity information. Currently, the typical technology adopted by intelligent locks is face recognition and comparison technology. In the actual operation of intelligent locks, functions such as face video image acquisition, face detection and recognition, and face comparison are used frequently, and they are the functional components with the highest failure rate in intelligent locks. When the face acquisition, recognition, and comparison function of an intelligent lock fails, it brings great trouble to the entry and exit of the occupants registered for accommodation, resulting in the problem of being unable to unlock and enter the house. Summary of the Invention
[0003] The purpose of the present invention is to provide a cross-lock door opening method and system for an intelligent door lock to solve the deficiencies in the prior art, be able to build a method for cross-door lock recognition to solve the problem of face recognition and comparison failure, and effectively solve the problem of being unable to unlock due to face recognition and comparison failure of an intelligent lock.
[0004] An embodiment of the present application provides a cross-lock door opening method for an intelligent door lock, and the method includes:
[0005] Selection of neighbor intelligent locks and determination of a preselected alternative lock: According to the geographical location of the faulty intelligent lock, select multiple neighbor intelligent locks that are the closest, generate a list of neighbor intelligent locks, and determine the preselected alternative lock for the faulty intelligent lock from the list of neighbor intelligent locks;
[0006] Authorization and configuration of the alternative lock: The faulty intelligent lock sends a request for alternative unlocking authorization to the occupant registered for accommodation. After obtaining authorization, establish a connection with the preselected alternative lock to perform alternative configuration of the faulty intelligent lock;
[0007] Face recognition comparison and response: When the preselected alternative lock that has completed the alternative configuration detects a person, perform face recognition comparison;
[0008] Unlocking notification and delayed unlocking: When the alternative lock successfully recognizes and compares, the alternative lock sends an unlocking message to the faulty intelligent lock, and the faulty intelligent lock uses a delayed unlocking method to unlock the faulty intelligent lock according to the recognition and comparison message of the alternative lock.
[0009] Optionally, in the step of selection of neighbor intelligent locks and determination of a preselected alternative lock, when calculating the path length through a CAD map, import the geographical location data of the intelligent locks using the API interface of CAD software, calculate the path length from each intelligent lock to the faulty intelligent lock, and select the 3 neighbor intelligent locks with the shortest path lengths and write them into the list of neighbor intelligent locks.
[0010] Optionally, in the step of alternative lock authorization and configuration, when the preselected alternative lock stores the check-in personnel information of the malfunctioning smart lock, it checks for duplicate personnel. If there are multiple registration personnel information of malfunctioning smart locks in the gray list, subsequent alternative requests are rejected and the user is prompted to select another alternative lock.
[0011] Optionally, in the step of face recognition comparison and response, when a person is a registered user of both the malfunctioning smart lock and the preselected alternative lock, the preselected alternative lock uses a sound prompt and a delay mechanism to determine the person's intention. If the person leaves immediately after hearing the prompt, the malfunctioning smart lock is unlocked. If the person does not leave, the preselected alternative lock is unlocked.
[0012] Optionally, in the step of unlocking notification and delayed unlocking, the calculation formula for the delayed unlocking time is:
[0013]
[0014] where T1 is the time point when the person leaves the alternative lock, L is the path length from the alternative lock to the malfunctioning lock, V is the walking speed of the person, and M is the walking time from the alternative lock to the malfunctioning lock.
[0015] Another embodiment of the present application provides a cross-lock door opening system for a smart door lock, the system comprising:
[0016] A determination module, configured to select multiple neighboring smart locks closest to the malfunctioning smart lock according to the geographical location of the malfunctioning smart lock, generate a list of neighboring smart locks, and determine a preselected alternative lock for the malfunctioning smart lock from the list of neighboring smart locks;
[0017] A configuration module, configured to send an alternative unlocking authorization request from the malfunctioning smart lock to the check-in personnel, and after obtaining authorization, establish a connection with the preselected alternative lock to perform alternative configuration of the malfunctioning smart lock;
[0018] An identification module, configured to perform face recognition comparison when the preselected alternative lock that has completed alternative configuration detects a person;
[0019] An unlocking module, configured to, after the alternative lock successfully identifies and compares, the alternative lock sends an unlocking message to the malfunctioning smart lock, and the malfunctioning smart lock uses a delayed unlocking method to unlock the malfunctioning smart lock according to the identification and comparison message of the alternative lock.
[0020] Another embodiment of the present application provides a storage medium, in which a computer program is stored, wherein the computer program is set to execute the method described in any one of the above when running.
[0021] Another embodiment of the present application provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the method described in any one of the above items.
[0022] Compared with the prior art, a cross-lock door opening method for an intelligent door lock provided by the present invention selects multiple neighboring intelligent locks that are the closest according to the geographical location of a faulty intelligent lock, generates a list of neighboring intelligent locks, and determines a preselected replacement lock for the faulty intelligent lock from the list of neighboring intelligent locks; the faulty intelligent lock sends a replacement unlocking authorization request to the occupancy registration personnel. After obtaining authorization, a connection is established with the preselected replacement lock to perform replacement configuration of the faulty intelligent lock; when the preselected replacement lock that has completed the replacement configuration detects a person, face recognition comparison is performed; when the recognition comparison by the replacement lock is successful, the replacement lock sends an unlocking message to the faulty intelligent lock, and the faulty intelligent lock uses a delayed unlocking method to unlock the faulty intelligent lock according to the recognition comparison message of the replacement lock, so that a cross-door lock recognition method can be established to solve the problem of face recognition comparison failure, and the problem that the intelligent lock cannot be unlocked due to face recognition comparison failure can be effectively solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a hardware structure block diagram of a computer terminal for a cross-lock door opening method of an intelligent door lock provided by an embodiment of the present invention;
[0024] Figure 2 It is a flowchart of a cross-lock door opening method of an intelligent door lock provided by an embodiment of the present invention;
[0025] Figure 3 It is a structural diagram of a cross-lock door opening system of an intelligent door lock provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0026] The embodiments described below by referring to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0027] An embodiment of the present invention first provides a cross-lock door opening method for an intelligent door lock. This method can be applied to an electronic device, such as a computer terminal, specifically, an ordinary computer, etc.
[0028] The following takes running on a computer terminal as an example to describe it in detail. Figure 1 It is a hardware structure block diagram of a computer terminal for a cross-lock door opening method of an intelligent door lock provided by an embodiment of the present invention. As Figure 1 shown, the computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the memory may include a non-volatile storage medium and an internal memory.
[0029] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions which, when executed, enable the processor to execute a cross-lock door opening method for any intelligent door lock.
[0030] The processor is used to provide computing and control capabilities to support the operation of the entire computer device.
[0031] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, it enables the processor to execute a cross-lock door opening method for any intelligent door lock.
[0032] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art can understand that Figure 1 the structure shown in
[0033] is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0034] See Figure 2 , an embodiment of the present invention provides a cross-lock door opening method for an intelligent door lock, which may include the following steps:
[0035] S201, neighbor intelligent lock selection and preselected alternative lock determination: According to the geographical location of the faulty intelligent lock, select multiple neighbor intelligent locks that are the closest, generate a neighbor intelligent lock list, and determine the preselected alternative lock for the faulty intelligent lock from the neighbor intelligent lock list;
[0036] Specifically, in the step of selecting neighbor smart locks and determining preselected alternative locks, when calculating the path length through the CAD map, the API interface of CAD software is used to import the geographical location data of smart locks, calculate the path length from each smart lock to the faulty smart lock, and select the 3 neighbor smart locks with the shortest path lengths and write them into the neighbor smart lock list.
[0037] S202. Alternative lock authorization and configuration: The faulty smart lock sends a request for alternative unlocking authorization to the occupancy registration personnel. After obtaining the authorization, it establishes a connection with the preselected alternative lock to perform the alternative configuration of the faulty smart lock.
[0038] Specifically, in the step of alternative lock authorization and configuration, when the preselected alternative lock stores the occupancy registration personnel information of the faulty smart lock, it checks for duplicate personnel. If there are multiple occupancy registration personnel information of the faulty smart lock in the gray list, it rejects subsequent alternative requests and prompts to select other alternative locks.
[0039] S203. Face recognition comparison and response: When the preselected alternative lock that has completed the alternative configuration detects a person, face recognition comparison is performed.
[0040] Specifically, in the step of face recognition comparison and response, when the person is the occupancy registration personnel of both the faulty smart lock and the preselected alternative lock, the preselected alternative lock uses a sound prompt and a delay mechanism to judge the person's intention. If the person leaves immediately after hearing the prompt sound, the faulty smart lock is unlocked. If the person does not leave, the preselected alternative lock is unlocked.
[0041] S204. Unlock notification and delayed unlocking: When the alternative lock successfully identifies and compares, the alternative lock sends an unlock message to the faulty smart lock, and the faulty smart lock uses a delayed unlocking method to unlock the faulty smart lock according to the identification and comparison message of the alternative lock.
[0042] Specifically, in the step of unlock notification and delayed unlocking, the calculation formula for the delayed unlocking time is:
[0043]
[0044] where T1 is the time point when the person leaves the alternative lock, L is the path length from the alternative lock to the faulty lock, V is the walking speed of the person, and M is the walking time from the alternative lock to the faulty lock.
[0045] In practical applications, this solution proposes a method for cross-door lock unlocking. The smart lock scans the WIFI connection strength of neighboring smart locks and calculates the nearest path through the CAD map to select a preselected smart lock of a neighbor. After the preset authorization of the neighbor smart lock and the APP authorization of the personnel of this smart lock, the face feature vectors of the occupancy registration personnel of this smart lock are stored in the neighbor smart lock. The neighbor smart lock executes different pairing strategies through personnel duplicate checking, replaces the face recognition comparison after the lock pairing is completed, uses the neighbor smart lock to perform face recognition comparison, and tells the faulty lock the comparison result, and then calculates the delayed unlocking time and unlocks with a delay.
[0046] The purpose of the present invention is to provide a method for using the smart lock of a nearby neighbor to perform face recognition comparison for this smart lock, so as to realize the replacement of the recognition comparison when the face collection and comparison function of this smart lock fails, thereby realizing the unlocking of this lock. A complete technical implementation process is as follows:
[0047] (1) Preset conditions:
[0048] Smart locks are installed on each household entrance door in the community (each smart lock has a unique smart lock ID, IP address, wifi-mac, geographical location, etc.), and are connected to the smart lock management platform (hereinafter referred to as the platform), registered with the platform, and update the occupancy personnel information list of this smart lock (with unique personnel serial numbers, names, ID card numbers, feature vectors of face images, mobile APP-ID, etc.) and the neighbor smart lock list (data items include: neighbor smart lock ID, IP address, door lock address, path length (meters), walking time (seconds), wifi-mac, etc.) by periodically accessing the smart lock list on the platform. Smart lock: It refers to a lock improved on the basis of a traditional mechanical lock, which is more intelligent and simpler in terms of user security, identification, and management. The smart lock mentioned in this article has the function of opening the door by face recognition.
[0049] Mobile phones of occupancy registration personnel are all installed with APPs, and each APP has a unique APP-ID (ID card number + mobile phone number at the time of occupancy personnel information registration).
[0050] The platform records the smart lock list, including the ID, IP address, wifi-mac, geographical location of the smart lock, the smart lock IDs of 3 neighbor smart locks corresponding to the smart lock ID, distance length (meters), walking time (seconds); the platform manually enters and stores the CAD drawings marking the locations of each household entrance door, and the CAD drawings have pre-marked the geographical locations of each household's entrance door and the corresponding smart lock ID; the platform collects the occupancy registration personnel information of each smart lock by manual entry.
[0051] (2)The platform calculates the neighboring smart locks corresponding to each door lock ID: By calculating the distances between the door lock positions on CAD, select the 3 smart locks with the closest 3 distances as the neighboring smart locks and write them into the smart lock list;
[0052] The platform calls the distance calculation tool of CAD software to calculate the list of neighboring smart locks corresponding to each door lock ID in the smart lock list of the platform one by one. The calculation steps are as follows: The platform operates CAD software through the API interface of CAD to import the smart lock ID and the geographical location of the door lock, two data items in the smart lock list (Note: Since CAD and the platform are not the same system, the storage path of the platform smart lock list file needs to be preset). Calculate the reachable path lengths between the door locks and the nearby door locks one by one, select the 3 door locks with the shortest distance path lengths, and extract their door lock IDs, distance lengths (in meters), and walking times (in seconds) (walking time = distance length ÷ walking speed (1 m / s)) and write them into the corresponding data items of the neighboring smart lock IDs, distance lengths (in meters), and walking times (in seconds) corresponding to the smart lock ID in the smart lock list.
[0053] Illustrative example: When calculating the door lock with the smart lock ID of 004, the geographical location of the 004 door lock is Room 104, Unit 1, Building 1. Retrieve its vector position on the CAD drawing (the coordinate point in the CAD drawing coordinate system, which is a vector coordinate value) on the CAD drawing, and retrieve and enumerate all the paths of the reachable smart locks with this vector coordinate point as the center point. Calculate the path lengths (in meters) from each reachable smart lock to the 004 door lock (the entrance door of Room 104, Unit 1, Building 1) and sort them. Extract the 3 smart lock IDs with the smallest path lengths in ascending order of the path lengths, which are 003 (Room 103, Unit 1, Building 1) with a distance of 5 meters, 002 (Room 102, Unit 1, Building 1) with a distance of 10 meters, and 001 (Room 101, Unit 1, Building 1) with a distance of 15 meters). Calculate the walking times of these 3 smart locks to the 001 smart lock (calculated according to the normal walking speed of ordinary people of 1 m / s), and obtain that the smart lock ID is 003 (Room 103, Unit 1, Building 1) with a walking time of 5 seconds, 002 (Room 102, Unit 1, Building 1) with a walking time of 10 seconds, and 001 (Room 101, Unit 1, Building 1) with a walking time of 15 seconds). Write the neighboring smart lock information corresponding to these 3 smart locks (smart lock ID / distance length / walking time: 001 / 15 meters / 15 seconds, 002 / 10 meters / 10 seconds, 003 / 5 meters / 5 seconds) into the corresponding data items of the 3 neighboring smart lock IDs corresponding to the 001 smart lock in the smart lock list. Continue the above steps to complete the extraction of the neighboring smart lock information corresponding to all smart lock IDs one by one, and complete the smart lock list of the platform.
[0054] (3)When the intelligent lock self-checks and detects a face recognition comparison failure, it selects the nearest neighbor intelligent lock that can be connected to the WIFI as the preselected alternative lock: The intelligent lock with a larger RSSI value of the WIFI signal connection strength scanned and the highest ranking in the neighbor intelligent lock list is selected as the preselected alternative lock;
[0055] During the periodic status self-check of the intelligent lock (which can generally be set to once per hour, and the detection items are preset, such as whether the face detection and recognition comparison function of the intelligent lock is normal), when a face detection and recognition comparison failure is found, a fault warning message will be sent through the APP to the mobile APP of the household registration personnel, and the platform will prompt for timely repair. Example of the fault warning message: XXX intelligent lock has a fault, please repair it in time!
[0056] The intelligent lock scans the RSSI values (Received Signal Strength Indicator, connection signal strength) of the WIFI signals of the surrounding neighbor intelligent locks through a WIFI signal connection strength scanning tool (such as WIFI Scan), extracts the scan results (including wifi-mac, RSSI value), sorts them in descending order of the RSSI value, and queries whether each wifi-mac is in the neighbor intelligent lock list in this order according to the wifi-mac (the data items include: the ID of the neighbor intelligent lock, IP address, door lock address, path length (meters), walking time (seconds), wifi-mac, etc.). There are several cases for the query results: If the scanned wifi-mac is not in the neighbor intelligent lock list, it means that the wifi-mac may not be the wifi-mac of the intelligent lock or may not be within the range of the three nearest intelligent locks, and this wifi-mac is discarded; If the wifi-mac is in the neighbor intelligent lock list, then compare the ranking of this wifi-mac in the neighbor intelligent lock list, and select the intelligent lock with the highest ranking in the neighbor intelligent lock list as the preselected alternative lock.
[0057] Example: For instance, by using a WIFI signal connection strength scanning tool (such as WIFI Scan) to scan the RSSI values of the WIFI signal connection strengths of neighboring smart locks, the wifi-mac sorting is XXX2, XXX3, XXX4, XXX1. In the neighboring smart lock list, the sorting is XXX3 corresponding to C, XXX2 corresponding to D, and XXX1 corresponding to E. After querying and comparing, first, XXX4 is discarded because it is not in the neighboring smart lock list. XXX1, XXX2, and XXX3 are all in the neighboring smart lock list, indicating that these are the wifi-macs of neighboring smart locks and are preferred smart locks that can be reached through CAD calculation. According to the principle of reaching the destination with the shortest path distance first, select the smart lock corresponding to XXX3 as the preselected replacement lock. (XXX2 can be an alternative to the preselected replacement lock and can be selected when XXX3 cannot be used as a replacement lock.) Update the neighboring smart lock list (if the sorting changes, update this list according to the new sorting). At this time, the sorting in the neighboring smart lock list is C, D, E.
[0058] Explanation: For the sake of convenience in explanation, the smart lock with a fault is simply referred to as A (if there are other faulty locks, they are called B), and the preselected replacement lock is simply referred to as C (if there are others, they are called D, E).
[0059] (4)Automatic authorization and configuration of the preselected replacement lock: After A determines that C is the preselected replacement lock, it obtains authorization and C performs replacement configuration;
[0060] A sends a replacement authorization request and receives a replacement authorization reply through the APP: A queries the mobile APP-ID of each occupant in the occupant information list (with unique person numbers, names, ID card numbers, eigenvectors of face images, mobile APP-IDs, etc.). (Explanation: Sending a request for authorization to each occupant simultaneously is to prevent someone among the occupants from missing the APP message due to not bringing a mobile phone or not replying in time, resulting in failure to authorize. As long as someone replies to the APP message for authorization, the purpose is achieved. If multiple people reply to the APP message for authorization, it is a duplicate authorization message, and this message is directly discarded.) A sends a replacement unlocking authorization request message through the APP (such as: "Do you agree to use the door lock with ID number and address XXX as your replacement unlocking identification device?"). The occupant registration personnel confirm and authorize through the APP (the confirmation message is like: "ok"); After A receives the reply "ok" from the occupant registration personnel's APP, it means that A has obtained the authorization for replacement unlocking identification.
[0061] A obtains the login authorization for C or D through the platform: A accesses the platform to obtain the login password of C or D, and then connects and logs in to WIFI with C or D according to the preselected replacement wifi-mac.
[0062] Description: Assume that the preselected alternative lock selected this time is C. Then A establishes a WiFi connection with C and successfully logs in.
[0063] Alternative configuration of C: A sends the check-in personnel information of A (smart lock ID, personnel serial number, name, face feature vector, etc.) to C; after C receives it, it stores it in C's gray list (data items include: smart lock ID, personnel serial number, name, face feature vector, etc.) as the face library data for alternative identification and comparison; after C completes the writing of the gray list, it checks for duplicate personnel in the gray list (checks whether there are situations where a person has the identities of multiple faulty locks). If there is no situation where a person has the identities of multiple faulty locks in the gray list, that is, the alternative configuration setting between C and A is completed, and C sends a message to A indicating successful pairing and alternative configuration setting: "Completed". If there is a situation where a person has the identities of multiple faulty locks in the gray list, C sends a message to A indicating failed alternative pairing: "Please select another alternative lock".
[0064] Description: The gray list stores the check-in personnel information of faulty locks. If C is simultaneously the alternative unlock for multiple other faulty locks, for example, when it is the alternative lock for both A and B at the same time, there may be situations where a person has the identities of multiple faulty locks and alternative locks in the gray list. Two cases are illustrated as follows:
[0065] Example 1: Only A has a fault and C is selected as the alternative lock. Then the check-in personnel information of A is saved in C's gray list. However, if there is a person R1 in A who is also a family member of C (i.e., R1 is a family member of both A and C), then when C recognizes R1, there may be a problem of not being able to determine whether the real purpose of R1 is to open C or A. This situation is further optimized using the method in step (6).
[0066] Example 2: At this time, there are 2 faulty locks (A and B), and both select C as the alternative lock (A determines the alternative first, and then B wants to find C for alternative unlocking). Then the check-in personnel information of both A and B is saved in C's gray list. However, if there is the same person R2 among the check-in personnel of A and B (i.e., R2 is a family member of both A and B), then when C recognizes R2, there may be a problem of not being able to determine whether R2 really wants to open A or B. When this situation occurs, C should reject the alternative request of the second-arriving B, send a message indicating failed pairing to B, and prompt B to select another alternative lock.
[0067] (5) The faulty lock receives the configuration message from the alternative lock and makes different response processes:
[0068] When A receives the feedback message of C's alternative pairing, there are 2 cases for extracting and analyzing the alternative pairing result:
[0069] C alternative pairing successful: A publishes a message for intelligent lock alternative unlocking. A queries the information of C in A's neighbor intelligent lock list (data items include: neighbor's intelligent lock ID, IP address, door lock address, path length (meters), walking time (seconds), wifi-mac, etc.): door lock address, path length (meters), walking time (seconds). By querying the mobile APP-ID in A's list of occupancy personnel information (with unique personnel serial number, name, ID card number, feature vector of face image, mobile APP-ID, etc.), and sending the message "You have set the door lock with ID number and address XXX as your alternative unlocking identification device, estimated walking distance of XX meters and time of XX seconds" for alternative unlocking identification of the intelligent lock to each occupancy personnel's APP. (After that, it indicates that the alternative unlocking setting is successful and notifies the completion.);
[0070] C alternative configuration failed: According to C's reply message "Please select another alternative lock", A selects the alternative intelligent lock D from the updated neighbor intelligent lock list in step (3) and makes a new alternative request and configuration, repeating steps (4) and (5) until the pairing is successful.
[0071] (6) When the occupancy registration personnel in the faulty lock is also the occupancy registration personnel of the alternative lock C, after C's successful comparison and recognition, it gives a voice prompt for successful recognition. If the personnel immediately leave C's door lock, then unlock A. If the personnel do not leave immediately, open C's door lock within the delay period (usually set to 3 seconds);
[0072] Special handling is adopted for the person R1 with dual identities of occupancy registration personnel of both A and C: When R1 appears at the door of C, face comparison is performed on both the list of occupancy personnel information of C and the gray list (note: Before the successful comparison, C does not know that R1 is a person with dual identities of occupancy registration personnel of both A and C). If the comparison is successful only in the list of occupancy personnel information of C (the comparison in the gray list is unsuccessful), then C immediately unlocks. If the comparison is successful only in the gray list (the comparison in the list of occupancy personnel information of C is unsuccessful), then perform alternative unlocking for A, send the comparison message to A according to the method in step (7), and let A unlock by itself. If the comparison is successful in both the list of occupancy personnel information of C and the gray list, then emit a specially set voice for alternative unlocking to prompt R1 to make a choice, and then C's camera tracks and recognizes R1's behavior to judge. If R1 immediately leaves C after hearing the prompt sound, then send the comparison message to A according to the method in step (7), and let A unlock by itself. If R1 remains stationary after hearing the prompt sound, then after a preset delay time (usually set to 3 seconds), if C determines that R1 has chosen C, then C immediately unlocks.
[0073] Example from the perspective of R1: If R1 is only a person in the occupancy information list of C, after successful face recognition comparison by C, the door lock of C can be immediately unlocked; if R1 is only a person on the gray list (i.e., R1 is a person in the occupancy information list of A), after successful face recognition comparison by C, it can immediately return to the door lock of A and wait to be unlocked; if R1 is a person with dual identities of occupancy registrants of A and C, after successful face recognition comparison by C, a special prompt sound will be heard (for example, "beep beep" twice, and setting it to twice is to distinguish it from the situation where many door locks set a single "beep" when recognizing and unlocking). R1 judges whether it hopes to enter A or C by itself. If R1 wants to enter the door of A, it will immediately leave and go to A after hearing the prompt sound. If it wants to enter the door of C, it will wait patiently for 3 seconds, and C will unlock, and R1 can enter the door of C.
[0074] (7) When the alternative lock successfully recognizes and compares, the alternative lock will send an unlocking message to the faulty lock: The faulty lock uses a delayed unlocking method to unlock the faulty lock according to the recognition and comparison message of the alternative lock.
[0075] When C successfully recognizes and compares R1, according to step (6), there are 2 cases: R1 is only an occupancy registrant of A, and R1 is an occupancy registrant of both A and C and R1 has chosen to return to A. The processing flows for these 2 cases are the same.
[0076] C estimates the walking speed of the person and collects the leaving time point: After C successfully recognizes and compares R1, it continues to track R1 until R1 crosses the "two warning lines" in the video (the setting of the two warning lines is mainly to accurately determine the starting point of calculating the unlocking time and estimate the walking speed of R1. In the video area, two semi-circular warning lines (inner warning line, outer warning line) are drawn with the center of the circle as the center. When deploying the intelligent lock, the distance between the inner and outer warning lines is determined by the method of manual calibration, such as the distance is L1 meters), which is used as the boundary of the area for video intelligent analysis / motion detection).
[0077] Method for determining the leaving time point of R1 (for convenience of explanation, this time point is denoted as T1): Through the motion detection algorithm of video intelligent analysis, when it is detected that the person crosses the outer warning line, an alarm is triggered to indicate that R1 has left. At this time point, it is used as the starting point of the unlocking time, and the clock information at this time point is extracted;
[0078] Method for estimating the walking speed of R1: Use motion detection to extract the clock information when R1 crosses the warning line twice, calculate the time period length when the person crosses the warning line twice (for example, the time period length is S seconds), and combine the pre-calibrated warning line spacing L1 of the intelligent lock to calculate the estimated walking speed of the person (for convenience of explanation, the estimated speed is denoted as V, calculation formula: V = L1 ÷ S).
[0079] C's successful identification and comparison message is published: When C successfully identifies and compares R1 and confirms that it wants to notify A to unlock (according to the behavior detection of R1 in step (6), it is determined that R1 is the door back to A), R1's information (personnel number, smart lock ID), departure time T1, and estimated speed V will be extracted from the gray list to form a message that replaces the successful lock identification (for the convenience of description, this message is referred to as the unlock notification message) and sent to the smart lock;
[0080] (8) Delayed unlocking after the faulty lock receives the unlocking notification message from the replacement lock: The delayed unlocking time is calculated based on the time point T1 when R1 leaves C, the estimated speed V of R1, the path length from C to A, the walking time, etc. Among them, the calculation of the delayed unlocking time point T of A is:
[0081] T2=T1+L÷V+5 seconds; T3=T1+M+5 seconds; T=max(T2, T3). Parameters are as follows:
[0082] T1: the time when R1 leaves C; T2: the time calculated based on C’s estimated speed V; T3: the time calculated based on the walking time M queried from the neighbor smart lock list; L: the path distance from C to A queried from the neighbor smart lock list; V: C’s estimated speed calculated based on video analysis when R1 leaves; M: the walking time from C to A queried from the neighbor smart lock list;
[0083] 5 seconds: Delay time can be preset according to the walking speed of each person checking in. If there are family members with mobility problems, it can be extended appropriately. Generally, it can be set to 5 seconds;
[0084] T=max(T2, T3): indicates the final unlocking time of A, which is the maximum value calculated based on the estimated speed of C and the normal walking speed. (Note: The main reason for taking the larger value is to fully consider that everyone's walking speed may not be 1 meter per second, especially when the person walks very slowly due to some injuries. If the unlocking time is calculated according to the normal speed, it will cause the person to unlock in advance before the person arrives, which brings greater risks; while the unlocking point is based on the time point that takes a long time, which fully considers the actual walking speed. Even if the person arrives early, he can wait a little longer before unlocking. This method is safer).
[0085] A unlocks: A determines based on the difference between the calculated unlocking time T and A's current clock. When the difference is 0, A triggers unlocking (according to theoretical calculations, R1 arrives at A after leaving C and waits for no more than 5 seconds before unlocking the door and entering the house);
[0086] (9) Replacement cancellation after the smart lock fault is repaired: After A is repaired, it notifies C to cancel the replacement pairing relationship, and C no longer replaces A for identification and comparison.
[0087] A publishes a replacement release message: After A's fault is repaired, A starts the replacement unlocking process after self-checking, and A sends a "Release replacement unlocking" request message to C; A sends a replacement unlocking release message to each registered person of A through the APP (notification message example: "You have released the door lock with ID number and address XXX as your replacement unlocking identification device!" When A's registered person receives this message, he will no longer go to C, but will directly identify and unlock the door at A);
[0088] C cancels substitution: After receiving the "cancel substitution unlock" request message issued by A, C deletes all data of all registered persons corresponding to A in the gray list; C resumes normal working status and no longer executes the substitution identification and comparison process for A.
[0089] When the smart lock fails due to facial recognition matching, you don’t need to worry about not being able to unlock. The smart lock can automatically start to solicit the neighbor’s smart lock as an alternative door lock, and build a cross-door lock recognition method to solve the problem of facial recognition matching failure, which can effectively solve the problem of being unable to unlock due to facial recognition matching failure of the smart lock.
[0090] It can be seen that according to the geographical location of the faulty smart lock, multiple nearest neighbor smart locks are selected to generate a list of neighbor smart locks, and the pre-selected alternative lock of the faulty smart lock is determined from the list of neighbor smart locks; the faulty smart lock sends an alternative unlocking authorization request to the check-in registration person, and after obtaining the authorization, establishes a connection with the pre-selected alternative lock to perform alternative configuration of the faulty smart lock; when the pre-selected alternative lock that has completed the alternative configuration detects a person, a face recognition comparison is performed; when the alternative lock recognition comparison is successful, the alternative lock sends an unlocking message to the faulty smart lock, and the faulty smart lock uses a delayed unlocking method to unlock the faulty smart lock based on the recognition comparison message of the alternative lock, thereby being able to build a cross-door lock recognition method to solve the problem of face recognition comparison failure, which can effectively solve the problem of being unable to unlock due to face recognition comparison failure of the smart lock.
[0091] Another embodiment of the present invention provides a cross-lock door opening system for an intelligent door lock, see Figure 3 , the system may include:
[0092] A determination module 301 is used to select a plurality of neighbor smart locks that are closest to the faulty smart lock according to the geographical location of the faulty smart lock, generate a list of neighbor smart locks, and determine a pre-selected replacement lock for the faulty smart lock from the list of neighbor smart locks;
[0093] Configuration module 302, used for the faulty smart lock to send a replacement unlocking authorization request to the check-in registration personnel, and after obtaining the authorization, establish a connection with the pre-selected replacement lock to perform replacement configuration of the faulty smart lock;
[0094] An identification module 303, configured to perform face recognition comparison when a preselected alternative lock that has completed the alternative configuration detects a person;
[0095] An unlocking module 304, configured to, after the alternative lock successfully identifies and compares, send an unlocking message for the faulty smart lock by the alternative lock, and the faulty smart lock uses a delayed unlocking method to unlock the faulty smart lock according to the identification and comparison message of the alternative lock.
[0096] It can be seen that according to the geographical location of the faulty smart lock, multiple nearest neighbor smart locks are selected to generate a neighbor smart lock list, and a preselected alternative lock for the faulty smart lock is determined from the neighbor smart lock list; the faulty smart lock sends an alternative unlocking authorization request to the check-in person, and after obtaining authorization, establishes a connection with the preselected alternative lock to perform the alternative configuration of the faulty smart lock; when the preselected alternative lock that has completed the alternative configuration detects a person, face recognition comparison is performed; when the alternative lock successfully identifies and compares, the alternative lock sends an unlocking message for the faulty smart lock, and the faulty smart lock uses a delayed unlocking method to unlock the faulty smart lock according to the identification and comparison message of the alternative lock, so that a method for cross-door lock recognition can be established to solve the problem of face recognition comparison failure, and the problem that the smart lock cannot be unlocked due to face recognition comparison failure can be effectively solved.
[0097] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, and the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0098] Specifically, in this embodiment, the above storage medium can be configured to store a computer program for executing the following steps:
[0099] S201, neighbor smart lock selection and preselected alternative lock determination: According to the geographical location of the faulty smart lock, select multiple nearest neighbor smart locks to generate a neighbor smart lock list, and determine the preselected alternative lock for the faulty smart lock from the neighbor smart lock list;
[0100] S202, alternative lock authorization and configuration: The faulty smart lock sends an alternative unlocking authorization request to the check-in person, and after obtaining authorization, establishes a connection with the preselected alternative lock to perform the alternative configuration of the faulty smart lock;
[0101] S203, face recognition comparison and response: When the preselected alternative lock that has completed the alternative configuration detects a person, perform face recognition comparison;
[0102] S204, unlocking notification and delayed unlocking: When the alternative lock successfully identifies and compares, the alternative lock sends an unlocking message for the faulty smart lock, and the faulty smart lock uses a delayed unlocking method to unlock the faulty smart lock according to the identification and comparison message of the alternative lock.
[0103] It can be seen that, according to the geographical location of the faulty intelligent lock, multiple neighboring intelligent locks closest in distance are selected to generate a list of neighboring intelligent locks, and a preselected alternative lock for the faulty intelligent lock is determined from the list of neighboring intelligent locks; the faulty intelligent lock sends a request for alternative unlocking authorization to the occupancy registration personnel, and after obtaining authorization, establishes a connection with the preselected alternative lock to perform alternative configuration of the faulty intelligent lock; when the preselected alternative lock that has completed the alternative configuration detects a person, face recognition comparison is performed; when the recognition comparison by the alternative lock is successful, the alternative lock sends an unlocking message to the faulty intelligent lock, and the faulty intelligent lock uses a delayed unlocking method to unlock the faulty intelligent lock according to the recognition comparison message of the alternative lock, so that a method for cross-door lock recognition can be established to solve the problem of face recognition comparison failure, and the problem that the intelligent lock cannot be unlocked due to face recognition comparison failure can be effectively solved.
[0104] An embodiment of the present invention further provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0105] Specifically, the above electronic device may further include a transmission device and an input / output device. Among them, the transmission device is connected to the above processor, and the input / output device is connected to the above processor.
[0106] Specifically, in this embodiment, the above processor may be configured to execute the following steps through a computer program:
[0107] S201, Selection of neighboring intelligent locks and determination of preselected alternative locks: According to the geographical location of the faulty intelligent lock, select multiple neighboring intelligent locks closest in distance to generate a list of neighboring intelligent locks, and determine a preselected alternative lock for the faulty intelligent lock from the list of neighboring intelligent locks;
[0108] S202, Authorization and configuration of alternative locks: The faulty intelligent lock sends a request for alternative unlocking authorization to the occupancy registration personnel, and after obtaining authorization, establishes a connection with the preselected alternative lock to perform alternative configuration of the faulty intelligent lock;
[0109] S203, Face recognition comparison and response: When the preselected alternative lock that has completed the alternative configuration detects a person, perform face recognition comparison;
[0110] S204, Unlocking notification and delayed unlocking: When the recognition comparison by the alternative lock is successful, the alternative lock sends an unlocking message to the faulty intelligent lock, and the faulty intelligent lock uses a delayed unlocking method to unlock the faulty intelligent lock according to the recognition comparison message of the alternative lock.
[0111] It can be seen that according to the geographical location of the faulty intelligent lock, multiple nearest neighbor intelligent locks are selected to generate a list of neighbor intelligent locks, and a preselected alternative lock for the faulty intelligent lock is determined from the list of neighbor intelligent locks; the faulty intelligent lock sends a request for alternative unlocking authorization to the occupancy registration personnel, and after obtaining authorization, establishes a connection with the preselected alternative lock to perform alternative configuration of the faulty intelligent lock; when the preselected alternative lock that has completed the alternative configuration detects a person, face recognition comparison is performed; when the recognition comparison of the alternative lock is successful, the alternative lock sends an unlocking message to the faulty intelligent lock, and the faulty intelligent lock uses a delayed unlocking method to unlock the faulty intelligent lock according to the recognition comparison message of the alternative lock, so that a method for cross-door lock recognition can be established to solve the problem of face recognition comparison failure, and the problem of being unable to unlock due to face recognition comparison failure of the intelligent lock can be effectively solved.
[0112] The structure, features and function effects of the present invention have been described in detail based on the embodiments shown in the drawings. The above are only the preferred embodiments of the present invention, but the present invention is not limited to the scope defined by the drawings. Any changes made according to the concept of the present invention, or equivalent embodiments modified into equivalent changes, should still be within the protection scope of the present invention when they do not exceed the spirit covered by the description and the drawings.
Claims
1. A method for opening a door across locks of an intelligent door lock, characterized in that, The method includes: Selection of neighbor smart locks and determination of preselected alternative locks: Based on the geographical location of the faulty smart lock, select multiple neighbor smart locks that are the closest, generate a list of neighbor smart locks, and determine the preselected alternative lock for the faulty smart lock from the list of neighbor smart locks; Authorization and configuration of alternative locks: The faulty smart lock sends a request for alternative unlocking authorization to the occupancy registration personnel. After obtaining authorization, establish a connection with the preselected alternative lock to perform alternative configuration for the faulty smart lock; Face recognition comparison and response: When the preselected alternative lock that has completed the alternative configuration detects a person, perform face recognition comparison; Unlocking notification and delayed unlocking: When the alternative lock successfully recognizes and compares, the alternative lock sends an unlocking message to the faulty smart lock. The faulty smart lock uses the delayed unlocking method to unlock the faulty smart lock according to the recognition and comparison message of the alternative lock.
2. The method according to claim 1, characterized in that In the step of selection of neighbor smart locks and determination of preselected alternative locks, when calculating the path length through the CAD map, use the API interface of the CAD software to import the geographical location data of the smart locks, calculate the path length from each smart lock to the faulty smart lock, and select the 3 neighbor smart locks with the shortest path length and write them into the list of neighbor smart locks.
3. The method according to claim 1, wherein In the step of authorization and configuration of alternative locks, when the preselected alternative lock stores the occupancy registration personnel information of the faulty smart lock, perform personnel duplicate checking; if there are multiple occupancy registration personnel information of the faulty smart lock in the gray list, reject subsequent alternative requests and prompt to select other alternative locks.
4. The method according to claim 1, wherein In the step of face recognition comparison and response, when the person is the occupancy registration personnel of both the faulty smart lock and the preselected alternative lock, the preselected alternative lock judges the person's intention through voice prompt and delay mechanism; If the person leaves immediately after hearing the prompt sound, unlock the faulty smart lock; if the person does not leave, unlock the preselected alternative lock.
5. The method according to claim 1, wherein In the step of unlocking notification and delayed unlocking, the calculation formula for the delayed unlocking time is: ; where T1 is the time point when the personnel leave the alternative lock, L is the path length from the alternative lock to the faulty lock, V is the walking speed of the personnel, and M is the walking time from the alternative lock to the faulty lock.
6. A cross-lock door opening system for an intelligent door lock, characterized in that, The system includes: A determination module, which is used to select multiple neighbor smart locks that are the closest based on the geographical location of the faulty smart lock, generate a list of neighbor smart locks, and determine the preselected alternative lock for the faulty smart lock from the list of neighbor smart locks; A configuration module, which is used for the faulty smart lock to send a request for alternative unlocking authorization to the occupancy registration personnel. After obtaining authorization, establish a connection with the preselected alternative lock to perform alternative configuration for the faulty smart lock; An identification module, which is used to perform face recognition comparison when the preselected alternative lock that has completed the alternative configuration detects a person; An unlocking module, which is used when the alternative lock successfully recognizes and compares. The alternative lock sends an unlocking message to the faulty smart lock. The faulty smart lock uses the delayed unlocking method to unlock the faulty smart lock according to the recognition and comparison message of the alternative lock.
7. The system according to claim 6, wherein The determination module is specifically used for: When calculating the path length through the CAD map, use the API interface of the CAD software to import the geographical location data of the smart locks, calculate the path length from each smart lock to the faulty smart lock, and select the 3 neighbor smart locks with the shortest path length and write them into the list of neighbor smart locks.
8. The system according to claim 6, wherein The configuration module is specifically configured to: perform duplicate checking of personnel when a preselected alternative lock stores the check-in registration personnel information of a faulty intelligent lock; if there are registration personnel information of multiple faulty intelligent locks in the gray list, reject subsequent alternative requests and prompt to select other alternative locks.
9. A storage medium, characterized in that, A computer program is stored in the storage medium, wherein the computer program is set to execute the method described in any one of claims 1-5 when running.
10. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is set to run the computer program to execute the method described in any one of claims 1-5.
Citation Information
Patent Citations
Intelligent device box and work method thereof
CN107741739A
Personnel monitoring method and system based on intelligent door lock and storage medium
CN119851384A