Infrared video storage method and device

The method and device address data incompatibility issues in infrared video storage by using H.264 lossy and Huffman lossless compression algorithms to maintain data integrity and accuracy, enabling efficient storage and analysis of infrared video data.

CN119127815APending Publication Date: 2024-12-13UNI TREND TECH (CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411172055.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

Conventional storage formats are incompatible with temperature information in infrared videos, leading to data loss, damage, or inaccurate reading during storage, limiting the wider and deeper application of infrared thermal imager data.

Method used

A method and device that utilize a first compression algorithm (H.264 lossy) for infrared audio and video data and a second compression algorithm (Huffman lossless) for RAW and temperature data, ensuring integrity and accuracy of the data while reducing storage space and improving transmission efficiency.

Benefits of technology

Ensures the integrity and accuracy of infrared video data by maintaining visually acceptable quality for visible light and audio/video data while preserving key information in RAW and temperature data during compression, facilitating efficient storage and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127815A_ABST
    Figure CN119127815A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of infrared video processing, and particularly relates to an infrared video storage method and device, and the method comprises the steps: obtaining file information data which comprises equipment parameters, infrared parameters and OSD parameters; acquiring infrared video data, wherein the infrared video data comprises infrared audio and video data, visible light data, RAW data and temperature data; based on a first compression algorithm, compressing and storing the infrared audio and video data and the visible light data; and performing compression storage on the RAW data and the temperature data based on a second compression algorithm. According to the method, the infrared audio and video data and the visible light data are compressed and stored based on the first compression algorithm, the acceptable quality of the part of data in vision is kept while the data volume is reduced, and the storage space is saved and the transmission efficiency is improved. The RAW data and the temperature data are compressed and stored based on a second compression algorithm, and it is ensured that key information and precision are reserved to the maximum extent in the compression process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of infrared video processing technology, and in particular to an infrared video storage method and device. Background Art

[0002] In today's era of rapid technological development, infrared thermal imagers are playing an increasingly important role in many fields such as industry, medical care, security, and environmental protection due to their unique non-contact temperature measurement and imaging capabilities. In the industrial field, infrared thermal imagers can be used to detect overheating failures of equipment and monitor temperature distribution in production processes. In the medical field, it can assist in disease diagnosis, such as early screening of tumors. In security, it can be used for night monitoring and personnel search. In the field of environmental protection, it helps monitor temperature anomalies in the ecological environment.

[0003] However, a prominent problem that follows is that infrared video data usually contains temperature data, and the complexity and particularity of this data make it impossible to effectively store it in common conventional formats. Conventional storage formats are often incompatible with the temperature information in infrared videos, resulting in data loss, damage, or inaccurate reading during storage. This not only affects the subsequent analysis and utilization of infrared thermal imager data, but also limits its wider and deeper application in various fields. Therefore, exploring and studying effective storage methods for infrared video data, especially those with temperature data, has become an important issue that needs to be solved urgently.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] In view of at least one of the above technical problems, the present application provides an infrared video storage method and device, which solves the problem that conventional storage formats are often incompatible with temperature information in infrared videos, resulting in data being easily lost, damaged or unable to be accurately read during the storage process.

[0006] In a first aspect, the present application provides an infrared video storage method, comprising:

[0007] Obtain file information data, which includes device parameters, infrared parameters and OSD parameters;

[0008] Acquire infrared video data, which includes infrared audio and video data, visible light data, RAW data and temperature data;

[0009] Based on the first compression algorithm, the infrared audio and video data and the visible light data are compressed and stored;

[0010] Based on the second compression algorithm, the RAW data and the temperature data are compressed and stored.

[0011] One of the above technical solutions has at least one of the following advantages or beneficial effects: This method can fully understand the relevant equipment and environmental information of video acquisition by acquiring file information data, including device parameters, infrared parameters and OSD parameters, and provide basic data support for subsequent processing and analysis. By acquiring infrared video data containing multiple types, such as infrared audio and video data, visible light data, RAW data and temperature data, the integrity and diversity of the data are ensured. Based on the first compression algorithm, the infrared audio and video data and visible light data are compressed and stored, while reducing the amount of data, the visually acceptable quality of this part of the data is maintained, which is conducive to saving storage space and improving transmission efficiency. Based on the second compression algorithm, the RAW data and temperature data are compressed and stored, and targeted compression processing can be performed on such special and important data to ensure that its key information and accuracy are retained to the greatest extent during the compression process.

[0012] In some possible implementations, visible light data, RAW data, and temperature data are enabled based on device parameters, infrared parameters, and OSD parameter configurations.

[0013] In some possible implementations, the method further includes:

[0014] In response to the modification of device parameters, infrared parameters and OSD parameters, the visible light data, RAW data and temperature data are updated, and decoded and displayed;

[0015] Based on the first compression algorithm, compress and store the updated visible light data;

[0016] Based on the second compression algorithm, the updated RAW data and temperature data are compressed and stored.

[0017] In some possible implementations, the device parameters include: thermal imager model, serial number, lens parameters, software version, hardware version and extended information.

[0018] In some possible implementations, the infrared parameters include: color palette, image mode, isotherm mode, emissivity, reflected temperature, ambient temperature, relative humidity, target distance, and FPA temperature.

[0019] In some possible implementations, the OSD parameters include: specific temperature measurement, point temperature measurement, line area temperature measurement, frame area temperature measurement, and elliptical area temperature measurement.

[0020] In some possible implementations, the first compression algorithm is the H.264 lossy compression algorithm.

[0021] In some possible implementations, the second compression algorithm is a Huffman coding lossless compression algorithm.

[0022] In a second aspect, the present application provides an infrared video storage device, comprising:

[0023] The first acquisition module is used to acquire file information data, the file information data includes device parameters, infrared parameters and OSD parameters;

[0024] A second acquisition module is used to acquire infrared video data, where the infrared video data includes infrared audio and video data, visible light data, RAW data and temperature data;

[0025] A first compression module, used for compressing and storing infrared audio and video data and visible light data based on a first compression algorithm;

[0026] The second compression module is used to compress and store the RAW data and the temperature data based on a second compression algorithm.

[0027] In some possible implementations, visible light data, RAW data, and temperature data are enabled based on device parameters, infrared parameters, and OSD parameter configurations.

[0028] The present application is further described below in conjunction with the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 A flowchart of an infrared video storage method provided in an embodiment of the present application;

[0031] Figure 2 A structural diagram of an infrared video storage device provided in an embodiment of the present application; DETAILED DESCRIPTION

[0032] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific embodiments disclosed below.

[0033] like Figure 1 As shown, this embodiment provides an infrared video storage method, including: S100 to S400.

[0034] Step S100, acquiring file information data, the file information data including device parameters, infrared parameters and OSD parameters.

[0035] In this step, the device parameters may include: thermal imager model, serial number, lens parameters, software version, hardware version and extended information. The device parameters are obtained to parse the device information.

[0036] Infrared parameters can include: color palette, image mode, isotherm mode, emissivity, reflected temperature, ambient temperature, relative humidity, target distance and FPA temperature. Obtaining infrared parameters can be used for subsequent secondary editing.

[0037] OSD parameters may include: specific temperature measurement, point temperature measurement, line area temperature measurement, frame area temperature measurement and elliptical area temperature measurement. Specific temperature measurement includes center temperature measurement, maximum temperature measurement and minimum temperature measurement.

[0038] Step S200, acquiring infrared video data, where the infrared video data includes infrared audio and video data, visible light data, RAW data and temperature data.

[0039] Step S300: compress and store the infrared audio and video data and the visible light data based on a first compression algorithm, wherein the first compression algorithm is an H.264 lossy compression algorithm.

[0040] H.264 is a widely used lossy video compression algorithm. H.264 has a high compression efficiency and can significantly reduce the amount of data while maintaining relatively good video quality. It achieves compression through a variety of technologies, including intra-frame prediction, inter-frame prediction, transform coding, and entropy coding. Intra-frame prediction uses the spatial correlation within the image to reduce spatial redundancy. Inter-frame prediction is based on the temporal correlation between frames in the video sequence to remove temporal redundancy. Transform coding converts the image from the spatial domain to the frequency domain, and performs different degrees of quantization on the high-frequency and low-frequency parts to further reduce the amount of data. Entropy coding uses a more efficient coding method to represent data by statistically analyzing the probability distribution of the coding symbols. H.264 can adapt to different network bandwidth and video quality requirements, and is widely used in various video fields, such as online video, digital TV, video surveillance, etc. However, due to lossy compression, some image details will inevitably be lost during the compression process, resulting in a certain degree of image quality loss. But under reasonable parameter settings, this loss is usually within an acceptable range.

[0041] Step S400: compress and store the RAW data and the temperature data based on a second compression algorithm, wherein the second compression algorithm is a Huffman coding lossless compression algorithm.

[0042] Huffman coding is a lossless compression algorithm whose main feature is that no information is lost during compression and decompression. This is due to several core features and design principles of Huffman coding: Reversibility: The Huffman coding process is completely reversible. When encoding, the binary code assigned to each symbol is based on the frequency of the symbol's occurrence, and these codes are unique and non-overlapping. When decoding, the original symbol can be unambiguously restored from the binary code through the Huffman tree. Therefore, the encoded data can be completely restored to its original state. Prefix-free coding: Huffman coding is a prefix coding, that is, the encoding of any symbol is not a prefix of another symbol's encoding. This feature ensures the uniqueness and determinism of the bit stream when decoding, allowing the decoder to accurately determine the symbol corresponding to each encoding. Information integrity: During the compression process, all information of the original data is retained in the form of Huffman coding, and no data is lost. Both frequently occurring symbols and rare symbols are encoded and transmitted. Adaptiveness: Huffman coding is an adaptive algorithm based on the statistical characteristics of data. The generation of the coding table is determined based on the frequency of occurrence of each symbol in the actual data. This means that every step in the encoding process is deterministic, ensuring complete restoration of the data.

[0043] By acquiring file information data, including device parameters, infrared parameters, and OSD parameters, this method can fully understand the relevant equipment and environmental information of video acquisition, and provide basic data support for subsequent processing and analysis. By acquiring infrared video data containing multiple types, such as infrared audio and video data, visible light data, RAW data, and temperature data, the integrity and diversity of the data are ensured. Based on the first compression algorithm, the infrared audio and video data and visible light data are compressed and stored, while reducing the amount of data, the visually acceptable quality of this part of the data is maintained, which is conducive to saving storage space and improving transmission efficiency. Based on the second compression algorithm, the RAW data and temperature data are compressed and stored, and targeted compression processing can be performed on such special and important data, ensuring that key information and accuracy are retained to the greatest extent during the compression process.

[0044] In some embodiments, visible light data, RAW data, and temperature data are enabled based on device parameters, infrared parameters, and OSD parameter configurations.

[0045] In this embodiment, infrared audio and video data is defined as a main frame, and visible light data, RAW data, and temperature data are defined as sub-frames. When the visible light data, RAW data, and temperature data need to be changed, the visible light data, RAW data, and temperature data can be updated by modifying device parameters, infrared parameters, and OSD parameters.

[0046] In some embodiments, the method further comprises:

[0047] In response to the modification of device parameters, infrared parameters and OSD parameters, the visible light data, RAW data and temperature data are updated, and decoded and displayed;

[0048] Based on the first compression algorithm, compress and store the updated visible light data;

[0049] Based on the second compression algorithm, the updated RAW data and temperature data are compressed and stored.

[0050] like Figure 1 As shown, this embodiment also provides an infrared video storage device, including:

[0051] The first acquisition module 100 is used to acquire file information data, the file information data includes device parameters, infrared parameters and OSD parameters;

[0052] The second acquisition module 200 is used to acquire infrared video data, where the infrared video data includes infrared audio and video data, visible light data, RAW data and temperature data;

[0053] A first compression module 300 is used to compress and store infrared audio and video data and visible light data based on a first compression algorithm;

[0054] The second compression module 400 is used to compress and store the RAW data and the temperature data based on a second compression algorithm.

[0055] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0056] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0057] In addition, various aspects or features of the present application can be implemented as methods, devices or products using standard programming and / or engineering techniques. The term "product" used in this application covers computer programs that can be accessed from any computer-readable device, carrier or medium. For example, computer-readable media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks or tapes, etc.), optical disks (e.g., compact discs (CDs), digital versatile discs (DVDs), etc.), smart cards and flash memory devices (e.g., erasable programmable read-only memory (EPROM), cards, sticks or key drives, etc.). In addition, the various storage media described herein may represent one or more devices and / or other machine-readable media for storing information. The term "machine-readable medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing and / or carrying instructions and / or data.

[0058] It should also be understood that in the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0059] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0060] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0061] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described below are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or can be electrical, mechanical or other forms of connection.

[0062] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0063] The above are only preferred embodiments of the present application, and do not constitute any formal limitation on the present application. Any technician familiar with the art can use the above disclosed methods and technical contents to make many possible changes and modifications to the technical solution of the present application without departing from the scope of the technical solution of the present application, or modify it into an equivalent embodiment of equivalent changes. Therefore, all equivalent changes made according to the shape, structure and principle of the present application without departing from the content of the technical solution of the present application should be included in the protection scope of the present application.

Claims

1. A method for storing infrared video, It is characterized in that include: Acquire file information data, wherein the file information data includes device parameters, infrared parameters and OSD parameters; Acquire infrared video data, wherein the infrared video data includes infrared audio and video data, visible light data, RAW data and temperature data; Based on a first compression algorithm, compress and store the infrared audio and video data and the visible light data; Based on a second compression algorithm, the RAW data and the temperature data are compressed and stored.

2. The infrared video storage method according to claim 1, It is characterized in that The visible light data, RAW data and temperature data are enabled based on the device parameters, infrared parameters and OSD parameter configurations.

3. The infrared video storage method according to claim 1, It is characterized in that The method further comprises: In response to the modification of the device parameters, infrared parameters and OSD parameters, the visible light data, the RAW data and the temperature data are updated, and decoded and displayed; Based on the first compression algorithm, compress and store the updated visible light data; Based on the second compression algorithm, the updated RAW data and temperature data are compressed and stored.

4. The infrared video storage method according to claim 1, It is characterized in that The equipment parameters include: thermal imager model, serial number, lens parameters, software version, hardware version and extended information.

5. The infrared video storage method according to claim 1, It is characterized in that The infrared parameters include: color palette, image mode, isotherm mode, emissivity, reflection temperature, ambient temperature, relative humidity, target distance and FPA temperature.

6. The infrared video storage method according to claim 1, It is characterized in that The OSD parameters include: specific temperature measurement, point temperature measurement, line area temperature measurement, frame area temperature measurement and elliptical area temperature measurement.

7. The infrared video storage method according to claim 1, It is characterized in that The first compression algorithm is the H.264 lossy compression algorithm.

8. The infrared video storage method according to claim 1, It is characterized in that The second compression algorithm is a Huffman coding lossless compression algorithm.

9. An infrared video storage device, It is characterized in that include: A first acquisition module is used to acquire file information data, wherein the file information data includes device parameters, infrared parameters and OSD parameters; A second acquisition module is used to acquire infrared video data, wherein the infrared video data includes infrared audio and video data, visible light data, RAW data and temperature data; A first compression module, used for compressing and storing the infrared audio and video data and the visible light data based on a first compression algorithm; The second compression module is used to compress and store the RAW data and temperature data based on a second compression algorithm.

10. The infrared video storage device according to claim 9, It is characterized in that The visible light data, RAW data and temperature data are enabled based on the device parameters, infrared parameters and OSD parameter configurations.