Method, device, equipment and storage medium for determining temperature drift correction curve equation

By obtaining the cavity temperature gray value of the thermal imaging equipment, establishing a reference curve and adjusting the curve equation, the complex problem of temperature drift correction curve determination in the prior art is solved, which improves production efficiency and simplifies the production process of the equipment.

CN114428933BActive Publication Date: 2024-12-10SUNELL TECH CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111633806.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-12-10
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

In the prior art, the temperature drift correction curve determination process of thermal imaging equipment is complicated, resulting in low production efficiency. It requires multiple detections and adjustments of each thermal imaging equipment, which takes a long time.

Method used

By obtaining the cavity temperature grayscale values ​​of multiple thermal imaging devices, a reference curve equation is established, and a small amount of cavity temperature grayscale values ​​are used to adjust the curve equation, eliminate equipment differences, quickly determine the temperature drift correction curve equation, and improve production efficiency.

Benefits of technology

The process of determining the temperature drift correction curve is simplified, processing resources and time is saved, and the production efficiency of multiple thermal imaging equipment is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114428933B_ABST
    Figure CN114428933B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and storage medium for determining a temperature drift correction curve equation, and belongs to the field of thermal imaging technology. It includes: obtaining j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures; obtaining the temperature drift correction curve equation of the first device as a reference curve equation according to the j first cavity temperatures and the j first grayscale values; when the external environment temperature is a preset temperature, obtaining a second cavity temperature and a second grayscale value corresponding to a second cavity temperature to obtain k second cavity temperatures and k second grayscale values; adjusting the reference curve equation according to the k second cavity temperatures and k second grayscale values ​​to obtain the temperature drift correction curve equation of the second device. The present application improves the efficiency of determining the temperature drift correction curve equation of the second device, saves processing resources and determination time, thereby saving the production time of multiple thermal imaging devices and improving production efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of thermal imaging technology, and in particular to a method, device, equipment and storage medium for determining a temperature drift correction curve equation. Background Art

[0002] After the thermal imaging device starts working, as the external environment temperature rises, the temperature inside the cavity (i.e., cavity temperature) will also rise. Once the cavity temperature of the thermal imaging device rises, the temperature of the object detected by the thermal imaging device will drift, i.e., temperature drift will occur, resulting in inaccurate temperature detection of the object. Therefore, it is necessary to correct the temperature drift caused by the change in the cavity temperature of the thermal imaging device.

[0003] In the related art, during production, technicians place each of the multiple thermal imaging devices in a constant temperature box, and then gradually adjust the temperature of the constant temperature box. The cavity temperature of each thermal imaging device changes with the temperature change of the constant temperature box. Each thermal imaging device detects the reference black body to obtain a thermal image. For any thermal imaging device, the terminal fits the temperature drift correction curve corresponding to the thermal imaging device according to the change in the gray value of the thermal image detected by the thermal imaging device during the cavity temperature change. The temperature drift correction curve can correct the drift phenomenon caused by the cavity temperature change of the thermal imaging device.

[0004] However, in the above method, during production, each of the multiple thermal imaging devices needs to go through the above complex process to obtain the temperature drift correction curve corresponding to each thermal imaging device, which results in a long production time and low production efficiency for the multiple thermal imaging devices. Summary of the invention

[0005] The present application provides a method, device, equipment and storage medium for determining a temperature drift correction curve equation, which can improve the production efficiency of thermal imaging equipment. The technical solution is as follows:

[0006] In a first aspect, a method for determining a temperature drift correction curve equation is provided, the method comprising:

[0007] In the case where the external environment temperature changes, j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures are obtained, wherein the j first cavity temperatures are cavity temperatures of a first device, and the first grayscale value corresponding to each of the j first cavity temperatures is a grayscale value of a thermal image obtained by detecting a reference black body by the first device when the first device is at each first cavity temperature, and the first device is a thermal imaging device among multiple thermal imaging devices;

[0008] According to the j first cavity temperatures and the j first grayscale values, acquiring a temperature drift correction curve equation of the first device as a reference curve equation, wherein the temperature drift correction curve equation of the first device is used to correct the temperature of the object detected by the first device;

[0009] For each of the k preset temperatures, when the ambient temperature is the preset temperature, a second cavity temperature and a second grayscale value corresponding to the second cavity temperature are obtained to obtain k second cavity temperatures and k second grayscale values, the k second cavity temperatures are cavity temperatures of a second device, the second grayscale value corresponding to each of the k second cavity temperatures is a grayscale value of a thermal image obtained by detecting a reference black body when the second device is at each second cavity temperature, the second device is another thermal imaging device among the multiple thermal imaging devices except the first device, and k is an integer greater than or equal to 2;

[0010] The reference curve equation is adjusted according to the k second cavity temperatures and the k second grayscale values ​​to obtain a temperature drift correction curve equation of the second device, and the temperature drift correction curve equation of the second device is used to correct the temperature of the object detected by the second device.

[0011] In the present application, when the ambient temperature changes, j first cavity temperatures of the first device and j first grayscale values ​​corresponding to the j first cavity temperatures are obtained, and the temperature drift correction curve equation of the first device is obtained as a reference curve equation according to the j first cavity temperatures and the j first grayscale values, and the temperature drift correction curve equation can correct the temperature of the object detected by the first device. Since there are device differences between the first device and the second device, the reference curve equation is adjusted according to the obtained k second cavity temperatures of the second device at k preset temperatures and the k second grayscale values ​​detected, and the device differences between the first device and the second device are eliminated, thereby obtaining a temperature drift correction curve equation suitable for the second device. In this way, in the process of determining the temperature drift correction curve equation of the second device, it is not necessary to obtain a large number of cavity temperatures of the second device and the grayscale values ​​detected, and only a small number of k second cavity temperatures and k second grayscale values ​​are obtained, and the reference curve equation is adjusted accordingly to obtain the temperature drift correction curve equation of the second device, thereby improving the determination efficiency of the temperature drift correction curve equation of the second device, saving processing resources and determination time, and thus saving the production time of multiple thermal imaging devices, and improving production efficiency.

[0012] Optionally, before acquiring j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures in a one-to-one manner when the external environment temperature changes, the method further includes:

[0013] After the first device is started, after a preset time period, the step of obtaining j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures in a case where the external environment temperature changes is performed; or,

[0014] After the first device is started, if it is detected that the temperature difference between the cavity temperature of the first device and the external environment temperature is less than or equal to the temperature difference threshold, the step of obtaining j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures in a case where the external environment temperature changes is performed.

[0015] Optionally, acquiring a temperature drift correction curve equation of the first device as a reference curve equation according to the j first cavity temperatures and the j first grayscale values ​​includes:

[0016] Fitting the j first cavity temperatures and the first grayscale value corresponding to each of the j first cavity temperatures to obtain a fitting curve equation;

[0017] Substituting the target temperature into the fitting curve equation to obtain a target grayscale value, wherein the target temperature is the cavity temperature of the thermal imaging device when the external environment temperature is normal temperature;

[0018] The target gray value is subtracted from the fitting curve equation to obtain a temperature drift correction curve equation of the first device as the reference curve equation.

[0019] Optionally, adjusting the reference curve equation according to the k second cavity temperatures and the k second grayscale values ​​to obtain a temperature drift correction curve equation of the second device includes:

[0020] Substituting the k second cavity temperatures into the fitting curve equation respectively, to obtain k third grayscale values ​​corresponding to the k second cavity temperatures one by one;

[0021] Determining a curve adjustment coefficient according to the k second grayscale values ​​and the k third grayscale values;

[0022] The curve adjustment coefficient is multiplied by the reference curve equation to obtain a temperature drift correction curve equation for the second device.

[0023] Optionally, the k is 2, and the determining the curve adjustment coefficient according to the k second grayscale values ​​and the k third grayscale values ​​includes:

[0024] According to the two second grayscale values ​​and the two third grayscale values, the curve adjustment coefficient is obtained by the following formula;

[0025]

[0026] Wherein, r is the curve adjustment coefficient, y 21 and the 22 are the two second grayscale values, the y 31 and the 32 are the two third grayscale values, the y 21 and the 31 Corresponding to the same second chamber temperature, the y 22 and the 32 Corresponding to the same second cavity temperature.

[0027] Optionally, the k is 3, and determining the curve adjustment coefficient according to the k second grayscale values ​​and the k third grayscale values ​​includes:

[0028] Determine an average value of the three second grayscale values ​​as the first value;

[0029] Determine an average value of the three third gray values ​​as a second value;

[0030] According to the three second grayscale values, the three third grayscale values, the first value and the second value, the curve adjustment coefficient is obtained by the following formula;

[0031]

[0032] Wherein, r is the curve adjustment coefficient, y 21 , the y 22 and the 23 are the three second grayscale values, the y 31 , the y 32 and the 33 are the three third grayscale values, n is the first value, m is the second value, and y is 21 and the 31 Corresponding to the same second chamber temperature, the y 22 and the 32 Corresponding to the same second chamber temperature, the y 23 and the 33 Corresponding to the same second cavity temperature.

[0033] Optionally, after adjusting the reference curve equation according to the k second cavity temperatures and the k second grayscale values ​​to obtain the temperature drift correction curve equation of the second device, the method further includes:

[0034] Acquire the cavity temperature of a target device and the grayscale value of a thermal image obtained by the target device when detecting an object, wherein the target device is any one of the multiple thermal imaging devices;

[0035] Substituting the cavity temperature of the target device into the temperature drift correction curve equation of the target device to obtain a drift value;

[0036] Subtract the drift value from the grayscale value detected by the target device to obtain a corrected grayscale value;

[0037] The temperature of the object is determined according to the corrected grayscale value.

[0038] In a second aspect, a device for determining a temperature drift correction curve equation is provided, the device comprising:

[0039] A first acquisition module, configured to acquire j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures in a one-to-one manner when the external environment temperature changes, wherein the j first cavity temperatures are cavity temperatures of a first device, and the first grayscale value corresponding to each of the j first cavity temperatures is a grayscale value of a thermal image obtained by detecting a reference black body by the first device when the first device is at each first cavity temperature, and the first device is one of the multiple thermal imaging devices;

[0040] A second acquisition module, configured to acquire a temperature drift correction curve equation of the first device as a reference curve equation according to the j first cavity temperatures and the j first grayscale values, wherein the temperature drift correction curve equation of the first device is used to correct the temperature of the object detected by the first device;

[0041] a third acquisition module, for acquiring, for each of the k preset temperatures, a second cavity temperature and a second grayscale value corresponding to the second cavity temperature when the ambient temperature is the preset temperature, so as to obtain k second cavity temperatures and k second grayscale values, wherein the k second cavity temperatures are cavity temperatures of a second device, and the second grayscale value corresponding to each of the k second cavity temperatures is a grayscale value of a thermal image obtained by detecting a reference black body by the second device when the second device is at each second cavity temperature, and the second device is a thermal imaging device other than the first device among the multiple thermal imaging devices, and k is an integer greater than or equal to 2;

[0042] An adjustment module is used to adjust the reference curve equation according to the k second cavity temperatures and the k second grayscale values ​​to obtain a temperature drift correction curve equation of the second device, wherein the temperature drift correction curve equation of the second device is used to correct the temperature of the object detected by the second device.

[0043] Optionally, the device further comprises:

[0044] A first execution module is configured to execute, after the first device is started and after a preset time has passed, the step of acquiring j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures in a case where the external environment temperature changes; or

[0045] The second execution module is used to execute the step of obtaining j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures in a one-to-one manner when the external environment temperature changes, if it is detected that the temperature difference between the cavity temperature of the first device and the external environment temperature is less than or equal to the temperature difference threshold after the first device is started.

[0046] Optionally, the second acquisition module is used to:

[0047] Fitting the j first cavity temperatures and the first grayscale value corresponding to each of the j first cavity temperatures to obtain a fitting curve equation;

[0048] Substituting the target temperature into the fitting curve equation to obtain a target grayscale value, wherein the target temperature is the cavity temperature of the thermal imaging device when the external environment temperature is normal temperature;

[0049] The target gray value is subtracted from the fitting curve equation to obtain a temperature drift correction curve equation of the first device as the reference curve equation.

[0050] Optionally, the adjustment module includes:

[0051] A substitution unit, used for substituting the k second cavity temperatures into the fitting curve equation respectively, to obtain k third grayscale values ​​corresponding to the k second cavity temperatures one by one;

[0052] A first determining unit, configured to determine a curve adjustment coefficient according to the k second grayscale values ​​and the k third grayscale values;

[0053] The second determining unit multiplies the curve adjustment coefficient by the reference curve equation to obtain a temperature drift correction curve equation of the second device.

[0054] Optionally, the k is 2, and the first determining unit is used to:

[0055] According to the two second grayscale values ​​and the two third grayscale values, the curve adjustment coefficient is obtained by the following formula;

[0056]

[0057] Wherein, r is the curve adjustment coefficient, y 21 and the 22 are the two second grayscale values, the y 31 and the32 are the two third grayscale values, the y 21 and the 31 Corresponding to the same second chamber temperature, the y 22 and the 32 Corresponding to the same second cavity temperature.

[0058] Optionally, the k is 3, and the first determining unit is used to:

[0059] Determine an average value of the three second grayscale values ​​as the first value;

[0060] Determine an average value of the three third gray values ​​as a second value;

[0061] According to the three second grayscale values, the three third grayscale values, the first value and the second value, the curve adjustment coefficient is obtained by the following formula;

[0062]

[0063] Wherein, r is the curve adjustment coefficient, y 21 , the y 22 and the 23 are the three second grayscale values, the y 31 , the y 32 and the 33 are the three third grayscale values, n is the first value, m is the second value, and y is 21 and the 31 Corresponding to the same second chamber temperature, the y 22 and the 32 Corresponding to the same second chamber temperature, the y 23 and the 33 Corresponding to the same second cavity temperature.

[0064] Optionally, the device further comprises:

[0065] A fourth acquisition module, used to acquire the cavity temperature of a target device and the grayscale value of a thermal image obtained by the target device detecting an object, wherein the target device is any one of the multiple thermal imaging devices;

[0066] A substitution module, used for substituting the cavity temperature of the target device into the temperature drift correction curve equation of the target device to obtain a drift value;

[0067] A first determination module, configured to subtract the drift value from the grayscale value detected by the target device to obtain a corrected grayscale value;

[0068] The second determination module is used to determine the temperature of the object according to the corrected grayscale value.

[0069] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the above-mentioned method for determining a temperature drift correction curve equation when executed by the processor.

[0070] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for determining the temperature drift correction curve equation is implemented.

[0071] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the steps of the above-mentioned method for determining the temperature drift correction curve equation.

[0072] It can be understood that the beneficial effects of the second, third, fourth and fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0074] Figure 1 is a flow chart of a method for determining a temperature drift correction curve equation provided by an embodiment of the present application;

[0075] Figure 2 is a flow chart of another method for determining a temperature drift correction curve equation provided by an embodiment of the present application;

[0076] Figure 3 It is a structural schematic diagram of a device for determining a temperature drift correction curve equation provided in an embodiment of the present application;

[0077] Figure 4 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0078] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0079] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.

[0080] Before explaining the embodiments of the present application in detail, the application scenarios of the embodiments of the present application are first described.

[0081] The method for determining the temperature drift correction curve equation provided by the embodiment of the present application is applied to the scenario of producing thermal imaging equipment, and is used to correct the temperature drift phenomenon caused by the change of the cavity temperature of the thermal imaging equipment. Specifically, firstly, according to the obtained j first cavity temperatures of the first device and the j first grayscale values ​​detected by the first device, the temperature drift correction curve equation of the first device is obtained as the reference curve equation, and then according to the obtained k second cavity temperatures of the second device and the k second grayscale values ​​detected by the second device, the reference curve equation is adjusted to obtain the temperature drift correction curve equation of the second device. In this way, in the process of determining the temperature drift correction curve equation of the second device, there is no need to obtain a large number of cavity temperatures of the second device and the grayscale values ​​detected, and only by obtaining a small number of k second cavity temperatures and k second grayscale values, the reference curve equation can be adjusted accordingly to obtain the temperature drift correction curve equation of the second device, thereby improving the determination efficiency of the temperature drift correction curve equation of the second device, saving processing resources and determination time, and thus saving the production time of multiple thermal imaging devices, and improving production efficiency.

[0082] The method for determining the temperature drift correction curve equation provided in the embodiment of the present application is explained in detail below.

[0083] Figure 1 is a flow chart of a method for determining a temperature drift correction curve equation provided by an embodiment of the present application. Figure 1 , the method comprises the following steps.

[0084] Step 101: When the external environment temperature changes, the terminal obtains j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures.

[0085] The j first cavity temperatures are cavity temperatures of the first device, and the j first cavity temperatures are multiple cavity temperatures of the first device acquired by the terminal when the external environment temperature changes. j is an integer greater than or equal to 2, and j is generally large, such as j can be 40, 50, etc.

[0086] The first grayscale value corresponding to each of the j first cavity temperatures is the grayscale value of the thermal image obtained by the first device detecting the reference black body when the first device is at each first cavity temperature. The first device is a thermal imaging device randomly selected by a technician from multiple thermal imaging devices in advance. The multiple thermal imaging devices may be thermal imaging devices of the same type, or may be thermal imaging devices with similar temperature drift phenomena.

[0087] That is to say, when the external environment temperature changes, a cavity temperature of the first device is obtained as a first cavity temperature, and when the first cavity temperature is obtained, the gray value of the thermal image obtained by the first device for detecting the reference black body is obtained as a first gray value corresponding to the first cavity temperature. In this way, when the external environment temperature changes, the first cavity temperature is continuously obtained, and a corresponding first gray value is obtained when each first cavity temperature is obtained, so that j first cavity temperatures and j first gray values ​​corresponding to the j first cavity temperatures can be obtained.

[0088] It is worth noting that due to the differences between the responses of different pixels in the infrared focal plane array of the detector of the thermal imaging device, this will cause the signals output by each unit of the detector of the thermal imaging device to be inconsistent when the light intensity energy incident on the detector is consistent. Therefore, after the first device obtains a thermal image by detecting the reference black body at each first cavity temperature, the terminal needs to first perform non-uniformity correction on the thermal image to obtain a thermal image after non-uniformity correction, and then obtain a grayscale value from the thermal image after non-uniformity correction as the first grayscale value.

[0089] The operation of performing non-uniformity correction on the thermal image by the terminal is similar to the operation of performing non-uniformity correction on a certain image by the terminal in the related art, and the embodiment of the present application will not be elaborated on this.

[0090] Before the terminal obtains j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures, it is first determined that the cavity temperature of the first device reaches a stable state. The operation of determining that the cavity temperature of the first device reaches a stable state can be achieved in the following two possible ways.

[0091] When the difference between the cavity temperature of the first device and the external environment temperature is small, it indicates that the cavity temperature of the first device has reached a stable state. In this case, by determining that the cavity temperature of the first device has reached a stable state, the terminal can obtain a more accurate cavity temperature of the first device.

[0092] In a first possible manner, after the first device is started and after a preset period of time has passed, the terminal executes the step of obtaining j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures when the external ambient temperature changes.

[0093] The preset time length can be set in advance, and the preset time length can be set larger to ensure that after the preset time length, the difference between the cavity temperature of the first device and the external ambient temperature is small, that is, the cavity temperature of the first device is close to the external ambient temperature, indicating that the cavity temperature of the first device has reached a stable state.

[0094] In this case, by setting a preset time length, the terminal waits for the cavity temperature of the first device after startup to gradually approach the external ambient temperature, and can determine that the cavity temperature of the first device reaches a stable state without performing calculations, thereby saving processing resources.

[0095] It is worth noting that after a preset period of time, the external environment temperature needs to be changed first, and the terminal can execute the step of obtaining j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures when the external environment temperature changes. The method of changing the external environment temperature can be achieved by technicians gradually changing the temperature of the external environment where the first device is located or the terminal gradually changing the temperature of the external environment where the first device is located, and the embodiments of the present application are not limited to this.

[0096] In a second possible manner, after the first device is started, if the terminal detects that the temperature difference between the cavity temperature of the first device and the external environment temperature is less than or equal to the temperature difference threshold, the terminal executes the step of obtaining j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures when the external environment temperature changes.

[0097] The temperature difference threshold can be set in advance, and the temperature difference threshold can be set to be smaller. If the terminal detects that the temperature difference between the cavity temperature of the first device and the external environment temperature is less than or equal to the temperature difference threshold, it means that the temperature difference between the cavity temperature of the first device and the external environment temperature is small, that is, the cavity temperature of the first device is close to the external environment temperature, which means that the cavity temperature of the first device has reached a stable state.

[0098] In this case, by calculating the difference between the cavity temperature of the first device and the external ambient temperature through the terminal, and comparing the difference with the temperature difference threshold, it is possible to accurately determine whether the cavity temperature of the first device is close to the external ambient temperature, that is, it is possible to accurately determine whether the cavity temperature of the first device has reached a stable state. Therefore, this method can improve the accuracy.

[0099] It is worth noting that if the terminal detects that the temperature difference between the cavity temperature of the first device and the external environment temperature is less than or equal to the temperature difference threshold, the external environment temperature needs to be changed first, and the terminal can perform the step of obtaining j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures when the external environment temperature changes. The external environment temperature can be changed by a technician gradually changing the temperature of the external environment in which the first device is located or by the terminal gradually changing the temperature of the external environment in which the first device is located, and the embodiments of the present application do not limit this.

[0100] Step 102: The terminal obtains a temperature drift correction curve equation of the first device as a reference curve equation according to the j first cavity temperatures and the j first grayscale values.

[0101] The temperature drift correction curve equation of the first device is used to correct the temperature of the object detected by the first device.

[0102] In this case, when measuring the temperature of an object, the terminal first obtains the cavity temperature of the first device and the grayscale value of the thermal image obtained by the first device when detecting the object, substitutes the obtained cavity temperature of the first device into the temperature drift correction curve equation of the first device, and obtains the drift value caused by the change in cavity temperature when the first device measures the temperature of the object. Then, the drift value is subtracted from the grayscale value of the thermal image obtained by the first device when detecting the object, and a corrected grayscale value can be obtained, that is, the grayscale value of the thermal image that the first device should actually detect when detecting the object. Then, the temperature of the object is determined based on the corrected grayscale value, that is, the temperature of the object that should actually be measured when there is no influence of the cavity temperature change is determined. At this time, the determined temperature of the object is more accurate.

[0103] Specifically, the operation of step 102 may be: the terminal fits the j first cavity temperatures and the first grayscale values ​​corresponding to each of the j first cavity temperatures to obtain a fitting curve equation; substitutes the target temperature into the fitting curve equation to obtain a target grayscale value; subtracts the target grayscale value from the fitting curve equation to obtain a temperature drift correction curve equation of the first device as a reference curve equation.

[0104] The fitting curve equation is used to represent the relationship between the cavity temperature of the first device and the grayscale value detected by the first device during the process of the external environment temperature changing.

[0105] The target temperature is the cavity temperature of the thermal imaging device when the ambient temperature is normal temperature, and the target grayscale value is the grayscale value corresponding to the cavity temperature of the first device at normal temperature obtained by substituting the target temperature into the fitting curve equation. For example, the temperature range of the normal temperature environment is generally 25°C-30°C.

[0106] In this case, the terminal fits the j first cavity temperatures and the first grayscale values ​​corresponding to each of the j first cavity temperatures to obtain a fitting curve equation, and the fitting curve equation represents the drifted grayscale value measured by the first device on the object at each cavity temperature. Since the cavity temperature of the first device is relatively stable at room temperature, that is, the grayscale value measured by the first device on the object will not drift, the temperature drift correction curve equation can be obtained by subtracting the grayscale value corresponding to the cavity temperature of the first device at room temperature from the fitting curve equation. The temperature drift correction curve equation is used to indicate the drift of the grayscale value caused by the change of the cavity temperature.

[0107] Step 103: For each of the k preset temperatures, when the external environment temperature is the preset temperature, the terminal obtains a second cavity temperature and a second grayscale value corresponding to the second cavity temperature to obtain k second cavity temperatures and k second grayscale values.

[0108] Each of the k preset temperatures can be set in advance, and the k preset temperatures can be set differently, and can be set according to the difference between two adjacent preset temperatures in the k preset temperatures being greater than the preset temperature difference. k is an integer greater than or equal to 2, and k is generally small, such as the value of k is generally not greater than 4. k is less than j.

[0109] The preset temperature difference can be set in advance, and the preset temperature difference can be set according to the value of k. The smaller the value of k is, the larger the preset temperature difference is, and the larger the value of k is, the smaller the preset temperature difference is.

[0110] For example, when the value of k is 2, the preset temperature difference is 40°C, that is, there are two preset temperatures, and the temperature difference between the two preset temperatures can be greater than 40°C. For example, one of the two preset temperatures can be set to 0°C, which is a low temperature, and the other preset temperature can be set to 45°C, which is a high temperature. At this time, the terminal only needs to obtain the two second cavity temperatures of the second device at the external ambient temperature of 0°C and 45°C respectively, and the two second grayscale values ​​corresponding to the two second cavity temperatures.

[0111] For example, when the value of k is 3, the preset temperature difference is 20°C, that is, there are three preset temperatures, and the temperature difference between two adjacent preset temperatures among the three preset temperatures can be greater than 20°C. For example, the first preset temperature can be set to 0°C, which is a low temperature, the second preset temperature can be set to 25°C, which is a normal temperature, and the third preset temperature can be set to 45°C, which is a high temperature. At this time, the terminal only needs to obtain the three second cavity temperatures of the second device at the external ambient temperatures of 0°C, 25°C and 45°C respectively, and the three second grayscale values ​​corresponding to the three second cavity temperatures.

[0112] The k second cavity temperatures are cavity temperatures of the second device, the second grayscale value corresponding to each of the k second cavity temperatures is the grayscale value of the thermal image obtained by the second device detecting a reference black body when the second device is at each second cavity temperature, and the second device is other thermal imaging device among the multiple thermal imaging devices except the first device.

[0113] That is to say, when the ambient temperature is a preset temperature each time, a cavity temperature of the second device is obtained as a second cavity temperature, and when the second cavity temperature is obtained, a gray value of a thermal image obtained by the second device detecting a reference black body is obtained as a second gray value corresponding to the second cavity temperature. In this way, when the ambient temperature is k preset temperatures in sequence, k second cavity temperatures are obtained in sequence, and when each second cavity temperature is obtained, a corresponding second gray value is obtained, so that k second cavity temperatures and k second gray values ​​corresponding to the k second cavity temperatures can be obtained.

[0114] It is worth noting that after the second device obtains a thermal image by detecting the reference black body at each second cavity temperature, the terminal needs to first perform non-uniformity correction on the thermal image to obtain a thermal image after non-uniformity correction, and then obtain a grayscale value from the thermal image after non-uniformity correction.

[0115] The operation of performing non-uniformity correction on the thermal image by the terminal is similar to the operation of performing non-uniformity correction on a certain image by the terminal in the related art, and the embodiment of the present application will not be elaborated on this.

[0116] In this case, for the second device, there is no need to gradually change the external ambient temperature to obtain a large number of cavity temperatures of the second device and grayscale values ​​detected by the second device, but only k second cavity temperatures and k second grayscale values ​​need to be obtained. Since the value of k is generally small, the production time of the thermal imaging equipment can be saved and the production efficiency can be improved.

[0117] Step 104: The terminal adjusts the reference curve equation according to the k second cavity temperatures and the k second grayscale values ​​to obtain a temperature drift correction curve equation for the second device.

[0118] The temperature drift correction curve equation of the second device is used to correct the temperature of the object detected by the second device.

[0119] In this case, the reference curve equation is the temperature drift correction curve equation of the first device. Since there are device differences between the second device and the first device, the reference curve equation cannot be directly used to correct the temperature of the object detected by the second device. It is necessary to adjust the reference curve equation through the k second cavity temperatures and k second gray values ​​of the second device obtained by the terminal to eliminate the device differences between different devices, thereby obtaining a temperature drift correction curve equation suitable for the second device.

[0120] Specifically, the operation of step 104 may be: the terminal substitutes the k second cavity temperatures into the fitting curve equation respectively to obtain k third grayscale values ​​corresponding one to one to the k second cavity temperatures; determines the curve adjustment coefficient according to the k second grayscale values ​​and the k third grayscale values; multiplies the curve adjustment coefficient by the reference curve equation to obtain the temperature drift correction curve equation of the second device.

[0121] The third grayscale value is the grayscale value corresponding to the second cavity temperature in the fitting curve equation, and the k third grayscale values ​​are the k grayscale values ​​corresponding one-to-one to the k second cavity temperatures in the fitting curve equation.

[0122] The curve adjustment coefficient is used to represent a device difference between the first device and the second device.

[0123] In this case, the terminal substitutes the k second cavity temperatures into the fitting curve equation respectively, and obtains the grayscale value corresponding to each of the k second cavity temperatures in the fitting curve equation of the first device, that is, the third grayscale value. Then, the curve adjustment coefficient is determined according to the k third grayscale values ​​corresponding to the k second cavity temperatures (that is, the k grayscale values ​​determined by the fitting curve equation of the first device) and the k second grayscale values ​​(that is, the k grayscale values ​​measured by the second device), that is, the device difference between the first device and the second device is determined, and finally, the curve adjustment coefficient is multiplied by the reference curve equation to eliminate the device difference between the first device and the second device, so that the obtained temperature drift correction curve equation can be used to correct the object temperature measured by the second device.

[0124] Among them, when the value of k is 2, the operation of determining the curve adjustment coefficient according to k second grayscale values ​​and k third grayscale values ​​can be: according to 2 second grayscale values ​​and 2 third grayscale values, the curve adjustment coefficient is obtained by the following formula.

[0125]

[0126] Among them, r is the curve adjustment coefficient, y 21 and 22 is the second gray value, y 31 and 32 is the 2nd third gray value, y 21 and 31 Corresponding to the same second cavity temperature, y 22 and 32 Corresponding to the same second cavity temperature.

[0127] The terminal first calculates the difference between the two second grayscale values ​​and the difference between the two third grayscale values, and then takes the ratio of the difference between the two second grayscale values ​​to the difference between the two third grayscale values ​​as the curve adjustment coefficient, that is, the device difference between the first device and the second device is obtained by dividing the difference between the two second grayscale values ​​of the second device by the difference between the two third grayscale values ​​of the first device.

[0128] In this case, the terminal only needs to obtain the two second cavity temperatures and the two second grayscale values ​​of the second device, and then determine the device difference between the first device and the second device, that is, the curve adjustment coefficient, according to the fitting curve equation, so that the process of determining the curve adjustment coefficient is relatively simple, thereby saving processing resources and production time.

[0129] Among them, when the value of k is 3, the operation of determining the curve adjustment coefficient according to k second grayscale values ​​and k third grayscale values ​​can be: determining the average value of the three second grayscale values ​​as the first value; determining the average value of the three third grayscale values ​​as the second value; according to the three second grayscale values, the three third grayscale values, the first value and the second value, the curve adjustment coefficient is obtained by the following formula.

[0130]

[0131] Among them, r is the curve adjustment coefficient, y 21 ,y 22 and 23 is the 3 second gray value, y 31 ,y 32 and 33 are 3 third grayscale values, n is the first value, m is the second value, y is 21 and 31 Corresponding to the same second cavity temperature, y 22 and 32 Corresponding to the same second cavity temperature, y 23 and 33 Corresponding to the same second cavity temperature.

[0132] In this case, the terminal obtains the three second cavity temperatures and the three second grayscale values ​​of the second device, and then determines the device difference between the first device and the second device in combination with the three third grayscale values ​​that correspond one to one to the three second cavity temperatures in the fitting curve equation, so as to obtain a more accurate curve adjustment coefficient, thereby making the temperature drift correction curve equation of the second device more accurate, thereby ensuring that the corrected object temperature is more accurate.

[0133] It is worth noting that the terminal can determine the temperature drift correction curve equation of the first device and the second device through the above steps 101 to 104, and thus determine the temperature drift correction curve equation of each thermal imaging device in the multiple thermal imaging devices. In this case, the terminal can also correct the object temperature detected by the thermal imaging device according to the temperature drift correction curve equation.

[0134] Specifically, the terminal obtains the cavity temperature of the target device and the grayscale value of the thermal image obtained by the target device when detecting the object; substitutes the cavity temperature of the target device into the temperature drift correction curve equation of the target device to obtain the drift value; subtracts the drift value from the grayscale value detected by the target device to obtain the corrected grayscale value; and determines the temperature of the object according to the corrected grayscale value.

[0135] The target device is any one of the multiple thermal imaging devices, and the thermal imaging device detects the temperature of the object.

[0136] The drift value is a change value of the grayscale value of the thermal image of the object measured by the target device due to the change of the cavity temperature, that is, a drift value of the grayscale value of the thermal image of the object measured by the target device.

[0137] In this case, the terminal obtains the cavity temperature of the target device and the grayscale value of the thermal image of the object measured by the target device at this cavity temperature, and substitutes the cavity temperature into the temperature drift correction curve equation to obtain the drift value corresponding to the cavity temperature of the target device. The grayscale value of the thermal image of the object measured by the target device at this cavity temperature is the grayscale value that drifts due to the change in cavity temperature. The grayscale value of the thermal image of the object measured by the target device at this cavity temperature is subtracted from the drift value corresponding to the cavity temperature of the target device to obtain the corrected grayscale value. The corrected grayscale value is the grayscale value without drift, that is, the grayscale value of the thermal image of the object that the target device should actually measure. Finally, the temperature of the object is determined according to the corrected grayscale value to obtain the object temperature after temperature drift correction. At this time, the determined object temperature is more accurate.

[0138] Among them, the operation of the terminal determining the temperature of the object according to the corrected grayscale value is similar to the operation of the terminal determining the temperature of the object according to the grayscale value of the thermal image of a certain object in the related art, and the embodiment of the present application will not elaborate on this.

[0139] Optionally, the operation of correcting the temperature of the object detected by the thermal imaging device according to the temperature drift correction curve equation can also be performed by the thermal imaging device after the thermal imaging device leaves the factory. In this case, the temperature drift correction curve equation of the thermal imaging device can be stored in the thermal imaging device, and the thermal imaging device can perform temperature drift correction when detecting the temperature of the object according to the temperature drift correction curve equation stored in the thermal imaging device.

[0140] For ease of understanding, the following example takes the value of j as 40 and the value of k as 2. Figure 2 The method of determining the temperature drift correction curve equation is illustrated by an example. A technician randomly selects a thermal imaging device from multiple thermal imaging devices as the first device and uses the other thermal imaging devices as the second device. Figure 2 The method comprises the following steps (1) to (9).

[0141] (1) The technician starts the first device and waits for the cavity temperature of the first device to reach a stable state.

[0142] (2) If the terminal determines that the cavity temperature of the first device reaches a stable state, the external environment temperature is gradually changed. When the external environment temperature changes, 40 cavity temperatures t of the first device and 40 first grayscale values ​​y corresponding to the 40 cavity temperatures t are obtained.

[0143] (3) The terminal performs fitting on the 40 cavity temperatures t of the first device and the 40 first grayscale values ​​y corresponding to the 40 cavity temperatures t, and obtains a fitting curve equation y=at 3 +bt 2 +ct+d.

[0144] (4) The terminal obtains the cavity temperature t0 of the first device when the external environment temperature is normal temperature (25°C), and substitutes the cavity temperature t0 into the fitting curve equation to obtain y(t0), and then uses the fitting curve equation y=at 3 +bt 2 +ct+d minus y(t0) to obtain the temperature drift correction curve equation y=at 3 +bt 2 +ct+dy(t0) and use it as the reference curve equation.

[0145] (5) When the terminal obtains the cavity temperature t1 of the second device and the second grayscale value y1 corresponding to the cavity temperature t1 when the external ambient temperature is low (0°C), and then obtains the cavity temperature t2 of the second device and the second grayscale value y2 corresponding to the cavity temperature t2 when the external ambient temperature is high (45°C).

[0146] (6) The terminal substitutes the cavity temperature t1 and the cavity temperature t2 into the fitting curve equation respectively to obtain the third grayscale values ​​y(t1) and y(t2).

[0147] (7) The terminal determines the curve adjustment coefficient based on y(t1), y(t2), y1, and y2

[0148] (8) The terminal multiplies the curve adjustment coefficient by the reference curve equation to eliminate the device difference between the first device and the second device. The obtained temperature drift correction curve equation of the second device is shown in the following formula.

[0149] y′=rat 3 +rbt 2 +rct+rd-ry(t0)

[0150] (9) The terminal corrects the object temperature measured by each thermal imaging device according to the temperature drift correction curve equation of each thermal imaging device.

[0151] In the embodiment of the present application, when the ambient temperature changes, the terminal obtains j first cavity temperatures of the first device and j first grayscale values ​​corresponding to the j first cavity temperatures, and obtains the temperature drift correction curve equation of the first device as the reference curve equation based on the j first cavity temperatures and the j first grayscale values. The temperature drift correction curve equation can correct the temperature of the object detected by the first device. Since there are device differences between the first device and the second device, the reference curve equation is adjusted according to the obtained k second cavity temperatures of the second device at k preset temperatures and the k second grayscale values ​​detected, and the device differences between the first device and the second device are eliminated, thereby obtaining a temperature drift correction curve equation suitable for the second device. In this way, in the process of determining the temperature drift correction curve equation of the second device, it is not necessary to obtain a large number of cavity temperatures of the second device and the grayscale values ​​detected. Only by obtaining a small number of k second cavity temperatures and k second grayscale values, the reference curve equation can be adjusted accordingly to obtain the temperature drift correction curve equation of the second device, thereby improving the determination efficiency of the temperature drift correction curve equation of the second device, saving processing resources and determination time, and thus saving the production time of multiple thermal imaging devices, and improving production efficiency.

[0152] Figure 3 : is a schematic diagram of a device for determining a temperature drift correction curve equation provided in an embodiment of the present application. The device for determining a temperature drift correction curve equation can be implemented as part or all of a computer device by software, hardware, or a combination of both. The computer device can be as follows Figure 4 Computer equipment shown. Figure 3 The device includes: a first acquisition module 301, a second acquisition module 302, a third acquisition module 303, and an adjustment module 304.

[0153] A first acquisition module 301 is used to acquire j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures in a one-to-one manner when the external environment temperature changes, wherein the j first cavity temperatures are cavity temperatures of a first device, and the first grayscale value corresponding to each first cavity temperature of the j first cavity temperatures is a grayscale value of a thermal image obtained by detecting a reference black body by the first device when the first device is at each first cavity temperature, and the first device is a thermal imaging device among multiple thermal imaging devices;

[0154] A second acquisition module 302 is used to acquire a temperature drift correction curve equation of the first device as a reference curve equation according to the j first cavity temperatures and the j first grayscale values, wherein the temperature drift correction curve equation of the first device is used to correct the temperature of the object detected by the first device;

[0155] A third acquisition module 303 is used for acquiring, for each preset temperature among the k preset temperatures, a second cavity temperature and a second grayscale value corresponding to the second cavity temperature when the external environment temperature is a preset temperature, so as to obtain k second cavity temperatures and k second grayscale values, wherein the k second cavity temperatures are cavity temperatures of a second device, and the second grayscale value corresponding to each second cavity temperature among the k second cavity temperatures is a grayscale value of a thermal image obtained by the second device detecting a reference black body when the second device is at each second cavity temperature, and the second device is other thermal imaging devices among the multiple thermal imaging devices except the first device, and k is an integer greater than or equal to 2;

[0156] The adjustment module 304 is used to adjust the reference curve equation according to the k second cavity temperatures and the k second gray values ​​to obtain the temperature drift correction curve equation of the second device, and the temperature drift correction curve equation of the second device is used to correct the temperature of the object detected by the second device.

[0157] Optionally, the device further comprises:

[0158] A first execution module is configured to execute, after a preset time period has passed after the first device is started, a step of obtaining the j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures in a case where the external environment temperature changes; or

[0159] The second execution module is used to execute the step of obtaining j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures in a one-to-one manner when the external environment temperature changes, if it is detected that the temperature difference between the cavity temperature of the first device and the external environment temperature is less than or equal to the temperature difference threshold after the first device is started.

[0160] Optionally, the second acquisition module 302 is used to:

[0161] Fitting the j first cavity temperatures and the first grayscale value corresponding to each of the j first cavity temperatures to obtain a fitting curve equation;

[0162] Substituting the target temperature into the fitting curve equation to obtain the target grayscale value, the target temperature is the cavity temperature of the thermal imaging device when the external environment temperature is normal temperature;

[0163] The target gray value is subtracted from the fitting curve equation to obtain the temperature drift correction curve equation of the first device as the reference curve equation.

[0164] Optionally, the adjustment module 304 includes:

[0165] A substitution unit, used to substitute the k second cavity temperatures into the fitting curve equation respectively, to obtain k third grayscale values ​​corresponding to the k second cavity temperatures one by one;

[0166] A first determining unit, configured to determine a curve adjustment coefficient according to the k second grayscale values ​​and the k third grayscale values;

[0167] The second determination unit multiplies the curve adjustment coefficient by the reference curve equation to obtain a temperature drift correction curve equation for the second device.

[0168] Optionally, k is 2, and the first determining unit is used for:

[0169] According to the two second gray values ​​and the two third gray values, the curve adjustment coefficient is obtained by the following formula:

[0170]

[0171] Among them, r is the curve adjustment coefficient, y 21 and 22 is the second gray value, y 31 and 32 is the 2nd third gray value, y 21 and 31 Corresponding to the same second cavity temperature, y 22 and 32 Corresponding to the same second cavity temperature.

[0172] Optionally, k is 3, and the first determining unit is used for:

[0173] Determine an average value of the three second grayscale values ​​as the first value;

[0174] Determine an average value of the three third gray values ​​as a second value;

[0175] According to the three second gray values, the three third gray values, the first value and the second value, the curve adjustment coefficient is obtained by the following formula;

[0176]

[0177] Among them, r is the curve adjustment coefficient, y 21 ,y 22 and 23 is the 3 second gray value, y 31 ,y 32 and 33 are 3 third grayscale values, n is the first value, m is the second value, y is 21 and 31 Corresponding to the same second cavity temperature, y 22 and32 Corresponding to the same second cavity temperature, y 23 and 33 Corresponding to the same second cavity temperature.

[0178] Optionally, the device further comprises:

[0179] A fourth acquisition module is used to acquire the cavity temperature of a target device and the grayscale value of a thermal image obtained by the target device detecting an object, wherein the target device is any one of the multiple thermal imaging devices;

[0180] A substitution module, used to substitute the cavity temperature of the target device into the temperature drift correction curve equation of the target device to obtain a drift value;

[0181] A first determination module, configured to subtract the drift value from the grayscale value detected by the target device to obtain a corrected grayscale value;

[0182] The second determination module is used to determine the temperature of the object according to the corrected gray value.

[0183] In the embodiment of the present application, when the ambient temperature changes, the j first cavity temperatures of the first device and the j first grayscale values ​​corresponding to the j first cavity temperatures are obtained, and the temperature drift correction curve equation of the first device is obtained as the reference curve equation according to the j first cavity temperatures and the j first grayscale values, and the temperature drift correction curve equation can correct the object temperature detected by the first device. Since there are device differences between the first device and the second device, the reference curve equation is adjusted according to the k second cavity temperatures of the second device at k preset temperatures and the k second grayscale values ​​detected, and the device differences between the first device and the second device are eliminated, thereby obtaining a temperature drift correction curve equation suitable for the second device. In this way, in the process of determining the temperature drift correction curve equation of the second device, it is not necessary to obtain a large number of cavity temperatures of the second device and the grayscale values ​​detected, and only a small number of k second cavity temperatures and k second grayscale values ​​are obtained, and the reference curve equation is adjusted accordingly to obtain the temperature drift correction curve equation of the second device, thereby improving the determination efficiency of the temperature drift correction curve equation of the second device, saving processing resources and determination time, and thus saving the production time of multiple thermal imaging devices, and improving production efficiency.

[0184] It should be noted that: the device for determining the temperature drift correction curve equation provided in the above embodiment only uses the division of the above-mentioned functional modules as an example when correcting the temperature of the measured object. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0185] The functional units and modules in the above embodiments may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the above integrated units may be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.

[0186] The device for determining the temperature drift correction curve equation provided in the above embodiment and the method embodiment for determining the temperature drift correction curve equation belong to the same concept. The specific working process of the units and modules in the above embodiment and the technical effects brought about can be found in the method embodiment part and will not be repeated here.

[0187] Figure 4 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 4 As shown, the computer device 4 includes: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40. When the processor 40 executes the computer program 42, the steps in the method for determining the temperature drift correction curve equation in the above embodiment are implemented.

[0188] The computer device 4 may be a general-purpose computer device or a dedicated computer device. In a specific implementation, the computer device 4 may be a desktop computer, a portable computer, a handheld computer, a mobile phone, a tablet computer, etc. The embodiment of the present application does not limit the type of the computer device 4. Those skilled in the art will understand that Figure 4 It is only an example of the computer device 4 and does not constitute a limitation on the computer device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, etc.

[0189] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0190] In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the computer device 4. The memory 41 is used to store an operating system, an application program, a boot loader, data, and other programs. The memory 41 may also be used to temporarily store data that has been output or is to be output.

[0191] An embodiment of the present application also provides a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, and when the processor executes the computer program, the steps in any of the above-mentioned method embodiments are implemented.

[0192] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0193] An embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the steps in the above-mentioned method embodiments.

[0194] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above method embodiments, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above method embodiments can be implemented. Among them, the computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk and optical data storage device. The computer-readable storage medium mentioned in the present application can be a non-volatile storage medium, in other words, it can be a non-transient storage medium.

[0195] It should be understood that all or part of the steps to implement the above embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions can be stored in the above-mentioned computer readable storage medium.

[0196] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

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

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

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

[0200] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for determining a temperature drift correction curve equation, characterized in that: The method comprises: In the case where the external environment temperature changes, j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures are obtained, wherein the j first cavity temperatures are cavity temperatures of a first device, and the first grayscale value corresponding to each of the j first cavity temperatures is a grayscale value of a thermal image obtained by detecting a reference black body by the first device when the first device is at each first cavity temperature, and the first device is a thermal imaging device among multiple thermal imaging devices; Fitting the j first cavity temperatures and the first grayscale value corresponding to each of the j first cavity temperatures to obtain a fitting curve equation; Substituting the target temperature into the fitting curve equation to obtain a target grayscale value, wherein the target temperature is the cavity temperature of the thermal imaging device when the external environment temperature is normal temperature; Subtracting the target grayscale value from the fitting curve equation to obtain a temperature drift correction curve equation of the first device as a reference curve equation, wherein the temperature drift correction curve equation of the first device is used to correct the temperature of the object detected by the first device; For each of the k preset temperatures, when the ambient temperature is the preset temperature, a second cavity temperature and a second grayscale value corresponding to the second cavity temperature are obtained to obtain k second cavity temperatures and k second grayscale values, the k second cavity temperatures are cavity temperatures of a second device, the second grayscale value corresponding to each of the k second cavity temperatures is a grayscale value of a thermal image obtained by detecting a reference black body by the second device when the second device is at each second cavity temperature, the second device is other thermal imaging devices among the multiple thermal imaging devices except the first device, j and k are integers greater than or equal to 2, and k is less than j; The reference curve equation is adjusted according to the k second cavity temperatures and the k second grayscale values ​​to obtain a temperature drift correction curve equation of the second device, and the temperature drift correction curve equation of the second device is used to correct the temperature of the object detected by the second device.

2. The method according to claim 1, characterized in that Before obtaining j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures in a one-to-one manner when the external environment temperature changes, the method further includes: After the first device is started, after a preset time period, the step of obtaining j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures in a case where the external environment temperature changes is performed; or, After the first device is started, if it is detected that the temperature difference between the cavity temperature of the first device and the external environment temperature is less than or equal to the temperature difference threshold, the step of obtaining j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures in a case where the external environment temperature changes is performed.

3. The method according to claim 1, characterized in that The step of adjusting the reference curve equation according to the k second cavity temperatures and the k second grayscale values ​​to obtain a temperature drift correction curve equation for the second device includes: Substituting the k second cavity temperatures into the fitting curve equation respectively, to obtain k third grayscale values ​​corresponding to the k second cavity temperatures one by one; Determining a curve adjustment coefficient according to the k second grayscale values ​​and the k third grayscale values; The curve adjustment coefficient is multiplied by the reference curve equation to obtain a temperature drift correction curve equation for the second device.

4. The method according to claim 3, characterized in that The k is 2, and the determining of the curve adjustment coefficient according to the k second grayscale values ​​and the k third grayscale values ​​includes: According to the two second grayscale values ​​and the two third grayscale values, the curve adjustment coefficient is obtained by the following formula; Wherein, r is the curve adjustment coefficient, y 21 and the 22 are the two second grayscale values, the y 31 and the 32 are the two third grayscale values, the y 21 and the 31 Corresponding to the same second chamber temperature, the y 22 and the 32 Corresponding to the same second cavity temperature.

5. The method according to claim 3, characterized in that The k is 3, and the determining of the curve adjustment coefficient according to the k second grayscale values ​​and the k third grayscale values ​​includes: Determine an average value of the three second grayscale values ​​as the first value; Determine an average value of the three third gray values ​​as a second value; According to the three second grayscale values, the three third grayscale values, the first value and the second value, the curve adjustment coefficient is obtained by the following formula; Wherein, r is the curve adjustment coefficient, y 21 , the y 22 and the 23 are the three second grayscale values, the y 31 , the y 32 and the 33 are the three third grayscale values, n is the first value, m is the second value, and y is 21 and the 31 Corresponding to the same second chamber temperature, the y 22 and the 32 Corresponding to the same second chamber temperature, the y 23 and the 33 Corresponding to the same second cavity temperature.

6. The method according to any one of claims 1 to 5, characterized in that: After the reference curve equation is adjusted according to the k second cavity temperatures and the k second grayscale values ​​to obtain the temperature drift correction curve equation of the second device, the method further includes: Acquire the cavity temperature of a target device and the grayscale value of a thermal image obtained by the target device when detecting an object, wherein the target device is any one of the multiple thermal imaging devices; Substituting the cavity temperature of the target device into the temperature drift correction curve equation of the target device to obtain a drift value; Subtract the drift value from the grayscale value detected by the target device to obtain a corrected grayscale value; The temperature of the object is determined according to the corrected grayscale value.

7. A device for determining a temperature drift correction curve equation, characterized in that: The device comprises: A first acquisition module, configured to acquire j first cavity temperatures and j first grayscale values ​​corresponding to the j first cavity temperatures in a one-to-one manner when the external environment temperature changes, wherein the j first cavity temperatures are cavity temperatures of a first device, and the first grayscale value corresponding to each of the j first cavity temperatures is a grayscale value of a thermal image obtained by detecting a reference black body by the first device when the first device is at each first cavity temperature, and the first device is one of the multiple thermal imaging devices; a second acquisition module, configured to fit the j first cavity temperatures and the first grayscale value corresponding to each of the j first cavity temperatures to obtain a fitting curve equation; substitute a target temperature into the fitting curve equation to obtain a target grayscale value, wherein the target temperature is the cavity temperature of the thermal imaging device when the ambient temperature is normal temperature; and subtract the target grayscale value from the fitting curve equation to obtain a temperature drift correction curve equation of the first device as a reference curve equation, wherein the temperature drift correction curve equation of the first device is used to correct the temperature of the object detected by the first device; a third acquisition module, for acquiring, for each of the k preset temperatures, a second cavity temperature and a second grayscale value corresponding to the second cavity temperature when the ambient temperature is the preset temperature, so as to obtain k second cavity temperatures and k second grayscale values, wherein the k second cavity temperatures are cavity temperatures of a second device, and the second grayscale value corresponding to each of the k second cavity temperatures is a grayscale value of a thermal image obtained by detecting a reference black body by the second device when the second device is at each second cavity temperature, and the second device is a thermal imaging device other than the first device among the multiple thermal imaging devices, and k is an integer greater than or equal to 2; An adjustment module is used to adjust the reference curve equation according to the k second cavity temperatures and the k second grayscale values ​​to obtain a temperature drift correction curve equation of the second device, wherein the temperature drift correction curve equation of the second device is used to correct the temperature of the object detected by the second device.

8. A computer device, characterized in that: The computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method according to any one of claims 1 to 6 when executed by the processor.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.