A video storage method, device, electronic device and storage medium
By detecting the disappearance and appearance times of target objects in video surveillance equipment, acquiring stored data information, and matching it using attribute information, the problem of poor real-time monitoring caused by multiple independently stored videos is solved, and automatic switching and efficient tracking of target objects between different devices are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HANGZHOU HUACHENG SOFTWARE TECH CO LTD
- Filing Date
- 2022-09-23
- Publication Date
- 2026-05-01
AI Technical Summary
Independent storage between multiple video surveillance devices results in poor real-time monitoring and low efficiency in tracking and finding target objects.
By detecting the disappearance and appearance times of target objects in different videos, storage data information is obtained, and when the objects are determined to be the same target, the videos are associated and stored. Matching is performed using attribute information such as face, clothing and gait information to achieve the association and storage of videos.
It enables automatic switching between different video devices, improves the real-time performance of monitoring and the efficiency of target tracking, and ensures high real-time performance and high accuracy of target objects.
Smart Images

Figure CN115658961B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data storage, and in particular to a video storage method, apparatus, electronic device, and storage medium. Background Technology
[0002] With technological advancements, video surveillance equipment is increasingly being used in various aspects of daily life, finding widespread applications in highways, buildings, tourist attractions, and many other locations. A crucial function of video surveillance is monitoring targets within a designated area. In some cases, the target object moves over a wide area, passing through the monitoring zones of multiple devices. For example, the target object might first enter the monitoring zone of device A, move around for a period, and then leave, entering the monitoring zone of device B. Since the video recordings of devices A and B are stored independently, if a user needs to track the target object, when it disappears from the video of device A and enters the monitoring zone of device B, the user must manually search the video channel information of device B to locate the target again. When there are many monitoring devices, the lack of correlation between their video storage makes it impossible to automatically switch between devices during target tracking and retrieval, resulting in poor real-time tracking and low efficiency in target retrieval.
[0003] Currently, no effective solution has been proposed to address the problem of poor real-time monitoring caused by the independent storage of multiple videos in related technologies. Summary of the Invention
[0004] This application provides a video storage method, apparatus, electronic device, and storage medium to at least solve the problem of poor real-time monitoring caused by the independent storage of multiple videos in related technologies.
[0005] In a first aspect, embodiments of this application provide a video storage method.
[0006] In some embodiments, the video storage method includes:
[0007] Detect a first target object within a first video and determine the first stored data information when the first target object disappears from the first video;
[0008] Detect a second target object within the second video, and determine the second stored data information when the second target object appears within the second video;
[0009] If the first target object and the second target object are the same target object, the first video and the second video are associated and stored according to the first stored data information and the second stored data information.
[0010] In some embodiments, the step of detecting a first target object within a first video and determining the first stored data information when the first target object disappears within the first video includes:
[0011] Detect a first target object within the first video and determine the time when the first target object disappears from the first video;
[0012] Based on the first video storage location corresponding to the disappearance time, the first storage data information is determined, and the first storage data information includes the first data index location information corresponding to the first video storage location.
[0013] In some embodiments, the step of detecting a second target object within a second video and determining the second stored data information when the second target object appears within the second video includes:
[0014] Detect a second target object within the second video and determine the time when the second target object appears in the second video;
[0015] The second stored data information is determined based on the second video storage location corresponding to the time of occurrence. The second stored data information includes the second data index location information corresponding to the second video storage location.
[0016] In some embodiments, when the first target object and the second target object are the same target object, associating and storing the first video and the second video based on the first stored data information and the second stored data information includes:
[0017] If the first target object and the second target object are the same target object, the second data index location information is stored in the index extension storage location corresponding to the first data index location information.
[0018] In some embodiments, before associating and storing the first video and the second video based on the first stored data information and the second stored data information when the first target object and the second target object are the same target object, the method further includes:
[0019] Obtain the first attribute information of the first target object and the second attribute information of the second target object, and determine whether the first target object and the second target object are the same target object based on the first attribute information and the second attribute information.
[0020] In some embodiments, obtaining the first attribute information of the first target object and the second attribute information of the second target object, and determining whether the first target object and the second target object are the same target object based on the first attribute information and the second attribute information, includes:
[0021] Obtain at least one of the following information from the first target object: facial information, clothing information, and gait information; and store the at least one piece of information as the first attribute information.
[0022] Obtain the second attribute information of the second target object, wherein the type of the second attribute information corresponds one-to-one with the type of the first attribute information;
[0023] If the second attribute information matches the first attribute information, it is determined that the first target object and the second target object are the same target object.
[0024] In some embodiments, the method further includes:
[0025] If the second attribute information does not match the first attribute information, the second attribute information is stored.
[0026] Secondly, embodiments of this application provide a video storage device.
[0027] In some embodiments, the video storage device includes a first video analysis module, a second video analysis module, and a video-associated storage module:
[0028] The first video analysis module is used to detect a first target object in the first video and determine the first stored data information when the first target object disappears in the first video;
[0029] The second video analysis module is used to detect a second target object in the second video and determine the second stored data information when the second target object appears in the second video;
[0030] The video association storage module is used to associate and store the first video and the second video according to the first storage data information and the second storage data information when the first target object and the second target object are the same target object.
[0031] Thirdly, embodiments of this application provide an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the video storage method as described in the first aspect above.
[0032] Fourthly, embodiments of this application provide a storage medium having a computer program stored thereon, which, when executed by a processor, implements the video storage method as described in the first aspect above.
[0033] Compared to related technologies, the video storage method, apparatus, electronic device, and storage medium provided in this application embodiment detect and determine first stored data information when a first target object disappears in a first video, and detect and determine second stored data information when a second target object appears in a second video. When it is determined that the first target object and the second target object are the same target object, the first video and the second video are associated and stored according to the first stored data information and the second stored data information. This solves the problem of poor real-time monitoring caused by independent storage of multiple videos, realizes automatic switching between different devices during target tracking, and improves the real-time performance and efficiency of target monitoring.
[0034] Details of one or more embodiments of this application are set forth in the following drawings and description to make other features, objects and advantages of this application more readily apparent. Attached Figure Description
[0035] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0036] Figure 1 This is a hardware structure block diagram of a terminal for a video storage method according to an embodiment of this application;
[0037] Figure 2 This is a flowchart of a video storage method according to an embodiment of this application;
[0038] Figure 3 This is a flowchart of another video storage method according to an embodiment of this application;
[0039] Figure 4 This is a flowchart of a video storage method according to a preferred embodiment of this application;
[0040] Figure 5 This is a schematic diagram illustrating the storage location association of a video storage method according to a preferred embodiment of this application;
[0041] Figure 6This is a structural block diagram of a video storage device according to an embodiment of this application. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of this application clearer, the application is described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the application. All other embodiments obtained by those skilled in the art based on the embodiments provided in this application without inventive effort are within the scope of protection of this application. Furthermore, it is understood that although the efforts made in such a development process may be complex and lengthy, for those skilled in the art related to the content disclosed in this application, modifications to design, manufacturing, or production based on the technical content disclosed in this application are merely conventional technical means and should not be construed as insufficient disclosure of the content of this application.
[0043] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment that is mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0044] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms “a,” “an,” “an,” “the,” and similar words used in this application do not indicate quantity limitation and may indicate singular or plural. The terms “comprising,” “including,” “having,” and any variations thereof used in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units not listed, or may include other steps or units inherent to these processes, methods, products, or devices. The terms “connected,” “linked,” “coupled,” and similar words used in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. “Multiple” used in this application means two or more. “And / or” describes the relationship between related objects, indicating that three relationships may exist; for example, “A and / or B” can represent: A alone, A and B simultaneously, and B alone. The terms “first,” “second,” “third,” etc., used in this application are merely to distinguish similar objects and do not represent a specific ordering of the objects.
[0045] The method embodiments provided in this example can be executed on a terminal, computer, or similar computing device. Taking running on a terminal as an example, Figure 1 This is a hardware structure block diagram of the terminal for the video storage method according to an embodiment of the present invention. For example... Figure 1 As shown, a terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. Optionally, the terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the terminal described above. For example, the terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0046] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the video storage method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0047] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0048] This application provides a video storage method. Figure 2 This is a flowchart of a video storage method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:
[0049] Step S201: Detect the first target object in the first video and determine the first stored data information when the first target object disappears in the first video.
[0050] The first video can be the monitoring video corresponding to the video channel of the first monitoring device. A first target object is detected and tracked in the first video. When the first target object disappears from the first video, first stored data information related to the video's storage location at that time is recorded. In this embodiment, the monitoring device can be a video surveillance camera, a video doorbell, a robotic vacuum cleaner, etc.
[0051] Step S202: Detect the second target object in the second video and determine the second stored data information when the second target object appears in the second video.
[0052] The second video can be the monitoring video corresponding to the video channel of the second monitoring device. The second target object is detected and tracked in the second video. When the second target object appears in the second video, the second storage data information related to the video storage location at this time is recorded.
[0053] Step S203: If the first target object and the second target object are the same target object, the first video and the second video are associated and stored according to the first stored data information and the second stored data information.
[0054] When it is determined that the first target object and the second target object are the same target object, the first video and the second video are associated and stored based on the first stored data information when the target object disappears in the first video and the second stored data information when it appears in the second video.
[0055] Through the above steps, when the same target object appears successively in the monitoring areas of different monitoring devices, this embodiment of the application records the first stored data information when the target object disappears in the monitoring video corresponding to the video channel of the first monitoring device, and the second stored data information when the target object appears in the monitoring video corresponding to the video channel of the second monitoring device. Based on the first and second stored data information, the monitoring videos corresponding to the two video monitoring devices are associated and stored. In this way, it is equivalent to associating the scene where the target object disappears in the first video and the scene where it appears in the second video. When tracking the target object, automatic switching can be performed between different video monitoring devices according to the correlation of video storage, that is, switching from the video channel corresponding to the first video monitoring device to the video channel corresponding to the second video monitoring device. This solves the problem of poor real-time monitoring caused by independent storage of multiple videos and improves the real-time performance and efficiency of target monitoring.
[0056] In some embodiments, step S201 includes:
[0057] Step S2011: Detect the first target object in the first video and determine the time when the first target object disappears in the first video.
[0058] The detection is performed within the first video. After the first target object is detected, continuous monitoring continues until the target object disappears from the first video. The disappearance time is then confirmed and recorded.
[0059] Step S2012: Determine the first stored data information based on the first video storage location corresponding to the disappearance time. The first stored data information includes the first data index location information corresponding to the first video storage location.
[0060] The first video is recorded and stored in real time according to time, and each storage location within the storage space has corresponding data index location information. The data index location information is used to record video recording summaries and the storage location of the video recordings. In this embodiment, the first storage data information is determined based on the first video storage location corresponding to the disappearance time. The first storage data information includes the first data index location information corresponding to the first video storage location. It is worth mentioning that all embodiments of this application are applicable to various storage methods, including but not limited to block storage, file storage, and object storage, and are applicable to storage spaces, including but not limited to front-end storage, back-end storage, and cloud storage.
[0061] Through the above steps, this embodiment of the application determines the corresponding first data index location information based on the first video storage location at the moment when the first target object disappears in the first video, accurately locates the association time (the moment when the first target object disappears) and association storage location of the first video that needs to be associated and stored, improves the continuity and smoothness of the associated video, and further improves the real-time performance and efficiency of monitoring.
[0062] In some embodiments, step S202 includes:
[0063] Step S2021: Detect the second target object in the second video and determine the time when the second target object appears in the second video.
[0064] The detection is performed within the second video. When the second target object is detected, the corresponding occurrence time is confirmed and recorded.
[0065] Step S2022: Determine the second stored data information based on the second video storage location corresponding to the occurrence time. The second stored data information includes the second data index location information corresponding to the second video storage location.
[0066] Similar to the previous embodiment, the second video is recorded and stored in real time according to time, and each storage location within the storage space has corresponding data index location information. The data index location information is used to record video recording summaries and the storage location of the video recordings. In this embodiment, the second storage data information is determined based on the storage location of the second video corresponding to the time of occurrence. The second storage data information includes the second data index location information corresponding to the storage location of the second video.
[0067] Through the above steps, this embodiment of the application determines the corresponding second data index location information based on the storage location of the second video at the time when the second target object appears in the second video, accurately locates the association time (the time when the second target object appears) and association storage location of the second video that needs to be associated and stored, improves the continuity and smoothness of the associated video, and further improves the real-time performance and efficiency of monitoring.
[0068] In some embodiments, step S203 includes:
[0069] Step S2031: If the first target object and the second target object are the same target object, store the second data index location information in the index extension storage location corresponding to the first data index location information.
[0070] In this embodiment, each data index location information has a corresponding index extension storage location. That is, each video storage location has a secondary index, which can be used to find and locate the storage location to associate it with the corresponding video recording. When it is determined that the first target object and the second target object are the same target object, the second data index location information is stored in the index extension storage location corresponding to the first data index location information. Since there is a one-to-one correspondence between the video storage location and the data index information, it can be seen that the index extension storage location corresponding to the first video storage location at the time the target object disappears stores the second video storage location at the time the target object appears. This realizes real-time association between the first video and the second video based on the target object, further improving the real-time performance and efficiency of target monitoring.
[0071] In some embodiments, the method further includes the following steps prior to step S203:
[0072] Step S200: Obtain the first attribute information of the first target object and the second attribute information of the second target object, and determine whether the first target object and the second target object are the same target object based on the first attribute information and the second attribute information.
[0073] By using the attribute information of the target object, it can be determined whether the first target object and the second target object are the same target object, and the judgment result has a high accuracy rate.
[0074] In some embodiments, step S200 includes:
[0075] Step S2001: Obtain at least one of the following information from the first target object: facial information, clothing information, and gait information, and store the at least one piece of information as the first attribute information.
[0076] Upon detecting the appearance of a first target object in the first video, the system identifies and analyzes the target object's face, clothing, gait, etc., to obtain at least one of the following: facial information, clothing information, and gait information. This information is then stored as the first attribute information. Preferably, a unique target identifier can be generated based on the first attribute information to represent different target objects, and this identifier is stored in a global target object list. Furthermore, the global target object list can also store the target object's disappearance time in the first video, its first data index position information, and the corresponding extended index storage location; its appearance time in the second video and its second data index position information; and the target object's appearance time in the first video and its corresponding data index position.
[0077] If the target object disappears in the first video and reappears in the second video, it may have undergone operations such as makeup or changing clothes. Therefore, this application embodiment also performs gait analysis to increase the accuracy of target object recognition.
[0078] Step S2002: Obtain the second attribute information of the second target object, wherein the type of the second attribute information corresponds one-to-one with the type of the first attribute information.
[0079] Once a second target object is detected within the second video, the second attribute information of the second target object is obtained, which corresponds one-to-one with the type of the first attribute information.
[0080] Step S2003: If the second attribute information matches the first attribute information, determine that the first target object and the second target object are the same target object.
[0081] The second attribute information is compared with the first attribute information to determine if they match. If they match, the first target object and the second target object are determined to be the same target object. Those skilled in the art can use existing matching algorithms to determine if the second attribute information matches the first attribute information; this application does not impose specific limitations. If the target object appears successively in the videos of multiple monitoring devices, attribute information matching analysis is performed on the multiple monitoring devices. If the device with the highest matching degree with the first attribute information is found, the video is associated and stored. If the matching degree with the first attribute information is low for both, the target objects of the two video channels with the highest matching degree are obtained and then associated and stored. If subsequent analysis determines that the target object of one video channel is the first target object, the index extension storage location corresponding to the first data index location information of the first video only retains the data index location information of that video channel, and the data index location information of the other video is deleted and no longer associated and stored. For ease of maintenance, the global target object list can only store the disappearance time, data index location information, and corresponding index extension storage location of the video channel where the target object last disappeared.
[0082] Through the above steps, this application embodiment uses the degree of matching of attribute information such as the target object's face information, clothing information, and gait information to determine whether the first target object and the second target object are the same, making the judgment result more accurate and reliable, and improving the accuracy and efficiency of target monitoring.
[0083] This application also provides a video storage method. Figure 3 This is a flowchart of another video storage method according to an embodiment of this application, such as... Figure 3 As shown, based on steps S201, S202, S200, and S203 provided in the above embodiments, this process further includes the following steps:
[0084] Step S301: If the second attribute information does not match the first attribute information, store the second attribute information.
[0085] If the second attribute information does not match the first attribute information, it indicates that the second target object is different from the first target object. In this case, the second attribute information is stored and can be used for subsequent processing. For example, if the second target object disappears in the second video and then appears in the third video, the second and third videos can be associated and stored. Thus, the embodiments of this application enable the entire video surveillance system to have high real-time performance, high accuracy, and high efficiency in tracking each target object.
[0086] The embodiments of this application will be described and illustrated below through preferred embodiments.
[0087] Figure 4 This is a flowchart of a video storage method according to a preferred embodiment of this application. Figure 5 This is a schematic diagram illustrating the storage location association of a video storage method according to a preferred embodiment of this application. For example... Figure 4 and Figure 5 As shown, the method includes the following steps:
[0088] Step S401: Detect the first target object in the first video, determine the disappearance time of the first target object in the first video, and determine the first stored data information based on the first video storage location corresponding to the disappearance time. The first stored data information includes the first data index location information corresponding to the first video storage location.
[0089] Preferably, the first video is captured by a video surveillance camera. According to this preferred embodiment, the storage environment is defined as disk number: block number: secondary index number, and thus, it is assumed that... Figure 5 The first data index location information shown is C1:B1:index50.
[0090] Step S402: Detect the second target object in the second video, determine the time when the second target object appears in the second video, and determine the second stored data information based on the storage location of the second video corresponding to the time of appearance. The second stored data information includes the second data index location information corresponding to the storage location of the second video.
[0091] Continuing with the storage environment definition from the previous step, we can assume the following: Figure 5 The second data index location information shown is C20:B9:index1.
[0092] Step S403: Obtain the face information, clothing information and gait information of the first target object, and store the face information, clothing information and gait information of the first target object as first attribute information.
[0093] The face information, clothing information, and gait information of the first target object are obtained as the first attribute information, and the obtained first attribute information is stored in the global object list.
[0094] Step S404: Obtain the face information, clothing information and gait information of the second target object, and determine the face information, clothing information and gait information of the second target object as the second attribute information.
[0095] The face information, clothing information, and gait information of the second target object are obtained as the second attribute information, and the first attribute information corresponding to the first target object is found in the global object list.
[0096] Step S405: Determine whether the first target object and the second target object are the same target object based on the degree of matching between the second attribute information and the first attribute information.
[0097] In this preferred embodiment, the calculated matching degree ranges from 0 to 1. When the matching degree of two attribute information is greater than or equal to 0.9, the corresponding two target objects are considered to be the same target object. Assuming that the calculated matching degree between the second attribute information and the first attribute information is 0.95, then the first target object and the second target object are determined to be the same target object.
[0098] Step S406: If the first target object and the second target object are the same target object, store the second data index location information in the index extension storage location corresponding to the first data index location information.
[0099] When the first target object and the second target object are the same target object, such as Figure 5 As shown, the second data index location information (C20:B9:index1) will be stored in the index extension storage location corresponding to the first data index location information (C1:B1:index50).
[0100] Furthermore, in the preferred embodiment of this application, after associating and storing the first and second videos, target object tracking and target object search functions can be performed. During target object tracking, the channel corresponding to the first video is initially fixed for display, while other channels are rotated. When a target object disappears from the first video and reappears in the second video, this application calculates the playback time from the object's disappearance to its reappearance, and determines whether the playback time exceeds a preset time. If it does not exceed the preset time, it automatically jumps to the corresponding channel of the second video based on storage association, eliminating the need for manual search. At this time, the corresponding channel of the second video replaces the corresponding channel of the first video for fixed display, making target object tracking continuous, improving real-time performance and efficiency. Furthermore, it can be applied to specific scenarios based on subsequent data analysis. For example, if analysis shows that the vast majority of target objects appear sequentially on a certain route, on-site personnel can be deployed at certain key route nodes and time periods of the target object. After the video recording is stored, when searching for the target object later, this application can automatically switch video channels for searching based on storage association, and skip video segments where no target object appears, improving search efficiency. In addition, the second video channel can also record the storage location of the target object at the time of its appearance and / or disappearance in the first video channel, so multiple search methods such as forward search, reverse search, and skip search can be performed.
[0101] It should be noted that the steps shown in the above process or in the flowchart of the accompanying figures 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 may be executed in a different order than that shown here.
[0102] This embodiment also provides a video storage device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the terms "module," "unit," "subunit," etc., can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0103] Figure 6 This is a structural block diagram of a video storage device according to an embodiment of this application, such as... Figure 6 As shown, the device includes a first video analysis module 10, a second video analysis module 20, and a video association storage module 30.
[0104] The first video analysis module 10 is used to detect a first target object in the first video and determine the first stored data information when the first target object disappears in the first video;
[0105] The second video analysis module 20 is used to detect a second target object in the second video and determine the second stored data information when the second target object appears in the second video;
[0106] The video association storage module 30 is used to associate and store the first video and the second video according to the first storage data information and the second storage data information when the first target object and the second target object are the same target object.
[0107] It should be noted that the above modules can be functional modules or program modules, and can be implemented through software or hardware. For modules implemented through hardware, the above modules can reside in the same processor; or the above modules can be located in different processors in any combination.
[0108] This embodiment also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0109] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0110] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0111] Detect a first target object within a first video and determine the first stored data information when the first target object disappears from the first video;
[0112] Detect a second target object within the second video, and determine the second stored data information when the second target object appears within the second video;
[0113] If the first target object and the second target object are the same target object, the first video and the second video are associated and stored according to the first stored data information and the second stored data information.
[0114] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.
[0115] Furthermore, in conjunction with the video storage methods described in the above embodiments, this application embodiment can provide a storage medium for implementation. This storage medium stores a computer program; when executed by a processor, the computer program implements any of the video storage methods described in the above embodiments.
[0116] Those skilled in the art should understand that the technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments have been described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0117] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0118] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A video storage method, characterized in that, Includes the following steps: Detect a first target object within the first video and determine the time when the first target object disappears from the first video; Based on the first video storage location corresponding to the disappearance time, first storage data information is determined, and the first storage data information includes first data index location information corresponding to the first video storage location; Detect a second target object within the second video and determine the time when the second target object appears in the second video; Based on the second video storage location corresponding to the time of occurrence, the second storage data information is determined, and the second storage data information includes the second data index location information corresponding to the second video storage location; When the first target object and the second target object are the same target object, the second data index location information is stored in the index extension storage location corresponding to the first data index location information according to the first storage data information and the second storage data information, so that the first video and the second video are associated and stored.
2. The video storage method according to claim 1, characterized in that, When the first target object and the second target object are the same target object, before associating and storing the first video and the second video based on the first stored data information and the second stored data information, the method further includes: Obtain the first attribute information of the first target object and the second attribute information of the second target object, and determine whether the first target object and the second target object are the same target object based on the first attribute information and the second attribute information.
3. The video storage method according to claim 2, characterized in that, The step of obtaining the first attribute information of the first target object and the second attribute information of the second target object, and determining whether the first target object and the second target object are the same target object based on the first attribute information and the second attribute information, includes: Obtain at least one of the following information from the first target object: facial information, clothing information, and gait information; and store the at least one piece of information as the first attribute information. Obtain the second attribute information of the second target object, wherein the type of the second attribute information corresponds one-to-one with the type of the first attribute information; If the second attribute information matches the first attribute information, it is determined that the first target object and the second target object are the same target object.
4. The video storage method according to claim 3, characterized in that, The method further includes: If the second attribute information does not match the first attribute information, the second attribute information is stored.
5. A video storage device for implementing the video storage method as described in any one of claims 1 to 4, characterized in that, It includes a first video analysis module, a second video analysis module, and a video association storage module: The first video analysis module is used to detect a first target object in the first video and determine the first stored data information when the first target object disappears in the first video; The second video analysis module is used to detect a second target object in the second video and determine the second stored data information when the second target object appears in the second video; The video association storage module is used to associate and store the first video and the second video according to the first storage data information and the second storage data information when the first target object and the second target object are the same target object.
6. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the video storage method according to any one of claims 1 to 4.
7. A storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to execute the video storage method according to any one of claims 1 to 4 when it runs.
Citation Information
Patent Citations
Video collection generation method and device, electronic equipment and storage medium
CN110418076A
Trajectory display method and device, computer equipment and storage medium
CN112511864A