Video recording method and device of intelligent door lock, computer equipment and storage medium
By implementing event traceability and automatic video playback in smart door locks, the problem of smart door locks relying on users to actively view APPs is solved, and the timely transmission and automatic playback of key safety information by smart door locks is realized, improving the practicality and reliability of security guarantees.
Patent Information
- Application Number
- CN202510048243.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2025-04-25
AI Technical Summary
Existing smart locks rely on users to actively view APPs to obtain security information, resulting in the inability to transmit critical security information in a timely manner and the value of practical functions has not been fully utilized.
When the event backtracking function of the smart door lock is enabled, the trigger event is detected and the preset analysis strategy is used to determine whether there is a backtracking requirement. If there is a need for backtracking, record the outside environment to get the recorded video, and automatically play the recorded video when the playback conditions are met.
Realize real-time monitoring of the surrounding environment and operating behavior of smart door locks, timely capture key events, provide users with timely and convenient safety information, and improve the practicality and reliability of smart door locks in security protection.
Smart Images

Figure CN119893017A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart locks, and in particular to a video recording method, device, computer equipment and storage medium for smart door locks. Background Art
[0002] With the rapid development of science and technology, smart home products have gradually entered thousands of households. As an important part of them, smart door locks have been widely used in people's lives. Its functions are also continuously expanding and upgrading, becoming increasingly rich and diverse. Today, smart door locks are no longer limited to the traditional simple unlocking function. They continue to deepen their security and add many comprehensive and practical functions, such as advanced biometric technology to improve the convenience and safety of unlocking, and smart monitoring and alarm systems to protect home safety. These functions provide more convenience and solid protection for people's lives in all aspects, greatly changing people's perception and experience of traditional door locks.
[0003] However, the current security functions of smart locks still have obvious limitations in practical applications. Although it has a series of practical security functions such as no-test alarm, stay alarm, doorbell call, etc., most of these functions rely on the APP that matches the lock to realize information display and interaction. The reality is that many users do not actively open the APP to check relevant information every day due to factors such as the fast pace of life and operating habits. This means that when the door lock detects abnormal events or important interactive events, the key security information that should be conveyed to the user in a timely manner cannot be effectively transmitted because the user fails to check the APP in time, resulting in the value of these practical functions of the smart lock cannot be fully demonstrated, and it fails to fully play its due protection role, which to a certain extent weakens the actual effectiveness of the smart door lock in protecting the user's life safety. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a video recording method, device, computer equipment and storage medium for a smart door lock to solve the problem that existing smart locks rely on applications to display security information, resulting in key security information not being effectively transmitted because the user does not actively view it, and the practical function value cannot be fully utilized.
[0005] In a first aspect, an embodiment of the present invention provides a video recording method for a smart door lock, the method comprising:
[0006] When the event backtracking function of the smart door lock is enabled, detecting a triggering event for the smart door lock;
[0007] Determine whether the trigger event has a backtracking requirement based on a preset analysis strategy;
[0008] If there is the backtracking requirement, the environment outside the smart door lock is recorded based on the triggering event to obtain a recorded video;
[0009] When the playback condition corresponding to the trigger event is met, the smart door lock is controlled to perform the playback operation of the recorded video.
[0010] Further, judging whether the triggering event has a backtracking requirement based on a preset analysis strategy includes:
[0011] Obtaining the data source of the triggering event;
[0012] A corresponding preset analysis strategy is determined according to the data source, and whether the triggering event has a backtracking requirement is determined according to the preset analysis strategy.
[0013] Furthermore, the recording of the environment outside the smart door lock based on the triggering event to obtain a recorded video includes:
[0014] If the triggering event is an interactive event, starting the recording device of the smart door lock;
[0015] Acquire multiple image frames captured by the recording device, and monitor personnel activities in the image frames;
[0016] When there is no human activity in the image frame, the recording device is turned off to obtain a recorded video.
[0017] Furthermore, the recording of the environment outside the smart door lock based on the triggering event to obtain a recorded video includes:
[0018] If the triggering event is an abnormal event, determining the abnormal type of the abnormal event;
[0019] Determine a corresponding recording strategy according to the abnormality type;
[0020] The environment outside the smart door lock is recorded based on the recording strategy to obtain a recorded video.
[0021] Further, if the abnormality type is a personnel abnormality type, determining the recording strategy to be a first recording strategy;
[0022] The step of recording the environment outside the smart door lock based on the recording strategy to obtain a recorded video includes:
[0023] Detecting the behavior and stay time of people within the preset range of the smart door lock;
[0024] Analyze the personnel behavior and the stay time to obtain analysis results;
[0025] If the analysis result is abnormal behavior, the environment outside the door of the smart door lock is recorded until the end of the person's behavior is detected to obtain a recorded video.
[0026] Further, if the abnormality type is a door lock abnormality type, determining that the recording strategy is a second recording strategy;
[0027] The step of recording the environment outside the smart door lock based on the recording strategy to obtain a recorded video includes:
[0028] Detecting physical signals of key structures in the smart door lock;
[0029] Determining whether the smart door lock has a protection risk according to the physical signal;
[0030] If there is a protection risk, the environment outside the door of the smart door lock is recorded until a preset termination condition is met to obtain a recorded video.
[0031] Furthermore, before the playback condition corresponding to the triggering event is met, the method further includes:
[0032] Determining a corresponding preset playback condition according to the triggering event;
[0033] Obtaining user information pre-configured in the preset playback condition;
[0034] When an unlocking operation for the smart door lock is detected, target user information is obtained, and the target user information is compared with the user information to obtain a comparison result;
[0035] If the comparison result shows that the information is consistent, it is determined that the preset playback condition is met.
[0036] In a second aspect, an embodiment of the present invention provides a video recording device for a smart door lock, the device comprising:
[0037] A detection module, used to detect a triggering event for the smart door lock when the event backtracking function of the smart door lock is enabled;
[0038] A judgment module, used to judge whether the triggering event has a backtracking requirement based on a preset analysis strategy;
[0039] A recording module, for recording the environment outside the smart door lock based on the triggering event to obtain a recorded video if the backtracking requirement is met;
[0040] The control module is used to control the smart door lock to perform the playback operation of the recorded video when the playback condition corresponding to the trigger event is met.
[0041] In a third aspect, an embodiment of the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0042] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding embodiment thereof.
[0043] The method provided in the embodiment of the present application has the following beneficial effects:
[0044] The method provided in the embodiment of the present application detects the triggering event for the smart door lock when the event backtracking function of the smart door lock is enabled, so that the smart door lock monitors the surrounding environment and operation behavior in real time, and timely captures various triggering events such as doorbell being pressed and abnormal unlocking attempts, providing a timely and accurate information source for subsequent event-based processing. By judging whether the triggering event has a backtracking requirement based on a preset analysis strategy, meaningless recording behavior is effectively avoided, storage resources are greatly saved, and at the same time, it is ensured that the events entering the recording link are critical and valuable, which improves the quality and pertinence of subsequent information presentation, allowing users to quickly obtain key information. By recording the outside environment of the smart door lock based on the triggering event when there is a backtracking requirement, a recorded video is obtained. These recorded videos are not only important evidence materials, which are convenient for users to perform alarm, verification and other operations when necessary, but also help users fully understand the whole picture of the event, so as to make accurate judgments and response strategies, and effectively enhance the practicality and reliability of the smart door lock in security protection. By controlling the smart door lock to play the recorded video when the playback conditions corresponding to the trigger event are met, the disadvantage of traditional smart locks relying on users to actively check the APP to obtain information is solved, ensuring that users can passively obtain key security information in a timely manner, truly realizing the efficient use of the practical functions of the smart door lock, and providing users with a convenient, caring and safe user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 is a flow chart of a video recording method for a smart door lock according to an embodiment of the present invention;
[0047] Figure 2 is a schematic diagram of a configuration structure of an event backtracking function according to an embodiment of the present invention;
[0048] Figure 3 is a structural block diagram of a video recording system for a smart door lock according to an embodiment of the present invention;
[0049] Figure 4 is a structural block diagram of a video recording device for a smart door lock according to an embodiment of the present invention;
[0050] Figure 5 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0052] According to an embodiment of the present invention, a video recording method, apparatus, computer device and storage medium for a smart door lock are provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0053] In this embodiment, a video recording method for a smart door lock is provided. Figure 1 is a flow chart of a video recording method for a smart door lock according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0054] Step S11, when the event backtracking function of the smart door lock is in an enabled state, detecting a triggering event for the smart door lock.
[0055] In the embodiment of the present application, the event backtracking function refers to the recording and storage of relevant circumstances before and after the smart door lock detects a specific triggering event, so that users can trace back and view the whole picture, and obtain details on the use of the door lock and the surrounding security. Specifically, the smart door lock collects door lock related information in real time through built-in sensors such as doorbells, peepholes, and lock cylinder status. When someone presses the doorbell, the peephole detects someone staying, or the lock cylinder is unlocked abnormally, the corresponding sensor will detect it and feed it back to the system as a triggering event. These sensors perceive the dynamics of the door lock in all directions, identify events that may affect the safety or normal use of the door lock, and provide original information for subsequent processing. This step is the starting point of the smart door lock event processing mechanism, which ensures timely detection of various important events and lays the foundation for subsequent analysis, recording, and information presentation.
[0056] Step S12: determine whether the triggering event has a backtracking requirement based on a preset analysis strategy.
[0057] In the embodiment of the present application, step S12 includes the following steps A1-A2:
[0058] Step A1, obtaining the data source of the triggering event.
[0059] Specifically, the data source of the trigger event is the various sensors built into the smart door lock, each of which keenly captures different trigger event information. If the trigger event is the doorbell being pressed, the doorbell sensor senses the pressure change and converts the doorbell pressing action into an electrical signal and transmits it to the smart door lock control system. The electrical signal carries the relevant data. If the trigger event is someone staying in front of the door, the cat's eye sensor uses camera imaging technology to monitor the area in front of the door. When it detects that a person remains relatively still for a certain period of time and determines that someone is staying, the relevant image and time information are used as the relevant data of the trigger event. If the trigger event is the lock cylinder unlocking operation, the lock cylinder status sensor senses the abnormal changes in parameters such as force, angle, and frequency when the lock cylinder rotates. These abnormal parameter information is the relevant data of the trigger event.
[0060] Step A2: determine the corresponding preset analysis strategy according to the data source, and determine whether the triggering event has a backtracking requirement according to the preset analysis strategy.
[0061] Specifically, after obtaining the source of the trigger event data, the smart door lock calls the corresponding preset analysis strategy according to different sources to determine the backtracking demand. For example, for the doorbell sensor data, if the doorbell is pressed multiple times in a short period of time (within 1 minute), and it may be combined with whether a specific user presses the bell and other conditions for comprehensive judgment, it may mean that the visitor is in a hurry, and it will be regarded as an important interaction event with a higher backtracking demand; the cat's eye sensor detects the stay information of the person. If the stay exceeds the preset threshold (30 seconds, shortened to 15 seconds when there is a courier package at the door), or the person has abnormal behaviors such as wandering and peeping, it will be required to backtrack due to security issues; the lock cylinder status sensor transmits abnormal unlocking data, such as consecutive wrong password input reaches the preset number of times (3 times), or fingerprint, card swiping and other unlocking methods are abnormal, it will be regarded as a security threat, with a higher backtracking demand. These strategies help to comprehensively assess the importance and potential risks of the event, accurately determine whether to backtrack the record, avoid resource waste, and ensure that important information is not missed.
[0062] Step S13: If there is a need for backtracking, the environment outside the smart door lock is recorded based on the triggering event to obtain a recorded video.
[0063] In an embodiment of the present application, recording the environment outside the smart door lock based on a triggering event to obtain a recorded video includes the following steps B1-B3:
[0064] Step B1, if the triggering event is an interactive event, start the recording device of the smart door lock.
[0065] Specifically, when the smart door lock determines that the trigger event is an interactive event based on the preset analysis strategy, the recording preparation is started. Interactive events refer to behaviors that are directly interactive with users or visitors, such as doorbell calls, message reception and other scenarios. For example, when the doorbell sensor detects that the doorbell is pressed and determines that this is a doorbell call interactive event, the built-in recording device of the smart door lock will be started. The recording device can be a camera integrated in the cat's eye module or other equipment specifically used for recording such interactive events. By starting the recording device, preparations are made for the process of recording interactive events to ensure that the relevant screen information can be fully captured later.
[0066] Step B2, obtaining multiple image frames captured by the recording device, and monitoring the activities of people in the image frames.
[0067] Specifically, after the recording device is started, it will start to continuously collect image frames of the environment outside the door. These image frames can be connected to present the complete process of the event. At the same time, the smart door lock will use image analysis technology to monitor the collected image frames in real time, focusing on whether there is human activity in them. For example, by analyzing the displacement, shape change and other features of objects in the image, it can be determined whether there is a person moving or making movements in the picture. If it is detected that there are people walking or raising their hands in the picture, it means that there is human activity.
[0068] Step B3, when there is no human activity in the image frame, turn off the recording device to obtain a recorded video.
[0069] Specifically, when no human activity is detected in the continuous image frames, it indicates that the current stage of the interaction event has ended. For example, a visitor presses the doorbell, communicates with the people in the house, and then leaves, and there is no one in the picture. At this time, in order to save storage space and system resources, the smart door lock automatically turns off the recording device and generates a video that fully records the interaction event. The video covers the screen from the beginning of the event (such as pressing the doorbell) to the end of the human activity, which is convenient for users to view later and understand the visitor's appearance, communication actions and other specific circumstances.
[0070] In an embodiment of the present application, recording the environment outside the smart door lock based on a triggering event to obtain a recorded video includes the following steps C1-C3:
[0071] Step C1: if the triggering event is an abnormal event, determine the abnormal type of the abnormal event.
[0072] Specifically, after determining that the trigger event is an abnormal event, its specific type needs to be determined. If the cat's eye sensor detects that the person in front of the door stays for more than the preset threshold (normally 30 seconds, shortened to 15 seconds in specific scenarios such as express packages at the door), it is determined to be a stay type abnormal event, because a long stay may have potential risks such as strangers snooping into the house. When the user unlocks the door, if the wrong password is entered continuously for a preset number of times (such as 3 times), or the unlocking method such as fingerprint or card swiping is abnormal (such as forged fingerprint, card abnormality), it is determined to be a forbidden type abnormal event, indicating that someone may illegally unlock the door, threatening the safety of the door lock. If the lock sensor senses the force of the lock picking tool, abnormal vibration or displacement change of the lock body, it is determined to be a lock picking type abnormal event, which is a direct security threat and needs to be recorded in time. When the user is forced to use a special unlocking method (pressing the hijacking alarm button or entering the hijacking password), or the smart door lock detects an abnormal change in the distance from the user's mobile device accompanied by abnormal door lock operation, it is determined to be a hijacking type abnormal event, because it involves the user's personal safety and requires special processing.
[0073] Step C2, determining a corresponding recording strategy according to the exception type.
[0074] Specifically, after determining the type of abnormal event, the smart door lock can call the adaptive recording strategy according to different types. For the stay type, if it is detected that the person stays for more than the preset time, the recording device will continuously record their behavior in all directions until they leave or the abnormal behavior ends; for the forbidden type, if the password is wrong or other unlocking anomalies are detected, the recording device will record the whole process from the beginning to the end of the attempt and the characteristics of the person, etc., and different users will be recorded in sequence if they enter the wrong password multiple times in a short period of time; for the prying type, the recording will be started when the prying action is detected, and multiple captured videos will be recorded and played to highlight the key moments after a certain period of time; for the hijacking type, if the trigger condition is detected and the captured video meets the playback condition, the recording device will record the situation from the triggering alarm to the subsequent situation in a timely manner, combined with details such as the distance between the device and the door lock operation, to provide a basis for ensuring safety and subsequent processing. These personalized strategies can capture key information to the greatest extent and improve the family's security protection capabilities.
[0075] Step C3, recording the environment outside the smart door lock based on the recording strategy to obtain a recorded video.
[0076] In the embodiment of the present application, if the abnormal type is a personnel abnormal type, the recording strategy is determined to be the first recording strategy, and step C3 includes the following steps C301-C303:
[0077] Step C301, detecting the behavior and stay time of people within the preset range of the smart door lock.
[0078] Specifically, the smart door lock uses the cat's eye module and other devices to continuously monitor the preset area in front of the door with a radius of several meters around the door lock and where human activities can be observed. During monitoring, on the one hand, it focuses on whether the person has abnormal behaviors such as wandering, peeping, squatting for a long time, such as pacing repeatedly, looking close to the cat's eye; on the other hand, through the built-in timing function of the cat's eye module, the time is counted from the time the person enters the preset range to the time he leaves, and the length of his stay is recorded.
[0079] Step C302: Analyze personnel behavior and residence time to obtain analysis results.
[0080] Specifically, when analyzing personnel behavior, the collected behaviors are compared with the preset normal behavior patterns. For example, short stays waiting for the door to open, leaving quickly after putting down the package, etc. are normal behaviors. If they do not meet normal behaviors, such as aimless wandering for a long time, sneaky movements, etc., they are marked as abnormal tendencies. Analyze the dwell time. According to the reasonable time standards for different scenarios, when there is no interaction in normal visitor scenarios, if it exceeds 30 seconds (normal threshold) or in specific scenarios (such as express packages at the door), it exceeds 15 seconds, which is considered abnormal. Comprehensive behavior and dwell time analysis are used to determine whether the personnel behavior is abnormal.
[0081] Step C303: If the analysis result is abnormal behavior, the environment outside the smart door lock is recorded until the end of the human behavior is detected to obtain a recorded video.
[0082] Specifically, when the smart door lock determines that a person's behavior is abnormal, in order to retain key information, the recording program is immediately started and the environment outside the door begins to be recorded. The recording continues from the time the abnormality is determined until the person leaves the preset range, or the abnormal behavior stops and there is no new abnormal behavior for a period of time. For example, if a stranger is detected wandering around or peeping in front of the door for a long time, the recording will start after the abnormality is determined and will not stop until the person finally leaves.
[0083] In the embodiment of the present application, if the abnormality type is a door lock abnormality type, the recording strategy is determined to be the second recording strategy, and step C3 includes the following steps C311-C313:
[0084] Step C311, detecting physical signals of key structures in the smart door lock.
[0085] Specifically, the smart door lock is equipped with a variety of high-precision sensors to detect in real time the physical signals of the key structures such as the lock core, lock tongue and connecting parts that ensure the normal operation and safety protection of the door lock. For example, when the lock core rotates, the sensor monitors its torque, angle, acceleration, etc., and uses the signal data in a specific range during normal unlocking as the reference standard. Abnormal and violent twisting of the lock core will cause the sensor to capture the out-of-range change signal; the sensor at the lock tongue senses its position, speed, and force when it pops up or retracts. When the door lock is hit by external force or pried abnormally, the lock tongue state change signal will be detected in time; the connecting parts also have sensors to monitor their vibration frequency, amplitude and other signals. When the door lock is subjected to abnormal vibration, these signals are immediately fed back to the control system.
[0086] Step C312, determine whether there is a protection risk for the smart door lock based on the physical signal.
[0087] Specifically, after obtaining the physical signals of the key structures, they are compared and analyzed with the safety standards formulated based on a large amount of experimental data and the physical signal characteristics of door locks in normal usage scenarios. If the detected physical signals, such as the torque and angle of the lock core rotation, the action and position of the lock tongue popping out and retracting, and the vibration amplitude and frequency of the connecting parts, all meet the safety standards, it is determined that the door lock is working normally and there is no protection risk; if the signal deviates from the standard, such as a sudden increase in the lock core torque, abnormal displacement of the lock tongue, abnormal and violent vibration frequency of the connecting parts, etc., it is determined that the door lock may be subject to abnormal operations such as prying and violent opening, and there is a protection risk.
[0088] Step C313: If there is a protection risk, the environment outside the smart door lock is recorded until the preset termination condition is met to obtain a recorded video.
[0089] Specifically, if the smart door lock determines that there is a protection risk, in order to record the security incident, it will immediately record the environment outside the door in all directions through the recording equipment integrated in the cat's eye module or other special camera devices. The recording continues until the preset termination condition is met, where the preset termination condition can be that the door lock protection risk is lifted, that is, the physical signal of the key structure returns to normal, or it can be that the preset maximum recording time (such as 5 minutes or 10 minutes) is reached to avoid excessive use of storage resources. The recorded video fully records information such as abnormal people outside the door, behavioral actions, and changes in the surrounding environment. It is crucial for users to understand the risk status of the door lock, and can provide a strong basis for subsequent security assessments and alarm processing.
[0090] Step S14, when the playback condition corresponding to the triggering event is met, the smart door lock is controlled to perform the playback operation of the recorded video.
[0091] In the embodiment of the present application, the lock application of the smart door lock is provided with relevant configurations of the event backtracking function. Figure 2 As shown in the figure, trigger events (including doorbell calls, messages, etc.) have corresponding on and off options, and different user types (designated, any user opening the door) have different playback condition settings, as well as abnormal door opening warning prompts (the same type or total alarm exceeds the preset number in a day, and an alarm will be triggered after the designated user opens the door to prompt abnormalities). These playback conditions are preset in the door lock, and each trigger event corresponds to a different configuration. When a trigger event occurs, the door lock will judge according to the preset conditions. If it is met, it will control the playback of the corresponding recorded video. For example, when a doorbell call is triggered and meets the conditions of the designated user opening the door option, after the designated user opens the door, the door lock will play the doorbell call capture video. When playing, the video is extracted from the storage module and played through the rear panel display module. There are also video category prompts for user viewing.
[0092] In terms of playback settings, after the event backtracking function is turned on and the playback conditions are met, the rear panel display module classifies the qualified videos and plays them one by one. Before playing each type of video, a category prompt is displayed, and you need to manually click the play button to confirm. If you do not want to play a certain type of video, you can turn off the backtracking function of that type in the APP, or press and hold the setting key of the rear panel display module during playback to skip. If you need to review the played video, you can view it in the APP, or click the setting key of the rear panel display module to select the video type for replay. If the video is not played on the same day, you will be reminded continuously the next day until it is played actively. The video is stored in a loop, and the old video is overwritten when the space is full. The number of playbacks for each type of video can be set in the APP, and the latest one will be played first. If the number exceeds the limit, it will be viewed in the APP.
[0093] In terms of door opening alarm prompt, a separate alarm tone is set. After the trigger, the panel display module can be set to actively play the abnormal video captured, and the video can be viewed repeatedly in the APP. The playback conditions of different trigger events are as follows: Doorbell call, the designated user door opening option requires the doorbell to be pressed and the caller is in the designated list. In addition, it can be set that the designated user presses the doorbell from 11 pm to 6 am to play and prompt first; the option for any user to open the door is that the doorbell is pressed and the cat's eye capture is successful, and multiple doorbell presses within 1 minute are played in sequence. In terms of messages, the new message generates a prompt video to meet the playback conditions. The message of a specific user can be played by the designated recipient in the specified way, and the message of an unspecified user can be played by any user when the door is opened. Stay capture, the stay time exceeds the preset threshold (normal 30 seconds, 15 seconds for specific scenes such as express parcels at the door) or abnormal behavior is detected, and the captured video meets the playback conditions. Prohibited trial capture, the password is entered incorrectly for 3 times or other unlocking methods are abnormal, and the captured video can be played and marked. Anti-prying snapshot: when the lock picking action is detected, the snapshot is started, and multiple videos are played for more than 10 seconds and the key scenes are highlighted. Anti-hijacking alarm: when the special unlocking method or the distance between the lock and the mobile device and the door lock operation are abnormal, the snapshot video meets the conditions (can be triggered manually) to assist in judging the hijacking situation.
[0094] In the embodiment of the present application, before the playback condition corresponding to the triggering event is met, the method further includes steps D1-D4:
[0095] Step D1, determining a corresponding preset playing condition according to a triggering event.
[0096] Specifically, the smart door lock system has a built-in predefined rule set to set playback conditions for various trigger events. Taking the doorbell call as an example, its playback conditions are determined by the lock APP settings. Under the designated user door opening option, the doorbell must be pressed and the caller must be in the designated list for the captured video to be played; under the arbitrary user door opening option, the doorbell is pressed, the cat's eye capture is successful, and the doorbell is pressed multiple times within 1 minute, and the video is played in sequence. In the message event, the new message generates a prompt video, which meets the playback conditions. There are differences in the playback conditions for messages from specific and unspecified users. Similarly, trigger events such as lingering capture, prohibited test capture, anti-pry capture, and anti-hijacking alarm each have specific preset playback conditions according to the APP settings. These conditions are set when the program is initialized and stored in the system configuration file, and can be quickly called when a trigger event occurs.
[0097] Step D2, obtaining user information pre-configured in the preset playback condition.
[0098] Specifically, after determining the preset playback conditions corresponding to the triggering event, the pre-configured user information is extracted from the relevant data. For example, in the scenario where the doorbell calls a designated user to open the door, the list of designated users is accurately obtained from the corresponding configuration data; under the playback conditions of a specific user's message, the designated recipient and other information are obtained. This user information is entered by the user through the lock or application settings, stored in the smart door lock storage module, and associated with the triggering event and the preset playback conditions. A specific index mechanism is used to locate and extract information from the storage module to prepare for comparison with the target user information that is actually unlocked.
[0099] Step D3, when an unlocking operation for the smart door lock is detected, the target user information is obtained, and the target user information is compared with the user information to obtain a comparison result.
[0100] Specifically, when the smart door lock detects an unlocking operation, the process of acquiring the target user information is started. This process can involve a variety of identification technologies, such as fingerprint recognition, password verification, card swiping recognition, etc. For example, if the user unlocks the door with a fingerprint, the fingerprint recognition module of the smart door lock will compare the collected fingerprint information with the fingerprint template stored in the system, confirm the user's identity, and obtain the corresponding user ID as the target user information. Then, the acquired target user information is compared with the user information extracted from the preset playback conditions. For example, if the user information in the preset playback conditions is a list of specified users, check whether the target user information is in the list. The comparison process will match field by field. If multiple user information fields are involved (such as user ID, fingerprint feature code, etc.), the information of the two is considered consistent only when all key information fields match. Finally, a clear comparison conclusion is drawn based on the comparison results, that is, whether the information is consistent.
[0101] Step D4: If the comparison result shows that the information is consistent, it is determined that the preset playback condition is met.
[0102] Specifically, when the target user information is compared with the user information in the preset playback condition, if the result shows that the information of the two is consistent, it means that the user corresponding to the current unlocking operation meets the user requirements set by the preset playback condition. For example, in the scenario of the doorbell calling the designated user to open the door option, if the target user information matches a user information in the designated user list, it can be determined that the preset playback condition of the trigger event is met, and then the corresponding recorded video is extracted from the storage module according to the predetermined process, and played through the rear panel display module. At the same time, according to the playback setting plan, the video category prompt and other information are displayed to facilitate the user to view the relevant video content.
[0103] In this embodiment, a video recording system for a smart door lock is provided. Figure 3 is a structural block diagram of a video recording system for a smart door lock according to an embodiment of the present invention. Figure 3As shown, the system includes: a smart door lock 100 and a mobile device 200;
[0104] The smart door lock 100 is used to detect the trigger event when the event backtracking function is enabled, and determine whether there is a backtracking requirement according to the preset analysis strategy. If there is a backtracking requirement, based on the trigger event type, the corresponding module is used to record the environment outside the door to obtain a video, and when the playback conditions are met, the playback operation of the recorded video is controlled;
[0105] The mobile device 200 is used to configure and set related functions such as video recording and playback conditions of the smart door lock 100, and to interact with the smart door lock 100 for data.
[0106] Specifically, the smart door lock 100 includes a cat's eye module 101, a first transmission module 102, a storage module 103 and a rear panel display module 104;
[0107] The cat's eye module 101 is used to collect images of the environment outside the smart door lock and obtain image frames when the triggering event meets the recording conditions. For example, when an interactive event or an abnormal event is triggered, the outside scene is captured in real time to provide raw data for recording video;
[0108] The first transmission module 102 is used to transmit data between the modules of the smart door lock 100, including transmitting the image frames collected by the cat's eye module 101 to the storage module 103 for storage, and transmitting the recorded video in the storage module 103 to the rear panel display module 104 for playback, and performing data interaction with the second transmission module 202 of the mobile device 200;
[0109] The storage module 103 is used to store the image frames collected by the cat's eye module 101 to form a recorded video, using a circular storage method to overwrite the old video when the space is full, and also stores data such as preset playback conditions and pre-configured user information related to the trigger event;
[0110] The rear panel display module 104 is used to receive and play the recorded video transmitted by the first transmission module 102 when the playback conditions are met, and at the same time display information such as video category prompts according to the playback settings for user viewing.
[0111] Specifically, the mobile device 200 includes a configuration module 201 and a second transmission module 202;
[0112] Configuration module 201, used to receive user configuration operations for the video recording and playback functions of the smart door lock, such as turning on or off the event backtracking function, setting playback conditions for different trigger events (doorbell calls, messages, etc.), and entering and managing pre-configured user information (specified user lists, etc.);
[0113] The second transmission module 202 is used to transmit data between the mobile device 200 and the smart door lock 100, and transmits the configuration information, user information, etc. set by the configuration module 201 to the first transmission module 102 of the smart door lock 100, and at the same time receives the door lock status, video and other data from the first transmission module 102 for display or processing on the mobile device 200.
[0114] In this embodiment, a video recording device for a smart door lock is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0115] This embodiment provides a video recording device for a smart door lock, such as Figure 4 As shown, including:
[0116] A detection module 41, configured to detect a triggering event for the smart door lock when the event backtracking function of the smart door lock is enabled;
[0117] A judgment module 42 is used to judge whether the triggering event has a backtracking requirement based on a preset analysis strategy;
[0118] The recording module 43 is used to record the environment outside the smart door lock based on the triggering event to obtain a recorded video if there is a need for backtracking;
[0119] The control module 44 is used to control the smart door lock to perform the playback operation of the recorded video when the playback condition corresponding to the triggering event is met.
[0120] In an optional implementation of the present application, the judgment module 42 is used to obtain the data source of the trigger event; determine the corresponding preset analysis strategy according to the data source, and determine whether the trigger event has a backtracking requirement according to the preset analysis strategy.
[0121] In an optional implementation of the present application, the recording module 43 includes a first execution module and a second execution module;
[0122] The first execution module is used to start the recording device of the smart door lock if the trigger event is an interactive event; obtain multiple image frames captured by the recording device and monitor the activities of people in the image frames; when there is no human activity in the image frames, turn off the recording device to obtain a recorded video.
[0123] The second execution module is used to determine the abnormal type of the abnormal event if the triggering event is an abnormal event; determine the corresponding recording strategy according to the abnormal type; and record the environment outside the smart door lock based on the recording strategy to obtain a recorded video.
[0124] In an optional implementation of the present application, the second execution module includes a first processing submodule and a second processing submodule;
[0125] The first processing submodule is used to determine the recording strategy as the first recording strategy if the abnormality type is a personnel abnormality type; detect the personnel behavior and residence time within the preset range of the smart door lock; analyze the personnel behavior and residence time to obtain the analysis result; if the analysis result is abnormal behavior, record the environment outside the door of the smart door lock until the end of the personnel behavior is detected to obtain a recorded video.
[0126] The second processing submodule is used to determine the recording strategy as the second recording strategy if the exception type is a door lock exception type; detect the physical signals of key structures in the smart door lock; determine whether there is a protection risk for the smart door lock based on the physical signals; if there is a protection risk, record the environment outside the smart door lock until the preset termination conditions are met to obtain a recorded video.
[0127] In an optional embodiment of the present application, the device also includes: a comparison module, which is used to determine the corresponding preset playback condition according to the trigger event; obtain the user information pre-configured in the preset playback condition; when an unlocking operation for the smart door lock is detected, obtain the target user information, and compare the target user information with the user information to obtain a comparison result; if the comparison result is that the information is consistent, it is determined that the preset playback condition is met.
[0128] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).
[0129] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0130] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0131] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0132] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0133] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0134] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0135] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A video recording method for a smart door lock, characterized in that: The method comprises: When the event backtracking function of the smart door lock is enabled, detecting a triggering event for the smart door lock; Determine whether the trigger event has a backtracking requirement based on a preset analysis strategy; If there is the backtracking requirement, the environment outside the smart door lock is recorded based on the triggering event to obtain a recorded video; When the playback condition corresponding to the trigger event is met, the smart door lock is controlled to perform the playback operation of the recorded video.
2. The method according to claim 1, characterized in that The determining whether the triggering event has a backtracking requirement based on a preset analysis strategy includes: Obtaining the data source of the triggering event; A corresponding preset analysis strategy is determined according to the data source, and whether the triggering event has a backtracking requirement is determined according to the preset analysis strategy.
3. The method according to claim 1, characterized in that The step of recording the environment outside the smart door lock based on the triggering event to obtain a recorded video includes: If the triggering event is an interactive event, starting the recording device of the smart door lock; Acquire multiple image frames captured by the recording device, and monitor personnel activities in the image frames; When there is no human activity in the image frame, the recording device is turned off to obtain a recorded video.
4. The method according to claim 1, characterized in that: The step of recording the environment outside the smart door lock based on the triggering event to obtain a recorded video includes: If the triggering event is an abnormal event, determining the abnormal type of the abnormal event; Determine a corresponding recording strategy according to the abnormality type; The environment outside the smart door lock is recorded based on the recording strategy to obtain a recorded video.
5. The method according to claim 4, characterized in that If the abnormality type is a personnel abnormality type, determining that the recording strategy is a first recording strategy; The step of recording the environment outside the smart door lock based on the recording strategy to obtain a recorded video includes: Detecting the behavior and stay time of people within the preset range of the smart door lock; Analyze the personnel behavior and the stay time to obtain analysis results; If the analysis result is abnormal behavior, the environment outside the door of the smart door lock is recorded until the end of the person's behavior is detected to obtain a recorded video.
6. The method according to claim 4, characterized in that If the abnormality type is a door lock abnormality type, determining that the recording strategy is a second recording strategy; The step of recording the environment outside the smart door lock based on the recording strategy to obtain a recorded video includes: Detecting physical signals of key structures in the smart door lock; Determining whether the smart door lock has a protection risk according to the physical signal; If there is a protection risk, the environment outside the door of the smart door lock is recorded until a preset termination condition is met to obtain a recorded video.
7. The method according to claim 1, characterized in that Before the playback condition corresponding to the triggering event is met, the method further includes: Determining a corresponding preset playback condition according to the triggering event; Obtaining user information pre-configured in the preset playback condition; When an unlocking operation for the smart door lock is detected, target user information is obtained, and the target user information is compared with the user information to obtain a comparison result; If the comparison result shows that the information is consistent, it is determined that the preset playback condition is met.
8. A video recording device for a smart door lock, characterized in that: The device comprises: A detection module, used to detect a triggering event for the smart door lock when the event backtracking function of the smart door lock is enabled; A judgment module, used to judge whether the triggering event has a backtracking requirement based on a preset analysis strategy; A recording module, for recording the environment outside the smart door lock based on the triggering event to obtain a recorded video if the backtracking requirement is met; The control module is used to control the smart door lock to perform the playback operation of the recorded video when the playback condition corresponding to the trigger event is met.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Cited By
Door lock video recording method and system based on event value driving
CN121418549A
An event value-driven door lock recording method and system
CN121418549B