Temperature measurement method and device and temperature measurement equipment
1. A method of measuring temperature, the method comprising:
acquiring a visible light image comprising a reference black body and a thermal radiation intensity image comprising a temperature measurement object and the reference black body, wherein the reference black body is provided with a temperature indicator;
analyzing the visible light image to obtain the reference temperature of the reference black body indicated by the temperature indicator;
analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body;
determining a temperature correction value according to the reference temperature and the second reference temperature;
and correcting the first reference temperature based on the temperature correction value to obtain the actually measured temperature of the temperature measurement object.
2. The method of claim 1, further comprising:
analyzing the visible light image to obtain a first position area of the reference black body on the visible light image;
the step of analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body comprises the following steps:
determining a second position area corresponding to the first position area on the thermal radiation intensity image based on a preset mapping relation between the visible light image and the thermal radiation intensity image;
and analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and obtain the temperature of the second position area, wherein the temperature of the second position area is a second reference temperature of the reference black body.
3. The method of claim 1, wherein the visible light image further comprises the thermometric object; the method further comprises the following steps:
analyzing the visible light image to obtain a third position area of the temperature measurement object on the visible light image;
the step of analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body comprises the following steps:
determining a fourth position area corresponding to the third position area on the thermal radiation intensity image based on a preset mapping relation between the visible light image and the thermal radiation intensity image;
and analyzing the thermal radiation intensity image to obtain the temperature of the fourth position area and obtain a second reference temperature of the reference black body, wherein the temperature of the fourth position area is the first reference temperature of the temperature measurement object.
4. The method of claim 1, wherein the visible light image further comprises the thermometric object; the method further comprises the following steps:
analyzing the visible light image to obtain first type information of the temperature measurement object;
and if the first type information is preset type information, executing the step of analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body.
5. The method of claim 1, wherein the step of determining a temperature correction value based on the base temperature and the second reference temperature comprises:
acquiring a reference position coordinate of the reference black body in a world coordinate system;
determining a reference temperature difference value corresponding to the reference position coordinate according to a corresponding relation between a preset position coordinate and the temperature difference value;
correcting the reference temperature based on the reference temperature difference value to obtain the correction temperature of the reference black body;
and calculating the temperature difference between the second reference temperature and the correction temperature to obtain a temperature correction value.
6. The method of claim 1, wherein the step of analyzing the visible light image to obtain the reference temperature of the reference black body indicated by the temperature indicator comprises:
and analyzing the visible light image according to the attribute information of the temperature indicator to obtain the reference temperature of the reference black body indicated by the temperature indicator.
7. The method according to claim 6, characterized in that the property information comprises the type of the temperature indicator and/or the position coordinates of the temperature indicator in the visible light image.
8. A temperature measuring device, said device comprising:
the temperature measuring device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring a visible light image comprising a reference black body and a thermal radiation intensity image comprising a temperature measuring object and the reference black body, and the reference black body is provided with a temperature indicator;
the first analysis unit is used for analyzing the visible light image to obtain the reference temperature of the reference blackbody indicated by the temperature indicator;
the second analysis unit is used for analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body;
the determining unit is used for determining a temperature correction value according to the reference temperature and the second reference temperature;
and the correcting unit is used for correcting the first reference temperature based on the temperature correction value to obtain the actually measured temperature of the temperature measuring object.
9. The temperature measurement equipment is characterized by comprising a visible light camera, an infrared thermal imaging camera and a processor;
the visible light camera is used for collecting a visible light image comprising a reference black body;
the infrared thermal imaging camera is used for acquiring a thermal radiation intensity image comprising a temperature measurement object and the reference black body;
the processor is used for analyzing the visible light image to obtain the reference temperature of the reference black body indicated by the temperature indicator; analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body; determining a temperature correction value according to the reference temperature and the second reference temperature; and correcting the first reference temperature based on the temperature correction value to obtain the actually measured temperature of the temperature measurement object.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
Background
In order to realize rapid temperature measurement, temperature measurement equipment based on infrared thermal imaging is widely applied. The temperature measurement principle of the temperature measurement equipment based on infrared thermal imaging is as follows: the thermal radiation intensity of the target is collected, and the thermal radiation intensity of the target is converted into the temperature of the target based on the conversion relation between the thermal radiation intensity and the temperature.
However, the environment of the application site of the thermometric apparatus always varies, and the intensity of the thermal radiation of the target is affected by the environment. This causes the temperature measuring device based on infrared thermal imaging to have deviation of the measured temperature during the application field.
Content of application
An object of the embodiments of the present application is to provide a temperature measurement method, a temperature measurement device, and a temperature measurement apparatus, so as to reduce a deviation of a measured temperature in an application field. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a temperature measurement method, where the method includes:
acquiring a visible light image comprising a reference black body and a thermal radiation intensity image comprising a temperature measurement object and the reference black body, wherein the reference black body is provided with a temperature indicator;
analyzing the visible light image to obtain the reference temperature of the reference black body indicated by the temperature indicator;
analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body;
determining a temperature correction value according to the reference temperature and the second reference temperature;
and correcting the first reference temperature based on the temperature correction value to obtain the actually measured temperature of the temperature measurement object.
Optionally, the method further includes:
analyzing the visible light image to obtain a first position area of the reference black body on the visible light image;
the step of analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body comprises the following steps:
determining a second position area corresponding to the first position area on the thermal radiation intensity image based on a preset mapping relation between the visible light image and the thermal radiation intensity image;
and analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and obtain the temperature of the second position area, wherein the temperature of the second position area is a second reference temperature of the reference black body.
Optionally, the visible light image further includes the temperature measurement object; the method further comprises the following steps:
analyzing the visible light image to obtain a third position area of the temperature measurement object on the visible light image;
the step of analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body comprises the following steps:
determining a fourth position area corresponding to the third position area on the thermal radiation intensity image based on a preset mapping relation between the visible light image and the thermal radiation intensity image;
and analyzing the thermal radiation intensity image to obtain the temperature of the fourth position area and obtain a second reference temperature of the reference black body, wherein the temperature of the fourth position area is the first reference temperature of the temperature measurement object.
Optionally, the visible light image further includes the temperature measurement object; the method further comprises the following steps:
analyzing the visible light image to obtain first type information of the temperature measurement object;
and if the first type information is preset type information, executing the step of analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body.
Optionally, the step of determining a temperature correction value according to the reference temperature and the second reference temperature includes:
acquiring a reference position coordinate of the reference black body in a world coordinate system;
determining a reference temperature difference value corresponding to the reference position coordinate according to a corresponding relation between a preset position coordinate and the temperature difference value;
correcting the reference temperature based on the reference temperature difference value to obtain the correction temperature of the reference black body;
and calculating the temperature difference between the second reference temperature and the correction temperature to obtain a temperature correction value.
Optionally, the step of analyzing the visible light image to obtain the reference temperature of the reference black body indicated by the temperature indicator includes:
and analyzing the visible light image according to the attribute information of the temperature indicator to obtain the reference temperature of the reference black body indicated by the temperature indicator.
Optionally, the attribute information includes a type of the temperature indicator and/or a position coordinate of the temperature indicator in the visible light image.
In a second aspect, an embodiment of the present application provides a temperature measuring device, where the device includes:
the temperature measuring device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring a visible light image comprising a reference black body and a thermal radiation intensity image comprising a temperature measuring object and the reference black body, and the reference black body is provided with a temperature indicator;
the first analysis unit is used for analyzing the visible light image to obtain the reference temperature of the reference blackbody indicated by the temperature indicator;
the second analysis unit is used for analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body;
the determining unit is used for determining a temperature correction value according to the reference temperature and the second reference temperature;
and the correcting unit is used for correcting the first reference temperature based on the temperature correction value to obtain the actually measured temperature of the temperature measuring object.
Optionally, the first analysis unit is further configured to analyze the visible light image to obtain a first position area of the reference black body on the visible light image;
the second analysis unit is specifically configured to determine, based on a preset mapping relationship between the visible light image and the thermal radiation intensity image, a second position area corresponding to the first position area on the thermal radiation intensity image; and analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and obtain the temperature of the second position area, wherein the temperature of the second position area is a second reference temperature of the reference black body.
Optionally, the visible light image further includes the temperature measurement object; the first analysis unit is further configured to analyze the visible light image to obtain a third position area of the temperature measurement object on the visible light image;
the second analysis unit is specifically configured to determine a fourth position area corresponding to the third position area on the thermal radiation intensity image based on a preset mapping relationship between the visible light image and the thermal radiation intensity image; and analyzing the thermal radiation intensity image to obtain the temperature of the fourth position area and obtain a second reference temperature of the reference black body, wherein the temperature of the fourth position area is the first reference temperature of the temperature measurement object.
Optionally, the visible light image further includes the temperature measurement object; the first analysis unit is further used for analyzing the visible light image to obtain first type information of the temperature measurement object; and if the first type information is preset type information, triggering the second analysis unit.
Optionally, the determining unit includes:
the acquisition subunit is used for acquiring the reference position coordinates of the reference blackbody in a world coordinate system;
the determining subunit is used for determining a reference temperature difference value corresponding to the reference position coordinate according to a corresponding relation between a preset position coordinate and the temperature difference value;
the corrector subunit is used for correcting the reference temperature based on the reference temperature difference value to obtain the correction temperature of the reference blackbody;
and the calculating subunit is used for calculating the temperature difference between the second reference temperature and the correction temperature to obtain a temperature correction value.
Optionally, the first analysis unit is specifically configured to analyze the visible light image according to the attribute information of the temperature indicator, so as to obtain the reference temperature of the reference black body indicated by the temperature indicator.
Optionally, the attribute information includes a type of the temperature indicator and/or a position coordinate of the temperature indicator in the visible light image.
In a third aspect, an embodiment of the present application provides temperature measurement equipment, where the temperature measurement equipment includes a visible light camera, an infrared thermal imaging camera, and a processor;
the visible light camera is used for collecting a visible light image comprising a reference black body;
the infrared thermal imaging camera is used for acquiring a thermal radiation intensity image comprising a temperature measurement object and the reference black body;
the processor is used for analyzing the visible light image to obtain the reference temperature of the reference black body indicated by the temperature indicator; analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body; determining a temperature correction value according to the reference temperature and the second reference temperature; and correcting the first reference temperature based on the temperature correction value to obtain the actually measured temperature of the temperature measurement object.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the method steps provided in the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the method steps provided in the first aspect above.
The embodiment of the application has the following beneficial effects:
in the technical scheme provided by the embodiment of the application, the reference black body is provided with the temperature indicator. The temperature indicator displays the temperature of the reference black body. The temperature of the reference black body, i.e., the reference temperature, is acquired from the visible light image including the reference black body, i.e., from the included temperature indicator. In addition, a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body are acquired from a thermal radiation intensity image including the temperature measurement object and the reference black body. At this time, the temperature deviation of the obtained temperature measurement object, i.e., the temperature correction value, may be determined based on the reference temperature of the reference black body and the second reference temperature. And then, the first reference temperature of the temperature measurement object can be corrected based on the temperature correction value to obtain the actual measurement temperature of the temperature measurement object.
In the embodiment of the application, the reference temperature of the temperature measurement object is corrected through the obtained reference temperature and the obtained reference temperature of the reference black body, and the deviation of the measured temperature in the application field is reduced. In addition, in the embodiment of the application, the reference temperature of the reference black body is obtained by utilizing the visible light image, the reference temperature of the reference black body is obtained by utilizing the thermal radiation intensity image, the reference black body can be independently arranged outside the temperature measuring equipment, the temperature of the reference black body is not influenced by the heating of the temperature measuring equipment, the accuracy of the obtained reference temperature and the reference temperature of the reference black body is improved, and the deviation of the measured temperature in an application site is further reduced.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a temperature measuring method according to an embodiment of the present disclosure;
FIG. 2a is a schematic view of a temperature indicator according to an embodiment of the present disclosure;
FIG. 2b is another schematic view of a temperature indicator provided in an embodiment of the present application;
FIG. 3 is a second flowchart of a temperature measuring method according to an embodiment of the present disclosure;
FIG. 4 is a third schematic flow chart illustrating a temperature measuring method according to an embodiment of the present disclosure;
FIG. 5 is a fourth flowchart illustrating a temperature measuring method according to an embodiment of the present disclosure;
FIG. 6 is a schematic view of a first structure of a temperature measuring device according to an embodiment of the present disclosure;
FIG. 7 is a second schematic structural diagram of a temperature measuring device according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a temperature measuring apparatus according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The environment of the site of application of the thermometric apparatus is always changing, and the intensity of the thermal radiation of the target is affected by the environment. This causes the temperature measuring device based on infrared thermal imaging to have deviation of the measured temperature during the application field.
In order to solve the above problem, an embodiment of the present application further provides a temperature measurement method, in which the reference black body carries a temperature indicator. The temperature indicator displays the temperature of the reference black body. Acquiring a visible light image comprising a reference black body and a thermal radiation intensity image comprising a temperature measurement object and the reference black body; analyzing the visible light image to obtain the reference temperature of the reference black body indicated by the temperature indicator; analyzing the thermal radiation intensity image to obtain a first reference temperature of a temperature measurement object and a second reference temperature of a reference black body; determining a temperature correction value according to the reference temperature and the second reference temperature; and correcting the first reference temperature based on the temperature correction value to obtain the actually measured temperature of the temperature measurement object.
In the embodiment of the application, the reference temperature of the temperature measurement object is corrected through the obtained reference temperature and the obtained reference temperature of the reference black body, and the deviation of the measured temperature in the application field is reduced. In addition, in the embodiment of the application, the reference temperature of the reference black body is obtained by utilizing the visible light image, the reference temperature of the reference black body is obtained by utilizing the thermal radiation intensity image, the reference black body can be independently arranged outside the temperature measuring equipment, the temperature of the reference black body is not influenced by the heating of the temperature measuring equipment, the accuracy of the obtained reference temperature and the reference temperature of the reference black body is improved, and the deviation of the measured temperature in an application site is further reduced.
The following describes the temperature measurement method provided in the embodiments of the present application in detail by using specific embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart of a temperature measurement method according to an embodiment of the present disclosure. The temperature measuring method can be applied to temperature measuring equipment with a visible light camera and an infrared thermal imaging camera or temperature measuring equipment connected with the visible light camera and the infrared thermal imaging camera, and the embodiment of the application is not particularly limited to this. The infrared thermal imaging camera is used for collecting a thermal radiation intensity image. For ease of understanding, the following description will be made with reference to the temperature measuring device as the main implementation body, and is not intended to be limiting. The temperature measuring method comprises the following steps.
Step 101, acquiring a visible light image including a reference black body and a thermal radiation intensity image including a temperature measurement object and the reference black body, wherein the reference black body carries a temperature indicator.
In the embodiment of the application, the reference black body is a device capable of accurately acquiring the temperature of the target surface of the reference black body, the reference black body can be used as a reference object for measuring the temperature of the temperature measurement object, and the temperature of the temperature measurement object is corrected based on the temperature of the reference black body. The temperature indicator is a device for indicating the temperature of the reference black body. The temperature indicator may be a device that indicates temperature on a temperature scale, such as the temperature indicator shown in fig. 2 a. The temperature indicator may also be a device having a display. The temperature indicator may display the temperature in the form of numbers, words, characters, etc. For example, the temperature indicator shown in FIG. 2b, which displays the word "20.8C" indicates that the temperature of the reference black body is 20.8C.
In order to ensure that a visible light image and a thermal radiation intensity image including a reference black body are obtained, the reference black body is arranged in the observation range of the visible light camera and the infrared thermal imaging camera. In addition, the visible light camera and the infrared thermal imaging camera synchronously acquire images, and the accuracy of temperature measurement is improved. Here, in order to ensure that a high-resolution camera can be adopted from the visible light camera, a high-resolution visible light image is adopted.
In the embodiment of the application, when carrying out the temperature measurement, the temperature measurement equipment passes through the visible light camera and acquires the visible light image including the reference black body, acquires the thermal radiation intensity image including temperature measurement object and reference black body through infrared thermal imaging camera.
And 102, analyzing the visible light image to obtain the reference temperature of the reference black body indicated by the temperature indicator.
In the embodiment of the application, after the visible light image including the reference black body is acquired, the temperature measuring device can analyze the visible light image, specifically, analyze the position area where the temperature indicator in the visible light image is located, and obtain the reference temperature of the reference black body indicated by the temperature indicator.
In one example, a temperature indicator is a device that indicates temperature on a temperature scale. The temperature measuring equipment identifies and analyzes the position area where the temperature indicator in the visible light image is located, determines the scale value reached by the indicating line of the temperature indicator, further obtains the temperature of the reference black body indicated by the temperature indicator, and takes the temperature as the reference temperature.
In another example, the temperature indicator is a device having a display. The temperature measuring equipment identifies and analyzes the position area where the temperature indicator is located in the visible light image, determines numerical values indicated by the contents of numbers, characters and the like contained in the position area where the temperature indicator is located, directly obtains the temperature of the reference black body indicated by the temperature indicator, and takes the temperature as the reference temperature.
In the embodiment of the present application, the identification and analysis of the visible light image may be implemented by using a deep learning network model or other image identification methods, which is not specifically limited in the embodiment of the present application.
And 103, analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference blackbody.
In the embodiment of the application, the thermal radiation intensity image can be understood as a temperature map obtained after thermal radiation intensity acquired by the temperature measuring equipment is converted. After the thermal radiation intensity image comprising the temperature measurement object and the reference black body is obtained, the temperature measurement equipment analyzes the position area where the temperature measurement object is located in the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object, and analyzes the position area where the reference object is located in the thermal radiation intensity image to obtain a second reference temperature of reference black.
The first reference temperature may be an average temperature in a location area where the temperature measurement object is located, or may be a temperature of a central position of the location area where the temperature measurement object is located, or a temperature of another position in the location area where the temperature measurement object is located.
The second reference temperature may be an average temperature in the area where the reference black body is located, or may be a temperature of a center position of the area where the reference black body is located, or a temperature of another position in the area where the reference black body is located.
In one embodiment of the present application, the visible light image further includes a thermometric object. The temperature measuring equipment can analyze the visible light image to obtain the first type information of the temperature measuring object. If the first type information is the preset type information, it is determined that the temperature measurement object is the object whose temperature needs to be measured, and step 103 is executed to analyze the thermal radiation intensity image. The type information may be human, animal, car, etc.
For example, the preset type information is a person. If the temperature measuring equipment analyzes the visible light image to obtain a person of the temperature measuring object, executing step 103, and analyzing the thermal radiation intensity image; if the visible light image is analyzed to obtain the animal or the vehicle of the temperature measurement object, the temperature measurement process is ended, and the step 101 is executed.
In the embodiment of the application, when the first type information of the temperature measurement object is not the preset type information, the temperature measurement process is ended, the subsequent steps are not executed, and the computing resources of the temperature measurement equipment are saved.
And 104, determining a temperature correction value according to the reference temperature and the second reference temperature.
In the embodiment of the application, the temperature measuring equipment can determine the deviation of the temperature in the application scene, namely the temperature correction value, according to the reference temperature of the reference blackbody and the second reference temperature. For example, a difference between the reference temperature and the second reference temperature is calculated, and the difference is a temperature correction value.
And 105, correcting the first reference temperature based on the temperature correction value to obtain the actually measured temperature of the temperature measurement object.
In the embodiment of the application, after the temperature measuring equipment determines the temperature correction value, the first reference temperature of the temperature measuring object is corrected based on the temperature correction value, and the actually measured temperature of the temperature measuring object is obtained.
The correction method of the first reference temperature of the temperature measurement object may be that the temperature correction value and the first reference temperature are summed, and the obtained sum is used as the measured temperature of the temperature measurement object.
In the embodiment of the present application, other non-linear correction manners may also be adopted to correct the first reference temperature of the temperature measurement object, which is not limited herein.
In the embodiment of the application, the reference temperature of the temperature measurement object is corrected through the obtained reference temperature and the obtained reference temperature of the reference black body, and the deviation of the measured temperature in the application field is reduced. In addition, in the embodiment of the application, the reference temperature of the reference black body is obtained by utilizing the visible light image, the reference temperature of the reference black body is obtained by utilizing the thermal radiation intensity image, the reference black body can be independently arranged outside the temperature measuring equipment, the temperature of the reference black body is not influenced by the heating of the temperature measuring equipment, the accuracy of the obtained reference temperature and the reference temperature of the reference black body is improved, and the deviation of the measured temperature in an application site is further reduced.
In addition, in the embodiment of the application, a wireless or wired communication module is not required to be arranged on the temperature measurement equipment, and the temperature measurement equipment is not required to be connected with the wireless or wired communication module, so that the temperature of the temperature measurement object can be corrected, the temperature measurement equipment is simplified, and the temperature measurement cost is reduced.
In order to further improve the accuracy of the measured temperature, the embodiment of the present application further provides a temperature measurement method, as shown in fig. 3, which may include the following steps.
Step 301, acquiring a visible light image including a reference black body and a thermal radiation intensity image including a temperature measurement object and the reference black body, wherein the reference black body carries a temperature indicator. Step 301 is the same as step 101.
Step 302, analyzing the visible light image to obtain a reference temperature of the reference black body indicated by the temperature indicator. Step 302 is the same as step 102.
Step 303, analyzing the visible light image to obtain a first position area of the reference black body on the visible light image.
In the embodiment of the application, the visible light image is a visual image, and the temperature measuring equipment analyzes the visible light image, so that the first position area of the reference black body on the visible light image can be accurately obtained.
The execution order of steps 302 and 303 is not limited in the embodiments of the present application. Step 303 may be performed before step 302, after step 302, or simultaneously with step 302. For example, the temperature measuring device analyzes the visible light image to obtain the reference temperature of the reference black body indicated by the temperature indicator and the first position area of the reference black body on the visible light image.
And 304, determining a second position area corresponding to the first position area on the thermal radiation intensity image based on a preset mapping relation between the visible light image and the thermal radiation intensity image.
In the embodiment of the application, the mapping relation between the visible light image and the thermal radiation intensity image can be established based on the corresponding relation between the position coordinate of an object in the visible light image and the position coordinate in the thermal radiation intensity image.
And the temperature measuring equipment maps the first position area to the thermal radiation intensity image based on a preset mapping relation between the visible light image and the thermal radiation intensity image to obtain a second position area corresponding to the first position area on the thermal radiation intensity image. The second position area is the position area of the reference black body on the thermal radiation intensity image.
And 305, analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and obtain the temperature of a second position area, wherein the temperature of the second position area is a second reference temperature of the reference black body.
In the embodiment of the application, the temperature measuring equipment analyzes the thermal radiation intensity image to obtain a first reference temperature of a temperature measuring object; in addition, a second position area of the thermal radiation intensity image is analyzed to obtain the temperature of the second position area, and the temperature is a second reference temperature of the reference black body.
And step 306, determining a temperature correction value according to the reference temperature and the second reference temperature. Step 306 is the same as step 104.
And 307, correcting the first reference temperature based on the temperature correction value to obtain the actually measured temperature of the temperature measurement object. Step 307 is the same as step 105.
In the technical solution provided in the embodiment of the present application, since the shape of the reference black body is uncertain, for example, the reference black body may be circular, square, or irregular, the area occupied by the reference black body is also uncertain. Through the visible light image, the position area of the reference black body on the visible light image can be accurately determined, and then the position area of the reference black body on the thermal radiation intensity image can be accurately determined, so that the reference temperature of the reference black body can be accurately determined. Based on the reference temperature of the reference black body, the temperature of the temperature measurement object can be accurately corrected, and the accuracy of the temperature measured in the application field is further improved.
In order to further improve the accuracy of the measured temperature, the embodiment of the present application further provides a temperature measurement method, as shown in fig. 4, which may include the following steps.
Step 401, acquiring a visible light image including a reference black body and a thermal radiation intensity image including a temperature measurement object and the reference black body, wherein the reference black body carries a temperature indicator. Step 401 is the same as step 101.
Step 402, analyzing the visible light image to obtain a reference temperature of the reference black body indicated by the temperature indicator. Step 402 is the same as step 102.
And 403, analyzing the visible light image to obtain a third position area of the temperature measurement object on the visible light image.
In the embodiment of the application, the visible light image is a visual image, and the temperature measuring device analyzes the visible light image, so that the third position area of the temperature measuring object on the visible light image can be accurately obtained.
The execution order of steps 402 and 403 is not limited in the embodiments of the present application. Step 403 may be performed before step 402, after step 402, or simultaneously with step 402. For example, the temperature measuring device analyzes the visible light image to obtain the reference temperature of the reference black body indicated by the temperature indicator and the third position area of the temperature measuring object on the visible light image.
And step 404, determining a fourth position area corresponding to the third position area on the thermal radiation intensity image based on a preset mapping relation between the visible light image and the thermal radiation intensity image.
In the embodiment of the application, the temperature measuring equipment maps the third position area to the thermal radiation intensity image based on the preset mapping relation between the visible light image and the thermal radiation intensity image, and the fourth position area corresponding to the third position area on the thermal radiation intensity image is obtained. The fourth position area is the position area of the temperature measurement object on the thermal radiation intensity image.
And 405, analyzing the thermal radiation intensity image to obtain the temperature of a fourth position area and obtain a second reference temperature of the reference black body, wherein the temperature of the fourth position area is the first reference temperature of the temperature measurement object.
In the embodiment of the application, the temperature measuring equipment analyzes the fourth position area of the thermal radiation intensity image to obtain the temperature of the fourth position area, wherein the temperature is the first reference temperature of the temperature measuring object; in addition, the thermal radiation intensity image is analyzed to obtain a second reference temperature of the reference black body.
And 406, determining a temperature correction value according to the reference temperature and the second reference temperature. Step 406 is the same as step 104.
Step 407, correcting the first reference temperature based on the temperature correction value to obtain the actually measured temperature of the temperature measurement object. Step 407 is the same as step 105.
In the technical scheme provided by the embodiment of the application, the temperature measurement object can be set manually, for example, the temperature measurement object can be a person, a cat, a car and the like, so that the shape of the temperature measurement object is indefinite, and the area occupied by the temperature measurement object is indefinite. Through the visible light image, the position area of the temperature measurement object on the visible light image can be accurately determined, and then the position area of the temperature measurement object on the thermal radiation intensity image can be accurately determined, so that the reference temperature of the temperature measurement object can be accurately determined. Based on the reference temperature of the temperature measurement object, the temperature of the temperature measurement object can be accurately corrected, and the accuracy of the measured temperature in the application field is further improved.
In the embodiment of the present application, the embodiments shown in fig. 3 and 4 can be combined to measure the temperature more accurately. Specifically, the temperature measuring equipment analyzes the visible light image, and simultaneously obtains a first position area of the reference black body on the visible light image and a third position area of the temperature measuring object on the visible light image; and analyzing the thermal radiation intensity image to obtain the temperature of a fourth position area corresponding to the third position area and the temperature of a second position area corresponding to the first position area.
In order to further improve the accuracy of the temperature measured in the application field, the embodiment of the present application further provides a temperature measurement method, as shown in fig. 5, which may include the following steps.
Step 501, acquiring a visible light image including a reference black body and a thermal radiation intensity image including a temperature measurement object and the reference black body, wherein the reference black body carries a temperature indicator. Step 501 is the same as step 101.
Step 502, analyzing the visible light image to obtain a reference temperature of the reference black body indicated by the temperature indicator. Step 502 is the same as step 102.
Step 503, analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body. Step 503 is the same as step 103.
And step 504, acquiring the reference position coordinates of the reference black body in the world coordinate system.
In the embodiment of the application, the temperature measuring equipment acquires the position coordinate of the reference black body in the world coordinate system as the reference position coordinate. The reference position coordinates may be understood as the position coordinates of the reference black body relative to the thermometric equipment.
In one embodiment, the thermometric device may analyze the visible light image to obtain the position coordinates of the reference black body in the world coordinate system.
In another embodiment, the relative positions of the reference black body and the temperature measuring equipment are not changed, and the position coordinates of the reference black body under the world coordinate system can be preset in the temperature measuring equipment.
In the embodiment of the present application, the manner of acquiring the reference position coordinates is not particularly limited.
And 505, determining a reference temperature difference value corresponding to the reference position coordinate according to a preset corresponding relationship between the position coordinate and the temperature difference value.
In the embodiment of the application, the corresponding relation between the position coordinate and the temperature difference value is preset in the temperature measuring equipment. The temperature measuring equipment searches the corresponding relation comprising the reference position coordinate from the corresponding relation between the preset position coordinate and the temperature difference value, and the temperature difference value included in the searched corresponding relation is the reference temperature difference value.
The corresponding relationship between the preset position coordinate and the temperature difference value may be represented by a curve of a spatial distance and a temperature change, and the corresponding relationship between the preset position coordinate and the temperature difference value may also be represented in other manners, which is not particularly limited.
And step 506, correcting the reference temperature based on the reference temperature difference value to obtain the corrected temperature of the reference blackbody.
In the embodiment of the application, after the temperature measuring equipment determines the reference temperature difference value, the reference temperature of the reference black body is corrected based on the reference temperature difference value, and the correction temperature of the reference black body is obtained.
The correction method for the reference temperature of the reference black body may be that the difference value of the reference temperature and the reference temperature are summed, and the obtained sum value is used as the correction temperature of the reference black body.
In the embodiment of the present application, other non-linear correction manners may also be adopted to correct the reference temperature of the reference black body, which is not limited herein.
And step 507, calculating the temperature difference between the second reference temperature and the correction temperature to obtain a temperature correction value.
And step 508, correcting the first reference temperature based on the temperature correction value to obtain the actually measured temperature of the temperature measurement object. Step 508 is the same as step 105.
In the technical scheme provided by the embodiment of the application, the object radiates heat outwards, the radiated heat can be lost in the transmission process, and the loss is larger the farther the distance is. The temperature measuring equipment corrects the reference temperature based on the reference position coordinate of the reference black body in the world coordinate system, so that the influence of heat loss of the reference temperature of the reference black body obtained by the temperature measuring equipment through the thermal radiation intensity image can be reduced, the accuracy of the obtained temperature correction value is improved, and the accuracy of the temperature measured in an application field is further improved.
In an embodiment of the present application, the step 102 may be: and analyzing the visible light image according to the attribute information of the temperature indicator to obtain the reference temperature of the reference black body indicated by the temperature indicator.
The attribute information of the temperature indicator may include a type of the temperature indicator. The attribute information of the temperature indicator may also include position coordinates of the temperature indicator in the visible light image. The attribute information of the temperature indicator may further include a type of the temperature indicator and position coordinates of the temperature indicator in the visible light image. The type of the temperature indicator can comprise a temperature scale class and a temperature display class, the temperature indicator of the temperature scale class is a device using the temperature scale to indicate temperature, and the temperature indicator of the temperature display class is a device with a display.
In the embodiment of the application, the temperature measuring equipment analyzes the visible light image according to the attribute information of the temperature indicator, so that the accuracy of the obtained reference temperature can be increased, and the reliability of the temperature measuring equipment is improved.
In one embodiment of the present application, a temperature anomaly threshold may be set in the thermometric device. If the actually measured temperature of the temperature measurement object is larger than the temperature abnormal threshold, alarm information can be output. For example, a sound, an image, or the like indicating an alarm is output.
The following describes a temperature measurement method provided in the embodiments of the present application with reference to specific examples.
For example, the reference black body is at 5m of the thermometric apparatus, and the position coordinates of the reference black body are (3, 4). The temperature indicator of the reference black body is a device having a display, and the temperature indicator of the reference black body displays a temperature of "20 ℃". The position coordinates of the reference black body and the type of the temperature indicator are set in the temperature measuring equipment. The temperature measuring equipment is provided with a visible light camera and an infrared thermal imaging camera. The preset type information is a person.
The temperature measuring equipment collects a visible light image K comprising a temperature measuring object and a reference black body through the visible light camera, and collects a thermal radiation intensity image R comprising the temperature measuring object and the reference black body through the infrared thermal imaging camera.
The temperature measuring equipment analyzes the visible light image K according to the position coordinates of the set reference black body and the type of the temperature indicator, and the reference temperature t of the reference black body can be obtainedJIs "20 c", and the reference black body is in the visible light image KLocation Area 1. Meanwhile, the temperature measuring equipment analyzes the visible light image K, and the position Area2 of the temperature measuring object in the visible light image K and the type information of the temperature measuring object can also be obtained.
When the temperature measuring equipment detects that the type information of the temperature measuring object is a person, namely the type information of the temperature measuring object is preset type information, the position Area1 is mapped onto the thermal radiation intensity image based on the preset mapping relation between the visible light image and the thermal radiation intensity image, and the position Area11 corresponding to the position Area1 on the thermal radiation intensity image is obtained; further, the position Area2 is mapped onto the thermal radiation intensity image, and the position Area21 corresponding to the position Area2 on the thermal radiation intensity image is obtained.
The temperature measuring apparatus calculates an average value of the temperatures of the location Area11 as a reference temperature t of the reference black bodyCFor example "18 ℃. The temperature measuring apparatus calculates an average value of the temperatures of the location Area21 as a reference temperature t of the reference black bodyDFor example "36 ℃".
The temperature measuring equipment determines a reference temperature difference value corresponding to the reference position coordinate, for example, a reference temperature difference value t corresponding to the position coordinate (3,4), according to a preset corresponding relationship between the position coordinate and the temperature difference valueCYIs "-0.2 ℃ C".
Temperature measuring equipment based on reference temperature difference value tCYFor reference temperature tJCorrecting to obtain the correction temperature t of the reference black bodyJ'=20℃+(-0.2℃)=19.8℃。
The temperature measuring equipment calculates the correction temperature tJ' and reference temperature tCTo obtain a temperature correction value tX=19.8℃-18℃=1.8℃。
Temperature measuring equipment based on temperature correction value tXFor reference temperature tDCorrecting to obtain the actual measurement temperature t of the temperature measurement objectS=36℃+1.8℃=37.8℃。
And if the preset temperature abnormal threshold value is 37.5 ℃ and 37.8 ℃ is higher than 37.5 ℃, the temperature measuring equipment outputs alarm information. If the preset temperature anomaly threshold value is 38 ℃ and 37.8 ℃ is less than 38 ℃, the temperature measuring equipment does not perform other processing.
Corresponding to the embodiment of the temperature measuring method, the embodiment of the application also provides a temperature measuring device. Referring to fig. 6, fig. 6 is a schematic structural diagram of a temperature measuring device according to an embodiment of the present application, where the temperature measuring device includes: an acquisition unit 601, a first analysis unit 602, a second analysis unit 603, a determination unit 604, and a correction unit 605.
An obtaining unit 601, configured to obtain a visible light image including a reference black body, and a thermal radiation intensity image including a temperature measurement object and the reference black body, where the reference black body carries a temperature indicator;
a first analyzing unit 602, configured to analyze the visible light image to obtain a reference temperature of the reference black body indicated by the temperature indicator;
the second analysis unit 603 is configured to analyze the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and a second reference temperature of the reference black body;
a determining unit 604 for determining a temperature correction value based on the reference temperature and the second reference temperature;
the correcting unit 605 is configured to correct the first reference temperature based on the temperature correction value to obtain an actual measurement temperature of the temperature measurement object.
According to the technical scheme, the reference temperature of the temperature measurement object is corrected through the obtained reference temperature and the reference temperature of the reference black body, and the deviation of the measured temperature in an application field is reduced. In addition, in the embodiment of the application, the reference temperature of the reference black body is obtained by utilizing the visible light image, the reference temperature of the reference black body is obtained by utilizing the thermal radiation intensity image, the reference black body can be independently arranged outside the temperature measuring equipment, the temperature of the reference black body is not influenced by the heating of the temperature measuring equipment, the accuracy of the obtained reference temperature and the reference temperature of the reference black body is improved, and the deviation of the measured temperature in an application site is further reduced.
In an optional embodiment, the first analyzing unit 602 may be further configured to analyze the visible light image to obtain a first position area of the reference black body on the visible light image;
the second analysis unit 603 may be specifically configured to determine, based on a preset mapping relationship between the visible light image and the thermal radiation intensity image, a second position region corresponding to the first position region on the thermal radiation intensity image; and analyzing the thermal radiation intensity image to obtain a first reference temperature of the temperature measurement object and obtain the temperature of a second position area, wherein the temperature of the second position area is a second reference temperature of the reference black body.
In an alternative embodiment, the visible light image may further include a thermometric object.
In this case, the first analyzing unit 602 may be further configured to analyze the visible light image to obtain a third location area of the temperature measurement object on the visible light image;
the second analysis unit 603 may be specifically configured to determine a fourth position region corresponding to the third position region on the thermal radiation intensity image based on a preset mapping relationship between the visible light image and the thermal radiation intensity image; and analyzing the thermal radiation intensity image to obtain the temperature of a fourth position area and obtain a second reference temperature of the reference black body, wherein the temperature of the fourth position area is the first reference temperature of the temperature measurement object.
In an alternative embodiment, the visible light image may further include a thermometric object.
In this case, the first analysis unit 602 may be further configured to analyze the visible light image to obtain the first type information of the temperature measurement object; if the first type information is the preset type information, the second analyzing unit 603 is triggered.
In an alternative embodiment, as shown in fig. 7, the determining unit 604 may include:
an acquisition subunit 6041 configured to acquire reference position coordinates of the reference black body in the world coordinate system;
a determining sub-unit 6042 configured to determine a reference temperature difference value corresponding to the reference position coordinate according to a preset correspondence between the position coordinate and the temperature difference value;
a corrector sub-unit 6043 configured to correct the reference temperature based on the reference temperature difference value to obtain a corrected temperature of the reference black body;
and a calculation subunit 6044, configured to calculate a temperature difference between the second reference temperature and the correction temperature, so as to obtain a temperature correction value.
In an optional embodiment, the first analyzing unit 602 may be specifically configured to analyze the visible light image according to the attribute information of the temperature indicator, so as to obtain a reference temperature of the reference black body indicated by the temperature indicator.
In an alternative embodiment the property information of the temperature indicator comprises the type of the temperature indicator and/or the position coordinates of the temperature indicator in the visible light image.
Corresponding to the foregoing temperature measurement method embodiment, an embodiment of the present application further provides a temperature measurement device, as shown in fig. 8, including a visible light camera 801, an infrared thermal imaging camera 802, and a processor 803;
a visible light camera 801 for collecting a visible light image including a reference black body;
an infrared thermal imaging camera 802 for acquiring a thermal radiation intensity image including a temperature measurement object and a reference black body;
a processor 803, configured to analyze the visible light image to obtain a reference temperature of the reference black body indicated by the temperature indicator; analyzing the thermal radiation intensity image to obtain a first reference temperature of a temperature measurement object and a second reference temperature of a reference black body; determining a temperature correction value according to the reference temperature and the second reference temperature; and correcting the first reference temperature based on the temperature correction value to obtain the actually measured temperature of the temperature measurement object.
According to the technical scheme, the reference temperature of the temperature measurement object is corrected through the obtained reference temperature and the reference temperature of the reference black body, and the deviation of the measured temperature in an application field is reduced. In addition, in the embodiment of the application, the reference temperature of the reference black body is obtained by utilizing the visible light image, the reference temperature of the reference black body is obtained by utilizing the thermal radiation intensity image, the reference black body can be independently arranged outside the temperature measuring equipment, the temperature of the reference black body is not influenced by the heating of the temperature measuring equipment, the accuracy of the obtained reference temperature and the reference temperature of the reference black body is improved, and the deviation of the measured temperature in an application site is further reduced.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Corresponding to the above-mentioned embodiment of the temperature measurement method, in yet another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and when the computer program is executed by a processor, any step of the above-mentioned temperature measurement method is implemented.
In another embodiment, the present application further provides a computer program product containing instructions, which when run on a computer, causes the computer to perform any one of the steps of the thermometry method.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, thermometry device, computer readable storage medium, and computer program product embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference may be made to some of the descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.