Temperature compensation method, device and electronic equipment
By performing at least two temperature compensations on the infrared thermometer and considering the temperature decay law of the target with distance, the problem of temperature measurement accuracy when the infrared thermometer is propagating in the atmosphere is solved, and higher temperature measurement accuracy is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HANGZHOU MICROIMAGE SOFTWARE CO LTD
- Filing Date
- 2022-11-01
- Publication Date
- 2026-04-28
AI Technical Summary
When infrared temperature measuring equipment measures temperature, the accuracy of the measurement is affected by the energy attenuation of thermal radiation as it propagates through the atmosphere, and the existing temperature compensation methods have large errors.
By acquiring the temperature measurement distance and initial temperature value of the target under test, at least two temperature compensations are performed. The temperature compensation relationship corresponding to the compensated temperature value is used to iteratively compensate for the temperature decay caused by the temperature measurement distance, thereby improving accuracy.
It improves the accuracy and precision of infrared thermometry, and the compensated temperature value is closer to the actual temperature value of the target being measured.
Smart Images

Figure CN115752739B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of infrared temperature measurement technology, and in particular to a temperature compensation method, device and electronic equipment. Background Technology
[0002] Objects with temperatures above absolute zero emit infrared thermal radiation; the higher the temperature, the greater the energy of the thermal radiation. Therefore, infrared thermometers are typically used to measure the amount of thermal radiation energy of a target object to obtain its temperature. However, because thermal radiation attenuates with distance as it travels through the atmosphere, the temperature value detected by an infrared thermometer will have a certain margin of error compared to the actual temperature of the target object.
[0003] In related technologies, to reduce the impact of measurement distance on the accuracy of infrared thermometers, a common approach is to establish a universal temperature decay curve. Based on the decay temperature corresponding to the measurement distance in the curve, temperature compensation is applied to the temperature measured by the infrared thermometer to obtain the compensated temperature. However, the error between the compensated temperature and the temperature of the target object is relatively large. Summary of the Invention
[0004] This application provides a temperature compensation method, apparatus, and electronic device that can be used to improve the accuracy of infrared temperature measurement.
[0005] Firstly, a temperature compensation method is provided, comprising: acquiring the temperature measurement distance of the target under test and the initial temperature value obtained by infrared detection of the target under test; the temperature measurement distance is the distance between the target under test and the infrared temperature measurement device detecting the target under test; performing temperature compensation on the initial temperature value to obtain a compensated first temperature value; the temperature compensation is used to compensate for the temperature attenuation caused by the temperature measurement distance; based on the temperature compensation relationship corresponding to the compensated temperature value and the temperature measurement distance, performing temperature compensation on the initial temperature value to obtain a compensated second temperature value; the temperature compensation relationship corresponding to the compensated temperature value is used to characterize the correspondence between the temperature measurement distance and the temperature attenuation when the temperature value of the target under test is equal to the compensated temperature value.
[0006] The technical solution provided in this application offers at least the following advantages: Compared to the initial temperature value, the temperature value after temperature compensation (e.g., the first temperature value) is closer to the temperature value of the target being measured. Therefore, the temperature compensation relationship corresponding to the compensated temperature value is closer to the actual attenuation. Furthermore, the initial temperature value can be more accurately compensated based on the temperature compensation relationship corresponding to the compensated temperature value. It is evident that this application considers the different temperature attenuation patterns of targets at different temperatures with distance, thereby obtaining a more accurate temperature attenuation and improving the accuracy of temperature compensation and infrared thermometry. In addition, performing at least two temperature compensations on the initial temperature value allows for iterative compensation of temperature attenuation caused by the measurement distance, further improving the accuracy of infrared thermometry.
[0007] In some embodiments, the method further includes: determining the second temperature value as the target temperature value when the difference between the second temperature value and the compensated temperature value is within a preset range.
[0008] It should be understood that if the difference between two consecutive temperature compensations (e.g., the difference between the second temperature value and the compensated temperature value) is within a preset range, it means that the two temperature compensations are relatively close to the temperature value of the target being measured. Furthermore, since the second temperature value is obtained through further temperature compensation based on the compensated temperature value, it is generally more accurate, and the second temperature value is used as the target temperature value for the target being measured.
[0009] In some embodiments, the method further includes outputting, storing, or displaying a target temperature value. This allows users to obtain the target temperature value or process it as needed.
[0010] In some embodiments, the compensated temperature value includes a first temperature value; the compensation relationship corresponding to the compensated temperature value is the temperature compensation relationship corresponding to the first temperature value; the temperature compensation relationship corresponding to the first temperature value is used to characterize the correspondence between the temperature measurement distance and the temperature decay when the temperature value of the target to be measured is equal to the first temperature value.
[0011] It should be understood that the first temperature value is closer to the temperature of the target object than the initial temperature value. Therefore, the temperature of the target object can be estimated to be equal to the first temperature value. It is easy to understand that because the first temperature value is closer to the target object's temperature, the temperature compensation relationship corresponding to the first temperature value is closer to the actual attenuation. Therefore, when compensating the initial temperature value based on the temperature compensation relationship corresponding to the first temperature value, a second temperature value that is closer to the actual situation can be obtained. Based on this, the accuracy of infrared thermometry is improved.
[0012] In some embodiments, the compensated temperature value includes the second temperature value after the previous round of compensation; the compensation relationship corresponding to the compensated temperature value is the temperature compensation relationship corresponding to the second temperature value after the previous round of compensation, and the temperature compensation relationship corresponding to the second temperature value after the previous round of compensation is used to characterize the correspondence between the temperature measurement distance and the temperature attenuation when the temperature value of the target to be measured is equal to the second temperature value after the previous round of compensation.
[0013] Based on this, iterative compensation of the initial temperature value can be achieved, thereby improving the accuracy of infrared thermometry.
[0014] In some embodiments, the above-mentioned temperature compensation based on the temperature compensation relationship corresponding to the compensated temperature value and the temperature measurement distance to obtain a compensated second temperature value includes: obtaining a second temperature decay value based on the temperature compensation relationship corresponding to the compensated temperature value and the temperature measurement distance; and determining the second temperature value based on the second temperature decay value and the initial temperature value.
[0015] It should be understood that the compensated temperature value is closer to the temperature of the target object than the initial temperature value. Therefore, the temperature of the target object can be estimated to be equal to the compensated temperature value. It is easy to understand that because the compensated temperature value is closer to the target object's temperature, the temperature compensation relationship corresponding to the compensated temperature value is closer to the actual attenuation, thus yielding a second temperature attenuation value that closely approximates the actual attenuation. Furthermore, the second temperature value determined based on this second temperature attenuation value is also closer to the target object's temperature. Based on this, the accuracy of infrared thermometry is improved.
[0016] In some embodiments, the initial temperature value is determined based on the output response obtained from infrared detection of the target under test and environmental parameters; wherein, the output response is used to characterize the effective infrared radiation information of the target under test detected during infrared detection, and the output response includes at least one of the following: response voltage, gray value or infrared image; the environmental parameters include at least one of the following: ambient temperature, relative humidity, atmospheric visibility or altitude.
[0017] It should be understood that when infrared thermometers measure the temperature of a target, environmental factors (such as ambient temperature or measurement distance) can interfere with the effective infrared radiation received by the device (e.g., output response), thus affecting the accuracy of the initial temperature value obtained. Therefore, when determining the initial temperature value, both environmental factors and the detected effective infrared radiation (e.g., output response) should be considered comprehensively to improve the accuracy of infrared thermometry.
[0018] Secondly, a temperature compensation device is provided, comprising: an acquisition module and a compensation module. The acquisition module is used to acquire the temperature measurement distance of the target under test and the initial temperature value obtained by infrared detection of the target under test; the temperature measurement distance is the distance between the target under test and the infrared temperature measurement device detecting the target. The compensation module is used to perform temperature compensation on the initial temperature value to obtain a compensated first temperature value; the temperature compensation is used to compensate for the temperature attenuation caused by the temperature measurement distance. The compensation module is also used to perform temperature compensation on the initial temperature value based on the temperature compensation relationship corresponding to the compensated temperature value and the temperature measurement distance to obtain a compensated second temperature value; the temperature compensation relationship corresponding to the compensated temperature value is used to characterize the correspondence between the temperature measurement distance and the temperature attenuation when the temperature value of the target under test is equal to the compensated temperature value.
[0019] In some embodiments, the temperature compensation device further includes a determining module. The determining module is used to determine the second temperature value as the target temperature value when the difference between the second temperature value and the compensated temperature value is within a preset range.
[0020] In some embodiments, the determination module described above is also used to output, store, or display the target temperature value.
[0021] In some embodiments, the compensation module is specifically used to obtain a second temperature attenuation value based on the temperature compensation relationship corresponding to the compensated temperature value and the temperature measurement distance; and to determine a second temperature value based on the second temperature attenuation value and the initial temperature value.
[0022] In some embodiments, the compensated temperature value includes a first temperature value; the compensation relationship corresponding to the compensated temperature value is the temperature compensation relationship corresponding to the first temperature value; the temperature compensation relationship corresponding to the first temperature value is used to characterize the correspondence between the temperature measurement distance and the temperature decay when the temperature value of the target to be measured is equal to the first temperature value.
[0023] In some embodiments, the compensated temperature value includes the second temperature value after the previous round of compensation; the compensation relationship corresponding to the compensated temperature value is the temperature compensation relationship corresponding to the second temperature value after the previous round of compensation, and the temperature compensation relationship corresponding to the second temperature value after the previous round of compensation is used to characterize the correspondence between the temperature measurement distance and the temperature attenuation when the temperature value of the target to be measured is equal to the second temperature value after the previous round of compensation.
[0024] In some embodiments, the initial temperature value is determined based on the output response obtained from infrared detection of the target under test and environmental parameters; the output response is used to characterize the effective infrared radiation information of the target under test detected during infrared detection, and includes at least one of the following: response voltage, gray value or infrared image; the environmental parameters include at least one of the following: ambient temperature, relative humidity, atmospheric visibility or altitude.
[0025] Thirdly, this application provides an electronic device, including: a memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, the computer program code including computer instructions; wherein, when the processor executes the computer instructions, it causes the electronic device to perform a temperature compensation method as described in the first aspect and any of its possible design schemes.
[0026] Fourthly, this application provides a computer-readable storage medium including computer instructions that, when executed on a computer (e.g., an electronic device or a temperature compensation device), cause the computer to perform the methods provided in the first aspect and possible implementations.
[0027] Fifthly, this application provides a computer program product containing computer instructions that, when executed on a computer (e.g., an electronic device or a temperature compensation device), cause the computer to perform the methods provided in the first aspect and possible implementations described above.
[0028] It should be noted that the aforementioned computer instructions may be stored, in whole or in part, on a computer-readable storage medium. This computer-readable storage medium may be packaged together with the processor of the computer (e.g., an electronic device or a temperature compensation device), or it may be packaged separately from the computer's processor; this application does not impose any limitations on this.
[0029] For a detailed description of aspects two through five and their various implementations in this application, please refer to the detailed description in aspect one and its various implementations. The beneficial effects of aspects two through five and their various implementations can be found in the analysis of the beneficial effects of aspect one and its various implementations; they will not be repeated here. Attached Figure Description
[0030] Figure 1 This is a schematic diagram of the structure of an infrared temperature measuring device according to some embodiments;
[0031] Figure 2 This is a flowchart illustrating a temperature compensation method according to some embodiments. Figure 1 ;
[0032] Figure 3 This is a flowchart illustrating a temperature compensation method according to some embodiments. Figure 2 ;
[0033] Figure 4 This is a flowchart illustrating a temperature compensation method according to some embodiments. Figure 3 ;
[0034] Figure 5This is a flowchart illustrating a temperature compensation method according to some embodiments. Figure 4 ;
[0035] Figure 6 This is a flowchart illustrating a temperature compensation method according to some embodiments. Figure 5 ;
[0036] Figure 7 This is a flowchart illustrating a temperature compensation method according to some embodiments. Figure 6 ;
[0037] Figure 8 This is a schematic diagram of the structure of a temperature compensation device according to some embodiments;
[0038] Figure 9 This is a schematic diagram of the structure of an electronic device according to some embodiments. Detailed Implementation
[0039] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0040] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner. The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0041] As described in the background section, thermal radiation attenuates with distance as it propagates through the atmosphere, thus affecting the accuracy of infrared thermometry. In related technologies, to reduce the impact of measurement distance on the accuracy of infrared thermometry, a common approach is to establish a universal temperature decay curve. Based on the decay temperature corresponding to the measurement distance in the curve, distance compensation is applied to the temperature measured by the infrared thermometry device to obtain the compensated temperature. However, the error between the compensated temperature and the temperature of the target object is relatively large.
[0042] To address this, this application provides a temperature compensation method, which includes: acquiring the temperature measurement distance of the target under test and the initial temperature value obtained by infrared detection of the target under test; the temperature measurement distance is the distance between the target under test and the infrared temperature measurement device detecting the target under test; performing temperature compensation on the initial temperature value to obtain a compensated first temperature value; the temperature compensation is used to compensate for the temperature attenuation caused by the temperature measurement distance; based on the temperature compensation relationship corresponding to the compensated temperature value and the temperature measurement distance, performing temperature compensation on the initial temperature value to obtain a compensated second temperature value; the temperature compensation relationship corresponding to the compensated temperature value is used to characterize the correspondence between the temperature measurement distance and the temperature attenuation when the temperature value of the target under test is equal to the compensated temperature value.
[0043] It is easy to understand that, compared to the initial temperature value, the temperature value after temperature compensation (e.g., the first temperature value) is closer to the temperature value of the target being measured. Therefore, the temperature compensation relationship corresponding to the compensated temperature value is closer to the actual attenuation. Furthermore, the initial temperature value can be more accurately compensated based on the temperature compensation relationship corresponding to the compensated temperature value. It is evident that this application considers the different temperature attenuation patterns of targets at different temperatures with distance, thereby obtaining a more accurate temperature attenuation and improving the accuracy of temperature compensation and infrared thermometry. In addition, performing at least two temperature compensations on the initial temperature value allows for iterative compensation of temperature attenuation caused by the measurement distance, further improving the accuracy of infrared thermometry.
[0044] It should be noted that the temperature compensation method provided in this application can be applied to any infrared temperature measurement scenario, such as human body temperature measurement in public places like airports and train stations, and can also be applied to industrial temperature measurement scenarios. This application does not limit the specific application scenario of the temperature compensation method. Furthermore, the executing entity of the temperature compensation method provided in this application is not limited. For example, the method can be executed by the infrared temperature measurement device itself, such as a thermal imager, or by the control module embedded in the infrared temperature measurement device or an external processing device, or by any other device with processing and command control functions, such as a server or computer. This application does not impose any restrictions in this regard.
[0045] To facilitate the subsequent explanation, the infrared temperature measurement devices involved in some embodiments will be introduced in general below.
[0046] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the structure of an infrared temperature measuring device according to some embodiments. The infrared temperature measuring device 100 includes an optical system 101, a photoelectric detection device 102, a processing device 103, and a control device 104.
[0047] The optical system 101 is connected to the photoelectric detection device 102 and is used to focus the infrared radiation energy of the target within its field of view. The size of the field of view is determined by the optical components and their positions of the infrared temperature measuring device 100. Optionally, the optical system 101 can also focus light on the target so that the target can be clearly captured.
[0048] The photoelectric detection device 102 is connected to the processing device 103 and is used to receive the effective infrared radiation energy of the target being measured by the optical system 101, convert the received infrared radiation energy into a corresponding electrical signal, and transmit the converted electrical signal to the processing device 103.
[0049] The processing device 103 is connected to the control device 104 and is used to process the electrical signal converted by the photoelectric detection device 102. Optionally, the processing device 103 can amplify, filter, or quantize the electrical signal. Optionally, the processing device 103 can also quantize and encode the electrical signal into grayscale values; further, it can perform image encoding on the grayscale values to obtain the corresponding infrared image. Optionally, the processing device 103 can also identify the captured image and determine the position of the target in the image. Optionally, the processing device 103 is also used to receive instructions from the control device 104 and perform temperature compensation on the temperature value of the target according to the instructions from the control device 104.
[0050] The control device 104 is used to control the operation of various components in the infrared temperature measurement device 100. In some embodiments, the control device 104 is used to assist in executing the infrared temperature measurement method provided in this application. The control device 104 may be a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The control device 104 may also be other devices with processing functions, such as circuits, devices, or software modules, and this application does not impose any limitations on this.
[0051] Furthermore, the optical system 101, photoelectric detection device 102, processing device 103, and control device 104 can be deployed independently, or one or more of the optical system 101, photoelectric detection device 102, processing device 103, and control device 104 can be deployed in combination. For example, the processing device 103 and the control device 104 can be deployed in combination. This application does not limit this.
[0052] In some embodiments, the infrared temperature measuring device 100 further includes a binocular ranging module, a monocular ranging module, or a radar ranging module (not shown in the figure) for obtaining the temperature measuring distance between the target to be measured and the infrared temperature measuring device 100.
[0053] In some embodiments, the infrared temperature measuring device 100 further includes a display device (not shown) for displaying the temperature value of the target to be measured; or, it is integrated with the control device 104 as a control panel so that the user can interact with the infrared temperature measuring device 100 through the control panel.
[0054] although Figure 1 As not shown, the infrared temperature measuring device described above may also include a power supply device (such as a battery and a power management chip) to supply power to various components. The battery can be logically connected to the control device 104 through the power management chip, thereby enabling the control device 104 to realize functions such as power consumption management of the infrared temperature measuring device.
[0055] For ease of understanding, the infrared temperature measurement method provided in this application will be described in detail below with reference to the accompanying drawings.
[0056] Figure 2 This application presents a temperature compensation method in the field of infrared temperature measurement technology. The following example uses an infrared temperature measurement device as the executing entity. Figure 2 The method shown will be explained in detail. For example... Figure 2 As shown, the temperature compensation method includes the following steps S101 to S103:
[0057] S101. Obtain the temperature measurement distance of the target and the initial temperature value obtained by infrared detection of the target.
[0058] Among them, the temperature measurement distance is the distance between the target to be measured and the infrared temperature measurement device that detects the target to be measured.
[0059] The target to be measured is the object on which the user wishes to have its temperature measured. For example, when measuring temperature in public places such as airports and train stations, the target can be the forehead or wrist of a person. In livestock farming, the target can be the neck of the livestock. In industrial temperature measurement, the target can be industrial water. This application does not impose specific limitations on the content of the target to be measured.
[0060] In some embodiments, when the infrared temperature measuring device is a device such as a temperature gun that does not have infrared imaging function, the infrared temperature measuring device is pointed at the target to be measured in order to obtain the initial temperature value of the target detected by the infrared temperature measuring device.
[0061] In other embodiments, when the infrared temperature measuring device is an infrared thermal imager or other device with infrared imaging capabilities, optionally, the target to be measured can be manually delineated from the infrared image generated by the infrared temperature measuring device to obtain the initial temperature value of the target detected by the infrared temperature measuring device; optionally, the target to be measured can also be automatically identified from the infrared image generated by the infrared temperature measuring device. For example, when measuring forehead temperature, the forehead area in the infrared image can be automatically identified as the target to be measured through a convolutional neural network to obtain the initial temperature value of the target detected by the infrared temperature measuring device.
[0062] It should be understood that the main principle of infrared temperature measurement equipment is as follows: receiving the effective infrared radiation from the target, converting the effective infrared radiation into an output response, and then converting the output response into the initial temperature value of the target according to a certain relationship. The output response is used to characterize the effective infrared radiation information of the target detected during infrared detection.
[0063] Optionally, the output response can be a response voltage. For example, the output response can be the response voltage generated by the photoelectric detection device of the infrared thermometer after receiving the effective infrared radiation from the target.
[0064] Optionally, the output response can be a grayscale value. For example, if the infrared temperature measuring device is an infrared thermal imager or other device with infrared imaging capabilities, the output response can also be a grayscale value obtained by quantizing the response voltage. This application does not impose specific limitations on the accuracy of the quantization process.
[0065] Furthermore, the output response can also be an infrared image obtained by image encoding based on the grayscale values obtained above.
[0066] For example, when the output response is a grayscale value obtained after quantization, the infrared temperature measuring device may have a preset relationship table between the grayscale value and the initial temperature value, as shown in Table 1.
[0067] Table 1
[0068] grayscale value Initial temperature value Gray value 1 Initial temperature value 1 Gray value 2 Initial temperature value 2 … … grayscale value n Initial temperature value n
[0069] Referring to Table 1, the quantized grayscale values correspond one-to-one with the initial temperature values. Therefore, the infrared thermometer can determine the initial temperature value of the target based on the preset relationship table between grayscale values and initial temperature values. It should be noted that the above-mentioned preset relationship table between grayscale values and initial temperature values is only an example. There may be other ways to determine the initial temperature value (e.g., inputting the grayscale values into a pre-trained initial temperature prediction model). This application does not impose specific limitations on this.
[0070] Furthermore, when the output response is an infrared image, image encoding is performed based on the quantized grayscale values to obtain the infrared image.
[0071] Similarly, when the output response is a response voltage, the infrared temperature measuring device can also have a preset relationship table between the response voltage and the initial temperature value. Therefore, the infrared temperature measuring device can determine the initial temperature value of the target to be measured based on the preset relationship table between the response voltage and the initial temperature value. It should be understood that when the output response is a response voltage, the specific method for determining the initial temperature value can refer to the description above when the output response is a grayscale value, and will not be repeated here.
[0072] Furthermore, considering that environmental factors (such as ambient temperature and measurement distance) can interfere with the effective infrared radiation received by the infrared thermometer when measuring the target, thus affecting the accuracy of the initial temperature value obtained, the influence of environmental factors and the target's own properties should also be considered when acquiring the initial temperature value.
[0073] In some embodiments, the initial temperature value can be determined based on the output response obtained from infrared detection of the target and environmental parameters. For example, as... Figure 3 As shown, the initial temperature value can be determined according to the following steps S1011a to S1013a:
[0074] S1011a. Obtain the output response of the infrared thermometer when performing temperature detection on the target.
[0075] The output response of the infrared temperature measurement device has been described in detail above and will not be repeated here.
[0076] S1012a. Obtain environmental parameters when the infrared thermometer is performing temperature detection on the target.
[0077] In some examples, environmental parameters include one or more of the following: ambient temperature, relative humidity, atmospheric visibility, temperature measurement distance, and altitude.
[0078] S1013a. Input the above environmental parameters and the output response of the infrared thermometer into the initial temperature prediction model to obtain the initial temperature value of the target to be measured.
[0079] In some examples, the aforementioned initial temperature prediction model can be a mathematical formula model established based on environmental parameters, the output response of the infrared thermometer, and the initial temperature value of the target.
[0080] For example, the above initial temperature prediction model can be expressed in the following form:
[0081] T0=f(Vout ,T env ,RH,V,H)
[0082] Where T0 is the initial temperature value of the target to be measured, and V out For the output response of the infrared temperature measurement device, T env RH represents ambient temperature, V represents atmospheric visibility, and H represents altitude.
[0083] In other examples, the initial temperature prediction model described above can be a model trained using deep learning or convolutional neural networks. It should be noted that this application does not impose specific restrictions on the method of establishing the initial temperature prediction model.
[0084] Based on this, environmental factors and the amount of effective infrared radiation detected (e.g., output response) can be comprehensively considered when obtaining the initial temperature value, thereby improving the accuracy of the initial temperature value.
[0085] In some embodiments, the temperature measurement distance can be input by the user.
[0086] In some embodiments, the aforementioned temperature measurement distance can be obtained by the infrared temperature measuring device or its external device. For example, the temperature measurement distance between the target and the infrared temperature measuring device can be measured using ranging methods such as monocular ranging analysis, binocular ranging analysis, and lidar ranging analysis. The following section uses binocular ranging analysis as an example to specifically explain the method for measuring the temperature measurement distance.
[0087] For example, such as Figure 4 As shown, the above temperature measurement distance can be determined according to the following steps S1011b to S1013b:
[0088] S1011b: Acquire the first visible light image and the second visible light image of the target to be tested.
[0089] The first and second visible light images both include the target being measured and are two different images of the target taken at the same time. Optionally, the first and second visible light images can be captured by a binocular camera included in the infrared temperature measurement device itself; alternatively, the first and second visible light images can be captured by a binocular ranging device external to the infrared temperature measurement device. It should be noted that the device capturing the first and second visible light images of the target being measured should be located in the same position as the infrared temperature measurement device.
[0090] In some examples, after obtaining the first and second visible light images of the target under test, further image preprocessing is required, such as image denoising and image distortion correction.
[0091] S1012b, Determine the position of the target in the first visible light image and the position of the target in the second visible light image.
[0092] The positions of the target in the first visible light image and the target in the second visible light image can be manually delineated or determined by deep learning for target identification.
[0093] S1013b: Perform parallax calculation and depth analysis on the position of the target in the first visible light image and the position of the target in the second visible light image to determine the temperature measurement distance between the target and the infrared temperature measurement device.
[0094] The specific algorithms for disparity calculation and depth analysis can be found in the relevant technical content, and will not be elaborated here.
[0095] It should be noted that the above method of measuring temperature distance through binocular ranging analysis is only an example, and this application does not impose specific restrictions on the method of obtaining temperature distance.
[0096] S102. Perform temperature compensation on the initial temperature value to obtain the compensated first temperature value.
[0097] Temperature compensation is used to compensate for temperature attenuation caused by the distance of temperature measurement.
[0098] In some embodiments, such as Figure 5 As shown, step S102 above can be specifically implemented as steps S1021 to S1022:
[0099] S1021. Based on the temperature compensation relationship corresponding to the initial temperature value and the temperature measurement distance, the first temperature decay value is obtained.
[0100] In some examples, the temperature compensation relationship corresponding to the initial temperature value is used to characterize the relationship between the temperature measurement distance and the temperature decay when the temperature value of the target being measured is equal to the initial temperature value.
[0101] In some examples, the temperature value of the target to be measured is the actual temperature value of the target to be measured, or the temperature value whose error with the actual temperature value of the target to be measured is less than the error threshold.
[0102] In some examples, the temperature compensation relationship described above includes multiple temperature values and temperature decay curves for the target under test at each of these multiple temperature values. Each of the multiple temperature values corresponds to a temperature decay curve, which characterizes the relationship between the measurement distance and the temperature decay value when the target under test has that temperature value.
[0103] Further, step S1021 can be specifically implemented as follows: based on the temperature compensation relationship, determine the temperature decay curve corresponding to the initial temperature value (that is, the temperature compensation relationship corresponding to the initial temperature value); based on the temperature decay curve corresponding to the initial temperature value, determine the first temperature decay value corresponding to the temperature measurement distance.
[0104] Based on this, when the estimated temperature value of the target to be measured is equal to the initial temperature value, the temperature decay corresponding to the measurement distance (e.g., the first temperature decay value) can be determined based on the temperature compensation relationship.
[0105] Considering that the temperature compensation relationship mentioned above may include a finite number of temperature values, there may be cases where the initial temperature value does not exist among the aforementioned temperature values.
[0106] Optionally, when the multiple temperature values in the above temperature compensation relationship do not include the initial temperature value, step S1021 can be specifically implemented as follows: determining a first interpolated temperature less than the initial temperature value and a second interpolated temperature greater than the initial temperature value from the multiple temperature values; determining a third attenuation temperature value corresponding to the temperature measurement distance based on the temperature attenuation curve corresponding to the first interpolated temperature, and determining a fourth attenuation temperature value corresponding to the temperature measurement distance based on the temperature attenuation curve corresponding to the second interpolated temperature; and determining the above-mentioned first temperature attenuation value based on the weighted sum of the third attenuation temperature value and the fourth attenuation temperature value.
[0107] Optionally, when the multiple temperature values in the above temperature compensation relationship do not include the initial temperature value, step S1021 can also be specifically implemented as follows: determining a first interpolation temperature less than the initial temperature value and a second interpolation temperature greater than the initial temperature value from the multiple temperature values; performing curve fitting based on the temperature decay curve corresponding to the first interpolation temperature and the temperature decay curve corresponding to the second interpolation temperature to obtain the temperature decay curve corresponding to the initial temperature value; and determining the first temperature decay value corresponding to the temperature measurement distance based on the temperature decay curve corresponding to the initial temperature value.
[0108] Based on this, even when the initial temperature value is not included in the multiple temperature values included in the above temperature compensation relationship, the first temperature decay value can still be determined.
[0109] In other examples, the temperature compensation relationship described above includes a pre-trained first temperature compensation model. This first temperature compensation model can be used to characterize the correspondence between the temperature value of the target object, the measurement distance, and the temperature decay.
[0110] Optionally, the first temperature compensation model is a single model. For example, step S1021 above can be specifically implemented as follows: inputting the initial temperature value and the temperature measurement distance into the pre-trained first temperature compensation model to obtain the first temperature attenuation value output by the first temperature compensation model.
[0111] In this way, when the estimated temperature value of the target to be measured is equal to the initial temperature value, the first temperature decay value corresponding to the temperature measurement distance can be determined.
[0112] Furthermore, the training method of the first temperature compensation model when it is a single model is illustrated below. For example, the first temperature compensation model can be obtained as follows: A sample set is acquired, comprising multiple samples, each sample including the temperature value of a target to be measured, a temperature measurement distance, and a temperature decay value corresponding to the temperature measurement distance at the temperature value of the target to be measured, wherein the temperature decay value is the difference between the temperature value of the target to be measured and its initial temperature value; the temperature value of the target to be measured and the temperature measurement distance in the sample set are input into the first temperature compensation model to obtain the predicted temperature decay value; based on the difference between the predicted temperature decay value and the temperature decay value in the sample set, error backpropagation is performed, and the first temperature compensation model is trained until a preset training termination condition is met, thereby obtaining the trained first temperature compensation model.
[0113] Optionally, the first temperature compensation model includes multiple independent first sub-models, each corresponding to a temperature value, and each first sub-model is used to characterize the relationship between the temperature measurement distance and the temperature decay (e.g., a first temperature decay value) when the temperature value of the target being measured is equal to the temperature value corresponding to that first sub-model. For example, step S1021 can be specifically implemented as follows: inputting the temperature measurement distance into the first sub-model corresponding to the initial temperature value to obtain the first temperature decay value output by the first sub-model corresponding to the initial temperature value.
[0114] In this way, when the estimated temperature value of the target to be measured is equal to the initial temperature value, the first temperature decay value corresponding to the temperature measurement distance can be determined.
[0115] Furthermore, the training method when the first temperature compensation model consists of multiple independent first sub-models can refer to the training method described above when the first temperature compensation model is a single model. The samples can be adjusted accordingly based on the different inputs and outputs, which will not be elaborated upon here. It should be understood that the model training method described here is merely an example; other model training methods may exist, and this application does not impose specific limitations on them.
[0116] S1022. Determine the compensated first temperature value based on the first temperature decay value and the initial temperature value.
[0117] In some examples, step S1022 is specifically implemented by determining the sum of the first temperature decay value and the initial temperature value as the first temperature value.
[0118] It should be understood that the initial temperature value is already quite close to the temperature value of the target being measured, so the temperature value of the target being measured can be estimated to be equal to the initial temperature value. Therefore, the temperature compensation relationship corresponding to the initial temperature value is closer to the actual temperature decay, allowing for the determination of a more accurate first temperature decay value, and thus a more accurate first temperature value compared to the initial temperature value. It can be seen that the embodiments of this application take into account the different temperature decay patterns of targets at different temperatures with distance, making the determined temperature decay situation more consistent with reality. Furthermore, the first temperature value determined based on this temperature decay situation is also closer to the temperature value of the target being measured. Based on this, the accuracy of infrared thermometry is improved.
[0119] It should be noted that since step S1022 can be implemented by adding a first temperature decay value to the initial temperature value, those skilled in the art can easily conceive of combining S1021 and S1022 into one step to directly obtain the first temperature value. For example, step S1021 only shows the case where the first temperature compensation model is used to characterize the correspondence between the temperature value, measurement distance, and temperature decay of the target under test. It is not difficult to imagine that, based on the initial temperature value, a first temperature compensation model can be further trained to characterize the correspondence between the temperature value, measurement distance, and the first temperature value (obtained based on the initial temperature value and temperature decay) of the target under test. It should be understood that various modifications and combinations can be made to the solutions of the embodiments of this application without departing from the spirit and scope of this application. The features or implementations shown in the embodiments of this application are merely examples and should not constitute specific limitations on the solutions.
[0120] S103. Based on the temperature compensation relationship corresponding to the compensated temperature value and the temperature measurement distance, perform temperature compensation on the initial temperature value to obtain the compensated second temperature value.
[0121] The temperature compensation relationship corresponding to the compensated temperature value is used to characterize the relationship between the measurement distance and temperature attenuation when the temperature value of the target being measured is equal to the compensated temperature value. In some examples, the temperature value of the target being measured is the actual temperature value of the target being measured, or a temperature value whose error with the actual temperature value of the target being measured is less than an error threshold.
[0122] In some embodiments, such as Figure 6 As shown, step S103 above is specifically implemented as follows: steps S1031 to S1032:
[0123] S1031. Based on the temperature compensation relationship corresponding to the compensated temperature value and the temperature measurement distance, the second temperature attenuation value is obtained.
[0124] In some examples, the temperature compensation relationship described above includes multiple temperature values and temperature decay curves for the target under test at each of these multiple temperature values. Each of the multiple temperature values corresponds to a temperature decay curve, which characterizes the relationship between the measurement distance and the temperature decay value when the target under test has that temperature value.
[0125] Further, step S1031 can be specifically implemented as follows: based on the temperature compensation relationship, determine the temperature decay curve corresponding to the compensated temperature value (that is, the temperature compensation relationship corresponding to the compensated temperature value); based on the temperature decay curve corresponding to the compensated temperature value, determine the second temperature decay value corresponding to the temperature measurement distance.
[0126] Based on this, when the estimated temperature value of the target to be measured is equal to the compensated temperature value, the temperature decay corresponding to the measurement distance (e.g., the second temperature decay value) can be determined based on the temperature compensation relationship.
[0127] Considering that the temperature compensation relationship mentioned above may include a finite number of temperature values, there may be cases where the initial temperature value does not exist among the aforementioned temperature values.
[0128] Optionally, when the multiple temperature values in the above temperature compensation relationship do not include the compensated temperature value, step S1031 can be specifically implemented as follows: determining a third interpolated temperature that is less than the compensated temperature value and a fourth interpolated temperature that is greater than the compensated temperature value from the multiple temperature values; determining a fifth attenuation temperature value corresponding to the temperature measurement distance based on the temperature attenuation curve corresponding to the third interpolated temperature, and determining a sixth attenuation temperature value corresponding to the temperature measurement distance based on the temperature attenuation curve corresponding to the fourth interpolated temperature; and determining the above-mentioned second temperature attenuation value based on the weighted sum of the fifth attenuation temperature value and the sixth attenuation temperature value.
[0129] Optionally, when the multiple temperature values in the above temperature compensation relationship do not include the compensated temperature value, step S1031 can also be specifically implemented as follows: determining a third interpolated temperature that is less than the compensated temperature value and a fourth interpolated temperature that is greater than the compensated temperature value from the multiple temperature values; performing curve fitting based on the temperature decay curve corresponding to the third interpolated temperature and the temperature decay curve corresponding to the fourth interpolated temperature to obtain the temperature decay curve corresponding to the compensated temperature value; and determining a second temperature decay value corresponding to the temperature measurement distance based on the temperature decay curve corresponding to the compensated temperature value.
[0130] Based on this, even when the temperature values included in the above temperature compensation relationship do not include the compensated temperature value, the second temperature decay value can still be determined.
[0131] In other examples, the temperature compensation relationship described above includes a pre-trained second temperature compensation model. This second temperature compensation model can be used to characterize the correspondence between the temperature value of the target object, the measurement distance, and the temperature decay.
[0132] Optionally, the second temperature compensation model is a single model. For example, step S1031 above can be specifically implemented as follows: inputting the compensated temperature value and the temperature measurement distance into the pre-trained second temperature compensation model to obtain the second temperature attenuation value output by the second temperature compensation model.
[0133] In this way, when the estimated temperature value of the target to be measured is equal to the compensated temperature value, the second temperature attenuation value corresponding to the temperature measurement distance can be determined.
[0134] Optionally, the second temperature compensation model includes multiple independent second sub-models, each corresponding to a temperature value, and each second sub-model is used to characterize the relationship between the temperature measurement distance and the temperature decay (e.g., a second temperature decay value) when the temperature value of the target being measured is equal to the temperature value corresponding to that second sub-model. For example, step S1031 can be specifically implemented as follows: inputting the temperature measurement distance into the second sub-model corresponding to the compensated temperature value to obtain the second temperature decay value output by the second sub-model corresponding to the compensated temperature value.
[0135] In this way, when the estimated temperature value of the target to be measured is equal to the compensated temperature value, the second temperature attenuation value corresponding to the temperature measurement distance can be determined.
[0136] It should be understood that the training method for the second temperature compensation model can be referred to the description in step S1021, and will not be repeated here.
[0137] S1032. Determine the second temperature value based on the second temperature decay value and the initial temperature value.
[0138] In some examples, step S1032 is specifically implemented by determining the second temperature value as the sum of the second temperature decay value and the initial temperature value.
[0139] It should be understood that the compensated temperature value is closer to the temperature of the target object than the initial temperature value. Therefore, the temperature of the target object can be estimated to be equal to the compensated temperature value. It is easy to understand that because the compensated temperature value is closer to the target object's temperature, the temperature compensation relationship corresponding to the compensated temperature value is closer to the actual attenuation, thus yielding a second temperature attenuation value that closely approximates the actual attenuation. Furthermore, the second temperature value determined based on this second temperature attenuation value is also closer to the target object's temperature. Based on this, the accuracy of infrared thermometry is improved.
[0140] Similarly, those skilled in the art will readily realize that S1031 and S1032 can be combined into one step to directly obtain the second temperature value. Specific details regarding the merging or modification method can be found in the description of step S1022, and will not be repeated here. It should be understood that various modifications and combinations can be made to the solutions of the embodiments of this application without departing from the spirit and scope of this application. The features or implementations shown in the embodiments of this application are merely examples and should not constitute specific limitations on the solutions.
[0141] In some embodiments, the compensated temperature value includes a first temperature value; the compensation relationship corresponding to the compensated temperature value is the temperature compensation relationship corresponding to the first temperature value; the temperature compensation relationship corresponding to the first temperature value is used to characterize the correspondence between the temperature measurement distance and the temperature decay when the temperature value of the target to be measured is equal to the first temperature value.
[0142] For example, in the case of performing two rounds of temperature compensation on the initial temperature value, since the first temperature value is already the temperature value after the first round of temperature compensation, step S103 is specifically implemented as follows: based on the temperature compensation relationship corresponding to the first temperature value and the temperature measurement distance, perform temperature compensation on the initial temperature value to obtain the compensated second temperature value.
[0143] It should be understood that the first temperature value is closer to the temperature of the target object than the initial temperature value. Therefore, the temperature of the target object can be estimated to be equal to the first temperature value. It is easy to understand that because the first temperature value is closer to the target object's temperature, the temperature compensation relationship corresponding to the first temperature value is closer to the actual attenuation. Therefore, when compensating the initial temperature value based on the temperature compensation relationship corresponding to the first temperature value, a second temperature value that is closer to the actual situation can be obtained. Based on this, the accuracy of infrared thermometry is improved.
[0144] In other embodiments, the compensated temperature value includes the second temperature value after the previous round of compensation; the compensation relationship corresponding to the compensated temperature value is the temperature compensation relationship corresponding to the second temperature value after the previous round of compensation. The temperature compensation relationship corresponding to the second temperature value after the previous round of compensation is used to characterize the correspondence between the temperature measurement distance and the temperature attenuation when the temperature value of the target to be measured is equal to the second temperature value after the previous round of compensation.
[0145] In some examples, the infrared temperature measurement device compensates for the initial temperature value based on a preset number of compensation cycles. For instance, when the preset number of temperature compensation cycles is three, since the first temperature value is already the temperature value after the first round of compensation, step S103 specifically implements the following steps: based on the temperature compensation relationship corresponding to the first temperature value (i.e., the temperature value after the first round of compensation) and the measurement distance, a second round of temperature compensation is performed on the initial temperature value to obtain a second temperature value after the second round of compensation. Based on the temperature compensation relationship corresponding to the second temperature value after the second round of compensation and the measurement distance, a third round of temperature compensation is performed on the initial temperature value to obtain a second temperature value after the third round of compensation.
[0146] As can be seen, during the third round of temperature compensation, the second temperature value after the previous round of compensation is the second temperature value after the second round of compensation. Similarly, if the preset number of temperature compensation cycles is greater than or equal to four, then during the fourth round of temperature compensation, the preset number of the second temperature value after the previous round of compensation is the second temperature value after the third round of compensation; if the preset number of temperature compensation cycles is greater than or equal to five, then during the fifth round of temperature compensation, the preset number of the second temperature value after the previous round of compensation is the second temperature value after the fourth round of compensation. And so on, without further explanation.
[0147] Based on this, iterative compensation of the initial temperature value can be achieved, thereby improving the accuracy of infrared thermometry.
[0148] In other examples, the infrared temperature measurement device compensates for the initial temperature value based on the difference between two consecutive temperature-compensated temperature values. For example, step S103 can be specifically implemented as steps one through three:
[0149] Step 1: Preset i equals 3; Based on the temperature compensation relationship corresponding to the first temperature value (i.e. the temperature value after the first round of compensation) and the temperature measurement distance, perform a second round of temperature compensation on the initial temperature value to obtain the second temperature value after the second round of compensation.
[0150] Step 2: Based on the temperature compensation relationship corresponding to the second temperature value after the (i-1)th round of compensation, and the temperature measurement distance, perform the i-th round of temperature compensation on the initial temperature value to obtain the second temperature value after the i-th round of compensation.
[0151] Step 3: When the difference between the second temperature value after the i-th round of compensation and the second temperature value after the (i-1)-th round of compensation is outside the preset range, increment i by 1 and repeat steps 2 to 3; or, when the difference between the second temperature value after the i-th round of compensation and the second temperature value after the (i-1)-th round of compensation is within the preset range, exit the loop.
[0152] It can be seen that for the second temperature value after the Nth round of compensation, the corresponding second temperature value after the previous round of compensation is the second temperature value after the (N-1)th round of compensation, where N is an integer greater than 2. Based on this, iterative compensation of the initial temperature value can be achieved, thereby improving the accuracy of infrared thermometry. It should be noted that the above-described method of temperature compensation for the target based on a preset number of compensations or the difference between two consecutive temperature compensations is only an example. Other implementation methods may exist (such as temperature compensation for the target based on a preset temperature measurement duration, etc.), and this application embodiment does not impose specific limitations on this.
[0153] It should be understood that Figure 2 The technical solution presented offers at least the following advantages: Compared to the initial temperature value, the temperature value after temperature compensation (e.g., the first temperature value) is closer to the temperature value of the target being measured. Therefore, the temperature compensation relationship corresponding to the compensated temperature value is closer to the actual attenuation. Furthermore, the initial temperature value can be more accurately compensated based on the temperature compensation relationship corresponding to the compensated temperature value. It is evident that this application considers the different temperature attenuation patterns of targets at different temperatures with distance, thereby obtaining a more accurate temperature attenuation and improving the accuracy of temperature compensation and infrared thermometry. In addition, performing at least two temperature compensations on the initial temperature value allows for iterative compensation of temperature attenuation caused by the measurement distance, further improving the accuracy of infrared thermometry.
[0154] In some embodiments, such as Figure 7 As shown, the above method further includes the following step S104:
[0155] S104. When the difference between the second temperature value and the compensated temperature value is within a preset range, the second temperature value is determined as the target temperature value.
[0156] It should be understood that if the difference between two consecutive temperature compensations (e.g., the difference between the second temperature value and the compensated temperature value) is within a preset range, it means that the two temperature compensations are relatively close to the temperature value of the target being measured. Furthermore, since the second temperature value is obtained through further temperature compensation based on the compensated temperature value, it is generally more accurate, and the second temperature value is used as the target temperature value for the target being measured.
[0157] Furthermore, after step S104, the method may further include: outputting, storing, or displaying the target temperature value. For example, the target temperature value may be played aloud; the target temperature value may be stored in a storage device; the target temperature value may be displayed in text form on an external display device or the display device of the infrared detection device itself; or the target temperature value data may be sent to other devices for further processing. It should be understood that this application does not limit the specific implementation of outputting the target temperature value. Based on this, users can obtain the target temperature value or process the target temperature value as needed.
[0158] In some embodiments, the infrared temperature measuring device can also receive a user's instruction to set a preset range, adjust the preset range, and thus adjust the accuracy and efficiency of the temperature compensation method provided in this application embodiment. It is easy to understand that the smaller the preset range, the higher the accuracy of temperature compensation; the larger the preset range, the faster the temperature compensation speed and the smaller the computational load. Based on this, different user needs can be met.
[0159] As can be seen, the above mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the embodiments of this application provide corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0160] like Figure 8 As shown, this application embodiment provides a temperature compensation device for performing... Figure 2 The temperature compensation method is shown. The temperature compensation device 200 includes an acquisition module 201 and a compensation module 202; in some embodiments, the temperature compensation device 200 further includes a determination module 203.
[0161] In some embodiments, the acquisition module 201 is used to acquire the temperature measurement distance of the target to be tested and the initial temperature value obtained by infrared detection of the target to be tested; the temperature measurement distance is the distance between the target to be tested and the infrared temperature measurement device that detects the target to be tested.
[0162] In some embodiments, the compensation module 202 is used to perform temperature compensation on the initial temperature value to obtain a compensated first temperature value; the temperature compensation is used to compensate for the temperature attenuation caused by the temperature measurement distance.
[0163] In some embodiments, the compensation module 202 is further configured to perform temperature compensation on the initial temperature value based on the temperature compensation relationship corresponding to the compensated temperature value and the temperature measurement distance, to obtain a compensated second temperature value; the temperature compensation relationship corresponding to the compensated temperature value is used to characterize the correspondence between the temperature measurement distance and the temperature attenuation when the temperature value of the target to be measured is equal to the compensated temperature value.
[0164] In some embodiments, the temperature compensation device 200 further includes a determination module 203. The determination module 203 is used to determine the second temperature value as the target temperature value when the difference between the second temperature value and the compensated temperature value is within a preset range.
[0165] In some embodiments, the determination module 203 described above is also used to output, store, or display the target temperature value.
[0166] In some embodiments, the compensation module 202 is specifically used to obtain a second temperature attenuation value based on the temperature compensation relationship corresponding to the compensated temperature value and the temperature measurement distance; and to determine a second temperature value based on the second temperature attenuation value and the initial temperature value.
[0167] In some embodiments, the compensated temperature value includes a first temperature value; the compensation relationship corresponding to the compensated temperature value is the temperature compensation relationship corresponding to the first temperature value; the temperature compensation relationship corresponding to the first temperature value is used to characterize the correspondence between the temperature measurement distance and the temperature decay when the temperature value of the target to be measured is equal to the first temperature value.
[0168] In some embodiments, the compensated temperature value includes the second temperature value after the previous round of compensation; the compensation relationship corresponding to the compensated temperature value is the temperature compensation relationship corresponding to the second temperature value after the previous round of compensation, and the temperature compensation relationship corresponding to the second temperature value after the previous round of compensation is used to characterize the correspondence between the temperature measurement distance and the temperature attenuation when the temperature value of the target to be measured is equal to the second temperature value after the previous round of compensation.
[0169] In some embodiments, the initial temperature value is determined based on the output response obtained from infrared detection of the target under test and environmental parameters; the output response is used to characterize the effective infrared radiation information of the target under test detected during infrared detection, and includes at least one of the following: response voltage, gray value or infrared image; the environmental parameters include at least one of the following: ambient temperature, relative humidity, atmospheric visibility or altitude.
[0170] It should be noted that, Figure 8The module division shown is illustrative and represents only one logical functional division; in actual implementation, other division methods are possible. For example, two or more functions can be integrated into a single processing module. These integrated modules can be implemented either in hardware or as software functional modules.
[0171] In the case where the functions of the integrated modules described above are implemented in hardware, this application provides a schematic diagram of the structure of an electronic device as described in the above embodiments. For example... Figure 9 As shown, the electronic device 300 includes: a processor 302 and a bus 304. Optionally, the electronic device may also include a memory 301; optionally, the electronic device may also include a communication interface 303.
[0172] Processor 302 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 302 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 302 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0173] Communication interface 303 is used to connect to other devices via a communication network. This communication network can be Ethernet, wireless access network, wireless local area network (WLAN), etc.
[0174] The memory 301 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0175] As one possible implementation, the memory 301 can exist independently of the processor 302. The memory 301 can be connected to the processor 302 via a bus 304 and is used to store instructions or program code. When the processor 302 calls and executes the instructions or program code stored in the memory 301, it can implement the temperature compensation method provided in the embodiments of this application.
[0176] In another possible implementation, the memory 301 can also be integrated with the processor 302.
[0177] Bus 304 can be an extended industry standard architecture (EISA) bus, etc. Bus 304 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 9 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0178] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the electronic device can be divided into different functional modules to complete all or part of the functions described above.
[0179] Some embodiments of this application provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium) storing computer program instructions that, when executed on a computer (e.g., an electronic device or a temperature compensation device), cause the computer to perform a temperature compensation method as described in any of the embodiments above.
[0180] For example, the aforementioned computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks, or magnetic tapes), optical discs (e.g., compact disks (CDs), digital versatile disks (DVDs), etc.), smart cards, and flash memory devices (e.g., erasable programmable read-only memory (EPROMs), cards, sticks, or key drives, etc.). The various computer-readable storage media described in this application may represent one or more devices for storing information and / or other machine-readable storage media. The term "machine-readable storage media" may include, but is not limited to, wireless channels and various other media capable of storing, containing, and / or carrying instructions and / or data.
[0181] This application also provides a computer program product comprising a computer program that, when run on a computer (e.g., an electronic device or a temperature compensation device), causes the computer to perform any of the temperature compensation methods provided in the above embodiments.
[0182] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, the disclosure, and the appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple instances. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0183] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.
[0184] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A temperature compensation method, characterized in that, The method includes: The temperature measurement distance of the target to be tested and the initial temperature value obtained by infrared detection of the target to be tested are obtained; the temperature measurement distance is the distance between the target to be tested and the infrared temperature measurement device that detects the target to be tested; Based on the temperature compensation relationship corresponding to the initial temperature value and the temperature measurement distance, the first temperature decay value is obtained; the temperature compensation relationship corresponding to the initial temperature value is used to characterize the correspondence between the temperature measurement distance and the temperature decay when the temperature value of the target to be measured is equal to the initial temperature value. Based on the first temperature decay value and the initial temperature value, determine the first temperature value after the first round of compensation; Based on the temperature compensation relationship corresponding to the temperature value after the previous round of compensation, and the temperature measurement distance, the initial temperature value is temperature compensated to obtain the second temperature value after the current round of compensation; the temperature compensation relationship corresponding to the temperature value after the previous round of compensation is used to characterize the correspondence between the temperature measurement distance and the temperature attenuation when the temperature value of the target to be measured is equal to the temperature value after the previous round of compensation; When the difference between the second temperature value after the current round of compensation and the temperature value after the previous round of compensation is within a preset range, the second temperature value is determined as the target temperature value.
2. The method according to claim 1, characterized in that, The method further includes: Output, store, or display the target temperature value.
3. The method according to claim 1, characterized in that, In the case that the current round is the second round, the temperature value after compensation in the previous round includes the first temperature value after compensation in the first round; The compensation relationship based on the temperature value after the previous round of compensation is the temperature compensation relationship corresponding to the first temperature value after the first round of compensation. The temperature compensation relationship corresponding to the first temperature value after the first round of compensation is used to characterize the correspondence between the temperature measurement distance and the temperature attenuation when the temperature value of the target under test is equal to the first temperature value after the first round of compensation.
4. The method according to claim 1, characterized in that, If the current round is greater than the second round, the temperature value after compensation in the previous round includes the second temperature value after compensation in the previous round; The compensation relationship corresponding to the temperature value after the previous round of compensation is the temperature compensation relationship corresponding to the second temperature value after the previous round of compensation. The temperature compensation relationship corresponding to the second temperature value after the previous round of compensation is used to characterize the correspondence between the temperature measurement distance and the temperature attenuation when the temperature value of the target to be measured is equal to the second temperature value after the previous round of compensation.
5. The method according to any one of claims 1-4, characterized in that, The step of performing temperature compensation on the initial temperature value based on the temperature compensation relationship corresponding to the temperature value after the previous round of compensation, and the temperature measurement distance, to obtain the second temperature value after the current round of compensation, includes: Based on the temperature compensation relationship corresponding to the temperature value after the previous round of compensation, and the temperature measurement distance, the second temperature attenuation value is obtained; The second temperature value of the current wheel is determined based on the second temperature decay value and the initial temperature value.
6. The method according to claim 5, characterized in that, The initial temperature value is determined based on the output response obtained from infrared detection of the target and environmental parameters; wherein, The output response is used to characterize the effective infrared radiation information of the target detected during infrared detection, and the output response includes at least one of the following: response voltage, gray value, or infrared image; The environmental parameters include at least one of the following: ambient temperature, relative humidity, atmospheric visibility, or altitude.
7. A temperature compensation device, characterized in that, include: The acquisition module is used to acquire the temperature measurement distance of the target under test and the initial temperature value obtained by infrared detection of the target under test; The temperature measurement distance is the distance between the target to be measured and the infrared temperature measurement device that detects the target to be measured; The compensation module obtains the first temperature decay value based on the temperature compensation relationship corresponding to the initial temperature value and the temperature measurement distance; The temperature compensation relationship corresponding to the initial temperature value is used to characterize the relationship between the temperature measurement distance and the temperature decay when the temperature value of the target being measured is equal to the initial temperature value; The compensation module is further configured to determine the first temperature value after the first round of compensation based on the first temperature attenuation value and the initial temperature value. The compensation module is also used to perform temperature compensation on the initial temperature value based on the temperature compensation relationship corresponding to the temperature value after the previous round of compensation and the temperature measurement distance, so as to obtain the second temperature value after the current round of compensation. The temperature compensation relationship corresponding to the temperature value after the previous round of compensation is used to characterize the correspondence between the temperature measurement distance and the temperature attenuation when the temperature value of the target to be measured is equal to the temperature value after the previous round of compensation. The determination module is used to determine the second temperature value as the target temperature value when the difference between the second temperature value after the current round of compensation and the temperature value after the previous round of compensation is within a preset range.
8. The apparatus according to claim 7, characterized in that, The determining module is also used to output, store, or display the target temperature value; The compensation module is specifically used to obtain a second temperature attenuation value based on the temperature compensation relationship corresponding to the temperature value after the previous round of compensation, and the temperature measurement distance. Based on the second temperature decay value and the initial temperature value, determine the second temperature value after compensation for the current round; The temperature value after the previous round of compensation includes the first temperature value; The compensation relationship corresponding to the temperature value after the previous round of compensation is the temperature compensation relationship corresponding to the first temperature value. The temperature compensation relationship corresponding to the first temperature value is used to characterize the correspondence between the temperature measurement distance and the temperature attenuation when the temperature value of the target to be measured is equal to the first temperature value; And / or, the temperature value after the previous round of compensation includes the second temperature value after the previous round of compensation; The compensation relationship corresponding to the temperature value after the previous round of compensation is the temperature compensation relationship corresponding to the second temperature value after the previous round of compensation. The temperature compensation relationship corresponding to the second temperature value after the previous round of compensation is used to characterize the correspondence between the temperature measurement distance and the temperature attenuation when the temperature value of the target to be measured is equal to the second temperature value after the previous round of compensation. The initial temperature value is determined based on the output response obtained from infrared detection of the target under test and environmental parameters; the output response is used to characterize the effective infrared radiation information of the target under test detected during infrared detection, and includes at least one of the following: response voltage, gray value or infrared image; the environmental parameters include at least one of the following: ambient temperature, relative humidity, atmospheric visibility or altitude.
9. An electronic device, characterized in that, include: A memory and a processor; the memory and the processor are coupled; the memory is used to store computer program code, the computer program code including computer instructions; Wherein, when the processor executes the computer instructions, the electronic device performs the temperature compensation method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Body temperature measuring method and device, temperature measuring tool and storage medium
CN111854964A