A temperature compensation method, apparatus, device, and storage medium
By performing consistency verification and distance attenuation correction on infrared thermal imaging equipment, a compensation model was constructed, which solved the problem of insufficient temperature measurement accuracy of infrared thermal imaging thermometers at different distances, and achieved higher temperature compensation accuracy and applicability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-13
- Publication Date
- 2026-04-03
Smart Images

Figure CN115950537B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of infrared thermal imaging temperature measurement technology, and in particular to a temperature compensation method, device, equipment and storage medium. Background Technology
[0002] With the rapid development of science and technology, infrared thermal imaging thermometers can achieve long-distance, multi-target, non-contact body temperature detection. Utilizing infrared principles, facial recognition, AI, and other technologies, infrared thermal imaging thermometers can complete body temperature screening in milliseconds, with a detection distance of up to 10 meters. They can automatically record abnormal temperature information, issue timely alarms, and even automatically identify individuals with fever. This technology is widely used in various security industries such as power, energy, healthcare, and fire protection.
[0003] The main working principle of an infrared thermal imaging thermometer is to convert the infrared radiation from an object's surface into an electrical signal through the photoelectric effect and analog-to-digital conversion. This electrical signal corresponds one-to-one with the grayscale of the infrared thermal image. Finally, through algorithmic logic and calibration methods, the grayscale value is converted into a temperature value for display. Because the working environment of an infrared thermal imaging thermometer is complex, the factors affecting its measurement accuracy are also diverse. Among these, distance is a key factor. As the measurement distance between the infrared thermal imaging thermometer and the target increases, the thermal radiation measured by the infrared detector gradually attenuates, thus affecting the accuracy of the measured temperature value.
[0004] Therefore, improving the accuracy of temperature compensation is an urgent problem to be solved. Summary of the Invention
[0005] This application provides a temperature compensation method to improve the accuracy of temperature compensation.
[0006] Firstly, a temperature compensation method is provided, including:
[0007] After passing the consistency verification of N infrared thermal imaging devices, the raw measurement data collected by the N infrared thermal imaging devices at set distance intervals are obtained. The raw measurement data includes M raw temperature matrices, each representing the raw temperature measured by the N infrared thermal imaging devices at the same distance point from at least one preset blackbody radiation source, where N and M are integers greater than 1. A first mean matrix of the raw measurement data is calculated, and based on the first mean matrix and the preset blackbody temperature of each blackbody radiation source, a raw distance correction difference matrix is determined. A distance attenuation difference ratio matrix is determined based on the raw distance correction difference matrix. A distance attenuation correction factor for the first infrared thermal imaging device is calculated, and the distance attenuation difference ratio matrix is corrected based on the distance attenuation correction factor to obtain a corrected distance attenuation difference matrix. The first infrared thermal imaging device is any one of the N infrared thermal imaging devices. Based on the corrected distance attenuation difference matrix, each raw temperature collected by the first infrared thermal imaging device is compensated to obtain the temperature compensation result for each raw temperature.
[0008] In one possible implementation, the consistency check of N infrared thermal imaging devices includes:
[0009] From the M original temperature matrices, a first original temperature matrix and a second original temperature matrix are selected, wherein the first original temperature matrix is the matrix corresponding to the minimum distance point among the distance points, and the second original temperature matrix is the matrix corresponding to the maximum distance point among the distance points; a distance attenuation matrix is determined based on the first original temperature matrix and the second original temperature matrix; a consistency verification factor is determined based on the distance attenuation matrix; and a consistency verification is performed on the N infrared thermal imaging devices based on the consistency verification factor.
[0010] In one possible implementation, the step of compensating each original temperature acquired by the first infrared thermal imaging device based on the corrected distance attenuation difference matrix to obtain the temperature compensation result for each original temperature includes:
[0011] Based on the temperature range to which the first original temperature to be compensated belongs, and the distance range to which the first original temperature belongs when it is measured by the first infrared thermal imaging device, the distance attenuation difference of the first original temperature is determined from the corrected distance attenuation difference matrix, wherein the first original temperature is any one of the original temperatures collected by the first infrared thermal imaging device; based on the distance attenuation difference of the first original temperature, a first distance compensation factor and a second distance compensation factor of the first original temperature are calculated; based on the first distance compensation factor and the second distance compensation factor, a temperature compensation factor of the first original temperature is determined; based on the temperature compensation factor, the first original temperature is compensated to obtain the temperature compensation result of the first original temperature.
[0012] In one possible implementation, the first distance compensation factor, the second distance compensation factor, and the temperature compensation factor each satisfy the following expressions:
[0013]
[0014]
[0015]
[0016] Wherein, Rd1 is the first distance compensation factor, and Crdiff is... i,j The distance attenuation difference is the distance attenuation difference corresponding to the i-th row and j-th column in the corrected distance attenuation difference matrix, and the Ddiff is... j The distance interval parameter is set, where D′ is the distance point where the first original temperature is located. j Rd2 is the minimum value in the distance interval, Rt is the second distance compensation factor, T′ is the temperature compensation factor, and T′ is the first original temperature. i+1 -T i The temperature interval difference characterizes the temperature range.
[0017] In one possible implementation, determining the distance attenuation difference ratio matrix based on the original distance correction difference matrix includes:
[0018] Select a target element from the elements of the original distance correction difference matrix, and determine the distance attenuation factor based on the target element; wherein the target element is the element with the largest absolute value among the elements; determine the distance attenuation difference ratio matrix based on the distance attenuation factor and the original distance correction difference matrix.
[0019] In one possible implementation, after obtaining the temperature compensation results for each original temperature, the method further includes:
[0020] Determine whether the temperature compensation results for each original temperature meet the preset accuracy conditions;
[0021] If so, the corrected distance attenuation difference matrix is stored in the first infrared thermal imaging device.
[0022] In one possible implementation, the method further includes:
[0023] If the consistency check of the N infrared thermal imaging devices fails, then P infrared thermal imaging devices are added, where P is an integer greater than 0; if the difference between the original temperature of each blackbody radiation source measured by the second infrared thermal imaging device at each distance point and the preset blackbody temperature of each blackbody radiation source does not meet the set threshold, then the second infrared thermal imaging device is removed from the infrared thermal imaging devices.
[0024] Secondly, a temperature compensation device is provided, comprising:
[0025] An acquisition module is used to acquire raw measurement data collected by N infrared thermal imaging devices at set distance intervals after passing a consistency check. The raw measurement data includes M raw temperature matrices, each representing the raw temperature measured by the N infrared thermal imaging devices at the same distance point from at least one preset blackbody radiation source. N and M are integers greater than 1. A first determination module is used to calculate a first mean matrix of the raw measurement data and determine the raw distance based on the first mean matrix and the preset blackbody temperature of each blackbody radiation source. The system comprises: a correction difference matrix; a second determining module, used to determine a distance attenuation difference ratio matrix based on the original distance correction difference matrix; a correction module, used to calculate a distance attenuation correction factor for the first infrared thermal imaging device, and correct the distance attenuation difference ratio matrix based on the distance attenuation correction factor to obtain a corrected distance attenuation difference matrix, wherein the first infrared thermal imaging device is any one of the N infrared thermal imaging devices; and a compensation module, used to compensate for each original temperature collected by the first infrared thermal imaging device based on the corrected distance attenuation difference matrix to obtain a temperature compensation result for each original temperature.
[0026] In one possible implementation, the device further includes a verification module;
[0027] The verification module is used to select a first original temperature matrix and a second original temperature matrix from the M original temperature matrices, wherein the first original temperature matrix is the matrix corresponding to the minimum distance point among the distance points, and the second original temperature matrix is the matrix corresponding to the maximum distance point among the distance points; determine a distance attenuation matrix based on the first original temperature matrix and the second original temperature matrix; determine a consistency verification factor based on the distance attenuation matrix; and perform consistency verification on the N infrared thermal imaging devices based on the consistency verification factor.
[0028] In one possible implementation, the compensation module is specifically used for:
[0029] Based on the temperature range to which the first original temperature to be compensated belongs, and the distance range to which the first original temperature belongs when it is measured by the first infrared thermal imaging device, the distance attenuation difference to which the first original temperature belongs is determined from the corrected distance attenuation difference matrix; wherein, the first original temperature is any one of the original temperatures collected by the first infrared thermal imaging device; based on the distance attenuation difference of the first original temperature, a first distance compensation factor and a second distance compensation factor of the first original temperature are calculated; based on the first distance compensation factor and the second distance compensation factor, a temperature compensation factor of the first original temperature is determined; based on the temperature compensation factor, the first original temperature is compensated to obtain the temperature compensation result of the first original temperature.
[0030] In one possible implementation, the first distance compensation factor, the second distance compensation factor, and the temperature compensation factor each satisfy the following expressions:
[0031]
[0032]
[0033]
[0034] Wherein, Rd1 is the first distance compensation factor, and Crdiff is... i,j The distance attenuation difference is the distance attenuation difference corresponding to the i-th row and j-th column in the corrected distance attenuation difference matrix, and the Ddiff is... j The distance interval parameter is set, where D′ is the distance point where the first original temperature is located. j Rd2 is the minimum value within the distance interval, Rt is the second distance compensation factor, Rt is the temperature compensation factor, and T′ is the first original temperature. , The T i+1 -T i The temperature interval difference characterizes the temperature range.
[0035] In one possible implementation, the second determining module is specifically used for:
[0036] Select a target element from the elements of the original distance correction difference matrix, and determine the distance attenuation factor based on the target element; wherein the target element is the element with the largest absolute value among the elements; determine the distance attenuation difference ratio matrix based on the distance attenuation factor and the original distance correction difference matrix.
[0037] In one possible implementation, the device further includes a parameter processing module;
[0038] The parameter processing module is used to determine whether the temperature compensation results of each original temperature meet the preset accuracy conditions; if so, the corrected distance attenuation difference matrix is stored in the first infrared thermal imaging device.
[0039] In one possible implementation, the verification module is further configured to:
[0040] If the consistency check of the N infrared thermal imaging devices fails, then P infrared thermal imaging devices are added, where P is an integer greater than 0; if the difference between the original temperature of each blackbody radiation source measured by the second infrared thermal imaging device at each distance point and the preset blackbody temperature of each blackbody radiation source does not meet the set threshold, then the second infrared thermal imaging device is removed from the infrared thermal imaging devices.
[0041] Thirdly, an electronic device is provided, comprising:
[0042] A memory for storing computer programs; a processor for executing the computer programs stored in the memory to implement the method steps described in any one of the first aspects.
[0043] Fourthly, a computer-readable storage medium is provided, wherein a computer program is stored therein, and when executed by a processor, the computer program implements the method steps as described in any one of the first aspects.
[0044] In this embodiment, multiple infrared thermal imaging devices measure the original temperatures (original measurement data) of multiple blackbody radiation sources at multiple distances, calculate their first mean matrix, and determine the original distance correction difference matrix based on the first mean matrix and the preset blackbody temperature of each blackbody radiation source. Then, based on the original distance correction difference matrix, the distance attenuation difference ratio matrix is determined. Finally, the distance attenuation correction factor of the first infrared thermal imaging device (any one of the N devices) is calculated, and the distance attenuation difference ratio matrix is corrected based on the distance attenuation correction factor to obtain the corrected distance attenuation difference matrix. Based on the corrected distance attenuation difference matrix, the distance attenuation difference ratio matrix is then... The original temperatures collected by the first infrared thermal imaging device are compensated to obtain the compensation results for each original temperature. Therefore, the distance attenuation difference ratio matrix can be used as an inherent parameter of the compensation model and input into the same type of infrared thermal imaging device. Then, based on the distance attenuation correction factor of each infrared thermal imaging device, distance compensation is performed separately. This compensation model can perform targeted distance compensation for different infrared thermal imaging devices, correct the attenuation differences between different infrared thermal imaging devices, and improve their respective compensation accuracy, thereby improving the temperature measurement accuracy. Furthermore, this compensation model combines the original measurement data collected by multiple infrared thermal imaging devices, which improves the applicability of the model.
[0045] For the various aspects of the second to fourth aspects mentioned above, and the technical effects that each aspect may achieve, please refer to the above description of the technical effects that can be achieved for the first aspect or the various possible solutions in the first aspect, which will not be repeated here. Attached Figure Description
[0046] Figure 1 A flowchart illustrating a temperature compensation method provided in this application embodiment;
[0047] Figure 2 A flowchart for performing consistency verification on an infrared thermal imaging device is provided as an embodiment of this application;
[0048] Figure 3 A flowchart of a complete temperature compensation method provided in this application embodiment;
[0049] Figure 4 This is a schematic diagram of the structure of a temperature compensation device provided in an embodiment of this application;
[0050] Figure 5 This is a schematic diagram of another temperature compensation device provided in an embodiment of this application;
[0051] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0052] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The specific operational methods in the method embodiments can also be applied to the device embodiments or system embodiments. It should be noted that in the description of this application, "multiple" is understood as "at least two". "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. A connected to B can represent: A and B directly connected, and A and B connected through C. Furthermore, in the description of this application, terms such as "first" and "second" are used only for distinguishing the purpose of description and should not be construed as indicating or implying relative importance or order.
[0053] To better understand the embodiments of this application, some terms used in the embodiments of this application will be explained below so that those skilled in the art can understand them.
[0054] (1) The calibration distance refers to the distance between the objective lens of the infrared thermal imaging device and the target surface of the blackbody radiation source during temperature measurement calibration. Generally, the calibration distance of the infrared thermal imaging device is set to D0 (m). When measuring the temperature of an infrared thermal imaging device that has completed temperature measurement calibration, the temperature measurement value is accurate when the temperature measurement distance is equal to D0 (m). When the temperature measurement distance is less than D0 (m), the temperature measurement value increases as the temperature measurement distance decreases. When the temperature measurement distance is greater than D0 (m), the temperature measurement value decreases as the temperature measurement distance increases. According to the temperature measurement distance, the temperature measurement value shows a decay state as the temperature measurement distance increases.
[0055] (2) Temperature measurement distance refers to the distance between the objective lens of the infrared thermal imaging device and the surface of the object when the infrared thermal imaging device measures the temperature of the object.
[0056] (3) The surface temperature of a blackbody radiation source varies depending on the infrared energy emitted; the higher the emitted infrared energy, the higher the surface temperature. Infrared thermal imaging equipment measures the surface temperature of a blackbody radiation source by receiving the infrared energy emitted by the blackbody radiation source.
[0057] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0058] In temperature measurement scenarios, the measurement distance is one of the key factors affecting the accuracy of infrared thermal imaging equipment. When using infrared thermal imaging equipment to measure the temperature of an object, temperature correction is necessary based on the measurement distance. Currently, temperature correction is generally performed using methods such as linear difference compensation, least squares fitting, and polynomials. However, these compensation methods are only applicable to a single device. Because different infrared thermal imaging devices of the same model have extremely stringent requirements regarding measurement range, measurement environment, device focusing method, lens type, etc., there will be inconsistencies in temperature measurement. Therefore, the compensation models constructed using the above methods have poor universality and versatility, thus reducing the accuracy of temperature measurement.
[0059] Therefore, this application provides a temperature compensation method applicable to various infrared thermal imaging devices, and improves the temperature measurement accuracy of various infrared thermal imaging devices.
[0060] While this application provides method operation steps as shown in the following embodiments or accompanying drawings, the method may include more or fewer operation steps based on conventional or non-inventive methods. For steps that do not logically have a necessary causal relationship, the execution order of these steps is not limited to the execution order provided in the embodiments of this application. In actual processing or when the device executes the method, it may be executed in the order shown in the embodiments or accompanying drawings, or in combination with the steps.
[0061] In this application example, T preset distance points (temperature measurement points) can be set within a preset temperature measurement distance range according to a set distance interval; furthermore, S blackbody radiation sources can be preset (different blackbody radiation sources are set with different blackbody temperatures).
[0062] An infrared thermal imaging device can measure the temperature of S preset blackbody radiation sources at preset distance points (temperature measurement points). The temperature obtained from measuring the S blackbody radiation sources can be called the original temperature. The preset temperature measurement distance range can be the working distance range of the infrared thermal imaging device (the distance range at which the infrared thermal imaging device can measure the temperature of the target to be measured). This working distance range can include the minimum temperature measurement distance, the calibration distance, and the maximum temperature measurement distance. The maximum temperature measurement distance is the maximum distance at which the infrared thermal imaging device can measure the temperature of the target to be measured (the blackbody radiation source to be measured), and the minimum temperature measurement distance is the minimum distance at which the infrared thermal imaging device can measure the temperature of the target to be measured. The calibration distance is less than the maximum temperature measurement distance.
[0063] For example, the calibration distance of an infrared thermal imaging device is D0 (m). The maximum temperature measurement distance of the infrared thermal imaging device is generally 5 times the calibration distance, and then it can be used within the working distance range [D]. min Within [5D0], T preset temperature measurement points are set, and the working distance D is [missing information]. minAlternatively, the calibration distance D0 (m) can be directly set, and the distance interval can be set to d (m). Then, the distance points (temperature measurement points) for the initial measurement data acquisition can be set to D0 + nd (m) (n = -1, 0, ..., n-1, n). This distance interval coefficient n can be set to a negative number, meaning the starting point of the initial distance acquisition is before the calibration distance D0 (m). The initial value of n can be selected based on the working distance range of the infrared thermal imaging device; this embodiment does not impose any limitations on this. It is understood that the smaller the preset distance interval within the working distance range of the infrared thermal imaging device, the larger the data acquisition volume and the higher the distance-compensated temperature measurement accuracy. Considering factors such as production cost, ease of operation, and measurement accuracy, the size of the preset distance interval can be set according to the actual situation described above, as long as multiple preset distance points (temperature measurement points) are evenly distributed within the working distance range.
[0064] Figure 1 This is a flowchart illustrating a temperature compensation method provided in an embodiment of this application. This process can be executed by a temperature compensation device, which can be implemented in software, hardware, or a combination of both. As shown in the figure, the method includes the following steps:
[0065] For ease of description below, this embodiment uses 3 infrared thermal imaging devices, 6 preset blackbody radiation sources, and 5 preset distance points (temperature measurement points) as examples. 101: After the consistency verification of N infrared thermal imaging devices passes, the raw measurement data collected by the N infrared thermal imaging devices at set distance intervals is obtained. The raw measurement data includes M raw temperature matrices, each representing the raw temperature obtained by the N infrared thermal imaging devices at each distance point (temperature measurement point) from at least one preset blackbody radiation source. N and M are integers greater than 1.
[0066] Optionally, the selected N infrared thermal imaging devices can be devices with the same detector type, chip circuit, lens type, hardware structure, software program and internal parameters. Furthermore, they can be calibrated according to the same temperature measurement algorithm, and the temperature of the target (blackbody radiation source) can be measured more accurately at the calibration distance.
[0067] As shown in Table 1, an example table of raw measurement data is presented using three infrared thermal imaging devices as examples.
[0068] Table 1: Example of raw measurement data
[0069]
[0070] In Table 1 above, the preset distance interval is 2m. The distance points used by the infrared thermal imaging equipment to measure the temperature of the blackbody radiation source are 2m, 4m, 6m, 8m, and 10m, respectively. Six blackbody radiation sources are preset, with blackbody temperatures of 40℃, 60℃, 100℃, 150℃, 300℃, and 550℃, respectively.
[0071] In other embodiments, to ensure the wide applicability of the constructed compensation model, the selected infrared thermal imaging devices should have good consistency. Therefore, consistency verification can be performed on the aforementioned N infrared thermal imaging devices. For example... Figure 2 As shown, an exemplary flowchart of a conformity verification process for an infrared thermal imaging device provided in an embodiment of this application is illustrated. The process includes the following steps:
[0072] 201: Select the first and second original temperature matrices from the M original temperature matrices.
[0073] Optionally, the first original temperature matrix is the matrix corresponding to the minimum distance among all distance points, and the second original temperature matrix is the matrix corresponding to the maximum distance among all distance points.
[0074] In other embodiments, the first original temperature matrix and the second original temperature matrix may also be matrices corresponding to a set distance point.
[0075] Taking Table 1 above as an example, the first original temperature matrix (Tnear) and the second original temperature matrix (Tfar) are as follows:
[0076]
[0077]
[0078] 202: Determine the distance attenuation matrix based on the first original temperature matrix and the second original temperature matrix.
[0079] Optionally, the distance attenuation matrix satisfies the following expression: Pt=Tnear-Tfar……..(3)
[0080] Taking steps (1) and (2) in step 201 above as examples, Pt can be determined as:
[0081]
[0082] 203: Determine the consistency check factor based on the distance attenuation matrix above.
[0083] Optionally, the consistency check factor can satisfy the following expression:
[0084] P i =max(Pt)i1 Pt i2 Pt i3 )-min(Pt i1 Pt i2 Pt i3 (5)
[0085] Among them, P i Pt is used to characterize the consistency check factor of the i-th row. i1 Used to characterize the distance decay value corresponding to the first column and the i-th row.
[0086] Taking Pt in step 202 above as an example,
[0087] 204: Based on the above consistency verification factor, perform consistency verification on N infrared thermal imaging devices.
[0088] Optionally, the consistency of the N infrared thermal imaging devices can be verified in the following way: First, determine the upper limit of the difference (Pdiff). For example, if we set b% of the blackbody temperature of the blackbody radiation source as the upper limit of the difference, the value of b can be determined by the measurement accuracy of the infrared thermal imaging device. For example, the measurement accuracy is ±2 (or ±2%)℃, whichever is greater. For example, for blackbody radiation sources below 100℃, the measurement accuracy is ±2℃, and for blackbody radiation sources above 100℃, the measurement accuracy is ±2%℃. Then Pdiff s =T s *b%; where T s The blackbody temperature is used to characterize the S-th blackbody radiation source. Taking the blackbody temperatures provided in Table 1 above as an example, the following can be calculated:
[0089] Secondly, if each item in the calculated consistency check factor P is less than or equal to the upper limit of the difference (P) i ≤Pdiff s If the N infrared thermal imaging devices pass the consistency check, it means that the consistency check of the N infrared thermal imaging devices has passed; otherwise, it means that the consistency check of the N infrared thermal imaging devices has failed.
[0090] Furthermore, if the consistency check of N infrared thermal imaging devices fails, P infrared thermal imaging devices (P being an integer greater than 0) are added, and the device with the largest difference among the N+P devices is removed. Specifically, if the difference between the original temperature of each blackbody radiation source measured by the second infrared thermal imaging device at each distance point and the preset blackbody temperature of each blackbody radiation source does not meet the set threshold, the second infrared thermal imaging device is removed from the infrared thermal imaging devices. After removing the second infrared thermal imaging device, the consistency check is performed again until the consistency check passes.
[0091] In this embodiment of the application, the consistency verification process described above is used to verify the consistency of multiple infrared thermal imaging devices, thereby avoiding individual differences between the infrared thermal imaging devices from affecting the compensation model subsequently constructed, and further improving the applicability of the compensation model.
[0092] 102: Calculate the first mean matrix of the above original measurement data, and determine the original distance correction difference matrix based on the first mean matrix and the preset blackbody temperature of each blackbody radiation source.
[0093] Optionally, taking three infrared thermal imaging devices as an example, the first mean matrix satisfies the following expression:
[0094]
[0095] Among them, Tave st Let Ta be the first mean matrix. st The matrix Tb is obtained by infrared thermal imaging device 1 measuring S blackbody radiation sources at T distance points (temperature measurement points) in Table 1 above. st The matrix Tc is obtained by the infrared thermal imaging device 2 at T distance points (temperature measurement points) measuring S blackbody radiation sources as shown in Table 1 above. st The matrix shown in Table 1 above is obtained by the infrared thermal imaging device 3 measuring S blackbody radiation sources at T distance points (temperature measurement points). Based on Table 1 above, the first mean matrix can be specifically calculated as follows:
[0096]
[0097] Optionally, the original distance correction difference matrix can satisfy the following expression:
[0098] Tdiff st =Tave st -Ttar st ..............(10)
[0099] Among them, Tdiff st For the original distance correction difference matrix, Ttar st Let S be the blackbody temperatures of the S blackbody radiation sources. Based on Table 1 above, the original distance correction difference matrix can be calculated as follows:
[0100]
[0101] 103: Based on the original distance correction difference matrix above, determine the distance attenuation difference ratio matrix.
[0102] Optionally, the distance attenuation difference ratio matrix can be determined by selecting the target element (Tdiff) from the elements of the original distance correction difference matrix. s,t ), and determine the distance attenuation factor based on the target element, which is the element with the largest absolute value among all elements (such as the target element in the above formula (11) being -71.5); determine the distance attenuation difference ratio matrix based on the distance attenuation factor and the above original distance correction difference matrix.
[0103] Optional, the distance attenuation factor can satisfy the following expression:
[0104] T coff =1 / Tdiff s,t ............(12)
[0105] In this step, the distance attenuation difference ratio matrix is determined, which can be achieved by multiplying the original distance correction difference matrix by the distance attenuation factor T. coff The distance attenuation difference ratio matrix R is obtained. st (i.e. R) st, =Tdiff st *T coff Based on the above example, Tdiff st The distance attenuation difference ratio matrix can be obtained as follows:
[0106]
[0107] In this embodiment, the distance attenuation difference ratio matrix is determined by combining the original measurement data of multiple infrared thermal imaging devices. Therefore, considering the individual differences between different infrared thermal imaging devices, the distance attenuation difference ratio matrix is used as an inherent parameter of the compensation model and input into the infrared thermal imaging device, which improves the applicability of the compensation model and thus improves the accuracy of subsequent temperature compensation.
[0108] 104: Calculate the distance attenuation correction factor of the first infrared thermal imaging device, and correct the distance attenuation difference ratio matrix according to the distance attenuation correction factor to obtain the corrected distance attenuation difference matrix. The first infrared thermal imaging device can be any one of N.
[0109] Optional, the distance attenuation correction factor satisfies the following expression:
[0110] Tcoff'=T s '-T s ………(14)
[0111] Where Tcoff' is the distance attenuation correction factor, T s'T' is the raw temperature measured by an infrared thermal imaging device at the maximum distance point for the blackbody radiation source with the highest blackbody temperature. s This is the highest blackbody temperature preset in each blackbody radiation source.
[0112] Taking Table 1 above as an example, the Tcoff' of infrared thermal imaging device 1 can be calculated as 478.7-550=-71.3℃, the Tcoff' of infrared thermal imaging device 2 as 478.5-550=-71.5℃, and the Tcoff' of infrared thermal imaging device 3 as 478.4-550=-71.6℃.
[0113] Optionally, the range attenuation difference ratio matrix is corrected based on the range attenuation correction factor to obtain a corrected range attenuation difference matrix. Specifically, the range attenuation correction factor can be compared with the aforementioned range attenuation difference ratio matrix R. st Multiplying them together yields the corrected distance attenuation difference matrix Crdiff. st (i.e., Crdiff) st =R st *Tcoff').
[0114] Taking the infrared thermal imaging device 1 in Table 1 as an example, the corrected distance attenuation difference matrix Crdiff is obtained. st for:
[0115]
[0116] Similarly, other infrared thermal imaging devices of the same model (not limited to the three infrared thermal imaging devices mentioned above) can use the distance attenuation difference ratio matrix R mentioned above. st After being used as an inherent parameter of the compensation model, the distance attenuation difference ratio matrix can also be corrected in the manner described in 104 above to obtain the corrected distance attenuation difference matrix, which facilitates subsequent temperature compensation.
[0117] In this embodiment, since each infrared thermal imaging device has certain individual differences in detector type, chip circuit, lens type, and production calibration process, its attenuation amplitude at different distances also varies. By combining the original measurement data of multiple infrared thermal imaging devices, a uniformly applicable distance attenuation difference ratio matrix is determined. Then, a distance attenuation correction factor is determined for each infrared thermal imaging device, and the uniformly applicable distance attenuation difference ratio matrix is corrected accordingly based on the respective distance correction factor, thereby ensuring that each infrared thermal imaging device has a good compensation effect.
[0118] 105: Based on the above-corrected distance attenuation difference matrix, the original temperatures collected by the first infrared thermal imaging device are compensated to obtain the temperature compensation results for each original temperature.
[0119] Optionally, compensation for the original temperature can be achieved through the following methods: Based on the temperature range to which the first original temperature to be compensated belongs, and the distance range to which the first original temperature belongs when it is measured by the first infrared thermal imaging device, determine the distance attenuation difference of the first original temperature from the corrected distance attenuation difference matrix. Based on the distance attenuation difference of the first original temperature, calculate a first distance compensation factor and a second distance compensation factor for the first original temperature; wherein, the first original temperature is any one of the original temperatures collected by the first infrared thermal imaging device; determine the temperature compensation factor for the first original temperature based on the first distance compensation factor and the second distance compensation factor; compensate the first original temperature based on the temperature compensation factor to obtain the temperature compensation result for the first original temperature. In other embodiments, the first original temperature to be compensated is not limited to any one of the original temperatures collected by the first infrared thermal imaging device at a set distance point, but can also be the temperature measured by the first infrared thermal imaging device at other distance points, for example, the temperature measured at 5m.
[0120] Optionally, the first distance compensation factor, the second distance compensation factor, and the temperature compensation factor each satisfy the following expressions:
[0121]
[0122]
[0123]
[0124] Where Rd1 is the first distance compensation factor, and Crdiff i,j Ddiff represents the distance attenuation difference in the i-th row and j-th column of the corrected distance attenuation difference matrix. j The distance interval parameter is set, where D′ is the distance point where the first original temperature is located. j Rd2 is the minimum value in the distance interval, Rt is the second distance compensation factor, Rt is the temperature compensation factor, and T′ is the first original temperature. , T i+1 -T i The temperature interval difference characterizes a temperature range.
[0125] For example, T distance points are set as D1, D2, ..., D... T The blackbody temperatures of the S blackbody radiation sources are T1, T2, ..., T. S The set temperature range is W (W = T). i+1 -T i The distance interval is set to Ddiff(Ddiff) j =D j+1 -Dj ) Among them, for the first original temperature T' to be compensated, the distance point where the infrared thermal imaging device 1 measures this first original temperature is D'. When it is determined that both T' and D' are within the set working distance range, the first distance compensation factor, the second distance compensation factor, and the temperature compensation factor of the first original temperature are respectively determined through the above expressions (16), (17), and (18). By analogy, the temperature compensation factors of all the original temperatures of the infrared thermal imaging device 1 are determined.
[0126] Optionally, the temperature compensation result satisfies the following expression:
[0127] T D = T' – Rt……(19)
[0128] In some embodiments, if D' < D1, then j = 1; if D' > D T , then j = T - 1; if T' < T1, then i = 1; if T' > T S , then i = S - 1. Specifically, when the original temperature to be compensated (target temperature) is less than the minimum blackbody temperature of the set blackbody radiation source, and the distance point where this target temperature is located is less than the set minimum distance point, the parameters of the temperature range (T1, T2) and the distance range (D1, D2) are used for compensation calculation; when the original temperature to be compensated (target temperature) is greater than the maximum blackbody temperature of the set blackbody radiation source, and the distance point where this target temperature is located is greater than the set maximum distance point, the parameters of the last temperature range (T s-1 , T s ), the last distance range (D t-1 , D t ) are used for compensation calculation. Similarly, other infrared thermal imaging devices of the same model can also obtain the compensation results of their respective original temperatures in the above manner.
[0129] Taking Table 1 above as an example, Table 2 exemplarily shows an example table of the compensation results of the original temperature provided by the embodiments of the present application.
[0130] Table 2: Example Table of Compensation Results of Original Temperature
[0131]
[0132] Optionally, after obtaining the temperature compensation result of the original temperature, its compensation accuracy can also be verified. Specifically: The difference between each temperature compensation result and the blackbody temperature of its corresponding blackbody radiation source is calculated to obtain the errors of the infrared thermal imaging device (such as, infrared thermal imaging device 1) measuring different blackbody radiation sources at each distance point. As shown in Table 3, it exemplarily shows an example table of error analysis of the temperature compensation result provided by the embodiments of the present application.
[0133] Table 3: Example of Error Analysis for Temperature Compensation Results
[0134]
[0135] In some embodiments, determining whether the temperature compensation result of the original temperature meets the preset accuracy condition can specifically involve determining whether the difference between the compensated original temperature and the corresponding blackbody temperature is within a set fluctuation range (e.g., the fluctuation range of the difference is ±2 (or ±2%) °C of the blackbody temperature). If so, it indicates that the distance attenuation difference matrix R st If the input parameters of the compensation model meet the design requirements, the distance attenuation difference matrix can be stored in the infrared thermal imaging device for subsequent use; otherwise, proceed to step 101, repeat the above steps, and recalculate the new distance attenuation difference matrix.
[0136] In other embodiments, determining whether the temperature compensation result of the original temperature meets the preset accuracy condition can be done by determining the number of times the difference between the compensated original temperature and the blackbody temperature is less than a preset threshold to determine whether the compensated original temperature meets the preset accuracy condition. For example, if the proportion of the compensated original temperature that meets the preset accuracy condition is greater than a preset proportion value, then the preset accuracy condition is met, and the distance attenuation difference matrix can be stored in the infrared thermal imaging device for subsequent use; otherwise, proceed to step 101, repeat the above steps, and recalculate the new distance attenuation difference matrix.
[0137] In this embodiment, since the accuracy is verified by using the temperature compensation results of the original temperature at different distance points of the infrared thermal imaging device, the effectiveness of the temperature compensation method is self-verified, further ensuring the measurement accuracy of the compensation model; furthermore, since the distance attenuation difference matrix (Crdiff) of each infrared thermal imaging device can be corrected, the accuracy of the temperature compensation method is verified. st The parameters are stored as built-in parameters in the compensation model. Therefore, when using infrared thermal imaging equipment to measure temperature, the target temperature of the target can be obtained quickly and accurately. For example, if the original measurement value of the target measured by infrared thermal imaging equipment 1 at a distance of 5m is 67.3℃, the distance of 5m is in the range of 4 to 6m, and the measured value of 67.3℃ is in the temperature range of 60 to 100℃, the first distance compensation factor Rd1 is calculated to be -1.95, the second distance compensation factor Rd2 is -4.70, and the temperature compensation factor Rt corresponding to 67.3℃ at 5m is calculated to be -2.5. Therefore, the target temperature value should be 67.3℃ - (-2.5) = 69.8℃.
[0138] In other embodiments, the distance attenuation difference ratio matrix can be directly stored in each infrared thermal imaging device, and the respective distance attenuation correction factor can be stored as an inherent parameter in each infrared thermal imaging device. This allows the established distance attenuation difference ratio model to correct the attenuation differences between different devices based on their respective distance attenuation correction factors, thereby improving the accuracy of subsequent temperature measurements.
[0139] In this embodiment, multiple infrared thermal imaging devices measure the original temperatures (original measurement data) of multiple blackbody radiation sources at multiple distances, calculate their first mean matrix, and determine the original distance correction difference matrix based on the first mean matrix and the preset blackbody temperature of each blackbody radiation source. Then, based on the original distance correction difference matrix, the distance attenuation difference ratio matrix is determined. Finally, the distance attenuation correction factor of the first infrared thermal imaging device (any one of the N devices) is calculated, and the distance attenuation difference ratio matrix is corrected based on the distance attenuation correction factor to obtain the corrected distance attenuation difference matrix. Based on the corrected distance attenuation difference matrix, the distance attenuation difference ratio matrix is then... The original temperatures collected by the first infrared thermal imaging device are compensated to obtain the compensation results for each original temperature. Therefore, the distance attenuation difference ratio matrix can be used as an inherent parameter of the compensation model and input into the same type of infrared thermal imaging device. Then, based on the distance attenuation correction factor of each infrared thermal imaging device, distance compensation is performed separately. This compensation model can perform targeted distance compensation for different infrared thermal imaging devices, correct the attenuation differences between different infrared thermal imaging devices, and improve their respective compensation accuracy, thereby improving the temperature measurement accuracy. Furthermore, this compensation model combines the original measurement data collected by multiple infrared thermal imaging devices, which improves the applicability of the model.
[0140] Taking three infrared thermal imaging devices as an example, Figure 3 A flowchart of a complete temperature compensation method is provided for embodiments of this application. As shown in the figure, the process includes the following steps:
[0141] 301: Perform a consistency check on the three selected infrared thermal imaging devices.
[0142] 302: Determine whether the consistency check of the above three infrared thermal imaging devices has passed. If yes, proceed to 304; otherwise, proceed to 303.
[0143] 303: After adding a new infrared thermal imaging device and removing the infrared thermal imaging device with the greatest consistency difference, proceed to 301.
[0144] The specific implementation process of 301 to 303 is as follows: Figure 2 Similarities will not be repeated here.
[0145] 304: Acquire raw measurement data collected by three infrared thermal imaging devices at set distance intervals.
[0146] The specific implementation process of this step and Figure 1 Similar to 101 in the previous section, it will not be described again here.
[0147] 305: Calculate the first mean matrix of the original measurement data, and determine the original distance correction difference matrix based on the first mean matrix and the preset blackbody temperature of each blackbody radiation source.
[0148] The specific implementation process of this step and Figure 1 Similar to 102 in the previous section, it will not be described again here.
[0149] 306: Determine the distance attenuation difference ratio matrix based on the original distance correction difference matrix.
[0150] The specific implementation process of this step and Figure 1 Similar to 103 in the previous section, it will not be described again here.
[0151] 307: Calculate the distance attenuation correction factor for each of the three infrared thermal imaging devices, and correct the distance attenuation difference ratio matrix according to their respective distance attenuation correction factors to obtain three corrected distance attenuation difference matrices.
[0152] The specific implementation process of this step and Figure 1 Similar to 104 in the previous section, it will not be described again here.
[0153] 308: Based on the above three corrected distance attenuation difference matrices, the original temperatures collected by the three infrared thermal imaging devices are compensated respectively to obtain the temperature compensation results of the original temperatures of the three infrared thermal imaging devices.
[0154] The specific implementation process of this step and Figure 1 Similar to 105 in the previous section, it will not be described again here.
[0155] 309: Determine whether the temperature compensation results of the original temperatures of the three infrared thermal imaging devices meet the preset accuracy conditions. If yes, proceed to 310; otherwise, proceed to 303.
[0156] 310: Store the above distance attenuation difference ratio matrix as a distance attenuation difference ratio model in the three infrared thermal imaging devices, and store the distance attenuation correction factor corresponding to each of the three infrared thermal imaging devices as their respective inherent parameters.
[0157] It should be noted that the methods described in the embodiments of this application include, but are not limited to, the infrared thermal imaging devices exemplified above. Other infrared thermal imaging devices of the same type are also applicable. Figure 1 , Figure 2 , Figure 3 The methods shown in this application are not limited to the embodiments herein.
[0158] Based on the same technical concept, this application also provides a schematic diagram of the structure of a temperature compensation device.
[0159] Figure 4 This is a schematic diagram of a temperature compensation device provided in an embodiment of this application. As shown in the figure, the device includes: an acquisition module 401, a first determination module 402, a second determination module 403, a correction module 404, and a compensation module 405.
[0160] The acquisition module 401 is used to acquire the original measurement data collected by the N infrared thermal imaging devices at a set distance interval after the consistency verification of the N infrared thermal imaging devices is passed; wherein, the original measurement data includes M original temperature matrices, one of which is used to characterize the original temperature obtained by the N infrared thermal imaging devices measuring at least one preset blackbody radiation source at the same distance point, and N and M are integers greater than 1.
[0161] The first determining module 402 is used to calculate the first mean matrix of the original measurement data, and determine the original distance correction difference matrix based on the first mean matrix and the preset blackbody temperature of each blackbody radiation source.
[0162] The second determining module 403 is used to determine the distance attenuation difference ratio matrix based on the original distance correction difference matrix.
[0163] The correction module 404 is used to calculate the distance attenuation correction factor of the first infrared thermal imaging device, and correct the distance attenuation difference ratio matrix according to the distance attenuation correction factor to obtain the corrected distance attenuation difference matrix. The first infrared thermal imaging device is any one of the N infrared thermal imaging devices.
[0164] The compensation module 405 is used to compensate for each original temperature collected by the first infrared thermal imaging device according to the corrected distance attenuation difference matrix, so as to obtain the temperature compensation result of each original temperature.
[0165] Optional, the compensation module 405 is specifically used for:
[0166] Based on the temperature range to which the first original temperature to be compensated belongs, and the distance range to which the first original temperature belongs when it is measured by the first infrared thermal imaging device, the distance attenuation difference to which the first original temperature belongs is determined from the corrected distance attenuation difference matrix; wherein, the first original temperature is any one of the original temperatures collected by the first infrared thermal imaging device; based on the distance attenuation difference of the first original temperature, a first distance compensation factor and a second distance compensation factor of the first original temperature are calculated; based on the first distance compensation factor and the second distance compensation factor, a temperature compensation factor of the first original temperature is determined; based on the temperature compensation factor, the first original temperature is compensated to obtain the temperature compensation result of the first original temperature.
[0167] Optionally, the second determining module 403 is specifically used for:
[0168] Select a target element from the elements of the original distance correction difference matrix, and determine the distance attenuation factor based on the target element; wherein the target element is the element with the largest absolute value among the elements; determine the distance attenuation difference ratio matrix based on the distance attenuation factor and the original distance correction difference matrix.
[0169] In some embodiments, the structural schematic diagram of the temperature compensation device, in addition to Figure 4 In addition to the modules in the system, it may also include a verification module and a parameter processing module. Figure 5 This is a schematic diagram of another temperature compensation device provided in an embodiment of this application. As shown in the figure, the device includes: an acquisition module 401, a first determination module 402, a second determination module 403, a correction module 404, a compensation module 405, a verification module 501, and a parameter processing module 502; wherein, the relevant descriptions of the acquisition module 401, the first determination module 402, the second determination module 403, the correction module 404, and the compensation module 405 are as described above. Figure 4 This will not be described again here.
[0170] The verification module 501 is used to select a first original temperature matrix and a second original temperature matrix from the M original temperature matrices, wherein the first original temperature matrix is the matrix corresponding to the minimum distance point among the distance points, and the second original temperature matrix is the matrix corresponding to the maximum distance point among the distance points; determine a distance attenuation matrix based on the first original temperature matrix and the second original temperature matrix; determine a consistency verification factor based on the distance attenuation matrix; and perform consistency verification on the N infrared thermal imaging devices based on the consistency verification factor.
[0171] The parameter processing module 502 is used to determine whether the temperature compensation results of each original temperature meet the preset accuracy conditions.
[0172] If so, the corrected distance attenuation difference matrix is stored in the first infrared thermal imaging device.
[0173] Optionally, the verification module 501 is also used for:
[0174] If the consistency check of N infrared thermal imaging devices fails, then add P infrared thermal imaging devices, where P is an integer greater than 0.
[0175] If the difference between the original temperature of each blackbody radiation source measured by the second infrared thermal imaging device at each distance point and the preset blackbody temperature of each blackbody radiation source does not meet the set threshold, then the second infrared thermal imaging device will be removed from the infrared thermal imaging devices.
[0176] Based on the same technical concept, this application also provides an electronic device that can realize the function of the aforementioned temperature compensation device.
[0177] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0178] At least one processor 601 and a memory 602 connected to at least one processor 601. In this embodiment, the specific connection medium between the processor 601 and the memory 602 is not limited. Figure 6 The example shown is the connection between processor 601 and memory 602 via bus 600. Bus 600 is... Figure 6 The connections between other components are indicated by thick lines and are for illustrative purposes only, not as limiting information. The 600 bus can be divided into address bus, data bus, control bus, etc., for ease of representation. Figure 6 The term is represented by a single thick line, but this does not imply that there is only one bus or one type of bus. Alternatively, the processor 601 can also be called a controller; there is no restriction on the name.
[0179] In this embodiment, memory 602 stores instructions executable by at least one processor 601. By executing the instructions stored in memory 602, at least one processor 601 can perform a temperature compensation method as described above. Processor 601 can implement... Figure 4 or Figure 5 The functions of each module in the device shown.
[0180] The processor 601 is the control center of the device. It can connect to various parts of the control device through various interfaces and lines. By running or executing instructions stored in memory 602 and calling data stored in memory 602, the processor can perform various functions and process data, thereby monitoring the device as a whole.
[0181] In one possible design, processor 601 may include one or more processing units. Processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into processor 601. In some embodiments, processor 601 and memory 602 may be implemented on the same chip; in some embodiments, they may also be implemented on separate chips.
[0182] The processor 601 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor, application-specific integrated circuit, field-programmable gate array or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of a temperature compensation method disclosed in the embodiments of this application can be directly manifested as execution by a hardware processor, or execution by a combination of hardware and software modules within the processor.
[0183] Memory 602, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory 602 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic storage, magnetic disk, optical disk, etc. Memory 602 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, memory 602 may also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.
[0184] By designing and programming the processor 601, the code corresponding to a temperature compensation method described in the foregoing embodiments can be embedded into the chip, enabling the chip to execute the code during operation. Figure 1 The illustrated embodiment presents a temperature compensation method. How to design and program the processor 601 is a technique well-known to those skilled in the art and will not be described further here.
[0185] It should be noted that the electronic device provided in this application embodiment can implement all the method steps implemented in the above method embodiment and can achieve the same technical effect. Here, the parts and beneficial effects that are the same as those in the method embodiment will not be described in detail.
[0186] This application also provides a computer-readable storage medium storing computer-executable instructions for causing a computer to execute a temperature compensation method described in the above embodiments.
[0187] This application also provides a computer program product, which, when invoked by a computer, causes the computer to execute a temperature compensation method described in the above embodiments.
[0188] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0189] This application is described with reference to flowchart illustrations and / or block diagrams of the methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable temperature compensation device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable temperature compensation device, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0190] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable temperature compensation device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0191] These computer program instructions can also be loaded onto a computer or other programmable temperature compensation device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
Claims
1. A temperature compensation method, characterized in that, include: After passing the consistency verification of N infrared thermal imaging devices, the raw measurement data collected by the N infrared thermal imaging devices at a set distance interval is obtained; wherein, the raw measurement data includes M raw temperature matrices, one raw temperature matrix is used to characterize: the raw temperature obtained by the N infrared thermal imaging devices measuring at least one preset blackbody radiation source at the same distance point, and N and M are integers greater than 1; Calculate the first mean matrix of the original measurement data, and determine the original distance correction difference matrix based on the first mean matrix and the preset blackbody temperature of each blackbody radiation source. Based on the original distance correction difference matrix, determine the distance attenuation difference ratio matrix; Calculate the distance attenuation correction factor of the first infrared thermal imaging device, and correct the distance attenuation difference ratio matrix according to the distance attenuation correction factor to obtain the corrected distance attenuation difference matrix. The first infrared thermal imaging device is any one of the N infrared thermal imaging devices. Based on the corrected distance attenuation difference matrix, the original temperatures collected by the first infrared thermal imaging device are compensated to obtain the temperature compensation results for each original temperature.
2. The method as described in claim 1, characterized in that, The consistency verification of N infrared thermal imaging devices includes: From the M original temperature matrices, select a first original temperature matrix and a second original temperature matrix. The first original temperature matrix is the matrix corresponding to the minimum distance point among the distance points, and the second original temperature matrix is the matrix corresponding to the maximum distance point among the distance points. The distance attenuation matrix is determined based on the first original temperature matrix and the second original temperature matrix; Based on the distance attenuation matrix, determine the consistency verification factor; The consistency of the N infrared thermal imaging devices is verified based on the consistency verification factor.
3. The method as described in claim 1, characterized in that, The step of compensating for each original temperature acquired by the first infrared thermal imaging device based on the corrected distance attenuation difference matrix to obtain the temperature compensation result for each original temperature includes: Based on the temperature range to which the first original temperature to be compensated belongs, and the distance range to which the first original temperature belongs when it is measured by the first infrared thermal imaging device, the distance attenuation difference to which the first original temperature belongs is determined from the corrected distance attenuation difference matrix, wherein the first original temperature is any one of the original temperatures collected by the first infrared thermal imaging device. Based on the distance attenuation difference of the first original temperature, calculate the first distance compensation factor and the second distance compensation factor of the first original temperature; The temperature compensation factor for the first original temperature is determined based on the first distance compensation factor and the second distance compensation factor. The first original temperature is compensated according to the temperature compensation factor to obtain the temperature compensation result of the first original temperature.
4. The method as described in claim 3, characterized in that, The first distance compensation factor, the second distance compensation factor, and the temperature compensation factor each satisfy the following expressions: Among them, the As the first distance compensation factor, the The distance attenuation difference is the distance attenuation difference corresponding to the i-th row and j-th column in the corrected distance attenuation difference matrix. For the set distance interval parameter, the The distance point where the first original temperature is located, the The minimum value in the distance interval, The second distance compensation factor, the The temperature compensation factor is the temperature compensation factor. The first original temperature, the The temperature interval difference characterizing the temperature range, the The upper limit of the temperature range to which the first original temperature belongs, the This represents the lower limit of the temperature range to which the first original temperature belongs.
5. The method as described in claim 1, characterized in that, The step of determining the distance attenuation difference ratio matrix based on the original distance correction difference matrix includes: Select a target element from the elements of the original distance correction difference matrix, and determine the distance attenuation factor based on the target element; wherein the target element is the element with the largest absolute value among the elements. The distance attenuation difference ratio matrix is determined based on the distance attenuation factor and the original distance correction difference matrix.
6. The method as described in claim 1, characterized in that, After obtaining the temperature compensation results for each original temperature, the process further includes: Determine whether the temperature compensation results for each original temperature meet the preset accuracy conditions; If so, the corrected distance attenuation difference matrix is stored in the first infrared thermal imaging device.
7. The method according to any one of claims 1-6, characterized in that, The method further includes: If the consistency check of the N infrared thermal imaging devices fails, then P infrared thermal imaging devices are added, where P is an integer greater than 0. If the difference between the original temperature of each blackbody radiation source measured by the second infrared thermal imaging device at each distance point and the preset blackbody temperature of each blackbody radiation source does not meet the set threshold, then the second infrared thermal imaging device will be removed from the infrared thermal imaging devices.
8. A temperature compensation device, characterized in that, include: The acquisition module is used to acquire the raw measurement data collected by the N infrared thermal imaging devices at a set distance interval after the consistency verification of the N infrared thermal imaging devices passes; wherein, the raw measurement data includes M raw temperature matrices, one raw temperature matrix is used to characterize: the raw temperature obtained by the N infrared thermal imaging devices respectively measuring at at least one preset blackbody radiation source at the same distance point, and N and M are integers greater than 1; The first determining module is used to calculate the first mean matrix of the original measurement data, and determine the original distance correction difference matrix based on the first mean matrix and the preset blackbody temperature of each blackbody radiation source. The second determining module is used to determine the distance attenuation difference ratio matrix based on the original distance correction difference matrix; The correction module is used to calculate the distance attenuation correction factor of the first infrared thermal imaging device, and correct the distance attenuation difference ratio matrix according to the distance attenuation correction factor to obtain the corrected distance attenuation difference matrix. The first infrared thermal imaging device is any one of the N infrared thermal imaging devices. The compensation module is used to compensate for each original temperature collected by the first infrared thermal imaging device according to the corrected distance attenuation difference matrix, so as to obtain the temperature compensation result of each original temperature.
9. The apparatus as claimed in claim 8, characterized in that, The device also includes a verification module; The verification module is used to select a first original temperature matrix and a second original temperature matrix from the M original temperature matrices, wherein the first original temperature matrix is the matrix corresponding to the minimum distance point among the distance points, and the second original temperature matrix is the matrix corresponding to the maximum distance point among the distance points; The distance attenuation matrix is determined based on the first original temperature matrix and the second original temperature matrix; Based on the distance attenuation matrix, determine the consistency verification factor; The consistency of the N infrared thermal imaging devices is verified based on the consistency verification factor.
10. The apparatus as claimed in claim 8, characterized in that, The compensation module is specifically used for: Based on the temperature range to which the first original temperature to be compensated belongs, and the distance range to which the first original temperature belongs when it is measured by the first infrared thermal imaging device, the distance attenuation difference to which the first original temperature belongs is determined from the corrected distance attenuation difference matrix; wherein, the first original temperature is any one of the original temperatures collected by the first infrared thermal imaging device. Based on the distance attenuation difference of the first original temperature, calculate the first distance compensation factor and the second distance compensation factor of the first original temperature; The temperature compensation factor for the first original temperature is determined based on the first distance compensation factor and the second distance compensation factor. The first original temperature is compensated according to the temperature compensation factor to obtain the temperature compensation result of the first original temperature.
11. The apparatus as claimed in claim 10, characterized in that, The first distance compensation factor, the second distance compensation factor, and the temperature compensation factor each satisfy the following expressions: Among them, the As the first distance compensation factor, the The distance attenuation difference is the distance attenuation difference corresponding to the i-th row and j-th column in the corrected distance attenuation difference matrix. For the set distance interval parameter, the The distance point where the first original temperature is located, the The minimum value in the distance interval, The second distance compensation factor, the The temperature compensation factor is the temperature compensation factor. The first original temperature, the The temperature interval difference characterizing the temperature range, the The upper limit of the temperature range to which the first original temperature belongs, the This represents the lower limit of the temperature range to which the first original temperature belongs.
12. The apparatus as claimed in claim 8, characterized in that, The second determining module is specifically used for: Select a target element from the elements of the original distance correction difference matrix, and determine the distance attenuation factor based on the target element; wherein the target element is the element with the largest absolute value among the elements. The distance attenuation difference ratio matrix is determined based on the distance attenuation factor and the original distance correction difference matrix.
13. The apparatus as claimed in claim 8, characterized in that, The device also includes a parameter processing module; The parameter processing module is used to determine whether the temperature compensation results of each original temperature meet the preset accuracy conditions. If so, the corrected distance attenuation difference matrix is stored in the first infrared thermal imaging device.
14. The apparatus as claimed in claim 9, characterized in that, The verification module is also used for: If the consistency check of the N infrared thermal imaging devices fails, then P infrared thermal imaging devices are added, where P is an integer greater than 0. If the difference between the original temperature of each blackbody radiation source measured by the second infrared thermal imaging device at each distance point and the preset blackbody temperature of each blackbody radiation source does not meet the set threshold, then the second infrared thermal imaging device will be removed from the infrared thermal imaging devices.
15. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, when executing a computer program stored in the memory, implements the method steps of any one of claims 1-7.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method steps of any one of claims 1-7.
Citation Information
Patent Citations
Infrared thermopile array self temperature drift compensation method and related assembly
CN113588098A
Temperature correction method for infrared thermal imaging image and related device
CN114518175A