Medical human body infrared detection equipment, thermal image processing method, device and medium

文档序号:1935291 发布日期:2021-12-07 浏览:8次 中文

阅读说明:本技术 医用人体红外检测设备、热像图处理方法、装置及介质 (Medical human body infrared detection equipment, thermal image processing method, device and medium ) 是由 刘振汉 谭励夫 崔德琪 范泽阳 李延飞 王文飞 于 2021-09-08 设计创作,主要内容包括:本发明实施例公开了医用人体红外检测设备、热像图处理方法、装置及介质。所述红外检测设备,包括:处理器、设置在舱体内的红外相机和多个温度检测部件;其中,红外相机,与处理器电连接,用于采集舱体内检测对象的热像图,并将热像图发送至所述处理器;多个温度检测部件,分别与所述处理器电连接,用于检测舱体内的环境温度,并检测到的环境温度发送至所述处理器;所述处理器,用于基于所述环境温度对所述热像图进行补偿处理,得到校准后的目标热像图。本发明实施例提供的技术方案,能有效提高环境温度测量的准确度,进而通过测量的环境温度对热图像进行补偿,得到更加准确的热图像,对于人体红外热成像测温及其医学应用具有重要意义。(The embodiment of the invention discloses medical human body infrared detection equipment, a thermal image processing method, a thermal image processing device and a medium. The infrared detection device includes: the infrared camera and the plurality of temperature detection components are arranged in the cabin body; the infrared camera is electrically connected with the processor and is used for acquiring a thermograph of a detected object in the cabin and sending the thermograph to the processor; the temperature detection components are respectively electrically connected with the processor and used for detecting the ambient temperature in the cabin body and sending the detected ambient temperature to the processor; and the processor is used for performing compensation processing on the thermal image based on the environment temperature to obtain a calibrated target thermal image. The technical scheme provided by the embodiment of the invention can effectively improve the accuracy of environment temperature measurement, further compensate the thermal image through the measured environment temperature to obtain more accurate thermal image, and has important significance for human body infrared thermal imaging temperature measurement and medical application thereof.)

1. A medical human infrared detection device, characterized by, includes: the infrared camera and the plurality of temperature detection components are arranged in the cabin body; wherein the content of the first and second substances,

the infrared camera is electrically connected with the processor and is used for acquiring a thermograph of a detected object in the cabin and sending the thermograph to the processor;

the temperature detection components are respectively electrically connected with the processor and used for detecting the ambient temperature in the cabin body and sending the detected ambient temperature to the processor;

and the processor is used for performing compensation processing on the thermal image based on the environment temperature to obtain a calibrated target thermal image.

2. The medical human infrared detection device of claim 1, wherein the processor is further configured to: carrying out temperature interpolation processing according to the ambient temperature of the corresponding position point detected by each temperature detection part and a preset cabin space grid element to obtain the ambient temperature corresponding to each cabin space grid element;

and compensating the thermal image based on the environment temperature corresponding to the space grid cells in each cabin to obtain a calibrated target thermal image.

3. The medical human infrared detection device of claim 2, wherein the processor is further configured to:

processing the environment temperature corresponding to each cabin space grid element based on a preset first compensation factor to obtain a pixel compensation value of the cabin space grid element;

and compensating the pixel value of the corresponding cabin space grid element in the thermal image based on the pixel compensation value corresponding to each cabin space grid element to obtain a calibrated target thermal image.

4. The medical human infrared detection device of claim 2, wherein the processor is further configured to:

determining the initial temperature corresponding to each cabin space grid element of the thermal image based on the corresponding relation between the pixels in the thermal image and the temperature and the preset cabin space grid elements in the cabin;

processing the environment temperature corresponding to each cabin space grid cell based on a preset second compensation factor to obtain a temperature compensation value corresponding to the cabin space grid cell;

and determining the target temperature of each cabin space grid cell based on the temperature compensation value and the initial temperature of the corresponding cabin space grid cell, and obtaining a calibrated target thermal image based on the corresponding relation among the target temperature, the pixel and the temperature.

5. The medical human infrared detection device of claim 4, wherein the processor determines the temperature compensation value based on the following formula:

Mi=Ai×(Ti-Tavg)2+Bi×(Ti-Tavg)+Ci

wherein M isiFor the ith cabin space cell corresponding temperature compensation value, Ai、BiAnd CiIs a second compensation factor, TiIs the temperature value T corresponding to the ith in-cabin space cellavgIs the average ambient temperature within the capsule.

6. The medical human infrared detection device of claim 1, wherein the number of the temperature detection parts is at least four, and the temperature detection parts are distributed on the inner wall of the cabin body.

7. The medical human infrared detection device of claim 6, wherein the number of the temperature detection parts is six, and the temperature detection parts are symmetrically arranged on the top inner wall and the bottom inner wall of the cabin body.

8. A thermographic image processing method, comprising:

acquiring a thermograph of a detection object in the cabin;

acquiring the environment temperature of the corresponding position points acquired by each temperature detection component, and performing temperature interpolation processing on the basis of the environment temperature of each position point and preset cabin interior space grid cells in the cabin to obtain the environment temperature corresponding to each cabin interior space grid cell;

and compensating the pixel values of the cabin space grid elements in the thermal image based on the environment temperature corresponding to the cabin space grid elements to obtain a calibrated target thermal image, wherein the compensation comprises the pixel value compensation based on the environment temperature, or the detection object temperature compensation based on the environment temperature, and the compensated detection object temperature is used for calibrating the pixel values in the thermal image.

9. A thermal image processing apparatus, comprising:

the thermal image acquisition module is used for acquiring a thermal image of a detection object in the cabin;

the temperature interpolation processing module is used for acquiring the environment temperature of the corresponding position points acquired by each temperature detection component, and performing temperature interpolation processing on the basis of the environment temperature of each position point and preset cabin interior space grid cells to obtain the environment temperature corresponding to each cabin interior space grid cell;

and the target thermal image generation module is used for performing compensation processing on the pixel values of the cabin space grid elements in the thermal image based on the environment temperature corresponding to the cabin space grid elements to obtain a calibrated target thermal image, wherein the compensation processing comprises pixel value compensation based on the environment temperature or detection object temperature compensation based on the environment temperature, and the compensated detection object temperature is used for calibrating the pixel values in the thermal image.

10. A storage medium containing computer-executable instructions which, when executed by a computer processor, implement the thermographic processing method of claim 8.

Technical Field

The embodiment of the invention relates to the technical field of medical equipment, in particular to medical human body infrared detection equipment, a thermography processing method, a device and a medium.

Background

The infrared thermal imaging temperature measurement is a non-contact temperature measurement, the measured temperature cannot completely and truly reflect the thermal radiation of an object, and the temperature measurement precision is influenced by multiple factors such as the surface emissivity, the reflectivity, the ambient temperature, the atmospheric temperature, the measurement distance, the atmospheric attenuation, the performance of an infrared temperature measurement system and the like of the object to be measured.

In practical application, in the process of collecting the thermal image, a fresh air system needs to be arranged for exchanging air inside and outside the cabin body, and an air conditioner needs to be arranged for adjusting the temperature in the cabin body in real time. In the temperature adjusting process, cold air and hot air are communicated and exchanged in the cabin body, so that the temperature of each space in the cabin body is difficult to be ensured to be consistent. Usually, the air temperature of different parts of the human body detection site in the cabin body has temperature difference. The uneven temperature distribution can cause inaccurate estimation of infrared intensity of reflected surrounding environments of different parts of a human body, and cause inaccurate measurement of the real temperature of the human body. The influence of nonuniform temperature distribution in the cabin body on acquisition of a thermal image is reduced, and the method has important significance on human body infrared thermal imaging temperature measurement and medical application thereof.

Disclosure of Invention

The embodiment of the invention provides medical human body infrared detection equipment, a thermal image processing method, a thermal image processing device and a medium, which are used for improving the accuracy of environment temperature measurement and further improving the accuracy of human body temperature measurement.

In a first aspect, an embodiment of the present invention provides a medical human body infrared detection device, including: the infrared camera and the plurality of temperature detection components are arranged in the cabin body; wherein the content of the first and second substances,

the infrared camera is electrically connected with the processor and is used for acquiring a thermograph of a detected object in the cabin and sending the thermograph to the processor;

the temperature detection components are respectively electrically connected with the processor and used for detecting the ambient temperature in the cabin body and sending the detected ambient temperature to the processor;

and the processor is used for performing compensation processing on the thermal image based on the environment temperature to obtain a calibrated target thermal image.

In a second aspect, an embodiment of the present invention further provides a thermal image processing method, where the method includes:

acquiring a thermograph of a detection object in the cabin;

acquiring the environment temperature of the corresponding position point acquired by each temperature detection part, and performing temperature interpolation processing based on the environment temperature of each position point and a preset cabin space grid element to obtain the environment temperature corresponding to each cabin space grid element;

and compensating the pixel values of the cabin space grid elements in the thermal image based on the environment temperature corresponding to the cabin space grid elements to obtain a calibrated target thermal image.

In a third aspect, an embodiment of the present invention further provides a thermal image processing apparatus, including:

the thermal image acquisition module is used for acquiring a thermal image of a detection object in the cabin;

the temperature interpolation processing module is used for acquiring the environment temperature of the corresponding position point acquired by each temperature detection part, and performing temperature interpolation processing on the basis of the environment temperature of each position point and a preset cabin space grid element to obtain the environment temperature corresponding to the cabin space grid element;

and the target thermal image generation module is used for compensating the pixel values of the cabin space grid elements in the thermal image based on the environment temperature corresponding to the cabin space grid elements to obtain a calibrated target thermal image.

In a fourth aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform the thermal image processing method according to any one of the embodiments of the present invention.

According to the method, the thermograph of the detection object in the cabin is obtained, the environment temperature of the corresponding position point acquired by each temperature detection component is obtained, and the temperature interpolation processing is carried out on the basis of the environment temperature of each position point and the preset cabin internal space grid cells in the cabin to obtain the environment temperature corresponding to each cabin internal space grid cell, so that the unknown environment temperature corresponding to each cabin internal space grid cell can be predicted through the known environment temperature, the use of the temperature detection components is reduced, and the cost is saved; furthermore, the pixel values of the space grid elements in the cabin in the thermal image are compensated based on the environment temperature corresponding to the space grid elements in the cabin, so that the calibrated target thermal image is obtained, the temperature value corresponding to each pixel value in the obtained target thermal image is more accurate, and the accuracy of infrared temperature measurement is improved.

Drawings

In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.

Fig. 1 is a schematic structural diagram of a medical human body infrared detection device according to a first embodiment of the present invention;

fig. 2A is a schematic diagram of an arrangement of a temperature detecting component according to a first embodiment of the present invention;

fig. 2B is a schematic diagram of an arrangement of a temperature detecting component according to an embodiment of the present invention;

fig. 2C is a schematic diagram of an arrangement of a temperature detecting component according to an embodiment of the present invention;

fig. 3 is a schematic flow chart illustrating a thermal image processing method according to a second embodiment of the present invention;

fig. 4 is a schematic structural diagram of a thermal image processing apparatus according to a third embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.

It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.

Example one

Fig. 1 is a schematic structural diagram of a medical human body infrared detection device according to an embodiment of the present invention. The embodiment can be applied to the condition of automatically adjusting the thermal image in the infrared detection process. The device can execute the thermal image processing method provided by the embodiment of the application. Fig. 1 is merely an example, and the number of temperature detection components is not limited. The apparatus comprises: a processor 110, an infrared camera 120 disposed within the cabin body, and a plurality of temperature detection components 130;

the infrared camera 120 is electrically connected with the processor 110, and is used for acquiring a thermography of the detected object in the cabin and sending the thermography to the processor 110; a plurality of temperature detecting components 130, respectively connected to the processor 110, for detecting the ambient temperature inside the cabin and sending the detected ambient temperature to the processor 110; and the processor 110 is configured to perform compensation processing on the thermal image based on the ambient temperature to obtain a calibrated target thermal image.

In this embodiment, the shape of the cabin includes a sphere, a cylinder, a cube, a cuboid, or the like that can accommodate the detection object, and this embodiment is not limited.

In some embodiments, the cabin can control the temperature and humidity of the environment, specifically, the cabin can adjust the temperature and humidity through an air conditioner installed inside the cabin, so that temperature measurement can be performed in the preset temperature and humidity environment, and the influence of the environment on the infrared temperature measurement precision is reduced.

The infrared camera 120 and the temperature detecting component 130 are disposed inside the cabin, and the processor 110 may be disposed inside the cabin or outside the cabin, and the disposition position of the processor 110 is not limited.

In this embodiment, the infrared camera 120 is used to photograph the detection object in the cabin, so as to obtain a thermal image of the detection object. The thermal image refers to an image in which heat or temperature of the detection object itself or radiated to the outside is recorded. It can be understood that due to the influence of the ambient temperature, there is a case where the measured temperature of the thermographic image captured by the infrared camera 120 is inaccurate, and the thermographic image needs to be further compensated. Therefore, a plurality of temperature detecting components 130 are installed in the cabin, and are used for performing compensation processing on the thermography based on the detected ambient temperature to obtain a calibrated target thermography, wherein the temperature detecting components 130 may be components having a temperature detecting function, including but not limited to a temperature sensor or a temperature and humidity sensor.

On the basis of the above embodiment, the number of the temperature detecting members 130 is at least four, and the temperature detecting members are distributed on the inner wall of the cabin.

The at least four temperature detection components 130 are distributed at different positions of the inner wall of the cabin body and used for acquiring the environmental temperatures of at least four different positions in the cabin body, so that the overall environmental temperature of the cabin body can be determined conveniently through the environmental temperatures of a plurality of positions.

Optionally, the temperature detecting components 130 disposed on the inner wall of the cabin may be uniformly distributed on the side walls of the cabin, and the temperature detecting components 130 disposed on each side wall may be uniformly distributed or alternately distributed at the top, the middle, and the bottom, respectively.

For example, when the cabin is shaped as a rectangular parallelepiped, two temperature detecting components 130 may be mounted on the top of the inner wall of the cabin, and the two temperature detecting components 130 are respectively located at two ends of the top or respectively located at 1/3 corresponding to the length of the top; two temperature detection components 130 are mounted at the bottom of the inner wall of the cabin, and the two temperature detection components 130 are respectively positioned at the two ends of the bottom or respectively positioned at 1/3 which is the length of the bottom, for example, see fig. 2A; for example, a temperature detecting member may be disposed at a central position of each side wall, for example, fig. 2B. In this embodiment, the number and distribution of the temperature detection members 130 are not limited.

It should be noted that the specific number of the temperature detection components 130 in the cabin may be determined based on the volume of the cabin, for example, the specific number of the temperature detection components 130 is positively correlated with the volume of the cabin, that is, the number of the temperature detection components 130 may be dynamically set according to the size of the cabin, for example, when the size of the cabin is large, only four temperature detection components 130 are provided to measure the ambient temperature, and the error is large, and the number of the temperature detection components 130 may be added to reduce the error.

On the basis of the above embodiment, the number of the temperature detection members 130 ranges from [4,10], that is, the number of the in-cabin temperature detection members 130 may be any one of 4, 5, 6, 7, 8, 9 or 10. When the internal space of the cabin is large, the number of the temperature detection components can be further increased, and is not limited to 10. When the temperature detected by a certain temperature detection part is obviously different from that of other temperature detection parts, the detection value of the temperature detection part is ignored in application, and therefore, reliable redundancy can be added on the arrangement number of the temperature detection parts. In this embodiment, in order to improve the accuracy of the ambient temperature detection, the number of the temperature detection components 130 may be increased, but considering the cost of the medical human infrared detection device, the number of the temperature detection components 130 may not be increased infinitely, and experiments verify that, in the case of the number range [4,10] of the temperature detection components 130, the cost is ensured within a reasonable range, and the high-accuracy ambient temperature detection is also realized, the number of the cabin temperature detection components 130 may be determined comprehensively according to the temperature detection accuracy and the preset cost, for example, the distribution mode of each number of the temperature detection components and the temperature detection accuracy of each distribution mode may be determined in advance, at least one distribution mode satisfying the required temperature detection accuracy is determined according to the required temperature detection accuracy input by the user, the distribution mode with the lowest cost among the at least one distribution mode determined above is determined as the target distribution mode, wherein, each distribution mode comprises the number and the arrangement position of the temperature detection components.

On the basis of the above embodiment, the number of the temperature detecting members 130 is six, and the temperature detecting members 130 are symmetrically arranged on the top inner wall and the bottom inner wall of the cabin, and the specific arrangement of the temperature detecting members 130 is exemplarily shown in fig. 2C. It should be noted that fig. 2C is only one possible example, and in other embodiments, the positions of the temperature detection components 130 can be adjusted according to the user's requirements. Six temperature sensing members 130 are symmetrically disposed on the top and bottom interior walls of the enclosure. Set up 3 temperature detection part 130 at cabin body top inner wall, set up 3 temperature detection part 130 at cabin body top bottom inner wall, 3 temperature detection part 1 that the top set up, 2 and 3, detect the ambient temperature at both ends and central point position on the top length direction respectively, and the ambient temperature at both ends on the width direction, and the same is said, 3 temperature detection part 4 that the bottom set up, 5 and 6, detect the ambient temperature at both ends and central point position on the bottom length direction respectively, and the ambient temperature at both ends on the width direction. The detection comprehensiveness and accuracy of the ambient temperature can be improved through the distribution mode of the temperature detection components.

In addition to the above embodiments, because the number of the temperature detecting components 130 is limited, the ambient temperature at any position in the cabin cannot be detected, and in response to the above problem, the processor 110 is further configured to: performing temperature interpolation processing according to the ambient temperature of the corresponding position point detected by each temperature detection component 130 and a preset cabin interior space grid cell to obtain the ambient temperature corresponding to each cabin interior space grid cell; and compensating the thermal image based on the environment temperature corresponding to the space grid cells in each cabin to obtain a calibrated target thermal image.

The preset cabin interior space grid cells may be obtained by determining a field of view (FOV) of the infrared camera 120, so as to divide the cabin interior space grid cells of the two-dimensional image in the field of view of the infrared camera 120. Illustratively, the in-cabin spatial grid element is determined based on the division unit as a horizontal field angle 2 ° and/or a vertical field angle 2 °.

The temperature interpolation means that the ambient temperature of the grid cells in the cabin interior space is predicted by a linear interpolation method through the ambient temperature detected by a plurality of known temperature detection components. Illustratively, one of the temperature sensing elements is located in an in-cabin space cell X1The detected ambient temperature is Y1Another temperature detecting component is positioned in the space grid cell X in the cabin2The detected ambient temperature is Y2In [ X ]1,X2]The temperature Y corresponding to the space grid cell X in a certain cabin in the interval can be calculated by the following formula:

in the embodiment of the invention, the unknown environment temperature corresponding to each space grid element in the cabin is estimated through the known environment temperature, the use of temperature detection components is reduced, the cost is saved, the temperature at the corresponding position in the thermal image is compensated through the environment temperature corresponding to each space grid element in the cabin, and the accuracy of infrared temperature measurement is improved. Furthermore, interpolation processing can be carried out based on the ambient temperatures detected by two or more temperature detection components, so that the accuracy of the temperature value of each cabin space grid cell obtained through interpolation is improved.

The ambient temperature interferes with the thermal image acquisition process of the infrared camera 120, and the ambient temperature determined in the above manner compensates the thermal image acquired by the infrared camera 120 to obtain a calibrated target thermal image, so that the accuracy of the thermal image is improved. Specifically, the temperature at the corresponding position in the thermal image is compensated through the environment temperature corresponding to the space grid cells in each cabin, so that the calibrated target thermal image is obtained. On the basis of the above embodiment, the processor 110 is further configured to: processing the environment temperature corresponding to each cabin space grid element based on a preset first compensation factor to obtain a pixel compensation value corresponding to the cabin space grid element; and compensating the pixel value of the corresponding cabin space grid element in the thermal image based on the pixel compensation value corresponding to each cabin space grid element to obtain a calibrated target thermal image.

The first compensation factor is used for calculating the pixel compensation value, and can be modified through sample data debugging. In some embodiments, the first compensation factor may be preset and may be obtained through a calling method. In another embodiment, the first compensation factor may also be obtained by a machine learning model trained in advance, for example, cabin data and cabin internal environment temperature are input to the machine learning model to obtain the first compensation factor output by the machine learning model, where the cabin data may be one or more of cabin structure data, cabin space grid element division data, and setting data of the temperature detection component, and the first compensation factor includes a compensation factor corresponding to each cabin space grid element.

Specifically, the thermography includes a plurality of pixels, each pixel has a corresponding pixel value, the pixel value and the temperature value have a preset corresponding relationship, and meanwhile, because the target object is located in the cabin, the skin of the target object is respectively in the cabin space grid elements, that is, each pixel in the thermography and the cabin space grid elements have an object relationship. The ambient temperature of the cabin space grid element obtained based on the ambient temperature interpolation is a temperature value in a larger range, and is not specific to each pixel point, so that when the thermal image is subjected to temperature compensation, the ambient temperature corresponding to the cabin space grid element can be further processed through a first compensation factor to obtain a pixel compensation value of each pixel in the cabin space grid element, and based on the object relationship between each pixel and the cabin space grid element, the pixel value of each pixel in the thermal image corresponding to the cabin space grid element is subjected to compensation processing according to the pixel compensation value of each pixel in the cabin space grid element to obtain a calibrated target thermal image. Specifically, the pixel compensation value may be a positive number or a negative number, the target pixel value of the pixel point is obtained by adding the pixel compensation value to the pixel value of the corresponding cabin interior space grid element in the thermal image, and the calibrated target thermal image is obtained based on the target pixel value of each pixel point.

In some optional embodiments, the processor 110 is further configured to: determining the initial temperature corresponding to each cabin space grid element of the thermal image based on the corresponding relation between the pixels in the thermal image and the temperature and the preset cabin space grid elements in the cabin; processing the environment temperature corresponding to each cabin space grid cell based on a preset second compensation factor to obtain a temperature compensation value corresponding to the cabin space grid cell; and determining the target temperature of each cabin space grid cell based on the temperature compensation value and the initial temperature of the corresponding cabin space grid cell, and obtaining a calibrated target thermal image based on the corresponding relation among the target temperature, the pixel and the temperature. In some embodiments, the second compensation factor may be preset and may be obtained through a calling method. In some embodiments, the second compensation factor may also be processed by a pre-trained machine learning model, which may be trained by the ambient temperature and the cabin average temperature, and the corresponding compensation factor. In another embodiment, the second compensation factor may also be obtained by performing parameter identification through a parameter identification model, for example, obtaining a preset number of data sets (for example, at least three data sets), where each data set includes a compensation factor, an ambient temperature, and an average temperature in the cabin, inputting each data set to the parameter identification model, and analyzing the obtained second compensation factor, where the number identification model may be preset, and a relationship equation set is constructed based on the compensation factor, the ambient temperature, and the average temperature in the cabin.

Specifically, each pixel in the thermography corresponds to a temperature value, and a mapping relationship can be established between the temperature values corresponding to all the pixels in the cabin space cells in the thermography and the cabin space cells in which the pixels are located, so as to obtain the initial temperature corresponding to the cabin space cells in the thermography. Optionally, the temperature compensation value corresponding to each in-cabin space cell is added to the initial temperature to obtain the target temperature of each in-cabin space cell. And according to the corresponding relation between the temperature values corresponding to all the pixels in the cabin space grid elements in the thermal image and the cabin space grid elements, performing temperature compensation on each pixel of the thermal image to obtain a calibrated target thermal image, thereby improving the accuracy of the target thermal image.

The pixel compensation value and the ambient temperature may establish a corresponding relationship through a preset mapping relationship table, or may establish a corresponding relationship through a preset mathematical function, which is not limited to this. For example, in a first embodiment, a mapping table may be established to determine the compensation value for each pixel of the thermal image according to the mapping table. Specifically, the mapping relationship table may be determined according to actual experience or theory, and then the compensation value of each pixel of the thermal image corresponding to the target temperature is determined based on the mapping relationship table, and then each pixel of the thermal image is compensated to obtain the calibrated target thermal image. In a second embodiment, the pixels and the temperature may be fitted theoretically to obtain a mathematical function corresponding to the pixels and the temperature, the target temperature is input to the mathematical function to obtain a compensation value of each pixel of the thermal image, and each pixel of the thermal image is compensated to obtain a calibrated target thermal image.

On the basis of the above embodiment, the processor determines the temperature compensation value based on the following formula:

Mi=Ai×(Ti-Tavg)2+Bi×(Ti-Tavg)+Ci

wherein M isiFor the ith cabin space cell corresponding temperature compensation value, Ai、BiAnd CiIs a second compensation factor, TiIs the temperature value T corresponding to the ith in-cabin space cellavgIs the average ambient temperature within the capsule. In the embodiment of the invention, the calibration of the thermal image can be realized through the temperature compensation value determined by the formula.

In the embodiment, the thermal image of the detection object in the cabin is obtained, the environmental temperatures of the corresponding position points acquired by the plurality of temperature detection components are obtained, and the accurate measurement of the environmental temperatures can be realized based on the environmental temperatures of the plurality of position points; furthermore, the thermal image is compensated based on the environment temperature to obtain a calibrated target thermal image, so that the temperature value corresponding to each pixel value in the obtained target thermal image is more accurate, the accuracy of infrared temperature measurement is improved, and the method has important significance for human body infrared thermal imaging temperature measurement and medical application thereof.

Example two

Fig. 3 is a flowchart of a thermal image processing method according to an embodiment of the present invention, where the embodiment is applicable to a situation in which a thermal image is automatically adjusted in an infrared detection process of a human body, the thermal image may be a medical human body thermal image, and the method may be applied to a medical human body infrared detection device according to any embodiment of the present invention. The method specifically comprises the following steps:

s210, acquiring a thermograph of the detection object in the cabin.

S220, acquiring the environment temperature of the corresponding position points acquired by each temperature detection component, and performing temperature interpolation processing on the basis of the environment temperature of each position point and preset cabin interior space grid cells to obtain the environment temperature corresponding to each cabin interior space grid cell.

And S230, compensating the pixel values of the cabin space grid elements in the thermal image based on the environment temperature corresponding to the cabin space grid elements to obtain a calibrated target thermal image.

Wherein the compensation process includes pixel value compensation based on an ambient temperature, or detection object temperature compensation based on an ambient temperature, wherein the compensated detection object temperature is used to calibrate pixel values in the thermography. In this embodiment, the pixel value compensation based on the ambient temperature may be the ambient temperature corresponding to each intra-cabin space grid element obtained through interpolation processing, and the pixel value of the intra-cabin space grid element in the acquired thermography is directly compensated, for example, may be implemented by a compensation factor for compensating the pixel value. The temperature compensation of the detection object based on the ambient temperature may be the ambient temperature corresponding to each in-cabin space cell obtained by interpolation, and the temperature of the detection object corresponding to each in-cabin space cell is calibrated when the thermal image is acquired, so as to obtain the temperature of the detection object corresponding to each in-cabin space cell after compensation, for example, may be realized by a compensation factor for compensating the temperature. And obtaining a calibrated target thermal image based on the temperature of the detection object corresponding to the compensated space grid cells in each cabin, wherein the pixel values in the thermal image have a corresponding relation with the temperature of the detection object.

On the basis of the above embodiment, the obtaining a calibrated target thermography by performing compensation processing on the pixel values of the cabin interior space cells in the thermography based on the ambient temperatures corresponding to the cabin interior space cells includes:

processing the environment temperature corresponding to each cabin space grid element based on a preset first compensation factor to obtain a pixel compensation value corresponding to the cabin space grid element;

and compensating the pixel value of the corresponding cabin space grid element in the thermal image based on the pixel compensation value corresponding to each cabin space grid element to obtain a calibrated target thermal image.

On the basis of the above embodiment, the compensating the pixel values of the cabin interior space cells in the thermography based on the ambient temperatures corresponding to the cabin interior space cells to obtain a calibrated target thermography further includes:

determining the initial temperature corresponding to each cabin space grid element of the thermal image based on the corresponding relation between the pixels in the thermal image and the temperature and the preset cabin space grid elements in the cabin;

processing the environment temperature corresponding to each cabin space grid cell based on a preset second compensation factor to obtain a temperature compensation value corresponding to the cabin space grid cell;

and determining the target temperature of each cabin space grid cell based on the temperature compensation value and the initial temperature of the corresponding cabin space grid cell, and obtaining a calibrated target thermal image based on the corresponding relation among the target temperature, the pixel and the temperature.

On the basis of the above embodiment, the temperature compensation value is determined based on the following formula:

Mi=Ai×(Ti-Tavg)2+Bi×(Ti-Tavg)+Ci

wherein M isiFor the ith cabin space cell corresponding temperature compensation value, Ai、BiAnd CiIs a second compensation factor, TiIs the temperature value T corresponding to the ith in-cabin space cellavgIs the average ambient temperature within the capsule.

According to the thermography processing method provided by the embodiment of the invention, the thermography of the detection object in the cabin is obtained, the environment temperature of the corresponding position point acquired by each temperature detection component is obtained, and the temperature interpolation processing is carried out on the basis of the environment temperature of each position point and the preset cabin internal space grid cells in the cabin to obtain the environment temperature corresponding to each cabin internal space grid cell, so that the prediction of the unknown environment temperature corresponding to each cabin internal space grid cell through the known environment temperature can be realized, the use of the temperature detection components is reduced, and the cost is saved; furthermore, the pixel values of the space grid elements in the cabin in the thermal image are compensated based on the environment temperature corresponding to the space grid elements in the cabin, so that the calibrated target thermal image is obtained, the temperature value corresponding to each pixel value in the obtained target thermal image is more accurate, and the accuracy of infrared temperature measurement is improved.

EXAMPLE III

Fig. 4 is a schematic structural diagram of a thermographic processing apparatus according to a third embodiment of the present invention, where the thermographic processing apparatus provided in this embodiment may be implemented by software and/or hardware, and may be configured in the medical human infrared detection device provided in the foregoing embodiment to implement the thermographic processing method according to the third embodiment of the present invention. The device may specifically include: a thermal image acquisition module 310, a temperature interpolation processing module 320 and a target thermal image generation module 330.

The thermal image acquisition module 310 is configured to acquire a thermal image of a detection object in the cabin; the temperature interpolation processing module 320 is configured to obtain the ambient temperatures of the corresponding position points acquired by each temperature detection component, and perform temperature interpolation processing based on the ambient temperatures of the position points and preset cabin interior space grid elements to obtain the ambient temperatures corresponding to the cabin interior space grid elements; and the target thermography generating module 330 is configured to perform compensation processing on the pixel values of the cabin space cells in the thermography based on the ambient temperatures corresponding to the cabin space cells, so as to obtain a calibrated target thermography.

According to the thermography processing device provided by the embodiment of the invention, the thermography of the detection object in the cabin is obtained, the environment temperature of the corresponding position point acquired by each temperature detection component is obtained, and the temperature interpolation processing is carried out on the basis of the environment temperature of each position point and the preset cabin internal space grid cells in the cabin to obtain the environment temperature corresponding to each cabin internal space grid cell, so that the prediction of the unknown environment temperature corresponding to each cabin internal space grid cell through the known environment temperature can be realized, the use of the temperature detection components is reduced, and the cost is saved; furthermore, the pixel values of the space grid elements in the cabin in the thermal image are compensated based on the environment temperature corresponding to the space grid elements in the cabin, so that the calibrated target thermal image is obtained, the temperature value corresponding to each pixel value in the obtained target thermal image is more accurate, and the accuracy of infrared temperature measurement is improved.

On the basis of any optional technical solution in the embodiment of the present invention, optionally, the target thermal image generation module 330 may be configured to:

processing the environment temperature corresponding to each cabin space grid element based on a preset first compensation factor to obtain a pixel compensation value corresponding to the cabin space grid element;

compensating the pixel value of the corresponding cabin space grid element in the thermal image based on the pixel compensation value corresponding to each cabin space grid element to obtain a calibrated target thermal image

On the basis of any optional technical solution in the embodiment of the present invention, optionally, the target thermal image generation module 330 may further be configured to:

determining the initial temperature corresponding to each cabin space grid element of the thermal image based on the corresponding relation between the pixels in the thermal image and the temperature and the preset cabin space grid elements in the cabin;

processing the environment temperature corresponding to each cabin space grid cell based on a preset second compensation factor to obtain a temperature compensation value corresponding to the cabin space grid cell;

and determining the target temperature of each cabin space grid cell based on the temperature compensation value and the initial temperature of the corresponding cabin space grid cell, and obtaining a calibrated target thermal image based on the corresponding relation among the target temperature, the pixel and the temperature.

On the basis of any optional technical solution in the embodiment of the present invention, optionally, the temperature compensation value is determined based on the following formula:

Mi=Ai×(Ti-Tavg)2+Bi×(Ti-Tavg)+Ci

wherein M isiFor the ith cabin space cell corresponding temperature compensation value, Ai、BiAnd CiIs a second compensation factor, TiIs the temperature value T corresponding to the ith in-cabin space cellavgIs the average ambient temperature within the capsule.

The thermal image processing device provided by the embodiment of the invention can execute the thermal image processing method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.

Example four

An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a thermal image processing method, including:

acquiring a thermograph of a detection object in the cabin;

acquiring the environment temperature of the corresponding position points acquired by each temperature detection component, and performing temperature interpolation processing on the basis of the environment temperature of each position point and preset cabin interior space grid cells in the cabin to obtain the environment temperature corresponding to each cabin interior space grid cell;

and compensating the pixel values of the cabin space grid elements in the thermal image based on the environment temperature corresponding to the cabin space grid elements to obtain a calibrated target thermal image.

Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.

A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).

It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于大数据的精准型鱼类识别技术系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!