Infrared bare data correction method, device and medium
By calculating the correction radius and coefficient to correct the infrared raw data, the problem of data inhomogeneity caused by the influence of production process, core temperature and lens was solved, and the uniformity of infrared raw data and the accuracy of temperature measurement were improved.
Patent Information
- Application Number
- CN202011343651.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-25
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2040-11-25
AI Technical Summary
Infrared raw data is uneven between the four sides and the center due to the influence of manufacturing process, core temperature and lens, which affects the quality of thermal imaging data and the accuracy of temperature measurement.
By calculating the correction radius and correction coefficient, the aperture points in the raw infrared data are corrected. The average correction coefficient is then used to iterate through each aperture point to achieve data homogenization.
It improves the uniformity of infrared raw data, eliminates the aperture phenomenon, and enhances the accuracy of temperature measurement.
Smart Images

Figure CN112559945B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to infrared data processing, and more particularly to a method, apparatus, and medium for infrared raw data correction. Background Technology
[0002] With the continuous advancement of technology, thermal imagers are being used more and more widely. However, regardless of the application, the processing of raw data is indispensable. Thermal imagers collect raw infrared data of objects through infrared detectors to generate thermal imaging data. However, raw infrared data is affected by manufacturing processes, core temperature, and lens conditions, resulting in unevenness between the edge and center data. This unevenness often leads to halos in the resulting image and affects subsequent algorithmic analysis, especially impacting precision temperature measurement. Summary of the Invention
[0003] In order to overcome the shortcomings of the prior art, one of the objectives of this invention is to provide an infrared raw data correction method, which can solve the problem that infrared raw data is affected by the manufacturing process, the temperature of the camera body, and the lens, resulting in unevenness between the four-sided data and the center data in the infrared raw data.
[0004] The second objective of this invention is to provide an electronic device that can solve the problem that infrared raw data is affected by manufacturing processes, core temperature, and lens, resulting in unevenness between the data on the four sides and the data in the center of the infrared raw data.
[0005] The third objective of this invention is to provide a computer-readable storage medium that can solve the problem that infrared raw data is affected by manufacturing processes, core temperature, and lens, resulting in unevenness between the data on the four sides and the data in the center of the infrared raw data.
[0006] One of the objectives of this invention is achieved through the following technical solution:
[0007] An infrared raw data correction method includes the following steps:
[0008] Acquire raw data, including infrared raw data generated by the infrared detector collecting data from the target object and the corresponding data resolution. The infrared raw data includes several frames of sub-data. Each frame of sub-data includes aperture points and aperture point information. Each aperture point corresponds to a unique aperture point information.
[0009] Calculate the correction radius by randomly selecting an uncalculated sub-data frame from the raw infrared data as the correction sub-data, and calculating the correction radius corresponding to the correction sub-data based on the data resolution.
[0010] Calculate correction parameters, take the aperture point at the center of the aperture in the correction sub-data as the center point, take the aperture point at the edge of the aperture in the correction sub-data as the reference point, calculate the reference point correction coefficient corresponding to the reference point based on the aperture point information corresponding to the center point, the aperture point information corresponding to the reference point, and the correction radius, return to the execution step to calculate the correction radius, until the preset number of sub-data frames are extracted;
[0011] Calculate the average correction factor, and calculate the average correction factor corresponding to the correction factors of all reference points;
[0012] Data correction involves iterating through each aperture point in the raw infrared data according to the average correction coefficient to obtain the corrected raw infrared data.
[0013] Furthermore, the aperture point information includes aperture point data values and aperture point coordinates.
[0014] Furthermore, the calculation of the correction parameters specifically involves: taking the aperture point at the center of the aperture in the correction sub-data as the center point, taking the aperture point at the edge of the aperture in the correction sub-data as the reference point, calculating the center distance from the reference point to the center point based on the aperture point coordinates corresponding to the reference point and the aperture point coordinates corresponding to the center point, and calculating the reference point correction coefficient corresponding to the reference point based on the center distance, the aperture point data value corresponding to the center point, the aperture point data value corresponding to the reference point, and the correction radius.
[0015] Furthermore, the specific formula for calculating the reference point correction coefficient corresponding to the reference point based on the center distance, the aperture point data value corresponding to the center point, the aperture point data value corresponding to the reference point, and the correction radius is as follows:
[0016]
[0017] Among them, c i The reference point correction factor is the reference point corresponding to the reference point. The aperture point data value corresponding to the reference point. The aperture point data value corresponding to the center point. denoted as the center distance, and r as the corrected radius.
[0018] Furthermore, the number of reference points corresponding to the corrected sub-data is at least two.
[0019] Furthermore, the preset number of frames is at least two frames.
[0020] Furthermore, the calculation of the average correction coefficient specifically involves: summing up the correction coefficients of all reference points to obtain the total reference point correction coefficient, and dividing the total reference point correction coefficient by the number of reference point correction coefficients to obtain the average correction coefficient.
[0021] Furthermore, the data resolution includes horizontal pixel values and vertical pixel values. The correction radius corresponding to the correction sub-data is calculated based on the data resolution, as shown in the formula below:
[0022]
[0023] Where r is the correction radius, w represents the horizontal pixel value, and h represents the vertical pixel value.
[0024] The second objective of this invention is achieved by the following technical solution:
[0025] An electronic device, comprising: a processor;
[0026] The program includes a memory and a program, wherein the program is stored in the memory and configured to be executed by a processor, the program including an infrared raw data correction method according to the present application.
[0027] The third objective of this invention is achieved by the following technical solution:
[0028] A computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor as an infrared raw data correction method of this application.
[0029] Compared with the prior art, the beneficial effects of the present invention are as follows: The infrared raw data correction method in this application calculates the reference point correction coefficient corresponding to the reference point at the aperture edge in each frame of data, and calculates the average correction coefficient corresponding to all reference point correction coefficients. Based on the average correction coefficient, it traverses each aperture point in the infrared raw data to obtain more accurate corrected infrared raw data, so that the four-sided data and the center data in each frame of sub-data in the infrared raw data are evenly distributed, and the aperture no longer appears, thus improving the accuracy of temperature measurement.
[0030] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it according to the contents of the specification, the preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings. Specific embodiments of the present invention are given in detail below with reference to the accompanying drawings. Attached Figure Description
[0031] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0032] Figure 1 This is a schematic diagram of an infrared bare data correction method according to the present invention;
[0033] Figure 2This is a schematic diagram of sub-data before data correction in an infrared bare data correction method according to the present invention;
[0034] Figure 3 This is a schematic diagram of the sub-data after data correction in an infrared raw data correction method according to the present invention. Detailed Implementation
[0035] The present invention will now be further described in conjunction with the accompanying drawings and specific embodiments. It should be noted that, without conflict, the various embodiments or technical features described below can be arbitrarily combined to form new embodiments.
[0036] like Figure 1 As shown, in this embodiment, an infrared raw data correction method includes the following steps:
[0037] The process involves acquiring raw infrared data generated by the infrared detector from the target object, along with the corresponding data resolution. This raw infrared data comprises several frames of sub-data, each including an aperture point and aperture point information. Each aperture point corresponds to a unique aperture point information. In this embodiment, the data resolution includes horizontal and vertical pixel values, and the aperture point information includes aperture point data values and aperture point coordinates.
[0038] The correction radius is calculated by randomly selecting an uncalculated frame of sub-data from the raw infrared data as the correction sub-data, and then calculating the correction radius corresponding to the correction sub-data based on the data resolution. In this embodiment, the correction radius is calculated as shown in formula (1):
[0039]
[0040] Where r is the correction radius, w represents the horizontal pixel value, and h represents the vertical pixel value.
[0041] The correction parameters are calculated by taking the aperture point at the center of the aperture in the correction sub-data as the center point and the aperture point at the edge of the aperture in the correction sub-data as the reference point. The number of reference points corresponding to each frame of the correction sub-data is at least two. Based on the aperture point information corresponding to the center point, the aperture point information corresponding to the reference point, and the correction radius, the correction coefficient corresponding to the reference point is calculated. The process returns to the step of calculating the correction radius until a preset number of sub-data frames are retrieved, where the preset number of frames is at least two frames. Specifically, in this embodiment, the calculation of the correction parameters is as follows: taking the aperture point at the center of the aperture in the correction sub-data as the center point and the aperture point at the edge of the aperture in the correction sub-data as the reference point, the center distance from the reference point to the center point is calculated based on the aperture point coordinates corresponding to the reference point and the aperture point coordinates corresponding to the center point. In this embodiment, the aperture point coordinates corresponding to the center point are set to (x...). c ,y cThe aperture point coordinates corresponding to the reference point are (x... i y i The specific center distance calculation is shown in formula (2):
[0042]
[0043] in, x is the center distance from reference point i to center point c; i The x-axis coordinate of the aperture point corresponding to the reference point, y i The x-axis coordinate value in the aperture point coordinate system corresponding to the reference point. c The x-axis coordinate of the aperture point corresponding to the center point, y c The Y-axis coordinate value is the aperture point coordinate corresponding to the center point. The reference point correction coefficient is calculated based on the center distance, the aperture point data value corresponding to the center point, the aperture point data value corresponding to the reference point, and the correction radius, as shown in formula (3).
[0044]
[0045] Among them, c i The reference point correction factor is the reference point corresponding to the reference point. The aperture point data value corresponding to the reference point. The aperture point data value corresponding to the center point. denoted as the center distance, and r as the corrected radius.
[0046] Calculate the average correction factor, and then calculate the average correction factor corresponding to the correction factors of all reference points. Sum the correction factors of all reference points to obtain the total reference point correction factor, and divide the total reference point correction factor by the number of reference point correction factors to obtain the average correction factor.
[0047] Data correction involves iterating through all aperture points (including aperture center and edge points) of each frame of raw infrared data according to the average correction coefficient. The corrected raw infrared data includes multiple frames of traversed sub-data. Figure 2 The sub-data before traversal contains the aperture. Figure 3 The traversed sub-data does not contain aperture and the data is evenly distributed. The traversal is specifically as follows: Formula (4):
[0048]
[0049] Where y represents the data value of the aperture point after traversal. The data values are obtained after traversing the previous aperture points. Let r be the center distance from the aperture point before traversal to the corresponding sub-data center point, r be the correction radius, and C be the average correction coefficient. In this embodiment, Figure 2 The infrared raw data, which has not been processed by the infrared raw data correction method described in this application, contains an aperture. The pixel distribution at the edge and center of the aperture is uneven, and the pixel value increases gradually from the center outwards, meaning the aperture edge is brighter. The infrared raw data processed by the infrared raw data correction method described in this application is as follows: Figure 3 As shown, without aperture, the pixel values of the entire image are evenly distributed, with no obvious aperture points, and the overall color tone of the image remains consistent.
[0050] This application also provides an electronic device, including: a processor;
[0051] The program includes a memory and a program, wherein the program is stored in the memory and configured to be executed by a processor, the program including an infrared raw data correction method according to the present application.
[0052] This application also provides a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor as an infrared raw data correction method of this application.
[0053] An infrared raw data correction method disclosed in this application calculates the reference point correction coefficient corresponding to the reference point at the aperture edge in each frame of data, and calculates the average correction coefficient corresponding to all reference point correction coefficients. Based on the average correction coefficient, it iterates through each aperture point in the infrared raw data to obtain a more accurate corrected infrared raw data. This makes the four-sided data and the center data in each frame of sub-data in the infrared raw data evenly distributed, and the aperture no longer appears, thus improving the accuracy of temperature measurement.
[0054] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any way. Those skilled in the art can readily implement the present invention based on the accompanying drawings and the description above. However, any modifications, alterations, or variations made by those skilled in the art without departing from the scope of the present invention, utilizing the disclosed technical content, are equivalent embodiments of the present invention. Furthermore, any equivalent changes, alterations, or variations made to the above embodiments based on the essential technology of the present invention are still within the protection scope of the present invention.
Claims
1. An infrared bare data correction method, characterized by: The method comprises the following steps: Obtaining raw data, obtaining infrared detector collected infrared raw data of target objects and corresponding data resolution, the infrared raw data comprises a plurality of frames of sub-data, each frame of sub-data comprises an aperture point and aperture point information, each aperture point corresponds to a unique aperture point information; the aperture point information comprises aperture point data value and aperture point coordinates; Calculating a correction radius, randomly taking a frame of sub-data not calculated from the infrared raw data as a correction sub-data, and calculating a correction radius corresponding to the correction sub-data according to the data resolution; The correction parameter is calculated as follows: taking the aperture point at the center of the correction sub-data as a center point, taking the aperture point at the edge of the aperture as a reference point, calculating the center distance corresponding to the reference point to the center point according to the aperture point coordinates corresponding to the reference point and the aperture point coordinates corresponding to the center point, and calculating the reference point correction coefficient corresponding to the reference point according to the center distance, the aperture point data value corresponding to the center point, the aperture point data value corresponding to the reference point, and the correction radius; Returning to step of calculating the correction radius until a preset number of sub-data is taken out; the reference point correction coefficient corresponding to the reference point is calculated according to the center distance, the aperture point data value corresponding to the center point, the aperture point data value corresponding to the reference point, and the correction radius, and the calculation is specifically shown in the following formula: wherein c i is a reference point correction coefficient corresponding to the reference point, is an aperture point data value corresponding to the reference point, is an aperture point data value corresponding to the center point, is a center distance, and r is a correction radius. Calculating an average correction coefficient, calculating an average correction coefficient corresponding to all reference point correction coefficients; Data correction, according to the average correction coefficient, traversing each aperture point in the infrared raw data, obtaining corrected infrared raw data.
2. The method of claim 1, wherein: The number of the reference points corresponding to the correction sub-data is at least two.
3. The method of claim 1, wherein: The preset number of frames is at least two.
4. The method of claim 1, wherein: The average correction coefficient is calculated as follows: all reference point correction coefficients are accumulated to obtain a total reference point correction coefficient, and the total reference point correction coefficient is divided by the number of reference point correction coefficients to obtain the average correction coefficient.
5. The infrared raw data correction method as described in claim 1, characterized in that: The data resolution comprises a horizontal pixel value and a vertical pixel value, and the correction radius corresponding to the correction sub-data is calculated according to the data resolution, and the calculation is specifically shown in the following formula: Wherein, r is the correction radius, w represents the horizontal pixel value, and h represents the vertical pixel value.
6. An electronic device, comprising: It comprises: A processor; A memory; And a program, wherein the program is stored in the memory and is configured to be executed by the processor, and the program comprises a method for correcting infrared raw data according to any one of claims 1-5.
7. A computer readable storage medium having stored thereon a computer program, characterized in that: The computer program is executed by the processor to correct the infrared raw data according to any one of claims 1-5.
Citation Information
Patent Citations
A multipoint unevenness correction method suitable for infrared thermal imagery quantitative processing
CN103674259A
Method and device for modifying non-uniformity correction coefficient of infrared detector
CN107976255A