Body temperature detection method based on infrared double-light camera
Technical Field
The invention relates to the technical field of body temperature monitoring, and particularly provides a body temperature detection method based on an infrared double-optical camera, which is suitable for body temperature screening of dense people.
Background
With the increasing market demand for non-contact temperature measurement, the application of the infrared thermal imaging technology in human body temperature measurement is more and more extensive, the infrared thermal imaging temperature measurement technology has great advantages in the field of rapid screening of human body temperature, the temperature measurement technology mainly measures the skin temperature of a human body which is exposed outside, the measurement result is very easily influenced by the measurement environment temperature, especially in summer, the surface temperature of objects such as hair, dark-colored clothes, backpack straps and the like can be temporarily raised through the insolation of sunlight, the phenomenon of false alarm can be caused when the body temperature is measured, the common solution is that the measured person is allowed to stand for about 30 seconds to 1 minute in a shade place, the body temperature is measured by using an infrared thermal imaging technology after the surface temperature of the human body tends to be stable, this not only wastes time, more can't realize carrying out the purpose of quick human body temperature screening to intensive crowd.
Therefore, a new body temperature detection method is provided to be suitable for body temperature screening of dense people, and is a problem to be solved urgently.
Disclosure of Invention
In view of this, the present invention aims to provide a body temperature detection method based on an infrared dual-optical camera, so as to solve the problem that the existing infrared imaging temperature measurement technology is greatly affected by the ambient temperature.
The technical scheme provided by the invention is as follows: a body temperature detection method based on an infrared double-light camera comprises the following steps:
s1: acquiring a high-definition visible light image and an infrared image containing a detected person by using an infrared double-light camera;
s2: carrying out face detection on the high-definition visible light image to find out the face area of the detected person;
s3: finding the forehead area and the eye area of the person to be tested in the face area obtained in the S2;
s4: finding corresponding regions corresponding to the forehead region and the eye region in the infrared image;
s5: the maximum temperature in the corresponding region in S4 is obtained as the body temperature of the person to be measured, using the temperature information of the infrared image.
Preferably, in S2, a convolutional neural network is used to perform face detection on the high-definition visible light image, so as to find out the face area of the person to be detected.
Further preferably, in S3, the forehead region and the eye region of the person to be tested are found within the face region obtained in S2 according to the characteristics of the forehead and the eyes.
More preferably, S4: the method for finding the corresponding regions corresponding to the forehead region and the eye region in the infrared image is as follows:
s41: calibrating an infrared camera and a high-definition visible light camera in the infrared double-light camera to obtain a coordinate conversion relation of the two cameras;
s42: and finding corresponding areas corresponding to the forehead area and the eye area in the infrared image by utilizing the coordinate conversion relation of the two cameras.
More preferably, S41: calibrating an infrared camera and a high-definition visible light camera in the infrared double-light camera, and obtaining the coordinate conversion relation of the two cameras specifically comprises the following steps:
establishing a calibration plate;
acquiring an infrared image and a high-definition visible light image in a field of view by using the infrared double-light camera;
calibrating the infrared image and the high-definition visible light image by utilizing matlab software to obtain a camera parameter matrix A and a distortion coefficient matrix K of the two images;
according to the stereo correction method, the translation amount P and the rotation matrix R of the infrared camera and the high-definition visible light camera are calculated by utilizing the camera parameter matrix A and the distortion coefficient matrix K.
Further preferably, the body temperature detection method based on the infrared double-light camera further comprises the step of overtemperature early warning, which specifically comprises the following steps:
s6: and comparing the body temperature of the detected person obtained in the step S5 with a preset temperature value, and if the body temperature is higher than the preset temperature value, sending early warning information to the outside.
Further preferably, the early warning information includes a face area image and body temperature information of the person to be detected.
The invention provides a body temperature detection method based on an infrared double-light camera, which can simultaneously obtain a high-definition visible light image and an infrared image in a field of view by using the infrared double-light camera.
The body temperature detection method based on the infrared double-light camera provided by the invention has the advantages of high detection speed, no influence of environmental temperature and capability of assisting in realizing rapid body temperature screening of dense people.
Detailed Description
The invention will be further explained with reference to specific embodiments, without limiting the invention.
The invention provides a body temperature detection method based on an infrared double-light camera, which comprises the following steps:
s1: acquiring a high-definition visible light image and an infrared image containing a detected person by using an infrared double-light camera;
s2: carrying out face detection on the high-definition visible light image to find out the face area of the detected person;
s3: finding the forehead area and the eye area of the person to be tested in the face area obtained in the S2;
s4: finding corresponding regions corresponding to the forehead region and the eye region in the infrared image;
s5: the maximum temperature in the corresponding region in S4 is obtained as the body temperature of the person to be measured, using the temperature information of the infrared image.
The body temperature detection method based on the infrared double-light camera can simultaneously obtain a high-definition visible light image and an infrared image in a field of view by using the infrared double-light camera, firstly, the high-definition visible light image is used for carrying out face detection in the body temperature detection process to obtain a face position area in the high-definition visible light image, then, a face feature recognition algorithm is used for searching a forehead area and an eye area of a human face in the high-definition visible light image, then, the forehead area and the eye area in the infrared image are determined by using the position relation of the infrared image and the high-definition visible light image, and finally, the highest temperature of the two areas is calculated to be the body temperature of a detected person.
Because the forehead and the eye region of the human body are not easy to generate the temperature rise phenomenon caused by direct irradiation of sunlight, the method takes the forehead region and the eye region of the human body as the body temperature measuring regions, and can avoid the phenomena of short temperature rise of human hair or other heat absorption parts caused by exposure of sunlight, high temperature measurement, false alarm and false alarm caused by the short temperature rise, and the like.
As an improvement of the technical solution, in S2, a convolutional neural network is used to perform face detection on the high-definition visible light image, and the face area of the person to be detected is found.
As an improvement of the technical solution, in S3, according to the characteristics of the forehead and the eyes, the forehead area and the eye area of the person to be tested are found in the face area obtained in S2.
As an improvement of the technical solution, S4: the method for finding the corresponding regions corresponding to the forehead region and the eye region in the infrared image is as follows:
s41: calibrating an infrared camera and a high-definition visible light camera in the infrared double-light camera to obtain a coordinate conversion relation of the two cameras;
s42: and finding corresponding areas corresponding to the forehead area and the eye area in the infrared image by utilizing the coordinate conversion relation of the two cameras.
As an improvement of the technical solution, S41: calibrating an infrared camera and a high-definition visible light camera in the infrared double-light camera, and obtaining the coordinate conversion relation of the two cameras specifically comprises the following steps:
establishing a calibration plate;
acquiring an infrared image and a high-definition visible light image in a field of view by using the infrared double-light camera;
calibrating the infrared image and the high-definition visible light image by utilizing matlab software to obtain a camera parameter matrix A and a distortion coefficient matrix K of the two images;
according to the stereo correction method, the translation amount P and the rotation matrix R of the infrared camera and the high-definition visible light camera are calculated by utilizing the camera parameter matrix A and the distortion coefficient matrix K.
As an improvement of the technical scheme, the body temperature detection method based on the infrared double-light camera further comprises the step of overtemperature early warning, and specifically comprises the following steps:
s6: and comparing the body temperature of the detected person obtained in the step S5 with a preset temperature value, and if the body temperature is higher than the preset temperature value, sending early warning information to the outside.
As improvement of the technical scheme, the early warning information comprises face area images and body temperature information of the detected personnel. Through providing above-mentioned early warning information, can do benefit to and fix a position super temperature personnel fast from intensive crowd.
The embodiments of the present invention have been written in a progressive manner with emphasis placed on the differences between the various embodiments, and similar elements may be found in relation to each other.
While the embodiments of the present invention have been described in detail, the present invention is not limited to the above embodiments, and various changes can be made without departing from the spirit of the present invention within the knowledge of those skilled in the art.