CN-121509698-B - Door lock interested data storage method and system
Abstract
The invention discloses a method and a system for storing interesting data of a door lock, wherein the method comprises the steps of extracting key frames in a video stream according to a mobile alarm event monitored by the door lock, numbering according to time sequence, and sequentially distributing and storing the key frames with different numbers to mobile terminals of different users; detecting the interest degree of a user on a specific key frame according to the interaction behavior of the user on the mobile terminal and generating an interest identifier, determining a frame number range needing to be synchronized according to the detected interest identifier, initiating a frame synchronization request to all relevant mobile terminals, and restoring a complete key frame sequence on all the mobile terminals in a mutual synchronization mode according to key frame data stored by each mobile terminal. By utilizing the embodiment of the invention, a user can conveniently check key data, the door lock and the storage cost are reduced, and convenience and economy are considered.
Inventors
- XI JUAN
- ZHU ZHILING
- SANG SHENGWEI
- TANG JUNXIONG
- DENG YEHAO
- YE FEI
Assignees
- 浙江德施曼科技智能股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260107
Claims (8)
- 1. A method of storing door lock interest data, the method comprising: Extracting key frames in a video stream according to a mobile alarm event monitored by a door lock, numbering the key frames according to time sequence, and sequentially distributing and storing the key frames with different numbers to mobile terminals of different users; Detecting an interest frame, namely detecting the interest degree of a user on a specific key frame and generating an interest identifier according to the interaction behavior of the user on the mobile terminal on the frame; The frame synchronization triggering comprises the steps of determining a frame number range needing to be synchronized according to a detected interest identifier, and initiating frame synchronization requests to all relevant mobile terminals, wherein the frame synchronization triggering comprises the steps of determining the synchronization range, calculating a frame number sequence in a preset range before and after according to the frame numbers in the interest identifier, acquiring terminal addresses, acquiring network addresses of all relevant mobile terminals according to storage information recorded in a door lock database, and distributing synchronization information, wherein the synchronization instruction comprises a frame number range; and the data complete restoration, namely restoring complete key frame sequences on all the mobile terminals in a mutual synchronization mode among the terminals according to key frame data stored by each mobile terminal.
- 2. The method of claim 1, wherein the video frame distributed storage comprises: Key frame extraction, namely extracting an I frame in video coding as a key frame according to a mobile alarm signal in a door lock video stream; generating a unique number for each key frame according to the extraction time sequence; Distributing key frames with different numbers to different user terminals in sequence according to the list sequence of the user terminals for storage; The storage record updating is to record the storage position information of each key frame in a door lock database and a terminal database respectively according to the distribution result; And (3) exception handling, namely adopting a retry or skip mechanism for the unresponsive terminals according to the response conditions of the terminals.
- 3. The method of claim 2, wherein the interest frame detection comprises: The interactive behavior monitoring, namely recording the checking times, the amplifying operation and the stay time according to the operation of checking the key frames on the mobile terminal by a user; judging the interest degree of the user on the current frame according to a preset threshold condition; generating an interest identifier, namely generating the interest identifier comprising a frame number and a video ID when the interest degree exceeds a threshold value; and initiating a synchronization request, namely sending a video synchronization request to the door lock according to the generated interest identification.
- 4. A method according to claim 3, wherein the data integrity restoration comprises: collecting key frame data in a designated number range stored locally according to synchronous instructions received by each mobile terminal; Data exchange, namely exchanging stored key frame data among the mobile terminals according to the obtained terminal address information; Data integration, namely locally integrating each mobile terminal according to the received key frame data to form a complete key frame sequence; and updating the key frame storage record in the local database according to the integration result.
- 5. The method according to claim 4, wherein the method further comprises: the transmission failure processing, namely automatically skipping the terminal to continue to distribute to the next terminal according to the transmission failure response in the key frame distribution process; the terminal offline processing, namely, restarting synchronous operation after the terminal is online by adopting a state subscription mechanism according to the offline state of the terminal; and ensuring the data consistency, namely ensuring that all terminals finally obtain complete key frame data according to the data exchange result among the terminals.
- 6. A storage system for door lock interest data, the system comprising: The storage module is used for the distributed storage of video frames, and extracting key frames in the video stream according to the mobile alarm event monitored by the door lock, numbering the key frames according to time sequence, and sequentially distributing and storing the key frames with different numbers to mobile terminals of different users; The detection module is used for detecting the interest frame, detecting the interest degree of the user on the frame and generating an interest identifier according to the interaction behavior of the user on the mobile terminal on the specific key frame; The frame synchronization triggering module is used for determining a frame number range needing to be synchronized according to the detected interest identifier and initiating frame synchronization requests to all related mobile terminals, wherein the frame synchronization triggering comprises the steps of determining the synchronization range, calculating a frame number sequence in a preset range from front to back according to the frame number in the interest identifier, acquiring a terminal address, acquiring network addresses of all the related mobile terminals according to storage information recorded in a door lock database, and distributing the synchronization information, wherein the synchronization range comprises the steps of transmitting synchronization instructions containing the frame number range to all the related mobile terminals; And the restoring module is used for completely restoring the data, namely restoring a complete key frame sequence on all the mobile terminals in a mode of mutual synchronization among the terminals according to the key frame data stored by each mobile terminal.
- 7. The system according to claim 6, wherein the storage module is specifically configured to: Key frame extraction, namely extracting an I frame in video coding as a key frame according to a mobile alarm signal in a door lock video stream; generating a unique number for each key frame according to the extraction time sequence; Distributing key frames with different numbers to different user terminals in sequence according to the list sequence of the user terminals for storage; The storage record updating is to record the storage position information of each key frame in a door lock database and a terminal database respectively according to the distribution result; And (3) exception handling, namely adopting a retry or skip mechanism for the unresponsive terminals according to the response conditions of the terminals.
- 8. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of claims 1-5.
Description
Door lock interested data storage method and system Technical Field The invention belongs to the technical field of intelligent door locks, and particularly relates to a method and a system for storing interesting data of a door lock. Background The intelligent door lock key video/picture storage is mainly dependent on cloud or door lock local storage at present, and has obvious limitations that cloud storage consumes a large amount of cloud space, a user needs to additionally download the key video for checking, the operation is complex, the door lock local storage depends on hardware media, the space is limited, and the door lock cost is increased. Meanwhile, under a multi-user scene, each user needs to acquire video data respectively, so that high-efficiency sharing of frame data cannot be realized, key fragments focused by the user are difficult to quickly locate and restore, the user is poor in viewing experience and waste in storage resources, and convenience and cost control requirements cannot be met. Disclosure of Invention The invention aims to provide a method and a system for storing interesting data of a door lock, which are used for solving the defects in the prior art, and not only can a user conveniently check key data, but also can reduce the door lock and the storage cost, and can be used for considering convenience and economy. One embodiment of the present application provides a method for storing data of interest of a door lock, the method comprising: Extracting key frames in a video stream according to a mobile alarm event monitored by a door lock, numbering the key frames according to time sequence, and sequentially distributing and storing the key frames with different numbers to mobile terminals of different users; Detecting an interest frame, namely detecting the interest degree of a user on a specific key frame and generating an interest identifier according to the interaction behavior of the user on the mobile terminal on the frame; Frame synchronization triggering, namely determining a frame number range to be synchronized according to the detected interest identification, and initiating a frame synchronization request to all relevant mobile terminals; and the data complete restoration, namely restoring complete key frame sequences on all the mobile terminals in a mutual synchronization mode among the terminals according to key frame data stored by each mobile terminal. Optionally, the video frame distributed storage includes: Key frame extraction, namely extracting an I frame in video coding as a key frame according to a mobile alarm signal in a door lock video stream; generating a unique number for each key frame according to the extraction time sequence; Distributing key frames with different numbers to different user terminals in sequence according to the list sequence of the user terminals for storage; The storage record updating is to record the storage position information of each key frame in a door lock database and a terminal database respectively according to the distribution result; And (3) exception handling, namely adopting a retry or skip mechanism for the unresponsive terminals according to the response conditions of the terminals. Optionally, the interest frame detection includes: The interactive behavior monitoring, namely recording the checking times, the amplifying operation and the stay time according to the operation of checking the key frames on the mobile terminal by a user; judging the interest degree of the user on the current frame according to a preset threshold condition; generating an interest identifier, namely generating the interest identifier comprising a frame number and a video ID when the interest degree exceeds a threshold value; and initiating a synchronization request, namely sending a video synchronization request to the door lock according to the generated interest identification. Optionally, the frame synchronization trigger includes: determining a synchronous range, namely calculating a frame number sequence in a preset range before and after according to the frame numbers in the interest identification; acquiring terminal addresses, namely acquiring network addresses of all relevant mobile terminals according to the storage information recorded in the door lock database; And (3) synchronous message distribution, namely sending synchronous instructions containing the frame number range to all relevant mobile terminals. Optionally, the data complete restoration includes: collecting key frame data in a designated number range stored locally according to synchronous instructions received by each mobile terminal; Data exchange, namely exchanging stored key frame data among the mobile terminals according to the obtained terminal address information; Data integration, namely locally integrating each mobile terminal according to the received key frame data to form a complete key frame sequence; and updating the key frame storage record in the