Method and apparatus for correcting temperature, program product

By calculating the target correction coefficient and grayscale value of the infrared temperature measuring device, the problem of inaccurate temperature measurement in different environments and startup states was solved, and accurate temperature measurement results were achieved.

CN121163680BActive Publication Date: 2026-06-23ZHEJIANG PIXFRA TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHEJIANG PIXFRA TECH CO LTD
Filing Date
2025-09-12
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

Existing infrared temperature measurement equipment is inaccurate in different measurement environments and startup states, failing to meet the accuracy requirements of the power industry and exhibiting insufficient compensation accuracy.

Method used

By acquiring the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device under different startup states and environments, the target correction coefficient is calculated. Based on these temperature data, the compensation strategy is adjusted in real time, and the first and second gray values ​​are determined to compensate for the original gray value and the baffle gray value, thereby improving the temperature measurement accuracy.

Benefits of technology

It enables accurate temperature measurement in different environments and under different startup conditions, improving the temperature measurement accuracy and compensation accuracy of infrared temperature measurement equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121163680B_ABST
    Figure CN121163680B_ABST
Patent Text Reader

Abstract

The application discloses a temperature correction method and device, and a program product, wherein the method comprises the following steps: acquiring the ambient temperature and the infrared focal plane temperature of an infrared temperature measuring device under different starting states and different environments respectively; determining a target correction coefficient based on the ambient temperature and the infrared focal plane temperature, wherein the target correction coefficient is a correction coefficient for correcting the ambient temperature and the infrared focal plane temperature of the infrared temperature measuring device under different starting states and different environments; determining a first gray value based on the target correction coefficient; and determining the measurement temperature of a measured object based on an original gray value, the first gray value and a second gray value, wherein the second gray value is determined based on a plurality of shade gray values of the infrared temperature measuring device and is used for compensating the original shade gray value of the infrared temperature measuring device. Through the application, the technical problem that the temperature cannot be accurately measured in the related art is solved, and the effect of accurately measuring the temperature is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of infrared thermal imaging technology, and more specifically, to a temperature correction method, apparatus, and program product. Background Technology

[0002] Infrared thermometry equipment is widely used in various fields such as power, medical, and security due to its non-contact and rapid response characteristics. Especially in the power industry, infrared thermometry equipment plays a crucial role in temperature safety monitoring of power towers and substations, effectively preventing equipment failures caused by high or low temperatures and ensuring the stable operation of the power system. However, infrared thermometry equipment has limitations in adapting to different measurement environments and its operating time. Currently, most infrared thermometry equipment cannot meet industry requirements in terms of accuracy. For example, the geographically dispersed nature of power towers and substations, coupled with their complex and varied environments, leads to inaccurate temperature measurements from infrared thermometry equipment.

[0003] In related technologies, in order to improve the efficiency of monitoring and testing personnel and ensure the measurement accuracy of infrared temperature measurement equipment when it is turned on, most methods such as temperature change rate and polynomial fitting are used as compensation basis. However, these methods generally have problems such as insufficient compensation accuracy and overfitting.

[0004] Therefore, the existing temperature measurement compensation methods for infrared temperature measuring devices during the startup phase have many limitations, and a new technical solution is urgently needed to solve the above problems and improve the temperature measurement accuracy of infrared temperature measuring devices during the startup phase. Summary of the Invention

[0005] This application provides a temperature correction method, apparatus, and program product to at least solve the technical problem of inaccurate temperature measurement in related technologies.

[0006] According to one aspect of the embodiments of this application, a temperature correction method is provided, comprising: acquiring the ambient temperature and infrared focal plane temperature of an infrared thermometer under different startup states and different environments; determining a target correction coefficient based on the ambient temperature and the infrared focal plane temperature, wherein the target correction coefficient is a correction coefficient used by the infrared thermometer to correct the ambient temperature and the infrared focal plane temperature under different startup states and different environments; determining a first grayscale value based on the target correction coefficient, wherein the first grayscale value is used to compensate for the original grayscale value of the measured object measured by the infrared thermometer; determining the measured temperature of the measured object based on the original grayscale value, the first grayscale value, and a second grayscale value, wherein the second grayscale value is determined based on the grayscale values ​​of multiple baffles of the infrared thermometer and is used to compensate for the original baffle grayscale value of the infrared thermometer.

[0007] In one exemplary embodiment, acquiring the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device under different startup states and different environments includes: acquiring the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device in a first startup state under the different environments, wherein the first startup state is the state when the infrared temperature measuring device is powered on and running after reaching a cold state; acquiring the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device in a second startup state under the different environments, wherein the second startup state is the state when the infrared temperature measuring device's heating element has reached a stable internal environment; wherein the different environments include a low-temperature environment with a temperature lower than a first temperature threshold, a high-temperature environment with a temperature higher than a second temperature threshold, and a normal-temperature environment with a temperature greater than or equal to the first temperature threshold and less than or equal to the second temperature threshold.

[0008] In an exemplary embodiment, determining the target correction coefficient based on the ambient temperature and the infrared focal plane temperature includes: calculating the temperature difference of the infrared temperature measuring device in the first startup state under different environments, wherein the temperature difference in the first startup state is the temperature difference between the ambient temperature of the environment where the infrared temperature measuring device is located and the infrared focal plane temperature of the infrared temperature measuring device; calculating the temperature difference of the infrared temperature measuring device in the second startup state under different environments, wherein the temperature difference in the second startup state is the temperature difference between the ambient temperature of the environment where the infrared temperature measuring device is located and the infrared focal plane temperature of the infrared temperature measuring device; and determining the target correction coefficient based on the temperature difference in the first startup state and the temperature difference in the second startup state.

[0009] In an exemplary embodiment, determining the target correction coefficient based on the temperature difference value during the first startup state and the temperature difference value during the second startup state includes: determining a first target correction coefficient based on the temperature difference value during the first startup state, wherein the first target correction coefficient is a correction coefficient used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature when the device is in the first startup state under different environments; determining a second target correction coefficient based on the temperature difference value during the second startup state, wherein the second target correction coefficient is a correction coefficient used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature when the device is in the second startup state under different environments; and determining the first target correction coefficient and the second target correction coefficient as the target correction coefficient.

[0010] In an exemplary embodiment, determining a first target correction coefficient based on the temperature difference at the first startup state includes: determining a first parameter, a second parameter, and a third parameter based on the current ambient temperature, a first ambient temperature, a second ambient temperature, and a third ambient temperature, wherein the current ambient temperature is the ambient temperature of the infrared temperature measuring device in the current environment when it is in the current startup state, the first ambient temperature, the second ambient temperature, and the third ambient temperature are respectively the ambient temperatures of the infrared temperature measuring device in the first startup state under the low temperature environment, the normal temperature environment, and the high temperature environment, respectively, and the first parameter, the second parameter, and the third parameter are respectively determined by the temperature difference at the first startup state. The number and the third parameter are correction parameters used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature under the low temperature environment, the normal temperature environment, and the high temperature environment, respectively. Based on the first parameter, the second parameter, the third parameter, the first temperature difference, the second temperature difference, and the third temperature difference, the first target correction coefficient is determined, wherein the first temperature difference, the second temperature difference, and the third temperature difference are the temperature differences between the ambient temperature and the infrared focal plane temperature under the low temperature environment, the normal temperature environment, and the high temperature environment, respectively, when the infrared temperature measuring device is in the first start-up state.

[0011] In an exemplary embodiment, determining the first parameter, the second parameter, and the third parameter based on the current ambient temperature, the first ambient temperature, the second ambient temperature, and the third ambient temperature includes: determining the first parameter Ts1(Tenv_rt), the second parameter Ts2(Tenv_rt), and the third parameter Ts3(Tenv_rt) using the following formulas:

[0012]

[0013] Where Tenv_rt is the current ambient temperature, Tenv_Low_start is the first ambient temperature, Tenv_Normal_start is the second ambient temperature, and Tenv_High_start is the third ambient temperature.

[0014] In an exemplary embodiment, determining the first target correction coefficient based on the first parameter, the second parameter, the third parameter, the first temperature difference, the second temperature difference, and the third temperature difference includes: determining the first target correction coefficient Kenv_start using the following formula:

[0015]

[0016] Wherein, Ts1(Tenv_rt) is the first parameter mentioned above, Ts2(Tenv_rt) is the second parameter mentioned above, Ts3(Tenv_rt) is the third parameter mentioned above, Pstart_Low is the first temperature difference mentioned above, Pstart_Normal is the second temperature difference mentioned above, and Pstart_High is the third temperature difference mentioned above.

[0017] In an exemplary embodiment, determining the second target correction coefficient based on the temperature difference value at the second startup state includes: determining a fourth parameter, a fifth parameter, and a sixth parameter based on the current ambient temperature, a fourth ambient temperature, a fifth ambient temperature, and a sixth ambient temperature. The current ambient temperature is the ambient temperature of the infrared temperature measuring device in the current environment when it is in the current startup state. The fourth, fifth, and sixth ambient temperatures are respectively the ambient temperatures of the infrared temperature measuring device in the low-temperature environment, the normal-temperature environment, and the high-temperature environment when it is in the second startup state. The fourth parameter, the fifth parameter, and the sixth parameter... The number and the sixth parameter mentioned above are correction parameters used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature under the low temperature environment, the normal temperature environment, and the high temperature environment, respectively. Based on the fourth parameter, the fifth parameter, the sixth parameter, the fourth temperature difference, the fifth temperature difference, and the sixth temperature difference, the second target correction coefficient is determined, wherein the fourth temperature difference, the fifth temperature difference, and the sixth temperature difference are the temperature differences between the ambient temperature and the infrared focal plane temperature under the low temperature environment, the normal temperature environment, and the high temperature environment, respectively, when the infrared temperature measuring device is in the second start-up state.

[0018] In an exemplary embodiment, determining the fourth parameter, the fifth parameter, and the sixth parameter based on the current ambient temperature, the fourth ambient temperature, the fifth ambient temperature, and the sixth ambient temperature includes: determining the fourth parameter Te1(Tenv_rt), the fifth parameter Te2(Tenv_rt), and the sixth parameter Te3(Tenv_rt) using the following formulas:

[0019]

[0020] Where Tenv_rt is the current ambient temperature, Tenv_Low_end is the fourth ambient temperature, Tenv_Normal_end is the fifth ambient temperature, and Tenv_High_end is the sixth ambient temperature.

[0021] In an exemplary embodiment, determining the second target correction coefficient based on the fourth parameter, the fifth parameter, the sixth parameter, the fourth temperature difference, the fifth temperature difference, and the sixth temperature difference includes: determining the second target correction coefficient Kenv_end using the following formula:

[0022] Where Te1(Tenv_rt) is the fourth parameter mentioned above, Te2(Tenv_rt) is the fifth parameter mentioned above, Te3(Tenv_rt) is the sixth parameter mentioned above, Pend_Low is the fourth temperature difference value mentioned above, Pend_Normal is the fifth temperature difference value mentioned above, and Pend_High is the sixth temperature difference value mentioned above.

[0023] In an exemplary embodiment, determining a first grayscale value based on the aforementioned target correction coefficient includes: determining the first grayscale value based on the current temperature difference, the aforementioned first target correction coefficient, the aforementioned second target correction coefficient, and the second temperature difference, wherein the aforementioned current temperature difference is the temperature difference between the ambient temperature of the infrared temperature measuring device in the current environment when it is in the current startup state and the infrared focal plane temperature in the aforementioned current startup state, and the aforementioned second temperature difference is the temperature difference between the ambient temperature of the infrared temperature measuring device in the aforementioned normal temperature environment and the infrared focal plane temperature when the infrared temperature measuring device is in the aforementioned first startup state.

[0024] In an exemplary embodiment, determining the first grayscale value based on the current temperature difference, the aforementioned first target correction coefficient, the aforementioned second target correction coefficient, and the second temperature difference includes: determining the first grayscale value Gcomp using the following formula: Among them, K G The preset grayscale compensation coefficient is Prt, the current temperature difference is Pstart_Normal, the second temperature difference is Kenv_start, the first target correction coefficient is Kenv_end, and the second target correction coefficient is Kenv_end.

[0025] In one exemplary embodiment, determining the measured temperature of the object under test based on the original grayscale value, the first grayscale value, and the second grayscale value includes: calculating a first sum of the original grayscale value and the first grayscale value; calculating a first difference between the first sum and the second grayscale value to obtain a corrected grayscale value of the object under test, wherein the second grayscale value is the average of the grayscale values ​​of a plurality of baffles; and converting the corrected grayscale value into a temperature value to obtain the measured temperature.

[0026] According to another aspect of the embodiments of this application, a temperature correction device is also provided, comprising: a first acquisition module, configured to acquire the ambient temperature and infrared focal plane temperature of an infrared thermometer under different startup states and different environments; a first determination module, configured to determine a target correction coefficient based on the ambient temperature and the infrared focal plane temperature, wherein the target correction coefficient is a correction coefficient used by the infrared thermometer to correct the ambient temperature and the infrared focal plane temperature under different startup states and different environments; a second determination module, configured to determine a first grayscale value based on the target correction coefficient, wherein the first grayscale value is used to compensate for the original grayscale value of the measured object measured by the infrared thermometer; and a third determination module, configured to determine the measured temperature of the measured object based on the original grayscale value, the first grayscale value, and the second grayscale value, wherein the second grayscale value is determined based on the grayscale values ​​of multiple baffles of the infrared thermometer and is used to compensate for the original baffle grayscale value of the infrared thermometer.

[0027] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed by a processor.

[0028] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the steps in any of the method embodiments described above.

[0029] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to perform the steps in any of the above method embodiments through the computer program.

[0030] This application achieves improved temperature measurement accuracy by acquiring ambient temperature and infrared focal plane temperature of the infrared thermometer under different startup states and environments. Based on this temperature data, a target correction coefficient is calculated. This target correction coefficient can adjust the compensation strategy in real time according to the actual state and environment of the infrared thermometer, thereby improving the temperature measurement accuracy. At the same time, the first gray value determined based on the target correction coefficient can compensate for the original gray value of the measured object obtained by the infrared thermometer, and the second gray value can compensate for the original baffle gray value of the infrared thermometer. By simultaneously correcting the original gray value and the original baffle gray value, the gray value used to calculate the temperature can be compensated, which can greatly improve the accuracy of the compensation. Therefore, it can solve the technical problem of inaccurate temperature measurement in related technologies, thereby achieving the effect of accurate temperature measurement. Attached Figure Description

[0031] Figure 1 This is a schematic diagram illustrating an application scenario of a temperature correction method according to an embodiment of this application;

[0032] Figure 2 This is a schematic flowchart of an optional temperature correction method according to an embodiment of this application;

[0033] Figure 3 This is a flowchart illustrating another optional temperature correction method according to an embodiment of this application;

[0034] Figure 4 This is a structural block diagram of an optional temperature correction device according to an embodiment of this application. Detailed Implementation

[0035] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present application.

[0036] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0037] According to one aspect of the embodiments of this application, a temperature correction method is provided. Optionally, in this embodiment, the above-described temperature correction method may be applied, but is not limited to, to applications such as... Figure 1 The hardware environment shown includes terminal device 102 and server 104. Server 104 can be connected to terminal device 102 via a network and can be used to provide services (e.g., application services, etc.) to terminal device 102 or clients installed on terminal device 102. A database can be set up on server 104 or independently of server 104 to provide data storage services for server 104.

[0038] The aforementioned network may include, but is not limited to, at least one of the following: wired network and wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network (WAN), metropolitan area network (MAN), and local area network (LAN). The aforementioned wireless network may include, but is not limited to, at least one of the following: Wireless Fidelity (WIFI) and Bluetooth. Terminal device 102 may be, but is not limited to, a personal computer (PC), mobile phone, tablet computer, etc. Server 104 may be, but is not limited to, a cloud server, server cluster, or other server types.

[0039] The temperature correction method of this application embodiment can be executed by server 104, by terminal device 102, or by both server 104 and terminal device 102. Alternatively, the temperature correction method of this application embodiment can be executed by a client installed on terminal device 102.

[0040] Taking the temperature correction method in this embodiment executed by terminal device 102 as an example, Figure 2 This is a flowchart illustrating an optional temperature correction method according to an embodiment of this application, as shown below. Figure 2 As shown, the process of this method may include the following steps:

[0041] Step S202: Obtain the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device under different startup states and different environments.

[0042] Optionally, the startup state includes a first startup state and a second startup state, wherein the difference between the internal temperature of the infrared temperature measuring device and the ambient temperature in the first startup state is different from the difference between the internal temperature of the infrared temperature measuring device and the ambient temperature in the second startup state.

[0043] Optionally, different environments include low-temperature environments with temperatures below a first temperature threshold, high-temperature environments with temperatures above a second temperature threshold, and normal-temperature environments with temperatures greater than or equal to the first temperature threshold and less than or equal to the second temperature threshold.

[0044] Optionally, the ambient temperature is used to indicate the actual temperature of the external environment in which the infrared temperature measuring device is located, and can be measured by an ambient temperature sensor.

[0045] Optionally, the infrared focal plane temperature is used to indicate the temperature of the infrared detector inside the infrared thermometer, which is responsible for receiving infrared radiation signals.

[0046] Step S204: Based on the ambient temperature and the infrared focal plane temperature, determine the target correction coefficient, wherein the target correction coefficient is the correction coefficient used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature under different start-up states and different environments.

[0047] Step S206: Based on the above target correction coefficient, determine the first gray value, wherein the first gray value is used to compensate for the original gray value of the measured object measured by the infrared temperature measuring device.

[0048] Optionally, the original grayscale value can be obtained by thermoelectric conversion of the infrared radiation received by the infrared detector inside the infrared temperature measurement device.

[0049] Step S208: Based on the original grayscale value, the first grayscale value, and the second grayscale value, determine the measured temperature of the object being measured, wherein the second grayscale value is determined based on the grayscale values ​​of multiple baffles of the infrared temperature measuring device and is used to compensate for the original baffle grayscale value of the infrared temperature measuring device.

[0050] In this embodiment, the entity executing the above steps can be a hardware or software processor, agent device, management device, etc. The entity executing the above steps can also be a terminal, a server, a specific processor installed in a terminal or server, or a processor or processing device that is relatively independent of the terminal or server, but is not limited to these.

[0051] Through the embodiments provided in this application, the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device are acquired under different startup states and environments. Based on these temperature data, a target correction coefficient is calculated. This target correction coefficient can adjust the compensation strategy in real time according to the actual state and environment of the infrared temperature measuring device, thereby improving the temperature measurement accuracy. At the same time, the first gray value determined based on the target correction coefficient can compensate for the original gray value of the measured object measured by the infrared temperature measuring device, and the second gray value can compensate for the original baffle gray value of the infrared temperature measuring device. By simultaneously correcting the original gray value and the original baffle gray value, the gray value used to calculate the temperature can be compensated, which can greatly improve the accuracy of the compensation. Therefore, the technical problem of inaccurate temperature measurement in related technologies can be solved, thereby achieving the effect of accurate temperature measurement.

[0052] In one exemplary embodiment, acquiring the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device under different startup states and different environments includes: acquiring the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device in a first startup state under the different environments, wherein the first startup state is the state when the infrared temperature measuring device is powered on and running after reaching a cold state; acquiring the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device in a second startup state under the different environments, wherein the second startup state is the state when the infrared temperature measuring device's heating element has reached a stable internal environment; wherein the different environments include a low-temperature environment with a temperature lower than a first temperature threshold, a high-temperature environment with a temperature higher than a second temperature threshold, and a normal-temperature environment with a temperature greater than or equal to the first temperature threshold and less than or equal to the second temperature threshold.

[0053] Optionally, the first startup state can be a cold start state, and the second startup state can be a thermal equilibrium state. The cold start state refers to the infrared temperature measuring device being left to stand for a certain period of time (such as more than 60 minutes) in a stable external environment so that the internal temperature of the infrared temperature measuring device is consistent with the external ambient temperature. The hot start state refers to the infrared temperature measuring device being restarted without giving it enough time to allow its internal temperature to drop to the ambient temperature.

[0054] Optionally, the low-temperature environment is the low-temperature calibration environment of the infrared temperature measuring equipment, specifically -20℃ or -10℃; the normal temperature environment is the normal temperature calibration environment of the infrared temperature measuring equipment, specifically room temperature of 20℃-30℃; and the high-temperature environment is the high-temperature calibration environment of the infrared temperature measuring equipment, specifically 50℃ or 60℃.

[0055] Optionally, the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device in the first start-up state under the different environments are respectively acquired, including: acquiring a first ambient temperature, a second ambient temperature, and a third ambient temperature, wherein the first ambient temperature, the second ambient temperature, and the third ambient temperature are respectively the ambient temperatures of the infrared temperature measuring device in the first start-up state under the low temperature environment, the normal temperature environment, and the high temperature environment; and acquiring a first infrared focal plane temperature, a second infrared focal plane temperature, and a third infrared focal plane temperature, wherein the first infrared focal plane temperature, the second infrared focal plane temperature, and the third infrared focal plane temperature are respectively the infrared focal plane temperatures of the infrared temperature measuring device in the first start-up state under the low temperature environment, the normal temperature environment, and the high temperature environment.

[0056] Optionally, the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device in the second start-up state under the different environments are obtained respectively, including: obtaining a fourth ambient temperature, a fifth ambient temperature, and a sixth ambient temperature, wherein the fourth ambient temperature, the fifth ambient temperature, and the sixth ambient temperature are respectively the ambient temperatures of the infrared temperature measuring device in the second start-up state under the low temperature environment, the normal temperature environment, and the high temperature environment; and obtaining a fourth infrared focal plane temperature, a fifth infrared focal plane temperature, and a sixth infrared focal plane temperature, wherein the fourth infrared focal plane temperature, the fifth infrared focal plane temperature, and the sixth infrared focal plane temperature are respectively the infrared focal plane temperatures of the infrared temperature measuring device in the second start-up state under the low temperature environment, the normal temperature environment, and the high temperature environment.

[0057] In an exemplary embodiment, determining the target correction coefficient based on the ambient temperature and the infrared focal plane temperature includes: calculating the temperature difference of the infrared temperature measuring device in the first startup state under different environments, wherein the temperature difference in the first startup state is the temperature difference between the ambient temperature of the environment where the infrared temperature measuring device is located and the infrared focal plane temperature of the infrared temperature measuring device; calculating the temperature difference of the infrared temperature measuring device in the second startup state under different environments, wherein the temperature difference in the second startup state is the temperature difference between the ambient temperature of the environment where the infrared temperature measuring device is located and the infrared focal plane temperature of the infrared temperature measuring device; and determining the target correction coefficient based on the temperature difference in the first startup state and the temperature difference in the second startup state.

[0058] Optionally, the temperature difference of the infrared temperature measuring device in the first start-up state under the different environments is calculated respectively, including: calculating a first temperature difference, wherein the first temperature difference is the temperature difference in the first start-up state under the low temperature environment; calculating a second temperature difference, wherein the second temperature difference is the temperature difference in the first start-up state under the normal temperature environment; and calculating a third temperature difference, wherein the third temperature difference is the temperature difference in the first start-up state under the high temperature environment.

[0059] Optionally, the temperature difference values ​​of the infrared temperature measuring device in the second start-up state under the different environments are calculated respectively, including: calculating a fourth temperature difference value, wherein the fourth temperature difference value is the temperature difference value in the second start-up state under the low temperature environment; calculating a fifth temperature difference value, wherein the fifth temperature difference value is the temperature difference value in the second start-up state under the normal temperature environment; and calculating a sixth temperature difference value, wherein the sixth temperature difference value is the temperature difference value in the second start-up state under the high temperature environment.

[0060] Optionally, in low-temperature, normal-temperature, and high-temperature environments, when the infrared thermometer is in a cold-start state, the ambient temperatures are Tenv_Low_start, Tenv_Normal_start, and Tenv_High_start, respectively; in low-temperature, normal-temperature, and high-temperature environments, when the infrared thermometer is in a cold-start state, the infrared focal plane temperatures are Tdet_Low_start, Tdet_Normal_start, and Tdet_High_start, respectively. In low-temperature, normal-temperature, and high-temperature environments, when the infrared thermometer is in thermal equilibrium, the infrared focal plane temperatures are Tenv_Low_end, Tenv_Normal_end, and Tenv_High_end, respectively; in low-temperature, normal-temperature, and high-temperature environments, when the infrared thermometer is in thermal equilibrium, the infrared focal plane temperatures are Tdet_Low_end, Tdet_Normal_end, and Tdet_High_end, respectively.

[0061] Under low-temperature, normal-temperature, and high-temperature environments, the temperature differences between the ambient temperature and the infrared focal plane temperature, Pstart_Low (the first temperature difference), Pstart_Normal (the second temperature difference), and Pstart_High (the third temperature difference), are as follows:

[0062] Pstart_Low=Tdet_Low_start-Tenv_Low_start;

[0063] Pstart_Normal=Tdet_Normal_start-Tenv_Normal_start;

[0064] Pstart_High=Tdet_High_start-Tenv_High_start.

[0065] Under low-temperature, normal-temperature, and high-temperature environments, when the infrared thermometer is in thermal equilibrium, the differences between the ambient temperature and the infrared focal plane temperature, namely Pend_Low (the fourth temperature difference), Pend_Normal (the fifth temperature difference), and Pend_High (the sixth temperature difference), are as follows:

[0066] Pend_Low=Tdet_Low_end-Tenv_Low_end;

[0067] Pend_Normal=Tdet_Normal_end-Tenv_Normal_end;

[0068] Pend_High=Tdet_High_end-Tenv_High_end;

[0069] Different environments (low temperature, normal temperature, high temperature) have varying effects on the temperature measurement accuracy of infrared thermometers. In this embodiment, the target correction coefficient is determined based on the temperature data of the infrared thermometer under different startup states in various environments. This allows the compensation mechanism of the infrared thermometer to dynamically adjust the target correction coefficient according to the temperature difference to compensate for the measurement error caused by different temperature differences, thus ensuring the accuracy of the temperature measurement results.

[0070] In an exemplary embodiment, determining the target correction coefficient based on the temperature difference value during the first startup state and the temperature difference value during the second startup state includes: determining a first target correction coefficient based on the temperature difference value during the first startup state, wherein the first target correction coefficient is a correction coefficient used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature when the device is in the first startup state under different environments; determining a second target correction coefficient based on the temperature difference value during the second startup state, wherein the second target correction coefficient is a correction coefficient used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature when the device is in the second startup state under different environments; and determining the first target correction coefficient and the second target correction coefficient as the target correction coefficient.

[0071] Optionally, the first target correction factor is used to indicate the correction ratio of the measured temperature difference between the ambient temperature and the infrared focal plane temperature when the infrared temperature measuring device is in a cold start state.

[0072] Optionally, the second target correction factor is used to indicate the correction ratio of the measured temperature difference between the ambient temperature and the infrared focal plane temperature when the infrared thermometer is in thermal equilibrium.

[0073] Optionally, the target correction coefficient is a comprehensive parameter combining the first target correction coefficient and the second target correction coefficient, used to compensate for temperature measurement at any time during the startup process of the infrared temperature measurement device.

[0074] In this embodiment, the calculation of the first target correction coefficient effectively compensates for measurement errors caused by the rapid rise in internal temperature during cold start-up of the infrared thermometer. Similarly, the second target correction coefficient ensures that the measurement results are unaffected by the internal and external temperature differences when the infrared thermometer reaches thermal equilibrium. Combining the two, the target correction coefficient can accurately compensate for temperature differences throughout the entire process from startup to stable operation, thereby significantly improving the accuracy of temperature measurement. Furthermore, since the compensation process from cold start-up to thermal equilibrium of the infrared thermometer does not utilize a time variable, time-related operations will not affect the accuracy of the compensation. Examples include hot start-up, semi-hot start-up, moving from a high-temperature environment to a low-temperature environment, and moving from a low-temperature environment to a high-temperature environment.

[0075] In an exemplary embodiment, determining a first target correction coefficient based on the temperature difference at the first startup state includes: determining a first parameter, a second parameter, and a third parameter based on the current ambient temperature, a first ambient temperature, a second ambient temperature, and a third ambient temperature, wherein the current ambient temperature is the ambient temperature of the infrared temperature measuring device in the current environment when it is in the current startup state, the first ambient temperature, the second ambient temperature, and the third ambient temperature are respectively the ambient temperatures of the infrared temperature measuring device in the first startup state under the low temperature environment, the normal temperature environment, and the high temperature environment, respectively, and the first parameter, the second parameter, and the third parameter are respectively determined by the temperature difference at the first startup state. The number and the third parameter mentioned above are correction parameters used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature under the low temperature environment, the normal temperature environment, and the high temperature environment, respectively. Based on the first parameter, the second parameter, the third parameter, the first temperature difference, the second temperature difference, and the third temperature difference, the first target correction coefficient is determined, wherein the first temperature difference, the second temperature difference, and the third temperature difference are the temperature differences between the ambient temperature and the infrared focal plane temperature under the low temperature environment, the normal temperature environment, and the high temperature environment, respectively, when the infrared temperature measuring device is in the first start-up state.

[0076] Optionally, the current ambient temperature is used to indicate the real-time ambient temperature of the infrared temperature measuring device. For example, if the ambient temperature sensor measures the outdoor temperature where the infrared temperature measuring device is located to be -5℃, then the current ambient temperature of the infrared temperature measuring device is -5℃.

[0077] Optionally, the first ambient temperature, the second ambient temperature, and the third ambient temperature are respectively the ambient temperature of a low-temperature environment, a normal-temperature environment, and a high-temperature environment, which are the ambient temperatures when the infrared temperature measuring device is in a cold-start state. For example, in a low-temperature environment, the infrared temperature measuring device is in a cold-start state, and the ambient temperature sensor measures an ambient temperature of -20℃, then the first ambient temperature is -20℃; in a normal-temperature environment, the infrared temperature measuring device is in a cold-start state, and the ambient temperature sensor measures an ambient temperature of 25℃, then the second ambient temperature is 25℃; in a high-temperature environment, the infrared temperature measuring device is in a cold-start state, and the ambient temperature sensor measures an ambient temperature of 55℃, then the second ambient temperature is 55℃.

[0078] In an exemplary embodiment, determining the first parameter, the second parameter, and the third parameter based on the current ambient temperature, the first ambient temperature, the second ambient temperature, and the third ambient temperature includes: determining the first parameter Ts1(Tenv_rt), the second parameter Ts2(Tenv_rt), and the third parameter Ts3(Tenv_rt) using the following formulas:

[0079]

[0080] Where Tenv_rt is the current ambient temperature, Tenv_Low_start is the first ambient temperature, Tenv_Normal_start is the second ambient temperature, and Tenv_High_start is the third ambient temperature.

[0081] In an exemplary embodiment, determining the first target correction coefficient based on the first parameter, the second parameter, the third parameter, the first temperature difference, the second temperature difference, and the third temperature difference includes: determining the first target correction coefficient Kenv_start using the following formula:

[0082]

[0083] Wherein, Ts1(Tenv_rt) is the first parameter mentioned above, Ts2(Tenv_rt) is the second parameter mentioned above, Ts3(Tenv_rt) is the third parameter mentioned above, Pstart_Low is the first temperature difference mentioned above, Pstart_Normal is the second temperature difference mentioned above, and Pstart_High is the third temperature difference mentioned above.

[0084] In an exemplary embodiment, determining the second target correction coefficient based on the temperature difference value at the second startup state includes: determining a fourth parameter, a fifth parameter, and a sixth parameter based on the current ambient temperature, a fourth ambient temperature, a fifth ambient temperature, and a sixth ambient temperature. The current ambient temperature is the ambient temperature of the infrared temperature measuring device in the current environment when it is in the current startup state. The fourth, fifth, and sixth ambient temperatures are respectively the ambient temperatures of the infrared temperature measuring device in the low-temperature environment, the normal-temperature environment, and the high-temperature environment when it is in the second startup state. The fourth parameter, the fifth parameter, and the sixth parameter... The number and the sixth parameter mentioned above are correction parameters used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature under the low temperature environment, the normal temperature environment, and the high temperature environment, respectively; based on the fourth parameter, the fifth parameter, the sixth parameter, the fourth temperature difference, the fifth temperature difference, and the sixth temperature difference, the second target correction coefficient is determined, wherein the fourth temperature difference, the fifth temperature difference, and the sixth temperature difference are the temperature differences between the ambient temperature and the infrared focal plane temperature under the low temperature environment, the normal temperature environment, and the high temperature environment, respectively, when the infrared temperature measuring device is in the second start-up state.

[0085] Optionally, the current ambient temperature is used to indicate the real-time ambient temperature of the infrared temperature measuring device. For example, if the ambient temperature sensor measures the outdoor temperature where the infrared temperature measuring device is located to be 10°C, then the current ambient temperature of the infrared temperature measuring device is 10°C.

[0086] Optionally, the fourth, fifth, and sixth ambient temperatures are respectively the ambient temperatures at which the infrared thermometer reaches thermal equilibrium, representing a low-temperature environment, a normal-temperature environment, and a high-temperature environment. For example, in a low-temperature environment, if the infrared thermometer reaches thermal equilibrium at -10℃, then the fourth ambient temperature is -10℃; in a normal-temperature environment, if the infrared thermometer reaches thermal equilibrium at 25℃, then the fifth ambient temperature is 25℃; and in a high-temperature environment, if the infrared thermometer reaches thermal equilibrium at 45℃, then the sixth ambient temperature is 45℃.

[0087] In an exemplary embodiment, determining the fourth parameter, the fifth parameter, and the sixth parameter based on the current ambient temperature, the fourth ambient temperature, the fifth ambient temperature, and the sixth ambient temperature includes: determining the fourth parameter Te1(Tenv_rt), the fifth parameter Te2(Tenv_rt), and the sixth parameter Te3(Tenv_rt) using the following formulas:

[0088]

[0089] Where Tenv_rt is the current ambient temperature, Tenv_Low_end is the fourth ambient temperature, Tenv_Normal_end is the fifth ambient temperature, and Tenv_High_end is the sixth ambient temperature.

[0090] In an exemplary embodiment, determining the second target correction coefficient based on the fourth parameter, the fifth parameter, the sixth parameter, the fourth temperature difference, the fifth temperature difference, and the sixth temperature difference includes: determining the second target correction coefficient Kenv_end using the following formula:

[0091] Where Te1(Tenv_rt) is the fourth parameter mentioned above, Te2(Tenv_rt) is the fifth parameter mentioned above, Te3(Tenv_rt) is the sixth parameter mentioned above, Pend_Low is the fourth temperature difference value mentioned above, Pend_Normal is the fifth temperature difference value mentioned above, and Pend_High is the sixth temperature difference value mentioned above.

[0092] In an exemplary embodiment, determining a first grayscale value based on the aforementioned target correction coefficient includes: determining the first grayscale value based on the current temperature difference, the aforementioned first target correction coefficient, the aforementioned second target correction coefficient, and the second temperature difference, wherein the aforementioned current temperature difference is the temperature difference between the ambient temperature of the infrared temperature measuring device in the current environment when it is in the current startup state and the infrared focal plane temperature in the aforementioned current startup state, and the aforementioned second temperature difference is the temperature difference between the ambient temperature of the infrared temperature measuring device in the aforementioned normal temperature environment and the infrared focal plane temperature when the infrared temperature measuring device is in the aforementioned first startup state.

[0093] Optionally, the current temperature difference = current infrared focal plane temperature - current ambient temperature, where the current ambient temperature is used to indicate the real-time ambient temperature of the infrared temperature measuring device, and the current infrared focal plane temperature is used to indicate the real-time infrared focal plane temperature of the infrared temperature measuring device.

[0094] In an exemplary embodiment, determining the first grayscale value based on the current temperature difference, the aforementioned first target correction coefficient, the aforementioned second target correction coefficient, and the second temperature difference includes: determining the first grayscale value Gcomp using the following formula: Among them, K G The preset grayscale compensation coefficient is Prt, the current temperature difference is Pstart_Normal, the second temperature difference is Kenv_start, the first target correction coefficient is Kenv_end, and the second target correction coefficient is Kenv_end.

[0095] In one exemplary embodiment, determining the measured temperature of the object under test based on the original grayscale value, the first grayscale value, and the second grayscale value includes: calculating a first sum of the original grayscale value and the first grayscale value; calculating a first difference between the first sum and the second grayscale value to obtain a corrected grayscale value of the object under test, wherein the second grayscale value is the average of the grayscale values ​​of a plurality of baffles; and converting the corrected grayscale value into a temperature value to obtain the measured temperature.

[0096] Optionally, when the infrared temperature measuring device is first started from cold, the internal temperature of the device changes drastically. Therefore, there is a certain delay in acquiring the grayscale value of the baffle, and the acquired grayscale value is not the true grayscale value. Since the temperature measurement needs to be determined based on the grayscale value, the acquired grayscale value needs to be corrected. For example, the current frame number and the grayscale values ​​of the baffle in the previous nine frames are acquired, and their average is calculated to obtain the second grayscale value, Bave. Where B0 is the current grayscale value of the baffle; B1, B2...B9 are the grayscale values ​​of the baffle in the previous 1, 2 to 9 frames, respectively. For example, by acquiring the current frame number and the baffle grayscale values ​​of the previous nine frames from an infrared thermometer, filtering out multiple frames that meet preset filtering rules, and calculating their average, a second grayscale value, Bave, is obtained. Where B0 is the current grayscale value of the baffle; B1, B8, and B9 are the grayscale values ​​of the baffle in the previous 1, 8, and 9 frames, respectively.

[0097] Optionally, the corrected grayscale value can be converted into a temperature value by establishing a conversion relationship between grayscale values ​​and temperature. For example, the corrected grayscale value can be converted into a temperature value based on an empirical formula, which describes the relationship between grayscale value and temperature. Once the corrected grayscale value is obtained, the empirical formula is directly applied to map the grayscale value to a temperature value. Alternatively, a physical model can be used to convert the corrected grayscale value into a temperature value. This model is based on physical principles such as Planck's radiation law and Stefan-Boltzmann's law, establishing a physical model describing the relationship between grayscale value and temperature. The model considers factors such as infrared radiation intensity, detector response characteristics, and ambient temperature, performing comprehensive calculations to convert the corrected grayscale value into a temperature value.

[0098] In this embodiment, the original grayscale value represents the grayscale value of the infrared image directly measured by the infrared temperature measuring device, while the first grayscale value is a compensated grayscale value calculated based on the current temperature difference, the target correction coefficient, and other factors. Calculating the first sum of the two can offset the measurement grayscale error caused by the temperature difference between the internal temperature of the infrared temperature measuring device and the ambient temperature, thereby obtaining a grayscale value that is closer to the actual value. At the same time, the second grayscale value is the average of the grayscale values ​​of multiple frames of baffles, which reduces the uncertainty caused by temperature fluctuations or instability of the infrared temperature measuring device, optimizes the baffle grayscale, and further improves the accuracy of temperature measurement.

[0099] The temperature correction method in the embodiments of this application will be explained below with reference to optional examples. Figure 3 This is a flowchart illustrating another optional temperature correction method according to an embodiment of this application, such as... Figure 3 As shown, the process of this temperature correction method may include the following steps:

[0100] Step S302: Obtain the cold start status, thermal equilibrium status, and real-time changing temperatures of the innermost and outermost temperature sensors of the infrared temperature measuring device under low temperature, normal temperature, and high temperature environments, and calculate the difference between the outermost and innermost temperature sensors. The outermost temperature sensor is an ambient temperature sensor used to measure the ambient temperature Tenv; the innermost temperature sensor is a detector temperature sensor used to measure the infrared focal plane temperature Tdet; the low temperature environment is the low temperature calibration environment of the infrared temperature measuring device, which is -20℃ or -10℃; the normal temperature environment is the normal temperature calibration environment of the infrared temperature measuring device, which is room temperature of 20℃-30℃; and the high temperature environment is the high temperature calibration environment of the infrared temperature measuring device, which is 50℃ or 60℃.

[0101] S1: Obtain the outermost temperature sensor temperature of the infrared temperature measuring device in cold start-up state under low temperature, normal temperature, and high temperature environments: low temperature environment, normal temperature environment, high temperature environment. When the infrared temperature measuring device is in cold start-up state, the ambient temperatures are Tenv_Low_start=-20.2℃, Tenv_Normal_start=19.8℃, and Tenv_High_start=51.3℃, respectively.

[0102] S2: Obtain the innermost temperature sensor temperature of the infrared temperature measuring device in cold start-up state under low temperature, normal temperature, and high temperature environments: In low temperature environment, normal temperature environment, and high temperature environment, the infrared focal plane temperature of the infrared temperature measuring device in cold start state is Tdet_Low_start=-18.6℃, Tdet_Normal_start=23.2℃, and Tdet_High_start=52.5℃, respectively.

[0103] S4: Obtain the outermost temperature sensor temperature of the infrared temperature measuring device under low temperature, normal temperature, and high temperature environments: When the infrared temperature measuring device is in thermal equilibrium under low temperature, normal temperature, and high temperature environments, the infrared focal plane temperatures are Tenv_Low_end=-19.8℃, Tenv_Normal_end=20.1℃, and Tenv_High_end=50.8℃, respectively.

[0104] S4: Obtain the innermost temperature sensor temperature of the infrared temperature measuring device under low temperature, normal temperature, and high temperature environments: When the infrared temperature measuring device is in thermal equilibrium under low temperature, normal temperature, and high temperature environments, the infrared focal plane temperatures are Tdet_Low_end=-13.3℃, ​​Tdet_Normal_end=31.6℃, and Tdet_High_end=59.8℃, respectively.

[0105] S5: The real-time external temperature of the infrared temperature measuring device is Tenv_rt = 32.0℃;

[0106] S6: The real-time internal temperature of the infrared temperature measuring device is Tdet_rt = 40.3℃.

[0107] S7: Under low temperature, normal temperature, and high temperature environments, the cold start-up values ​​of the infrared thermometer, Pstart_Low, Pstart_Normal, and Pstart_High, are as follows:

[0108] Pstart_Low=Tdet_Low_start-Tenv_Low_start=-18.6℃-(-20.2℃)=1.6℃;

[0109] Pstart_Normal=Tdet_Normal_start-Tenv_Normal_start=23.2℃-19.8℃=3.4℃;

[0110] Pstart_High=Tdet_High_start-Tenv_High_start=52.5°C-51.3°C=1.2°C.

[0111] S8: In low-temperature, normal-temperature, and high-temperature environments, when the infrared thermometer is in thermal equilibrium, the Pend_Low, Pend_Normal, and Pend_High temperature differences between the ambient temperature and the infrared focal plane temperature are as follows:

[0112] Pend_Low=Tdet_Low_end-Tenv_Low_end=-13.3℃-(-19.8℃)=6.5℃;

[0113] Pend_Normal=Tdet_Normal_end-Tenv_Normal_end=31.6℃-20.1℃=11.5℃;

[0114] Pend_High=Tdet_High_end-Tenv_High_end=59.8°C-50.8°C=9.0°C.

[0115] S9: Real-time changing innermost and outermost temperature sensor temperatures: Prt = Tdet_rt - Tenv_rt = 40.3℃ - 32.0℃ = 8.3℃.

[0116] Step S304: Based on the temperature difference between the outermost and innermost parts under low temperature, normal temperature, and high temperature environments, calculate the temperature difference correction coefficient for the cold start-up state and thermal equilibrium state under any ambient temperature.

[0117] S1: Based on the temperature difference between the outermost and innermost parts under low temperature, normal temperature, and high temperature environments, the temperature difference correction coefficient Kenv_start is calculated for the start-up state of the chiller at any ambient temperature.

[0118]

[0119]

[0120] S2: Based on the temperature difference between the outermost and innermost parts under low temperature, normal temperature, and high temperature environments, the temperature difference correction coefficient Kenv_end is calculated for thermal equilibrium at any ambient temperature.

[0121]

[0122] Step S306: Based on the temperature difference and correction coefficient under cold start-up and thermal equilibrium states at any ambient temperature, and the real-time changing temperature difference, the compensated grayscale is calculated.

[0123] The compensation gray level Gcomp is determined using the following formula: Among them, K G The approximate range is between -15 and 15, determined by the outermost temperature sensor, with the innermost temperature sensor value preset to K. G The relationship is shown in Table 1. Tenv_rt = 32.0℃, Tdet_rt = 40.3℃. From the preset relationship table, the corresponding...

[0124] Table 1:

[0125]

[0126]

[0127] Step S308: Obtain the current frame number and the grayscale values ​​of the baffle in the previous nine frames of the infrared temperature measuring device, and correct the current baffle grayscale: Obtain the current frame number and the grayscale values ​​of the baffle in the previous nine frames of the infrared temperature measuring device, and calculate their average value to obtain the corrected baffle grayscale Bave.

[0128] Where B0 is the grayscale of the baffle at the current moment, and B1, B2...B9 are the grayscale of the baffle in the previous 1 frame, 2 frames to 9 frames at the current moment.

[0129] Step S310: Given that the actual temperature of the target to be measured is 40℃ and the original grayscale value G is 4229, the grayscale of the calculated temperature is compensated based on the grayscale compensation upon power-on and the corrected baffle grayscale, thereby correcting the final temperature value, as detailed below:

[0130] G D_CORR =G–Bave+Gcomp=4229–4093.3+16.0=151.7, Among them, G D_CORR The corrected grayscale value used for temperature calculation is Gcomp, which is the compensated grayscale value, and Temp_corr is the temperature value corrected by the power-on compensation algorithm. D The logic for converting grayscale values ​​to temperature values ​​can be a one-to-one pre-defined relationship table, as shown in Table 2:

[0131] Table 2:

[0132] <![CDATA[G D ]]> Temp 120 30 150 40 200 50

[0133] If this correction method is not used, the calculated target is: G D =G–B=4229-4084=145, Without using this correction method, the calculated target temperature is 38.3℃ with an error of -1.7℃. With this correction method, the calculated target temperature is 40.3℃ with an error of 0.3℃, significantly improving accuracy.

[0134] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0135] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory (ROM) / random access memory (RAM), magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0136] According to another aspect of the embodiments of this application, a temperature correction device is also provided, which can be used to implement the temperature correction method provided in the above embodiments, and will not be repeated hereafter. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0137] Figure 4 This is a structural block diagram of an optional temperature correction device according to an embodiment of this application, such as... Figure 4 As shown, the temperature correction device includes:

[0138] The first acquisition module 402 is used to acquire the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device under different startup states and different environments.

[0139] The first determining module 404 is used to determine a target correction coefficient based on the ambient temperature and the infrared focal plane temperature, wherein the target correction coefficient is a correction coefficient used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature under different start-up states and different environments.

[0140] The second determining module 406 is used to determine a first gray value based on the above-mentioned target correction coefficient, wherein the first gray value is used to compensate for the original gray value of the measured object measured by the infrared temperature measuring device.

[0141] The third determining module 408 is used to determine the measured temperature of the object being measured based on the original gray value, the first gray value, and the second gray value, wherein the second gray value is determined based on the gray values ​​of multiple baffles of the infrared temperature measuring device and is used to compensate for the original baffle gray value of the infrared temperature measuring device.

[0142] It should be noted that the first acquisition module 402 in this embodiment can be used to execute the above step S202, the first determination module 404 in this embodiment can be used to execute the above step S204, the second determination module 406 in this embodiment can be used to execute the above step S206, and the third determination module 408 in this embodiment can be used to execute the above step S208.

[0143] In an exemplary embodiment, the first acquisition module 402 includes: a first acquisition submodule, configured to acquire the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device in a first startup state under different environments, wherein the first startup state is the state in which the infrared temperature measuring device is powered on and running after reaching a cold state; and a second acquisition submodule, configured to acquire the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device in a second startup state under different environments, wherein the second startup state is the state in which the infrared temperature measuring device is powered on and running until the internal environment of the infrared temperature measuring device is stable; wherein the different environments include a low-temperature environment with a temperature lower than a first temperature threshold, a high-temperature environment with a temperature higher than a second temperature threshold, and a normal-temperature environment with a temperature greater than or equal to the first temperature threshold and less than or equal to the second temperature threshold.

[0144] In an exemplary embodiment, the first determining module 404 includes: a first calculation submodule, configured to calculate the temperature difference of the infrared temperature measuring device in the first startup state under different environments, wherein the temperature difference in the first startup state is the temperature difference between the ambient temperature of the environment where the infrared temperature measuring device is located and the infrared focal plane temperature of the infrared temperature measuring device; a second calculation submodule, configured to calculate the temperature difference of the infrared temperature measuring device in the second startup state under different environments, wherein the temperature difference in the second startup state is the temperature difference between the ambient temperature of the environment where the infrared temperature measuring device is located and the infrared focal plane temperature of the infrared temperature measuring device; and a first determining submodule, configured to determine the target correction coefficient based on the temperature difference in the first startup state and the temperature difference in the second startup state.

[0145] In an exemplary embodiment, the first determining submodule includes: a first determining unit, configured to determine a first target correction coefficient based on the temperature difference at the first startup state, wherein the first target correction coefficient is a correction coefficient used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature when in the first startup state under different environments; a second determining unit, configured to determine a second target correction coefficient based on the temperature difference at the second startup state, wherein the second target correction coefficient is a correction coefficient used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature when in the second startup state under different environments; and a third determining unit, configured to determine the first target correction coefficient and the second target correction coefficient as the target correction coefficient.

[0146] In an exemplary embodiment, the first determining unit includes: a first determining subunit, configured to determine a first parameter, a second parameter, and a third parameter based on a current ambient temperature, a first ambient temperature, a second ambient temperature, and a third ambient temperature, wherein the current ambient temperature is the ambient temperature of the infrared temperature measuring device in the current environment when it is in its current startup state; the first ambient temperature, the second ambient temperature, and the third ambient temperature are respectively the ambient temperatures of the infrared temperature measuring device in the first startup state under the low-temperature environment, the normal-temperature environment, and the high-temperature environment; and the first parameter, the second parameter, and the third parameter are respectively determined by... Specifically, the correction parameters for the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature under the aforementioned low temperature environment, the aforementioned normal temperature environment, and the aforementioned high temperature environment; the second determining subunit is used to determine the aforementioned first target correction coefficient based on the aforementioned first parameter, the aforementioned second parameter, the aforementioned third parameter, the first temperature difference, the second temperature difference, and the third temperature difference, wherein the aforementioned first temperature difference, the aforementioned second temperature difference, and the aforementioned third temperature difference are respectively the temperature differences between the ambient temperature and the infrared focal plane temperature under the aforementioned low temperature environment, the aforementioned normal temperature environment, and the aforementioned high temperature environment when the infrared temperature measuring device is in the aforementioned first start-up state.

[0147] In an exemplary embodiment, the first determining subunit includes: a first determining secondary subunit, configured to determine the first parameter Ts1 (Tenv_rt), the second parameter Ts2 (Tenv_rt), and the third parameter Ts3 (Tenv_rt) using the following formula:

[0148]

[0149] Where Tenv_rt is the current ambient temperature, Tenv_Low_start is the first ambient temperature, Tenv_Normal_start is the second ambient temperature, and Tenv_High_start is the third ambient temperature.

[0150] In one exemplary embodiment, the second determining subunit includes: a second determining subunit, configured to determine the first target correction coefficient Kenv_start using the following formula:

[0151]

[0152] Wherein, Ts1(Tenv_rt) is the first parameter mentioned above, Ts2(Tenv_rt) is the second parameter mentioned above, Ts3(Tenv_rt) is the third parameter mentioned above, Pstart_Low is the first temperature difference mentioned above, Pstart_Normal is the second temperature difference mentioned above, and Pstart_High is the third temperature difference mentioned above.

[0153] In an exemplary embodiment, the second determining unit includes a third determining subunit, configured to determine a fourth parameter, a fifth parameter, and a sixth parameter based on a current ambient temperature, a fourth ambient temperature, a fifth ambient temperature, and a sixth ambient temperature. The current ambient temperature is the ambient temperature of the infrared temperature measuring device in its current activated state under the current environment. The fourth, fifth, and sixth ambient temperatures are respectively the ambient temperatures of the infrared temperature measuring device in the low-temperature environment, the normal-temperature environment, and the high-temperature environment when the infrared temperature measuring device is in the second activated state. The fourth, fifth, and sixth parameters are further defined as follows: Specifically, the correction parameters for the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature under the aforementioned low temperature environment, the aforementioned normal temperature environment, and the aforementioned high temperature environment; the fourth determining subunit is used to determine the aforementioned second target correction coefficient based on the aforementioned fourth parameter, the aforementioned fifth parameter, the aforementioned sixth parameter, the fourth temperature difference, the fifth temperature difference, and the sixth temperature difference, wherein the aforementioned fourth temperature difference, the aforementioned fifth temperature difference, and the aforementioned sixth temperature difference are respectively the temperature differences between the ambient temperature and the infrared focal plane temperature under the aforementioned low temperature environment, the aforementioned normal temperature environment, and the aforementioned high temperature environment when the infrared temperature measuring device is in the aforementioned second start-up state.

[0154] In an exemplary embodiment, the third determining subunit includes a third determining secondary subunit, configured to determine the fourth parameter Te1(Tenv_rt), the fifth parameter Te2(Tenv_rt), and the sixth parameter Te3(Tenv_rt) using the following formula:

[0155]

[0156] Where Tenv_rt is the current ambient temperature, Tenv_Low_end is the fourth ambient temperature, Tenv_Normal_end is the fifth ambient temperature, and Tenv_High_end is the sixth ambient temperature.

[0157] In one exemplary embodiment, the fourth determining subunit includes: a fourth determining secondary subunit, configured to determine the second target correction coefficient Kenv_end using the following formula:

[0158] Where Te1(Tenv_rt) is the fourth parameter mentioned above, Te2(Tenv_rt) is the fifth parameter mentioned above, Te3(Tenv_rt) is the sixth parameter mentioned above, Pend_Low is the fourth temperature difference value mentioned above, Pend_Normal is the fifth temperature difference value mentioned above, and Pend_High is the sixth temperature difference value mentioned above.

[0159] In an exemplary embodiment, the second determining module 406 includes a second determining submodule, configured to determine the first grayscale value based on the current temperature difference, the first target correction coefficient, the second target correction coefficient, and the second temperature difference, wherein the current temperature difference is the temperature difference between the ambient temperature of the infrared temperature measuring device in the current environment when it is in the current startup state and the infrared focal plane temperature in the current startup state, and the second temperature difference is the temperature difference between the ambient temperature of the infrared temperature measuring device in the first startup state under the normal temperature environment and the infrared focal plane temperature.

[0160] In one exemplary embodiment, the second determining submodule includes: a fourth determining unit, configured to determine the first grayscale value Gcomp using the following formula: Among them, K G The preset grayscale compensation coefficient is Prt, the current temperature difference is Pstart_Normal, the second temperature difference is Kenv_start, the first target correction coefficient is Kenv_end, and the second target correction coefficient is Kenv_end.

[0161] In an exemplary embodiment, the third determining module 408 includes: a first calculation unit for calculating a first sum of the original grayscale value and the first grayscale value; a second calculation unit for calculating a first difference between the first sum and the second grayscale value to obtain a corrected grayscale value of the object under test, wherein the second grayscale value is the average of the grayscale values ​​of a plurality of baffles; and a first conversion unit for converting the corrected grayscale value into a temperature value to obtain the measured temperature.

[0162] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0163] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein the program executes the steps in any of the above method embodiments when it is run.

[0164] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, ROMs, RAMs, portable hard drives, magnetic disks, or optical disks.

[0165] According to another aspect of the embodiments of this application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor is configured to perform the steps of any of the method embodiments described above via the computer program. In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0166] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0167] According to another aspect of the embodiments of this application, a computer program product is also provided, the computer program product including a computer program / instructions containing program code for performing the method shown in the flowchart.

[0168] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0169] The above are merely preferred embodiments of this application and are not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A method for temperature correction, characterized in that, include: The ambient temperature and infrared focal plane temperature of the infrared thermometer were acquired under different startup states and different environments. Based on the ambient temperature and the infrared focal plane temperature, a target correction coefficient is determined, wherein the target correction coefficient is a correction coefficient used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature under different startup states and different environments; Based on the target correction coefficient, a first gray value is determined, wherein the first gray value is used to compensate for the original gray value of the object being measured by the infrared temperature measuring device. The measured temperature of the object under test is determined based on the original gray value, the first gray value, and the second gray value, wherein the second gray value is determined based on the gray values ​​of multiple baffles of the infrared temperature measuring device and is used to compensate for the original baffle gray value of the infrared temperature measuring device.

2. The method according to claim 1, characterized in that, The ambient temperature and infrared focal plane temperature of the infrared thermometer were acquired under different startup states and environments, including: The ambient temperature and infrared focal plane temperature of the infrared temperature measuring device in the first startup state are obtained in different environments, wherein the first startup state is the state in which the infrared temperature measuring device is powered on and running after it has reached the cold state. The ambient temperature and infrared focal plane temperature of the infrared temperature measuring device in the second start-up state are obtained under different environments, wherein the second start-up state is the state when the electric heater on the infrared temperature measuring device runs to the point where the internal environment of the infrared temperature measuring device is stable. The different environments include a low-temperature environment with a temperature lower than a first temperature threshold, a high-temperature environment with a temperature higher than a second temperature threshold, and a normal-temperature environment with a temperature greater than or equal to the first temperature threshold and less than or equal to the second temperature threshold.

3. The method according to claim 2, characterized in that, Based on the ambient temperature and the infrared focal plane temperature, the target correction coefficient is determined, including: Calculate the temperature difference of the infrared temperature measuring device in the first start-up state under different environments, wherein the temperature difference in the first start-up state is the temperature difference between the ambient temperature of the environment in which the infrared temperature measuring device is located and the infrared focal plane temperature of the infrared temperature measuring device. Calculate the temperature difference of the infrared temperature measuring device in the second start-up state under different environments, wherein the temperature difference in the second start-up state is the temperature difference between the ambient temperature of the environment in which the infrared temperature measuring device is located and the infrared focal plane temperature of the infrared temperature measuring device. The target correction coefficient is determined based on the temperature difference between the first startup state and the temperature difference between the second startup state.

4. The method according to claim 3, characterized in that, The temperature difference during the first startup state and the temperature difference during the second startup state are used to determine the target correction coefficient, including: A first target correction coefficient is determined based on the temperature difference at the first startup state, wherein the first target correction coefficient is the correction coefficient by which the infrared temperature measuring device corrects the ambient temperature and the infrared focal plane temperature when it is in the first startup state under different environments; The second target correction coefficient is determined based on the temperature difference value during the second startup state, wherein the second target correction coefficient is the correction coefficient by which the infrared temperature measuring device corrects the ambient temperature and the infrared focal plane temperature when it is in the second startup state under different environments; The first target correction coefficient and the second target correction coefficient are determined as the target correction coefficient.

5. The method according to claim 4, characterized in that, The first target correction coefficient is determined based on the temperature difference during the first startup state, including: Based on the current ambient temperature, the first ambient temperature, the second ambient temperature, and the third ambient temperature, a first parameter, a second parameter, and a third parameter are determined. The current ambient temperature is the ambient temperature of the infrared temperature measuring device in its current startup state under the current environment. The first ambient temperature, the second ambient temperature, and the third ambient temperature are the ambient temperatures of the infrared temperature measuring device in the first startup state under the low-temperature environment, the normal-temperature environment, and the high-temperature environment, respectively. The first parameter, the second parameter, and the third parameter are correction parameters used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature under the low-temperature environment, the normal-temperature environment, and the high-temperature environment, respectively. Based on the first parameter, the second parameter, the third parameter, the first temperature difference, the second temperature difference, and the third temperature difference, the first target correction coefficient is determined, wherein the first temperature difference, the second temperature difference, and the third temperature difference are the temperature differences between the ambient temperature and the infrared focal plane temperature when the infrared temperature measuring device is in the first start-up state in the low temperature environment, the normal temperature environment, and the high temperature environment, respectively.

6. The method according to claim 5, characterized in that, Based on the current ambient temperature, the first ambient temperature, the second ambient temperature, and the third ambient temperature, determine the first parameter, the second parameter, and the third parameter, including: The first parameter Ts1(Tenv_rt), the second parameter Ts2(Tenv_rt), and the third parameter Ts3(Tenv_rt) are determined by the following formula: Wherein, Tenv_rt is the current ambient temperature, Tenv_Low_start is the first ambient temperature, Tenv_Normal_start is the second ambient temperature, and Tenv_High_start is the third ambient temperature.

7. The method according to claim 5, characterized in that, Based on the first parameter, the second parameter, the third parameter, the first temperature difference, the second temperature difference, and the third temperature difference, the first target correction coefficient is determined, including: The first target correction coefficient Kenv_start is determined using the following formula: Wherein, Ts1(Tenv_rt) is the first parameter, Ts2(Tenv_rt) is the second parameter, Ts3(Tenv_rt) is the third parameter, Pstart_Low is the first temperature difference, Pstart_Normal is the second temperature difference, and Pstart_High is the third temperature difference.

8. The method according to claim 4, characterized in that, The second target correction coefficient is determined based on the temperature difference during the second startup state, including: Based on the current ambient temperature, the fourth ambient temperature, the fifth ambient temperature, and the sixth ambient temperature, a fourth parameter, a fifth parameter, and a sixth parameter are determined. The current ambient temperature is the ambient temperature of the infrared temperature measuring device in its current startup state under the current environment. The fourth, fifth, and sixth ambient temperatures are the ambient temperatures of the infrared temperature measuring device in the second startup state under the low-temperature environment, the normal-temperature environment, and the high-temperature environment, respectively. The fourth, fifth, and sixth parameters are correction parameters used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature under the low-temperature environment, the normal-temperature environment, and the high-temperature environment, respectively. Based on the fourth parameter, the fifth parameter, the sixth parameter, the fourth temperature difference, the fifth temperature difference, and the sixth temperature difference, the second target correction coefficient is determined, wherein the fourth temperature difference, the fifth temperature difference, and the sixth temperature difference are the temperature differences between the ambient temperature and the infrared focal plane temperature when the infrared temperature measuring device is in the second start-up state in the low temperature environment, the normal temperature environment, and the high temperature environment, respectively.

9. The method according to claim 8, characterized in that, Based on the current ambient temperature, the fourth ambient temperature, the fifth ambient temperature, and the sixth ambient temperature, determine the fourth parameter, the fifth parameter, and the sixth parameter, including: The fourth parameter Te1(Tenv_rt), the fifth parameter Te2(Tenv_rt), and the sixth parameter Te3(Tenv_rt) are determined by the following formula: Wherein, Tenv_rt is the current ambient temperature, Tenv_Low_end is the fourth ambient temperature, Tenv_Normal_end is the fifth ambient temperature, and Tenv_High_end is the sixth ambient temperature.

10. The method according to claim 8, characterized in that, Based on the fourth parameter, the fifth parameter, the sixth parameter, the fourth temperature difference, the fifth temperature difference, and the sixth temperature difference, the second target correction coefficient is determined, including: The second target correction coefficient Kenv_end is determined using the following formula: Wherein, Te1(Tenv_rt) is the fourth parameter, Te2(Tenv_rt) is the fifth parameter, Te3(Tenv_rt) is the sixth parameter, Pend_Low is the fourth temperature difference, Pend_Normal is the fifth temperature difference, and Pend_High is the sixth temperature difference.

11. The method according to claim 4, characterized in that, Based on the target correction coefficient, the first grayscale value is determined, including: Based on the current temperature difference, the first target correction coefficient, the second target correction coefficient, and the second temperature difference, the first grayscale value is determined. The current temperature difference is the temperature difference between the ambient temperature of the infrared temperature measuring device in the current environment when it is in the current startup state and the infrared focal plane temperature in the current startup state. The second temperature difference is the temperature difference between the ambient temperature of the infrared temperature measuring device in the normal temperature environment and the infrared focal plane temperature when it is in the first startup state.

12. The method according to claim 11, characterized in that, Based on the current temperature difference, the first target correction coefficient, the second target correction coefficient, and the second temperature difference, the first grayscale value is determined, including: The first grayscale value Gcomp is determined using the following formula: Among them, K G Prt is the preset grayscale compensation coefficient, Pstart_Normal is the current temperature difference, Kenv_start is the first target correction coefficient, and Kenv_end is the second target correction coefficient.

13. The method according to claim 1, characterized in that, Determining the measurement temperature of the object under test based on the original grayscale value, the first grayscale value, and the second grayscale value includes: Calculate the first sum of the original grayscale value and the first grayscale value; Calculate the first difference between the first sum and the second gray value to obtain the corrected gray value of the object under test, wherein the second gray value is the average of the gray values ​​of multiple baffles; The corrected grayscale value is converted into a temperature value to obtain the measured temperature.

14. A temperature correction device, characterized in that, include: The first acquisition module is used to acquire the ambient temperature and infrared focal plane temperature of the infrared temperature measuring device under different startup states and different environments. The first determining module is used to determine a target correction coefficient based on the ambient temperature and the infrared focal plane temperature, wherein the target correction coefficient is a correction coefficient used by the infrared temperature measuring device to correct the ambient temperature and the infrared focal plane temperature under different start-up states and different environments; The second determining module is used to determine a first gray value based on the target correction coefficient, wherein the first gray value is used to compensate for the original gray value of the object being measured by the infrared temperature measuring device. The third determining module is used to determine the measured temperature of the object being measured based on the original gray value, the first gray value, and the second gray value, wherein the second gray value is determined based on the gray values ​​of multiple baffles of the infrared temperature measuring device and is used to compensate for the original baffle gray value of the infrared temperature measuring device.

15. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 13.