Video image hierarchical storage method, terminal equipment and storage medium

By constructing the correlation factor weight information database of video images and calculating compression and storage rule scores, hierarchical storage of video images is realized, which solves the problem of excessive demand for video image storage resources in the existing technology, improves storage and retrieval efficiency, and Enhanced security.

CN118733801AActive Publication Date: 2024-10-01ROPEOK TECHNOLOGY GROUP CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410252083.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-05
Publication Date
2024-10-01
Estimated Expiration
2044-03-05

AI Technical Summary

Technical Problem

The existing technology lacks a method for classifying and storing video images based on factors such as their installation location, equipment type, construction age, etc., resulting in excessive demand for video image storage resources and a lack of grading for video image quality, sensitivity, importance, etc. Classified storage method.

Method used

Construct a correlation factor weight information database for video images, calculate compression rule scores and storage rule scores through correlation factors, formulate compression and storage rules, store video images hierarchically, and adopt dynamic learning update rules.

Benefits of technology

It improves the storage and retrieval efficiency of video images, optimizes storage strategies, enhances security, rationally utilizes storage space, and reduces the risk of unauthorized access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733801A_ABST
    Figure CN118733801A_ABST
Patent Text Reader

Abstract

The invention relates to a video image hierarchical storage method, terminal equipment and a storage medium. The method comprises the following steps: constructing an association factor weight information base of video images; setting a calculation formula of a compression rule score and a storage rule score of the video image in combination with each correlation factor; constructing a compression rule corresponding table of the compression rule scores and a storage rule corresponding table of the storage rule scores; obtaining a correlation factor value corresponding to the to-be-analyzed video image, and further calculating a compression rule score and a storage rule score of the to-be-analyzed video image; searching a compression rule and a storage rule corresponding to the to-be-analyzed video image in a rule corresponding table; and compressing and storing the to-be-analyzed video image based on the searched compression rule and storage rule. According to the method, the storage strategy of the video image is optimized, the storage and retrieval efficiency is improved, and the safety is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of video image storage, and in particular to a video image hierarchical storage method, terminal equipment and storage medium. Background Art

[0002] As the scale of video surveillance systems continues to expand, it is often necessary to store massive amounts of video image data resources. In order to cope with the storage problem of massive video data, a more efficient and reliable storage and management method is needed. At present, some cities have begun to adopt technologies such as cloud storage and distributed storage to improve the storage and management efficiency of video surveillance data. At the same time, some cities have also begun to explore the application of intelligent video analysis technology to improve the utilization value of video surveillance data.

[0003] In terms of video image storage, in addition to using large-scale storage processing technologies such as cloud storage, video image compression technology can also be used to effectively compress video images to improve the efficiency of video image storage. Video image compression methods mainly include distributed compression, deep learning compression, inter-frame compression, and regional segmentation compression.

[0004] Common encoder-based compression storage methods include H.264, H.265, AV1, etc. The compression format affects the clarity, smoothness, file size, etc. of the video. Usually, video compression processing is performed on the camera itself or during the access and forwarding process of the storage streaming service. Different compression formats have different advantages and disadvantages and need to be selected according to the specific application scenario. The methods of video image compression storage mainly include:

[0005] (1) Distributed compression: This method divides video image data into multiple segments and then stores them on different devices or servers. This method can reduce the storage pressure of a single device and facilitate data backup and disaster recovery.

[0006] (2) Compressed sensing: This method uses efficient random sampling technology at the acquisition end to convert the original video image data into a sparse representation, which is then compressed and stored. This method can significantly reduce the storage space of video image data without losing too much detail.

[0007] (3) Inter-frame compression: This method mainly uses the large amount of redundant information between adjacent frames in the video sequence for compression. By using motion estimation and compensation technology for temporally adjacent frames, the redundant information of the video sequence can be greatly reduced and the storage efficiency can be improved.

[0008] (4) Region segmentation compression: This method divides the video image into multiple regions and compresses each region independently. By analyzing and processing the pixel values ​​and texture information of different regions, efficient compression of the video image can be achieved.

[0009] (5) Transcoding compression: This method converts the original data into another format or encoding method by transcoding the video image data to achieve data compression. Common transcoding methods include converting video image data from one encoding format to another encoding format, or converting video image data from one color space to another color space. This method can achieve good compression effects, but it requires more computing resources and time.

[0010] Current video image compression mainly compresses the characteristics of the video stream itself. However, the storage value of video images actually varies depending on factors such as their installation location, equipment type, and construction age. If stored according to unified rules, the demand for back-end storage resources will be large. Therefore, there is currently a lack of methods for hierarchical and classified storage of video images based on quality, sensitivity, and importance. Summary of the invention

[0011] In order to solve the above problems, the present invention proposes a video image hierarchical storage method, a terminal device and a storage medium.

[0012] The specific plan is as follows:

[0013] A method for hierarchical storage of video images comprises the following steps:

[0014] S1: constructing a correlation factor weight information library of the video image, wherein the correlation factor weight information library includes a weight information table of all correlation factors;

[0015] S2: setting the calculation formula of the compression rule score and the storage rule score of the video image in combination with each correlation factor;

[0016] S3: construct a compression rule corresponding table for compression rule scores and a storage rule corresponding table for storage rule scores;

[0017] S4: Obtain the value of the correlation factor corresponding to the video image to be analyzed, and then calculate the compression rule score and storage rule score of the video image to be analyzed;

[0018] S5: searching for a corresponding compression rule from a compression rule corresponding table based on the compression rule score of the video image to be analyzed, and searching for a corresponding storage rule from a storage rule corresponding table based on the storage rule score of the video image to be analyzed;

[0019] S6: Based on the found compression rule and storage rule, compress and store the video image to be analyzed.

[0020] Furthermore, the associated factors of the video image include: point location type, monitoring point type, industry, image resolution, encoding format, equipment type and equipment construction age.

[0021] Furthermore, the calculation formula of the compression rule score is: compression rule score = image importance * (image quality score / 100) * encoding format weight coefficient * (device resolution / 100).

[0022] Furthermore, the calculation formula of the storage rule score is: storage rule score = image importance * (image quality score / 100) * equipment construction age weight coefficient.

[0023] Furthermore, the calculation formula for image importance is: Image importance = point location type weight score * point location type weight coefficient + industry weight score * industry weight coefficient + monitoring point type weight score * monitoring point type weight coefficient.

[0024] Furthermore, the calculation formula for device resolution is: device resolution = image resolution weight points * image resolution weight coefficient + device type weight points * device type weight coefficient.

[0025] Furthermore, it also includes: recording the compression and storage execution results within the set time interval at the time interval, and dynamically learning and updating the compression and storage rules based on the recorded results.

[0026] A video image hierarchical storage terminal device comprises a processor, a memory and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method described above in the embodiment of the present invention are implemented.

[0027] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described above in an embodiment of the present invention are implemented.

[0028] The present invention adopts the above technical solution to optimize the storage strategy of video images, improve storage and retrieval efficiency, and increase security. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 Shown is a flow chart of a method according to a first embodiment of the present invention.

[0030] Figure 2 Shown is a schematic diagram of the video image storage process in this embodiment.

[0031] Figure 3 Shown is a weight information table of each correlation factor in this embodiment. DETAILED DESCRIPTION

[0032] To further illustrate various embodiments, the present invention provides drawings. These drawings are part of the disclosure of the present invention, which are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, ordinary technicians in this field should be able to understand other possible implementations and advantages of the present invention.

[0033] The present invention will now be further described with reference to the accompanying drawings and specific implementation methods.

[0034] Embodiment 1:

[0035] The embodiment of the present invention provides a method for storing video images in a hierarchical manner. Figure 1 and Figure 2 As shown, the method comprises the following steps:

[0036] S1: constructing a correlation factor weight information base of a video image, wherein the correlation factor weight information base includes a weight information table of all correlation factors.

[0037] In this embodiment, the associated factors of the video image include: point location type, monitoring point type, industry, image resolution, encoding format, equipment type and equipment construction age, etc. The corresponding weight information table is as follows: Figure 3 As shown, the weight information table corresponding to the point location type, monitoring point type, industry, image resolution and equipment type includes two fields: weight score and weight coefficient. The weight information table corresponding to the coding format and equipment construction year only includes the weight coefficient field.

[0038] S2: The calculation formulas for the compression rule score and the storage rule score of the video image are set in combination with each correlation factor.

[0039] The calculation formula for setting the compression rule score in this embodiment is: Compression rule score = Image importance * (Image quality score / 100) * Coding format weight coefficient * (Device resolution / 100). The calculation formula for the storage rule score is: Storage rule score = Image importance * (Image quality score / 100) * Equipment construction years weight coefficient. Where:

[0040] Image importance is calculated using the following formula: Image importance = point location type weight score * point location type weight coefficient + industry weight score * industry weight coefficient + monitoring point type weight score * monitoring point type weight coefficient.

[0041] Device resolution is calculated using the following formula: Device resolution = Image resolution weight points * Image resolution weight coefficient + Device type weight points * Device type weight coefficient.

[0042] The image quality score is obtained through existing video image quality algorithms, such as peak signal-to-noise ratio (PSNR), mean square error (MSE), structural similarity index (SSIM), etc. The total score is calculated based on 100 points.

[0043] S3: Construct a compression rule correspondence table of compression rule scores and a storage rule correspondence table of storage rule scores.

[0044] The two rule correspondence tables constructed in this embodiment are shown in Table 1 and Table 2, respectively, wherein different storage rules are used for videos and images in the storage rules. In the two rule correspondence tables, each score interval corresponds to a rule.

[0045] Table 1

[0046] Storage score interval Video Storage Rules Image storage rules [80,100] Video storage for 90 days Image 3 years [60,80) Video storage for 60 days Image 1 year (20,60] Video storage for 30 days Image half year (0,20] No No

[0047] Table 2

[0048] Compressed score range rule [80,100] No compression [60,80) Compressed Sensing (40,60] Inter-frame compression (20,40] Region segmentation compression (0,20] Transcoding compression

[0049] S4: Obtain the value of the correlation factor corresponding to the video image to be analyzed, and then calculate the compression rule score and the storage rule score of the video image to be analyzed.

[0050] The value of the correlation factor corresponding to the video image to be analyzed can be obtained from the basic information of the camera device corresponding to the video image to be analyzed when it is registered.

[0051] S5: searching for a corresponding compression rule from a compression rule corresponding table based on the compression rule score of the video image to be analyzed, and searching for a corresponding storage rule from a storage rule corresponding table based on the storage rule score of the video image to be analyzed.

[0052] S6: Based on the found compression rule and storage rule, compress and store the video image to be analyzed.

[0053] Furthermore, the present embodiment also includes: recording the compression and storage execution results within the set time interval (month, quarter or year), and dynamically learning and updating the compression and storage rules based on the recorded results. The dynamic learning algorithm can use the existing machine learning algorithm, which is not limited here. The weight points and weight coefficients in the correlation factor weight information library constructed in step S1 can also be increased, decreased or changed according to actual application requirements.

[0054] The embodiments of the present invention have the following beneficial effects:

[0055] (1) Improve storage efficiency: By classifying and storing video image attributes (such as importance, quality, and real-time), storage space can be used more effectively and rationally, the utilization rate of storage resources can be improved, and storage efficiency can be improved.

[0056] (2) Improve retrieval efficiency: Images that need to be retrieved quickly can be stored on faster storage devices, while other less frequently used images can be stored on slower storage devices. This can improve retrieval efficiency and reduce retrieval time.

[0057] (3) Optimizing storage strategies: By classifying and storing video images according to multiple factors, different storage strategies can be adopted according to different categories of video images, such as backup, compression, encryption, etc., to optimize the use of storage resources.

[0058] (4) Enhanced security: By storing important images on encrypted storage devices, the security of the images can be enhanced to prevent unauthorized access and leakage.

[0059] Embodiment 2:

[0060] The present invention also provides a video image hierarchical storage terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the above method embodiment of embodiment 1 of the present invention when executing the computer program.

[0061] Further, as an executable solution, the video image hierarchical storage terminal device can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The video image hierarchical storage terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the composition structure of the above-mentioned video image hierarchical storage terminal device is only an example of the video image hierarchical storage terminal device, and does not constitute a limitation on the video image hierarchical storage terminal device. It may include more or less components than the above-mentioned, or combine certain components, or different components. For example, the video image hierarchical storage terminal device may also include input and output devices, network access devices, buses, etc., and the embodiments of the present invention do not limit this.

[0062] Further, as an executable solution, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the video image hierarchical storage terminal device, and uses various interfaces and lines to connect various parts of the entire video image hierarchical storage terminal device.

[0063] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the video image hierarchical storage terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required for a function; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0064] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method in the embodiment of the present invention are implemented.

[0065] If the module / unit integrated in the video image hierarchical storage terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory) and software distribution medium, etc.

[0066] Although the present invention has been specifically shown and described in conjunction with the preferred embodiments, it should be understood by those skilled in the art that various changes may be made to the present invention in form and details without departing from the spirit and scope of the present invention as defined by the appended claims, all of which are within the scope of protection of the present invention.

Claims

1. A method for hierarchical storage of video images, characterized in that: The following steps are involved: S1: constructing a correlation factor weight information library of the video image, wherein the correlation factor weight information library includes a weight information table of all correlation factors; S2: setting the calculation formula of the compression rule score and the storage rule score of the video image in combination with each correlation factor; S3: construct a compression rule correspondence table for compression rule scores and a storage rule correspondence table for storage rule scores; S4: Obtain the correlation factor value corresponding to the video image to be analyzed, and then calculate the compression rule score and storage rule score of the video image to be analyzed; S5: searching for a corresponding compression rule from a compression rule corresponding table based on the compression rule score of the video image to be analyzed, and searching for a corresponding storage rule from a storage rule corresponding table based on the storage rule score of the video image to be analyzed; S6: Based on the found compression rule and storage rule, compress and store the video image to be analyzed.

2. The video image hierarchical storage method according to claim 1, characterized in that: The associated factors of video images include: point location type, monitoring point type, industry, image resolution, encoding format, equipment type and equipment construction age.

3. The video image hierarchical storage method according to claim 1, characterized in that: The calculation formula for the compression rule score is: Compression rule score = image importance * (image quality score / 100) * encoding format weight coefficient * (device resolution / 100).

4. The video image hierarchical storage method according to claim 1, characterized in that: The calculation formula for the storage rule score is: Storage rule score = image importance * (image quality score / 100) * equipment construction age weight coefficient.

5. The video image hierarchical storage method according to claim 3 or 4, characterized in that: The calculation formula for image importance is: Image importance = point location type weight score * point location type weight coefficient + industry weight score * industry weight coefficient + monitoring point type weight score * monitoring point type weight coefficient.

6. The method for hierarchical storage of video images according to claim 3, characterized in that: The calculation formula for device resolution is: Device resolution = image resolution weight points * image resolution weight coefficient + device type weight points * device type weight coefficient.

7. The video image hierarchical storage method according to claim 1, characterized in that: Also includes: The compression and storage execution results within the set time interval are recorded, and the compression and storage rules are dynamically learned and updated based on the recorded results.

8. A video image hierarchical storage terminal device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Internet-based smart campus monitoring video storage method

    CN115618051A

  • Driver driving intelligent monitoring system with self-adaptive compression storage function

    CN116353607A

  • Building data storage equipment and building data classified storage method used by same

    CN117194713A

  • Analytics-modulated coding of surveillance video

    US20100124274A1