Data storage method, video system, device, medium, product, and storage system

The method addresses the cost and duration balance in video data storage by applying conversion rules to compress video data based on size and time thresholds, enabling longer storage durations within limited space while ensuring factual recovery.

WO2025050648A1PCT designated stage expired Publication Date: 2025-03-13HUANG JIANBANG
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/087636
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-11-18
Filing Date
2024-04-12
Publication Date
2025-03-13

AI Technical Summary

Technical Problem

Current video data storage methods face challenges in balancing storage duration and cost, as they often require increasing storage space to extend video retention time, leading to high costs and data loss due to overwrite mechanisms.

Method used

A data storage method that determines video data and applies specific conversion rules based on conditions such as size and time thresholds, reducing frame rate, resolution, or extracting specific frames or regions to compress data without affecting factual recovery, allowing for longer storage durations within limited space.

Benefits of technology

This approach effectively extends video data storage time while reducing storage space requirements, maintaining the ability to recover historical data without excessive cost increases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024087636_13032025_PF_FP_ABST
    Figure CN2024087636_13032025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present application are a data storage method, a video system, a device, a medium, a product, and a storage system. The method comprises: determining first video data and a transfer condition; when the first video data meets the transfer condition, determining a corresponding transfer rule according to the number of times the first video data is transferred; and according to the transfer rule, storing second video data, which is obtained by processing the first video data, in a specified transfer space. In the solution, according to a storage duration and / or a storage space footprint of video data, first video data, which meets a certain transfer condition, is processed according to a transfer rule, and after the processing is performed, obtained second video data occupies a smaller storage space, such that more storage spaces are released, and the requirement for long-term storage of historical video data is also met.
Need to check novelty before this filing date? Find Prior Art

Description

Data storage method, video system, device, medium, product and storage system

[0001] Cross-references

[0002] This application claims priority from the Chinese patent applications listed in the table below, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present application relates to the field of computer technology, and in particular to data storage methods, video systems, devices, media, products, and storage systems. Background Art

[0004] Existing video data storage uses an overwrite mechanism. For example, if data is stored for seven days, the video data from the first day will be overwritten on the eighth day (or deleted and then written over to the eighth day), resulting in the loss of the video data from the first day. If the storage period needs to be extended, additional storage space must be added, which increases storage costs.

[0005] Because video data plays an important role in restoring the truth, it is impossible to restore the facts when the data is overwritten due to time. If the video storage period is extended, more storage space is required, resulting in higher storage costs. This makes it difficult to strike a reasonable balance between extending video data storage period and data storage costs.

[0006] Summary of the Invention

[0007] To solve or improve the problems existing in the prior art, the embodiments of the present application provide a data storage method, a video system, a device, a medium, a product, and a storage system.

[0008] In a first aspect, in one embodiment of the present application, a data storage method is provided. Applied to a storage device, the method comprises:

[0009] determining first video data and transfer conditions;

[0010] When the first video data satisfies the transfer condition, determining a corresponding transfer rule according to the number of times the first video data is transferred;

[0011] The second video data obtained by processing the first video data according to the transfer rule is stored in the designated transfer space.

[0012] Optionally, the transfer conditions include:

[0013] When the data size of the first video data exceeds the storage space threshold; and / or,

[0014] When the time length of the first video data exceeds a time length threshold.

[0015] Optionally, the transfer rules include:

[0016] reducing the frame rate of the first video data; and / or,

[0017] reducing the resolution of the first video data; and / or,

[0018] capturing a specific area of ​​the first video data; and / or,

[0019] intercepting a specific frame of picture from the first video data; and / or,

[0020] intercepting a specific frame of the first video data and reducing the resolution; and / or,

[0021] reducing the color range of the first video data or intercepting a specific frame of the first video data; and / or,

[0022] The first video data is converted into text description.

[0023] Optionally, the processing the first video data according to the transfer rule includes:

[0024] Processing the first video data that matches the specific time period or does not match the specific time period according to the transfer rule; and / or,

[0025] The first video data that meets the specific condition or does not meet the specific condition is processed according to the transfer rule.

[0026] Optionally, the processing according to the transfer rule for the first video data that meets the specific condition or does not meet the specific condition includes:

[0027] If a target object is identified in multiple video frames, the multiple video frames containing the target object are selectively discarded or the resolution is selectively reduced or a specific area is captured; and / or,

[0028] If a change in the content of a video frame is detected in consecutive video frames, multiple video frames that have not changed are selectively discarded, or the resolution is selectively reduced, or a specific area of ​​the image is captured.

[0029] Optionally, if a target object is identified in multiple video frames, selectively reducing the resolution of the multiple video frames containing the target object or selecting to capture a specific area of ​​the video frame includes:

[0030] If the target object is identified in multiple video frames, splitting the first video data into multiple video files;

[0031] The original resolution of the video files containing clear features of the target object among the multiple video files is maintained, and the resolution of the remaining video files among the multiple video files is reduced or specific area images are selected to be captured.

[0032] Optionally, if a change in the content of a video frame is detected in consecutive video frames, the resolution of multiple unchanged video frames is selectively reduced or a specific area is captured, including:

[0033] If a change in video content is identified in consecutive video frames, splitting the first video data into multiple video files;

[0034] The original resolution of the video files whose contents have changed among the multiple video files is maintained, and the resolution of the remaining video files among the multiple video files is reduced or a specific area is selected to be captured.

[0035] Optionally, storing the second video data obtained by processing the first video data according to the transfer rule in a designated transfer space includes:

[0036] If the first video data is stored in the original storage space, the first video data is processed according to the transfer rule to obtain the second video data;

[0037] The second video data is stored in a designated transfer space; wherein the original storage space and the designated transfer space are in a superior-subordinate relationship.

[0038] Optionally, the relationship between the original storage space and the designated dump space includes at least one of a linear relationship, a tree relationship, and a graph relationship.

[0039] In a second aspect, an embodiment of the present application provides a data storage method, the method comprising:

[0040] Determining a plurality of first video data provided by a plurality of video acquisition devices, and storing the plurality of first video data using different transfer rules according to similarities of the plurality of first video data;

[0041] When the plurality of first video data satisfy the transfer condition, determining corresponding transfer rules according to the number of times the plurality of first video data are transferred;

[0042] The plurality of second video data obtained by processing the plurality of first video data according to the transfer rule are respectively stored in the designated transfer space.

[0043] In a third aspect, in one embodiment of the present application, a video system is provided, including:

[0044] A video acquisition device, configured to continuously acquire video data, wherein the video data includes the acquired first video data;

[0045] A data storage device is used to determine first video data and a transfer condition; when the first video data meets the transfer condition, determine a corresponding transfer rule based on the number of times the first video data is transferred; and store second video data obtained by processing the first video data according to the transfer rule in a designated transfer space.

[0046] In a fourth aspect, in one embodiment of the present application, an electronic device is provided, including a memory and a processor; wherein,

[0047] The memory is used to store programs;

[0048] The processor is coupled to the memory and is configured to execute the program stored in the memory to implement the method described in the first aspect or the method described in the second aspect.

[0049] In the fifth aspect, in one embodiment of the present application, a non-transitory machine-readable storage medium is provided, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor executes the data storage method described in the first aspect or the data storage method described in the second aspect.

[0050] In a sixth aspect, in one embodiment of the present application, a computer product is provided, wherein the computer product is used to execute the data storage method described in the first aspect, or the data storage method described in the second aspect.

[0051] In a seventh aspect, in one embodiment of the present application, a storage system is provided, wherein the storage system is used to execute the data storage method described in the first aspect, or the data storage method described in the second aspect.

[0052] The technical solution provided by the embodiment of the present application determines first video data and a transfer condition; when the first video data meets the transfer condition, a corresponding transfer rule is determined based on the number of times the first video data has been transferred; and second video data obtained after processing the first video data according to the transfer rule is stored in a designated transfer space. Through the above solution, the first video data that meets certain transfer conditions is processed according to the transfer rule based on the storage duration of the video data and / or the amount of storage space occupied. After processing, the second video data obtained occupies less storage space, freeing up more storage space while meeting the need for long-term preservation of historical video data. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0054] FIG1 is a schematic diagram of a flow chart of a data storage method provided in an embodiment of the present application;

[0055] FIG2a is a schematic diagram of a storage space structure illustrated in this application;

[0056] FIG2 b is a schematic diagram of a video data storage method illustrated in an embodiment of the present application;

[0057] FIG3 is a schematic diagram of another video data storage method according to an embodiment of the present application;

[0058] FIG4 is a schematic diagram of another video data storage method according to an embodiment of the present application;

[0059] Figures 5a, 5b, and 5c are schematic diagrams of storage space relationships provided in an embodiment of the present application;

[0060] FIG6 is a flow chart of another data storage method provided in an embodiment of the present application;

[0061] FIG7a is a schematic structural diagram of a data storage device provided in an embodiment of the present application;

[0062] FIG7 b is a schematic structural diagram of another data storage device provided in an embodiment of the present application;

[0063] FIG8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.

[0064] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. DETAILED DESCRIPTION

[0065] In the prior art, video data storage utilizes an overwrite mechanism. For example, if data is stored for seven days, the first day's video data will be overwritten (or deleted and then written over) on the eighth day, resulting in the loss of the first day's video data. Extending the storage period requires additional storage space, which increases storage costs. It should be noted that overwrite storage mechanisms can include local storage and remote storage. Local storage stores data locally on the video device, such as a DVR (Digital Video Recorder), while remote storage stores data on a server, such as an NVR (Network Video Recorder), NVS, VCS, or VCN. If the storage area is set to store only seven days of data, on the eighth day, the first day's data will be deleted (or overwritten) and the eighth day's data will be written. The ninth day's data will then delete (or overwrite) the second day's data, and so on. As a result, only the most recent seven days of data are stored, and theoretically, data older than seven days cannot be stored. It should be noted that the inability to save data for more than 7 days is theoretical reasoning. In fact, some video data that has not been overwritten can be recovered through data recovery.

[0066] Furthermore, existing video data storage technologies also suffer from long-term idle storage space. Specifically, a portion of the storage space is used to cyclically store video data, while the remaining portion remains idle and is never effectively utilized. For example, there may not be enough space to store a full day (or hour). This is because some videos are typically stored (covered) for a fixed period of time (e.g., one day, one hour, etc.), typically storing one video file per day or one video file per hour. Therefore, the space that is insufficient for a full storage period is left idle for a long time.

[0067] When storing video data, existing video data storage technologies primarily prioritize visual quality. For example, video frame rates are typically 25 or 30 FPS to achieve smooth visuals, and resolutions are typically 1080P to achieve clear visuals capable of displaying details (such as textures on skin and objects). However, for video data used to restore facts, smooth or clear video is not necessary (or reliant on it).

[0068] Therefore, a solution is needed that can store more video data for a longer period of time without occupying more storage space.

[0069] The technical solutions implemented in this application will be explained below with reference to specific embodiments.

[0070] FIG1 is a flow chart of the data storage method provided by an embodiment of the present application. The execution subject of the method can be a storage device in the video system, which can be a local storage device, a cloud storage device, or a local storage device and a cloud storage device. As can be seen from FIG1, the method specifically includes the following steps:

[0071] Step 101: Determine first video data and transfer conditions.

[0072] Step 102: When the first video data meets the transfer condition, a corresponding transfer rule is determined according to the number of times the first video data is transferred.

[0073] Step 103: storing the second video data obtained by processing the first video data according to the transfer rule into a designated transfer space.

[0074] It should be noted that the first video data mentioned here can be the original, latest and unprocessed video data collected by the video acquisition device, such as camera data stored in the form of a video file; or camera data stored in the device memory; or camera data stored in the server. It can also be video data obtained after being processed by the transfer rule at least once. The more times the transfer rule is used for processing, the smaller the video data is compressed. In other words, after being processed multiple times by the transfer rule, the video data occupies less storage space. If the first video data is original video data, it is stored in the original storage space. If the first video data is video data that has been processed by at least one transfer, it will be stored in the corresponding storage space other than the original storage space. In the following embodiments, the first video data is used as an example of original video data.

[0075] As shown in Figure 2a, a schematic diagram of the storage space structure illustrated in this application. As can be seen from Figure 2a, in a video storage system, a storage device can store multiple sets of video data at the same time. The first video data (the video data from the 8th to the 13th day in Figure 2a) is stored in the original storage space, followed by a hierarchical storage area, which can be a portion of the space divided from the original storage space, or the remaining storage space in the storage device, or the storage space of other storage media (for example, a cloud storage device). As can be seen from Figure 2a, the storage space occupied by the hierarchical storage area is significantly smaller than the original storage space (equivalent to the size of the storage space of one day). The second video data (that is, the original video from the 1st to the 7th day in Figure 2a, which has been deleted in the original storage space) after the transfer rule compression process is stored in the hierarchical storage area. It can be seen that after the transfer process, the integrity of the video data is guaranteed (the video data from the 1st to the 13th day can be stored continuously) while reducing the occupancy of the storage space. It should be noted that when allocating storage space in storage devices (including local devices, cloud storage devices, servers, etc.), the original storage space may be larger than the transfer space, or the original storage space may be smaller than the transfer space. Of course, the sizes of the two storage spaces can also be dynamically adjusted according to actual application requirements.

[0076] In actual applications, there can be many transfer spaces, and there can also be many video data stored simultaneously in the storage device. For example, the first video data, the second video data, the third video data... the Nth video data can be stored simultaneously. Among them, the second video data is the video data obtained after the first video data is processed according to the corresponding transfer rules, and the first transfer space (that is, the designated transfer space) occupied by the second video data is smaller than the original storage space occupied by the first video data. The third video data is the video data obtained after the second video data is processed according to the corresponding transfer rules, and the second storage space occupied by the third video data is smaller than the first transfer space occupied by the second video data. By analogy, video data that has been transferred multiple times according to different transfer rules can be continuously stored.

[0077] The storage spaces corresponding to each video data are: original storage space, first transfer space (that is, designated transfer space), third transfer space...Nth transfer space. As mentioned above, after the first video data is processed by different transfer rules, it is successively stored in the first transfer space, second transfer space, third transfer space...Nth transfer space. After the first video data is transferred (such as transferred to the first transfer space), the original storage space originally occupied by it is released (such as the original file that has been transferred has been deleted) and is used to store the newly captured video data of the video device. Similarly, at a certain moment, the video data in the original storage space, the first transfer space, the second transfer space, the third transfer space, and the Nth transfer space have temporal continuity.

[0078] For example, FIG2b is a schematic diagram of a video data storage method illustrated in an embodiment of the present application. As can be seen from FIG2b, the storage space is grouped and graded, and each group of the original storage space can store 7 days of video data, of which the data of the first 6 days is stored normally, and the first transfer space (that is, the first-level storage area) of the last day (that is, the 7th day) is used to store the 6 days of video data after the first transfer rule processing and the remaining second storage space (that is, the second-level storage area), and the 6 days of video data after the second transfer rule processing is stored in the second-level storage area. If there are N levels of storage space, storage is performed by analogy. The video data stored in storage areas of different levels has temporal continuity, thereby better meeting the user's needs to retrieve video data within a larger time range.

[0079] Through this approach, within limited storage space, video data can be grouped in chronological order (each group is a video file or image within a certain period of time) and compressed according to transfer rules. Some video data or parameters related to the pursuit of visual effects that do not affect the ability to restore the facts are discarded or reduced, so that the compressed video data occupies less storage space. This allows for the storage of more video data or video frames within limited storage space.

[0080] In one or more embodiments of the present application, when the first video data is data that has not been processed by the transfer rules, the transfer conditions include: when the data size of the first video data exceeds the storage space threshold; and / or when the time length of the first video data exceeds the time length threshold.

[0081] In actual application, different transfer conditions can be set as needed. For example, a storage space threshold value (for example, a 2G storage space threshold value) can be set. When the size of the storage space occupied by the first video data collected exceeds 2G, it is indicated that it needs to be compressed according to the transfer rules. If the size of a single video file is 2G, then specifically: before the 2G video data is deleted (or before it is overwritten), the video data content is first read, and the video data is compressed according to the specified transfer rules, and then the processed video data is stored in other smaller specified transfer spaces (the specified storage space can be a part of the 2G storage space, or it can be other storage spaces different from the 2G storage space), and the 2G storage space currently occupied is released for storing the latest collected video data.

[0082] If there are multiple video files stored in a folder with a space of 2G, then when overwriting, the 2G space will not be deleted or overwritten as a whole at once, but the video file will be deleted or overwritten as the smallest management unit. The earliest stored video file (single or multiple) will be read first, and the video data of the video file will be compressed according to the specified transfer rules, and then the processed video data will be stored in other smaller specified transfer spaces (the specified storage space can be a part of the 2G storage space or other storage space different from the 2G storage space), and the storage space currently occupied by the video file will be released to store the latest collected video data.

[0083] It should be noted that when managing video files, a video file (single or multiple) is typically used as the smallest unit (or video slice file). That is, when storing or transferring, the storage and transfer tasks are performed on a single video file as a whole. A video file is stored, compressed, and processed in the form of video data. Furthermore, a duration threshold can be set as needed. For example, if the duration threshold is set to 6 days, then after the video device has collected video data for the 6th day, the previously occupied data storage space will be released to store the newly collected video data (e.g., the 7th day) because the previous data (e.g., the 1st day) will be overwritten (or deleted). At this point, the video data needs to be compressed according to the transfer rules. Specifically, before the previous video data is deleted (or overwritten), the video data content is first read, and the video data is compressed according to the specified transfer rules. The processed video data is then stored in another designated transfer space. This designated storage space can be a portion of the 2G storage space, a local storage space other than the 2G storage space, or a storage space on another storage medium (e.g., network storage). Of course, you can also adjust the transfer conditions as needed, or apply a combination of multiple transfer conditions. For example, during important periods, you can increase the storage space threshold or the duration threshold. The above thresholds are only examples and are not limiting.

[0084] It should be noted that the compression action of this application is the operation of transferring the specific data of the video (or picture) through the transfer rules.

[0085] In one or more embodiments of the present application, when executing the transfer rules, the principle followed is to downgrade data related to enhancing visual effects in the video data while retaining data related to restoring the facts. The data related to enhancing visual effects herein can be understood as: video frame rate, video resolution, etc. The data related to restoring the facts herein can be understood as key video frames, certain key content contained in the video frames, etc.

[0086] Specifically, the transfer rules may include:

[0087] reducing the frame rate of the first video data; and / or,

[0088] reducing the resolution of the first video data; and / or,

[0089] capturing a specific area of ​​the first video data; and / or,

[0090] intercepting a specific frame of picture from the first video data; and / or,

[0091] intercepting a specific frame of the first video data and reducing the resolution; and / or,

[0092] reducing the color range of the first video data or intercepting a specific frame of the first video data; and / or,

[0093] The first video data is converted into text description.

[0094] It should be noted that when selecting a transfer rule, the selection can be based on the number of transfers or the storage space to be stored or released. For example, when transferring for the first time or when the video is to be stored in storage space A1 or released from storage space B1, the corresponding transfer rule is determined to be: reducing the frame rate of the first video data. If the first video data is not the original video, when transferring for the second time or when the video is to be stored in storage space A1 or released from storage space B2, the corresponding transfer rule is determined to be: reducing the resolution of the first video data.

[0095] The order of selecting the transfer rules can be adjusted as needed. However, it should be noted that when transferring the same video data multiple times, the transfer rules that have not been used before will be given priority.

[0096] It should be noted that the same transfer method (such as reducing the frame rate) but different parameters (such as reducing to 100 fps and 200 fps) can belong to two different transfer rules. When multiple transfer concepts are combined (such as reducing the frame rate and reducing the resolution at the same time), it can belong to one transfer rule or two different transfer rules, which is not limited here.

[0097] The following will explain the meaning of the transfer rules in detail.

[0098] Frame rate reduction: This process reduces the frame rate of compressed (or cropped) videos. For example, the FPS can be reduced. For example, a video (such as a video file, video slice, or video stream) with a frame rate of 25 FPS (25 frames per second) or 30 FPS (30 frames per second) can be reduced to 1 FPS (1 frame per second) or a lower frame rate (such as 1 frame per 2 seconds). Another example is frame reduction based on the total number of frames. For example, for a video with 30,000 frames, only 300 frames are retained at regular intervals (or within a specific video time interval). This effectively reduces storage space (for example, theoretically, a 30-fold reduction from 30 FPS to 1 FPS could reduce storage space by 15 times, and some video formats with native compression could actually reduce space by 30 times). Although this may cause video jerks, it has a minimal impact on video quality. For example, the primary storage area uses a frame rate reduction strategy (i.e., a frame rate reduction transfer rule) based on the original video data.

[0099] Resolution reduction: The frame rate of compressed (or cropped) videos is reduced. For example, depending on the original video's resolution, the resolution may be reduced to half or quarter of the original, discarding some data for visual effect. Reducing the video's resolution effectively reduces storage space, which may result in less clear video but helps restore the original image. For example, the secondary storage area uses a video resolution reduction strategy (i.e., a reduced-resolution transfer rule) based on the video data in the primary storage area.

[0100] Extract specific frames for image processing: Save specific frames (specific positions or specific times) in a video file as image formats (such as JPG format) or animated image formats (such as GIF) at specific intervals or positions. For example, for a video with a total of 30,000 frames, save the first frame, middle frame, and last frame as three images (or one GIF animation). Although extracting specific frames from a video and saving them as images may cause the video to be incoherent, the image occupies very little space, which helps to preserve data in a specific time period of the video for a long time and is helpful for restoring distant facts, such as preserving people and objects that appeared in a specific time period for a long time. For example, the tertiary storage area adopts the strategy of saving specific frames of the video as images based on the video data in the secondary storage area (or the original video area).

[0101] Image resolution reduction: The image (or a specific frame captured from a video) is processed to reduce its resolution to 1 / 2, 1 / 4, etc. of the original image (or video frame). For example, the fourth-level storage area adopts a strategy of reducing image resolution based on the image data in the third-level storage area; or the third-level storage area adopts a strategy of saving a specific video frame as an image based on the video data in the second-level storage area (or the original video area), while also adopting a strategy of reducing image resolution.

[0102] Color range reduction processing: The color range of the compressed (or cropped) video or picture is reduced. For example, the original video or picture is binarized or the color channel is deleted to turn it into a black and white (or gray) video frame or picture, which helps the storage method of the video file or picture file (such as MP4, JPG file storage format, etc.) to further compress its storage space. After reducing the color range, the facts can still be restored through the contour features of the people or objects in the video or picture. For example, the fifth-level storage area adopts a color range reduction strategy based on the image data of the fourth-level storage area. It should be noted here that reducing the color range here only affects the visual effect and has no effect on restoring the truth.

[0103] Capturing a specific area: This strategy allows you to capture a specific area of ​​a compressed (or cropped) video or image according to specific capture rules and save it. For example, if the data in the center of the video or image is important (such as where the camera is pointing), and the data at the edges is less important, you can select a capture area based on the center of the video or image, at a ratio of 1 / 5 of the length and width of the resolution (the specific ratio is not limited), and save the data in that area. Regarding the method of selecting the capture area: 1. Fixed settings can be selected, such as selecting the capture area by setting preset parameters, or selecting the capture method by auxiliary screen drawing, such as setting parameters in the center of the screen (such as the center of the screen as mentioned above, with a ratio of 1 / 5 of the length and width of the resolution), or other important positions (such as outlining the entrance and exit positions through auxiliary screen drawing software, etc.); 2. Dynamic settings can be made, such as combining image analysis, AI and other technologies, after identifying the required conditions (for example, when a specific object or action appears), the capture area is automatically generated for capture and saving, and when the conditions end (for example, when the specific object or action disappears), the generated capture area is automatically canceled, or it may not be automatically canceled; 3 Other setting methods, such as combining fixed settings with dynamic settings, etc., will not be described in detail in this application.

[0104] Convert to text description processing: The compressed (or cropped) video or picture will be recognized through AI technology to identify the elements such as people, objects, actions, etc. that appear in the picture, and record them in the form of text. For example, when recording people, when a person appears in the picture, their time and characteristics, such as gender, body shape, approximate height, clothing color and type, etc., are recorded in text; when recording objects, when an object, such as a car, appears in the picture, its license plate number, brand, color, and the number of people on board are recorded; when recording actions, it is mainly the actions of humans, animals, and objects, such as a person walking in a certain direction, smoking, etc., an animal or a car walking in a certain direction, etc. Converting to text description allows you to describe and record the content of the picture in text before the video or picture is finally deleted, which can save storage space to the greatest extent and achieve the effect of describing the content of the picture.

[0105] By processing the video data using the above transfer rules, the video data is compressed, freeing up the large storage space occupied before the transfer process and occupying a smaller storage space after the process. This means that the more times the first video data is processed by the transfer rules, the smaller the storage space occupied and the longer the storage time.

[0106] It should be noted that the concept of the present invention is to downgrade the data related to enhancing the visual effects in the video data, and retain the data related to restoring the facts. The above-mentioned frame rate reduction processing, video resolution reduction processing, image resolution reduction processing, color range reduction processing, specific frame image capture processing, specific area image capture processing, conversion to text description processing, etc. are examples of the present invention and do not constitute a limitation on other corresponding processing methods according to the concept of the present invention.

[0107] In one or more embodiments of the present application, processing the first video data according to the transfer rule includes:

[0108] Processing the first video data that matches the specific time period or does not match the specific time period according to the transfer rule; and / or,

[0109] The first video data that meets the specific condition or does not meet the specific condition is processed according to the transfer rule.

[0110] It should be noted that the aforementioned transfer rules, such as reducing frame rate, reducing resolution, cropping images, reducing color range, cropping specific frames, cropping specific areas, and converting to text descriptions, can also be applied to video frames or video intervals under specific conditions. For example, for specific time periods, such as early morning when traffic is low, transfer rules such as reducing frame rate, reducing resolution, and cropping specific areas can be implemented; for specific peak hours, such as 12:00 noon, image cropping can be implemented. For other specific conditions, for example, video compression transfer technology can be used during normal times (raw video data is only stored in memory or other temporary areas). Only when an anomaly is detected (such as AI identifying a specific person or object, or sensor detecting abnormal data) does the original video begin to be saved. Furthermore, when grading storage space as described above, it can not only be a single primary storage area, or include secondary and tertiary storage areas, but can also include more than N levels of storage areas according to actual needs, without strict restrictions.

[0111] The video data transfer rules can adopt different transfer rules according to the levels of different storage areas, but the same transfer rules can also be used. At the same level of each storage area, a combination of multiple transfer rules can also be used. For example, when there is only one storage level, video frame reduction and video resolution reduction are used for storage; or only the video is captured as a picture for storage. It should be noted that the sequential execution of transfer rules, the simultaneous execution of multiple transfer rule combinations, and the selective execution as needed are applicable to the various embodiments and various application scenarios of this application.

[0112] In one or more embodiments of the present application, the processing of the first video data that meets the specific condition or does not meet the specific condition according to the transfer rule includes:

[0113] If a target object is identified in multiple video frames, the multiple video frames containing the target object are selectively discarded or the resolution is selectively reduced or a specific area is captured; and / or,

[0114] If a change in the content of a video frame is detected in consecutive video frames, multiple video frames that have not changed are selectively discarded, or the resolution is selectively reduced, or a specific area of ​​the image is captured.

[0115] It should be noted that the change in video frame content referred to here refers to a change in the main target object or certain required content in the video. The object of change and the criteria for determining whether a change has occurred can be set as needed. AI (Artificial Intelligence) technology can be used, and calculations can also be used. For example, the determination of whether a change has occurred can be made by comparing the similarity of two frames. If the similarity is greater than 90%, it is considered that there has been no change. Conversely, if the similarity is less than 90%, it is considered that a change has occurred.

[0116] In actual applications, the video data processed by the transfer rules will be compressed, for example, the resolution will be reduced or the number of video frames or the screen area will be reduced. In order to make the processed video data better meet the needs of subsequent video data retrieval and viewing, further processing can be performed on the image. Specifically:

[0117] The target objects contained in the video frames can be identified (the target objects in different scenes are different, for example, in a parking lot scene, vehicles and license plates need to be the target objects, while in a shopping mall scene, faces and / or people need to be the target objects. Generally speaking, any movable object can be used as the target object). When reducing the video frames of the video data, the video frames that do not contain the target objects can be discarded (or trimmed) first. Furthermore, the video frames where the target object is not clear can be discarded, or only individual video frames such as the target object's key action frames and action change frames can be saved, or the screen of a specific area can be captured.

[0118] It is also possible to identify whether the content of each video frame has changed. If not, the corresponding video frame can be directly discarded or the resolution can be reduced or a specific area can be captured. The key frames whose frame content has changed are stored as they are. For example, in a parking lot scene, if there are no vehicles or people entering or leaving for 1 hour, then the video data within that hour has not changed. The video of that hour is then cropped into a separate video file, and then the video frames within that hour are discarded or the resolution of the video frames within that hour is reduced or a specific area is captured. In the remaining video files, the more important key frames (for example, those that can clearly capture the license plate, driver, change in driving direction, and collision) are selected and stored as they are.

[0119] Specifically, if a target object is identified in multiple video frames, the resolution of the multiple video frames containing the target object is selectively reduced or a specific area of ​​the image is captured, including:

[0120] If the target object is identified in multiple video frames, splitting the first video data into multiple video files;

[0121] The original resolution of the video files containing clear features of the target object among the multiple video files is maintained, and the resolution of the remaining video files among the multiple video files is reduced or specific area images are selected to be captured.

[0122] If a change in video content is identified in consecutive video frames, splitting the first video data into multiple video files;

[0123] The original resolution of the video files whose contents have changed among the multiple video files is maintained, and the resolution of the remaining video files among the multiple video files is reduced or a specific area is selected to be captured.

[0124] It should be noted that the video data source (first video data) of the present invention or the transferred (or compressed) video data can be a video file, a video slice (in the form of a data stream or file, etc.), video data in a storage medium storage interval, or a data stream (such as a network video data stream), etc., without limitation.

[0125] In practical applications, if the resolution is reduced for storage, the resolution can be partially reduced to meet the compression requirements while ensuring that the important content in the video data is not affected as much as possible.

[0126] For example, in a complete video file (or video stream, video slice), when a target object is recognized in some of the video frames (for example, a car and a license plate are recognized in a parking lot scene), and the surrounding environment content of the target object does not change, the video file can be split (the basis for the split can be from the discovery of the target object to the disappearance of the target object as one video file, and the rest as two other video files. In actual applications, it can be selectively split as needed. This is only used as an example and does not constitute a limitation of this solution) into multiple video files (for example, split into a first sub-video file, a second sub-video file, and a third sub-video file, wherein the second sub-video file contains the target object). When reducing the resolution, the resolution of the video file containing the target object (for example, the second sub-video file) is not changed, and only the resolution of the video file that does not contain the target object (for example, the first sub-video file and the third sub-video file) is reduced. This ensures that important content can still be clearly preserved while reducing storage space usage. Among them, the basis for splitting the video file can be to take the period from the discovery of the target object to the disappearance of the target object as one video file, and the rest as two other video files. In actual applications, the splitting can be selectively performed as needed. This is only used as an example and does not constitute a limitation of this solution.

[0127] Of course, if the video encoding or decoding algorithm supports different resolutions for different video frames in the same video file, the resolution can also be reduced by comparing the video frame content. For video frames whose content has not changed, the resolution can be directly reduced, while for video frames whose content has changed (the method for determining content changes can be found in the embodiments described above), the original resolution is maintained. This ensures that important content can still be clearly preserved while reducing storage space usage.

[0128] In one or more embodiments of the present application, storing the second video data obtained by processing the first video data according to the transfer rule into the designated transfer space includes:

[0129] If the first video data is stored in the original storage space, the first video data is processed according to the transfer rule to obtain the second video data;

[0130] The second video data is stored in a designated transfer space; wherein the original storage space and the designated transfer space are in a superior-subordinate relationship.

[0131] The superior-subordinate relationship mentioned here can be understood as a superior-subordinate relationship between the video source stored in the original storage space and the transferred video stored in the transfer space after being transferred and processed. In other words, the video data transferred and processed at the lower level is transferred from the upper-level video source, that is, the lower-level video data depends on (or inherits) the upper-level video source.

[0132] It should be noted that the relationship between the original storage space and the designated dump space includes at least one of a linear relationship, a tree relationship, and a graph relationship.

[0133] In practical applications, all videos can be stored in a complete storage space or split into multiple storage spaces.

[0134] FIG3 is a schematic diagram of another video data storage method as illustrated in an embodiment of the present application. When all videos are stored in a complete storage space, as shown in FIG3 , for example, a video storage period of 7 days is used as an example (a period of 30 days, etc., may also be used without limitation).

[0135] Set storage and video transfer rules. For example, set the original storage space (the video data area in Figure 3) to store for 6 days, and the transfer rule to reduce the original video to 1 frame per second (1 FPS). For other transfer rules, see the "Transfer Rules" section above.

[0136] Execute the rollover rules. When the previous video in the original video is about to be deleted (or overwritten), its video content is read and, according to the video frame reduction rules, rolled into the primary storage area. If the primary storage area is full (for example, more than the preset 6 days), the previous data written to the primary storage area is overwritten.

[0137] It should be noted that regarding the original storage space, on the one hand, storage space can be pre-set for video data (as shown in the 7th day (7th) data storage space in Figure 2). To make room, it is necessary to pre-set the video data to retain 6 days of data. The advantage of this is that there is no need to add additional storage space for this purpose. On the other hand, the remaining storage space of the video device (as shown in Figure 3) can be used. For example, if the space is insufficient to store a full day's data, there is no need to pre-set the video data to retain 6 days of data as described in the first aspect. Instead, the idle remaining space can be directly utilized. The advantage of this is that the free storage space of the video device can be fully utilized, which is often not properly utilized in existing technologies. Thirdly, the transferred video data can be sent to the server via the network instead of being stored locally on the video device (not occupying local transfer storage space). The advantage of this is that it does not occupy local storage space, and the compressed video also reduces storage pressure on the server.

[0138] When splitting into multiple storage spaces, for example:

[0139] Taking a video storage period of 7 days as an example (it can also be a period of 30 days, etc., without limitation), please refer to Figure 2 and the "About Original Storage Space" section for related content. The following only describes the differences.

[0140] Set the transfer rules. The transfer rules for different storage levels can be different. For example: set the original storage space, store for 6 days, and the transfer rule is video frame reduction, reducing the original video to the second video data of 1 frame per second (1FPS). The compressed video source is the original video (that is, the first video data), and the second video data is stored in the primary storage area shown in Figure 2. Set the secondary storage area, store for 6 days, and the transfer rule is video resolution reduction, reducing the resolution of the third video data to 1 / 2 or 1 / 4 of the second video data, or a fixed resolution (lower than the original video resolution), etc. The compressed video source is the second video data in the primary storage area, and the third video data is stored in the secondary storage area. Set the tertiary storage area, store for 6 days, and the transfer rule is to capture and save pictures, save specific frames of the video as pictures (including static pictures in JPG format or dynamic pictures in GIF format, etc.), and the compressed video source is the third video data in the secondary storage area.

[0141] Execute the transfer rules. Start the timer (optional). For the original storage area, before the previous video in the original video is about to be deleted (or overwritten), read its video file content, and transfer it to the primary storage area according to the video frame reduction strategy. For the secondary storage area, before the video in the primary storage area is about to be deleted (or overwritten), read its video file content, and transfer it to the secondary storage area according to the video resolution reduction strategy. For the tertiary storage area, before the video in the secondary storage area is about to be deleted (or overwritten), read its video file content, and transfer it to the tertiary storage area according to the video preservation (specific frame conversion) to picture strategy. This is equivalent to overwriting the previous data written to the next level storage area if the data in the previous level storage area is full (such as more than the preset 6 days).

[0142] It should be noted that: in terms of storage area space. First, the length of space. Different storage spaces or storage periods (such as days) can be different or the same. For example, if they are the same, you can refer to the above example to balance the recent or long-term duration; if they are different, such as the first-level storage area is 6 days, the second-level storage area is 12 days, the third-level storage area is 24 days, etc., give priority to storing long-term videos; or the first-level storage area is 24 days, the second-level storage area is 12 days, the third-level storage area is 6 days, etc., give priority to storing recent videos. In addition, the storage areas at all levels can also be divided according to size, such as the first-level storage area is 2G, the second-level storage area is 4G, the third-level storage area is 8G, etc., give priority to storing long-term videos; or the first-level storage area is 8G, the second-level storage area is 4G, the third-level storage area is 2G, etc., give priority to storing recent videos; or evenly divided, the first-level storage area is 6G, the second-level storage area is 6G, the third-level storage area is 6G, etc. The second is the storage location, which can be local to the device or on the server (second device), etc. For example, the data in the primary and secondary storage areas are stored locally on the video device, and the data in the tertiary storage area is sent to the server (second device). The third is the storage structure, which can be a superior-subordinate inclusion structure (chain structure), as shown in Figures 2 and 3, where the superior video storage area reserves space for the subordinate video storage area; or it can be an independent structure, as shown in Figure 4, where the storage areas at different levels of the storage area are independent of each other. It is understandable that the independent storage structure can also contain superior-subordinate inclusion structures (chain structures), etc., which will not be elaborated here.

[0143] It should be noted that according to some overwriting rules, when overwriting, it is not directly deleted. Instead, before the previous video is about to be deleted (or before it is overwritten), its video file content is read and transferred to the next level storage area according to the video transfer rules. Then, the new video data gradually overwrites the storage space of the previous video. When overwriting, it is overwritten in chronological order. For example, the video data from 0:00 to 1:00 on the sixth day is overwritten first, and as the video is collected in real time, it is overwritten in real time. After the space from 0:00 to 1:00 is full, it is stored in the storage space after 1:00, and the overwriting is done step by step.

[0144] It should be noted that regarding the first video data read. On the one hand, the reading timing can be before the original video (that is, the first video data) is about to be deleted (or before being overwritten), or when the original video is saved (such as a camera data source). On the other hand, the read content can be the data source of the camera, that is, the original data input by the camera is directly stored according to the transfer rules, that is, the original video is saved as a compressed video; or it can be video file data, that is, the stored video data (including original data or compressed data). The data can be locally on the video device or on the server. The specific reading method is to directly read the video file, or read the video storage space address data, or read by calling the SDK, API interface, or read through the network interface, etc. The video data read can be a video file, video data in the storage space, video slices, video streams, etc., which are not limited here. The following is an explanation of the relationship between storage spaces, including: linear relationship, tree relationship and graph relationship.

[0145] Figures 5a, 5b, and 5c are schematic diagrams of the storage space relationship provided in an embodiment of the present application.

[0146] The linear relationship between the upper and lower levels is shown in Figures 2, 3, and 5a. The lower-level video is the result of compressing the upper-level video source (linear relationship). For example, the data in the primary storage area is converted to the original video (or original video source) according to rule A (such as frame rate reduction), the data in the secondary storage area is converted to the primary storage area according to rule B (such as resolution reduction), and the data in the tertiary storage area is converted to the secondary storage area according to rule C (such as saving as an image).

[0147] The tree relationship is shown in Figure 5b. For example, the data source of storage area B (transfer rule B, save as image strategy) comes directly from the original video data (in this example, the secondary storage area), and the data source of storage C is storage area B compressed by transfer rule C.

[0148] The graph structure is shown in Figure 5c. For example, the data source of storage area D comes from storage areas B and C, respectively adopting transfer rule D1 (picture capture at a specific location, video source is a picture (picture capture according to transfer rule B)) and transfer rule D2 (picture capture at a specific location, video source is a video (resolution reduction compression according to transfer rule A)).

[0149] In practical applications, there is no limit on the number of storage area levels. For example, as shown in Figure 3, a fourth-level storage area can be set up to transfer the data source of the third-level storage area (saved as an image strategy) using a reduced image resolution strategy. It should be noted that linear structures, tree structures, and graph structures are representations of relationships and do not necessarily meet the definitions, characteristics, or conditions of data structures.

[0150] Based on the same idea, the embodiment of the present application also provides another data storage method. Figure 6 is a flow chart of another data storage method provided by the embodiment of the present application. As can be seen from Figure 6, it specifically includes the following steps:

[0151] Step 601: Determine a plurality of first video data provided by a plurality of video acquisition devices, and store the plurality of first video data using different transfer rules according to similarities among the plurality of first video data.

[0152] Step 602: When the plurality of first video data satisfy the transfer condition, corresponding transfer rules are determined according to the number of times the plurality of first video data are transferred.

[0153] Step 603: storing the plurality of second video data obtained by processing the plurality of first video data according to the transfer rule into a designated transfer space respectively.

[0154] For example, different levels of storage space can serve different data sources (such as different cameras) and adopt different compression strategies. For example, camera A stores the original video in storage area A; camera B stores it in storage area B by reducing the frame rate; camera C stores it in storage area C by reducing the resolution, and so on; camera D captures the image of a specific area and stores it in storage area D. The advantage of this is that the facts can be restored through the cooperation of multiple cameras, but there is no need for each camera to store the same video (or similar scenes and the same video experience). For example, cameras B, C, and D do not need to occupy the same storage space as storage area A and can also record or record longer videos. For video cameras to restore facts, the facts can be restored through the cooperation of cameras A, B, C, and D.

[0155] As an optional solution, the video data (that is, the original video) collected by the video device can be transferred and stored. For example, because the original video is not important, or the current storage space is limited and more video data needs to be stored. Specifically, the original video (captured by the camera, or the video source received from other channels or the server) is first loaded into the memory as the first video data, and then the original video is transferred in the memory according to the specified transfer rules, and then transferred to the transfer space of the storage device. In addition, the transferred data can also be stored in other terminals (such as the server) by sending it to other terminals after the memory transfer.

[0156] Based on the same idea, an embodiment of the present application also provides a video system. The video system includes:

[0157] The video acquisition device is used to continuously acquire video data, where the video data includes the acquired first video data.

[0158] A data storage device is used to determine first video data and a transfer condition; when the first video data meets the transfer condition, determine a corresponding transfer rule based on the number of times the first video data is transferred; and store second video data obtained by processing the first video data according to the transfer rule in a designated transfer space.

[0159] It should be noted that the data storage device can be a local device or a storage device in a cloud server.

[0160] Based on the same idea, this embodiment also provides a data storage device. FIG7a is a schematic diagram of the structure of a data storage device provided in an embodiment of the present application. The device is applied to a storage device. As can be seen from FIG7a, the device includes:

[0161] The first determining module 711 is configured to determine first video data and transfer conditions.

[0162] The second determining module 712 is configured to determine a corresponding transfer rule according to the number of times the first video data is transferred when the first video data satisfies the transfer condition.

[0163] The storage module 713 is configured to store the second video data obtained by processing the first video data according to the transfer rule into a designated transfer space.

[0164] Optionally, when the first video data is data that has not been processed by the transfer rule, the transfer condition includes:

[0165] When the data size of the first video data exceeds the storage space threshold; and / or,

[0166] When the time length of the first video data exceeds a time length threshold.

[0167] Optionally, the transfer rule includes: downgrading data related to enhancing visual effects in the first video data, and retaining data related to restoring facts.

[0168] Optionally, after determining the transfer rule, the following steps are also included:

[0169] reducing the frame rate of the first video data; and / or,

[0170] reducing the resolution of the first video data; and / or,

[0171] capturing a specific area of ​​the first video data; and / or,

[0172] intercepting a specific frame of picture from the first video data; and / or,

[0173] intercepting a specific frame of the first video data and reducing the resolution; and / or,

[0174] reducing the color range of the first video data or intercepting a specific frame of the first video data; and / or,

[0175] The first video data is converted into text description.

[0176] Optionally, the processing the first video data according to the transfer rule includes:

[0177] Processing the first video data that matches the specific time period or does not match the specific time period according to the transfer rule; and / or,

[0178] The first video data that meets the specific condition or does not meet the specific condition is processed according to the transfer rule.

[0179] Optionally, a transfer module 714 is further included, configured to selectively discard or selectively reduce the resolution of multiple video frames containing the target object if a target object is identified in the multiple video frames; and / or,

[0180] If a change in the content of a video frame is detected in consecutive video frames, multiple video frames that have not changed are selectively discarded or their resolutions are selectively reduced.

[0181] A transfer module 714 is configured to split the first video data into multiple video files if a target object is recognized in multiple video frames;

[0182] The original resolution of the video files containing clear features of the target object among the multiple video files is maintained, and the resolution of the remaining video files among the multiple video files is reduced.

[0183] A transfer module 714 is configured to split the first video data into multiple video files if a change in video content is detected in consecutive video frames;

[0184] The original resolution of the video files whose contents have changed among the multiple video files is maintained, and the resolution of the remaining video files among the multiple video files is reduced.

[0185] The storage module 713 is configured to process the first video data according to the transfer rule to obtain second video data if the first video data is stored in the original storage space;

[0186] The second video data is stored in a designated transfer space; wherein the original storage space and the designated transfer space are in a superior-subordinate relationship.

[0187] Optionally, the relationship between the original storage space and the designated dump space includes at least one of a linear relationship, a tree relationship, and a graph relationship.

[0188] Based on the same idea, another data storage device is also provided in this embodiment. FIG7b is a schematic diagram of the structure of another data storage device provided in this embodiment. As can be seen from FIG7b, the device includes:

[0189] The first determining module 721 is configured to determine a plurality of first video data provided by a plurality of video acquisition devices, and store the plurality of first video data using different transfer rules according to the similarity of the plurality of first video data.

[0190] The second determining module 722 is configured to determine corresponding transfer rules according to the number of times the plurality of first video data are transferred when the plurality of first video data meet the transfer condition.

[0191] The storage module 723 is configured to store the plurality of second video data obtained by processing the plurality of first video data according to the transfer rule into a designated transfer space respectively.

[0192] An embodiment of the present application also provides an electronic device. The electronic device is a master node electronic device in a computing unit. FIG8 is a structural diagram of an electronic device provided in an embodiment of the present application. The electronic device includes a memory 801, a processor 802 and a communication component 803; wherein,

[0193] The memory 801 is used to store programs;

[0194] The processor 802 is coupled to the memory and is configured to execute the program stored in the memory to:

[0195] determining first video data and transfer conditions;

[0196] When the first video data satisfies the transfer condition, determining a corresponding transfer rule according to the number of times the first video data is transferred;

[0197] The second video data obtained by processing the first video data according to the transfer rule is stored in the designated transfer space.

[0198] Optionally, when the first video data is data that has not been processed by the transfer rule, the transfer condition includes:

[0199] When the data size of the first video data exceeds the storage space threshold; and / or,

[0200] When the time length of the first video data exceeds a time length threshold.

[0201] Optionally, the transfer rule includes: downgrading data related to enhancing visual effects in the first video data, and retaining data related to restoring facts.

[0202] Optionally, after determining the transfer rule, the following steps are also included:

[0203] reducing the frame rate of the first video data; and / or,

[0204] reducing the resolution of the first video data; and / or,

[0205] capturing a specific area of ​​the first video data; and / or,

[0206] intercepting a specific frame of picture from the first video data; and / or,

[0207] intercepting a specific frame of the first video data and reducing the resolution; and / or,

[0208] The first video data or a specific frame image of the first video data is intercepted to reduce the color range.

[0209] The processor 802 is configured to process the first video data that meets the specific time period or does not meet the specific time period according to the transfer rule; and / or,

[0210] The first video data that meets the specific condition or does not meet the specific condition is processed according to the transfer rule.

[0211] Processor 802 is configured to selectively discard or reduce the resolution of multiple video frames containing the target object or select to capture a specific area of ​​the video frame if a target object is identified in the multiple video frames; and / or,

[0212] If a change in the content of a video frame is detected in consecutive video frames, multiple video frames that have not changed are selectively discarded, or the resolution is selectively reduced, or a specific area of ​​the image is captured.

[0213] The processor 802 is configured to split the first video data into multiple video files if a target object is recognized in multiple video frames;

[0214] The original resolution of the video files containing clear features of the target object among the multiple video files is maintained, and the resolution of the remaining video files among the multiple video files is reduced or specific area images are selected to be captured.

[0215] The processor 802 is configured to split the first video data into multiple video files if a change in video content is detected in consecutive video frames;

[0216] The original resolution of the video files whose contents have changed among the multiple video files is maintained, and the resolution of the remaining video files among the multiple video files is reduced or a specific area is selected to be captured.

[0217] The processor 802 is configured to, if the first video data is stored in the original storage space, process the first video data according to the transfer rule to obtain second video data;

[0218] The second video data is stored in a designated transfer space; wherein the original storage space and the designated transfer space are in a superior-subordinate relationship.

[0219] Optionally, the relationship between the original storage space and the designated dump space includes at least one of a linear relationship, a tree relationship, and a graph relationship.

[0220] Optionally, the processor 802 is configured to determine a plurality of first video data provided by a plurality of video acquisition devices, and store the plurality of first video data using different transfer rules according to similarities between the plurality of first video data;

[0221] When the plurality of first video data satisfy the transfer condition, determining corresponding transfer rules according to the number of times the plurality of first video data are transferred;

[0222] The plurality of second video data obtained by processing the plurality of first video data according to the transfer rule are respectively stored in the designated transfer space.

[0223] The memory 801 can be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0224] Furthermore, the processor 802 in this embodiment may specifically be: a programmable switching processing chip, which is configured with a data replication engine and can replicate received data.

[0225] When executing the program in the memory, the processor 802 can realize other functions in addition to the above functions, for details, please refer to the description of the above embodiments. Further, as shown in FIG8 , the electronic device also includes other components such as a power supply component 804 .

[0226] An embodiment of the present application further provides a non-transitory machine-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor executes the method described in the corresponding embodiments of FIG. 1 and FIG. 6 .

[0227] An embodiment of the present application further provides a computer product, which is used to execute the methods described in the corresponding embodiments of FIG. 1 and FIG. 6 .

[0228] An embodiment of the present application further provides a storage system, which is used to execute the methods described in the corresponding embodiments of FIG. 1 and FIG. 6 .

[0229] Based on the above embodiment, first video data and a transfer condition are determined; when the first video data meets the transfer condition, a corresponding transfer rule is determined based on the number of times the first video data has been transferred; and second video data obtained after processing the first video data according to the transfer rule is stored in a designated transfer space. Through the above scheme, first video data that meets certain transfer conditions is processed according to the transfer rule based on the storage duration of the video data and / or the amount of storage space occupied. After processing, the resulting second video data occupies less storage space, freeing up more storage space while meeting the need for long-term preservation of historical video data.

[0230] The collection, use and processing of the relevant data involved in this application need to comply with the relevant laws, regulations and standards of the relevant countries and regions. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art can understand and implement it without paying any creative effort.

[0231] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.

[0232] Some processes described in the specification, claims, and figures of this application include multiple operations that appear in a specific order. These operations may be executed out of the order in which they appear in this document or in parallel. Operation numbers, such as 101 and 102, are merely used to distinguish between different operations and do not represent any specific order of execution. Furthermore, these processes may include more or fewer operations, and these operations may be executed sequentially or in parallel. It should be noted that terms such as "first" and "second" are used to distinguish between different messages, devices, modules, etc., and do not indicate a sequential order or limit the "first" and "second" to different types. The data and parameters mentioned in the embodiments, such as 30 FPS, primary, secondary, and tertiary storage areas, seven days, 30 days, 2GB of storage space, and 1 / 5, are provided as examples and are not absolute limits. They do not constitute limitations on the technical solutions of this application. Furthermore, the embodiments described below represent only a portion of the embodiments of this application, and do not constitute a complete list of embodiments. All other embodiments derived by persons skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0233] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A data storage method, characterized in that: Applied to a storage device, the method comprises: Determining first video data and transfer conditions; When the first video data meets the transfer condition, determining a corresponding transfer rule according to the number of times the first video data is transferred; The second video data obtained by processing the first video data according to the transfer rule is stored in the designated transfer space.

2. The method according to claim 1, characterized in that When the first video data is data that has not been processed by the transfer rule, the transfer condition includes: When the data size of the first video data exceeds the storage space threshold; and / or, When the time length of the first video data exceeds a time length threshold.

3. The method according to claim 1, characterized in that The transfer rule includes: downgrading the data related to improving the visual effect in the first video data, and retaining the data related to restoring the facts.

4. The method according to claim 3, characterized in that: After determining the transfer rules, it also includes: reducing the frame rate of the first video data; and / or, reducing the resolution of the first video data; and / or, capturing a specific area of ​​the first video data; and / or, intercepting a specific frame of picture from the first video data; and / or, intercepting a specific frame of the first video data and reducing the resolution; and / or, reducing the color range of the first video data or intercepting a specific frame of the first video data; and / or, The first video data is converted into text description processing.

5. The method according to claim 4, characterized in that The processing of the first video data according to the transfer rule includes: Processing the first video data that matches the specific time period or does not match the specific time period according to the transfer rule; and / or, The first video data that meets the specific condition or does not meet the specific condition is processed according to the transfer rule.

6. The method according to claim 5, characterized in that The processing according to the transfer rule for the first video data meeting the specific condition or in addition to meeting the specific condition includes: If a target object is identified in multiple video frames, multiple video frames containing the target object are selectively discarded or the resolution is selectively reduced or a specific area is captured; and / or, If a change in the content of a video frame is detected in consecutive video frames, multiple video frames that have not changed are selectively discarded or the resolution is selectively reduced or a specific area of ​​the screen is captured.

7. The method according to claim 6, characterized in that If a target object is identified in multiple video frames, the multiple video frames containing the target object are selectively reduced in resolution or a specific area is captured, including: If the target object is identified in multiple video frames, splitting the first video data into multiple video files; The original resolution of the video files containing clear features of the target object among the multiple video files is maintained, and the resolution of the remaining video files among the multiple video files is reduced or specific area images are selected to be captured.

8. The method according to claim 6, characterized in that If a change in the content of a video frame is detected in consecutive video frames, the resolution of multiple unchanged video frames is selectively reduced or a specific area is captured, including: If a change in the video content is identified in the continuous video frames, splitting the first video data into a plurality of video files; The original resolution of the video files whose contents have changed among the multiple video files is maintained, and the resolution of the remaining video files among the multiple video files is reduced or specific area images are selected to be captured.

9. The method according to claim 1, characterized in that: The storing of the second video data obtained by processing the first video data according to the transfer rule into the designated transfer space includes: If the first video data is stored in the original storage space, the first video data is processed according to the transfer rule to obtain the second video data; The second video data is stored in a designated transfer space; wherein the original storage space and the designated transfer space are in a superior-subordinate relationship.

10. The method according to claim 9, characterized in that The relationship between the original storage space and the designated transfer space includes at least one of a linear relationship, a tree relationship and a graph relationship.

11. A data storage method, characterized in that: The method comprises: Determine a plurality of first video data provided by a plurality of video acquisition devices, and store the plurality of first video data using different transfer rules according to the similarity of the plurality of first video data; When the plurality of first video data satisfy the transfer condition, corresponding transfer rules are determined according to the number of times the plurality of first video data are transferred; The plurality of second video data obtained after processing the plurality of first video data according to the transfer rule are stored in the designated transfer space respectively.

12. A video system, characterized in that: The system comprises: A video acquisition device, used for continuously acquiring video data, wherein the video data includes the acquired first video data; A data storage device is used to determine first video data and a transfer condition; when the first video data meets the transfer condition, determine a corresponding transfer rule according to the number of times the first video data is transferred; and store the second video data obtained after processing the first video data according to the transfer rule into a designated transfer space.

13. An electronic device comprising a memory and a processor; wherein: The memory is used to store programs; The processor is coupled to the memory, and is configured to execute the program stored in the memory, so as to implement the method according to any one of claims 1 to 10, or the method according to claim 11.

14. A non-transitory machine-readable storage medium having executable code stored thereon, which, when executed by a processor of an electronic device, causes the processor to execute the method as described in any one of claims 1 to 9, or the method as described in claim 10.

15. A computer product, the computer product being configured to execute the method according to any one of claims 1 to 10, or the method according to claim 11.

16. A storage system, the storage system being configured to execute the method according to any one of claims 1 to 10, or the method according to claim 11.

Citation Information

Patent Citations

  • Storage method employing scalable video coding technical design

    CN102685436A

  • Method and system for storing video data

    CN105430480A

  • Data storage method and system, data acquisition method and system, equipment and medium

    CN113590027A

  • Vehicle-mounted driving record video storage method and system based on domain controller platform

    CN114926918A

  • File compression method and device, electronic equipment and storage medium

    CN115712606A