A non-contact temperature measurement and identity recognition system

By combining temperature measurement and ranging sensors, using distance temperature correction algorithms and convolutional neural networks, contactless long-distance body temperature measurement and identity recognition are achieved, solving the problems of short distance and low accuracy of traditional temperature measurement methods, and achieving Provides high-precision long-distance body temperature detection and identity recognition.

CN113095190BActive Publication Date: 2024-10-15WUHAN UNIV OF TECH
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202110357751.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-01
Publication Date
2024-10-15
Estimated Expiration
2041-04-01

AI Technical Summary

Technical Problem

Traditional temperature measurement methods have problems such as long measurement time, need for contact or short distance, making it difficult to achieve accurate long-distance body temperature detection, mask detection or face recognition.

Method used

A non-contact temperature measurement and identity recognition system based on temperature measurement, ranging sensors and cameras is used. By combining the temperature measurement module and the ranging module, the distance temperature correction algorithm is used to reduce the temperature measurement error, and the convolutional neural network is used to implement image processing and Feature recognition.

Benefits of technology

It achieves accurate body temperature measurement within the range of 0 to 2m (the error does not exceed 0.2 degrees Celsius), and has high-precision identity recognition and mask detection. It has short learning time, low cost and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113095190B_ABST
    Figure CN113095190B_ABST
Patent Text Reader

Abstract

The present invention discloses a non-contact temperature measurement and identity recognition system based on temperature measurement, distance measurement sensor and camera. The temperature measurement sensor adopts GY-906 infrared temperature measurement sensor, the distance measurement module adopts ATK-VL53L0X laser distance measurement module, the temperature measurement micro control unit MCU adopts STM32, and the image processing module core adopts Kanzhi K210 chip; the infrared temperature measurement sensor, laser distance measurement module and micro control unit MCU are connected through different I2C buses, and the temperature measurement micro control unit MCU and image processing module use TTL serial port communication. The system corrects the temperature measurement error caused by the distance through the temperature compensation algorithm to realize long-distance temperature measurement, and realizes feature learning and recognition through the image processing algorithm and YoloV2 network; the system can realize the functions of long-distance measurement of human body temperature, face recognition, mask detection, and rapid face entry, and has the characteristics of high accuracy, fast speed and low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of information technology, and more specifically, relates to a contactless temperature measurement and identity recognition system. Background Art

[0002] Traditional temperature measurement methods, such as mercury thermometers and infrared temperature guns, cannot meet temperature measurement needs well due to their shortcomings such as long measurement time, need for contact measurement or short measurement distance, and need for manual operation.

[0003] In the temperature measurement device, infrared temperature sensors have the advantages of non-contact measurement, wide measurement range, and fast temperature measurement speed, so they are widely used in various temperature measurement instruments. However, the linear infrared measurement module cannot achieve long-distance accurate measurement due to the loss of infrared diffusion and propagation. The effective temperature measurement distance of the commonly used handheld infrared thermometer is only 10CM, and the infrared thermal imager for long-distance measurement costs dozens of times more. Therefore, how to achieve long-distance body temperature detection and mask detection or face recognition is a technical problem that needs to be solved urgently. Summary of the invention

[0004] In response to the above defects or improvement needs of the prior art, the present invention proposes a contactless temperature measurement and identity recognition system based on temperature measurement, ranging sensors and cameras, which can perform long-distance body temperature detection and mask detection or face recognition on the target individual.

[0005] To achieve the above-mentioned purpose, the present invention provides a non-contact temperature measurement and identity recognition system based on temperature measurement, distance measurement sensors and cameras, comprising: a temperature measurement module, a distance measurement module, an image processing module and a micro control unit, wherein the temperature measurement module and the distance measurement module are connected to the micro control unit through two I2C buses, the micro control unit reads the temperature value from the temperature measurement module, reads the distance value from the distance measurement module, and then uses distance temperature correction to compensate for the temperature measurement error caused by the distance to perform long-distance temperature measurement;

[0006] The image processing module and the micro control unit are connected using a TTL circuit for serial communication, so that the image processing module performs image processing in combination with a camera to achieve feature learning and recognition.

[0007] In some optional embodiments, the microcontroller unit is used to linearly transform the temperature data obtained from the temperature measurement module into Celsius temperature, and then construct a subtraction compensation model based on the least squares method to reduce the error of infrared temperature measurement due to the influence of distance.

[0008] In some optional implementation schemes, the microcontroller unit first obtains the measurement error of the temperature measurement module by Δy=y0-y, where y is the measured temperature of the temperature measurement module and y0 is the target actual temperature; then performs polynomial fitting on the obtained Δy to obtain Δy=a0+a1X+a2X 2 , X is the distance value from the temperature measurement module to the measurement target, a0, a1, a2 are polynomial coefficients; a0, a1, a2 are obtained by fitting the distance value obtained by experimental measurement, and the temperature measurement error Δy' is obtained by substituting the distance value currently measured into the fitting equation. Then the corrected temperature is: y0'=y+Δy'.

[0009] In some optional implementation schemes, the image processing module includes:

[0010] A face coordinate acquisition unit, used to acquire face coordinates based on a face image acquired from a camera through a first convolutional neural network model;

[0011] An adjustment unit, used for cutting and adjusting the length and width of the part of the face image containing the face according to the face coordinates to obtain an image to be corrected;

[0012] A facial feature point extraction unit, used to extract facial feature points including eyes, nose and mouth from the cropped and adjusted image through a second convolutional neural network model;

[0013] A radiation transformation unit, used for using the facial feature point information of a standard human face as a reference value, and performing an affine transformation on the image to be corrected based on the extracted facial feature points;

[0014] A facial feature map extraction unit, used for obtaining a facial feature map through a third convolutional neural network model based on the image after affine transformation;

[0015] A storage unit is used to store the extracted facial feature map into the storage to provide a comparison sample;

[0016] The feature comparison unit is used to compare the real-time acquired face feature map with the stored face feature map by Euclidean distance. If the distance exceeds a certain threshold, the faces are judged as different people; if the distance is within the threshold, the faces are judged as the same person, thereby realizing identity recognition.

[0017] In some optional implementation schemes, the face coordinate acquisition unit is used to use the YoloV2 network, input the picture captured by the camera into the YoloV2 network, and completely run the YoloV2 network to obtain the coordinate information of all faces in the picture.

[0018] In some optional embodiments, the facial feature point extraction unit is used to load the adjusted facial image into a second convolutional neural network model for extracting facial feature points to obtain feature point coordinates, wherein the second convolutional neural network model has fewer convolutional layers than the first convolutional neural network model, and adds two padding layers and an inverse quantization layer for fine-tuning.

[0019] In some optional embodiments, the facial feature map extraction unit is used to load the image calibrated by affine transformation into a third convolutional neural network model for comparing facial feature map extraction, and return a facial feature map that can be loaded into a feature library, wherein the third convolutional neural network model includes a convolution layer, a quantization layer, a dequantization layer, and a pooling layer.

[0020] In some optional embodiments, the image processing module is also used to load the picture acquired by the camera into a fourth convolutional neural network model, and then extract the feature map through convolution, and compare it one by one with the feature map library of wearing a mask and the feature map library of not wearing a mask, and finally find the feature map with the smallest Euclidean distance, and return the library type and similarity to which the feature map belongs, wherein the fourth convolutional neural network model includes feature maps of wearing a mask and feature maps of not wearing a mask.

[0021] In some optional embodiments, the temperature measurement module is a contactless temperature measurement module, which adopts the MLX90614 sensor, and the communication interface uses the standard IIC protocol. The microcontroller unit reads 16-bit temperature data from the internal RAM of the MLX90614 sensor, which includes ambient temperature data and temperature data of the object measured by the sensor, and stores them in different RAM addresses respectively, and then uses the IIC protocol to read the temperature data at different addresses in a targeted manner.

[0022] In some optional implementation schemes, the image processing module uses a K210 chip.

[0023] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0024] (1) The present invention can accurately measure body temperature within a relatively large distance (e.g., 0 to 2 meters) (with an error of no more than 0.2 degrees Celsius);

[0025] (2) The present invention can conveniently perform identity recognition and mask detection with high accuracy. The system also has the characteristic of extremely short learning time, and a new face can be successfully learned within tens of milliseconds.

[0026] (3) The present invention does not require the use of expensive neural network hardware such as infrared scanners and FPGAs, and has the characteristics of low cost and good reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 is a system structure block diagram provided by an embodiment of the present invention;

[0028] Figure 2 It is a workflow diagram of a system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0030] In the examples of the present invention, "first", "second", etc. are used to distinguish different objects rather than to describe a specific order or sequence.

[0031] The contactless temperature measurement and identification system of the present invention adopts a low-cost linear infrared measurement module plus a laser ranging module, adds the temperature measurement distance factor, and corrects the temperature measurement error caused by the distance through the algorithm, thereby realizing high-precision long-distance measurement at a low cost. In the image processing chip, K210 has an independent convolutional neural network (CNN) processing unit with a large RAM capacity, which can load larger neural networks and pictures, is suitable for faster image processing, and runs small CNNs. Using K210 to run the neural network for mask detection and face recognition, the recognition speed is within tens of milliseconds, and real-time detection and entry can be achieved. The difficulty of the system of the present invention is to accurately correct the temperature measurement error caused by the distance in the algorithm by measuring the temperature measurement distance; when recognizing faces, first quickly recognize the face, then cut the face part image and standardize it, accurately extract the feature points and compare the features with the database.

[0032] like Figure 1 As shown, an embodiment of the present invention provides a contactless temperature measurement and identity recognition system based on temperature measurement, distance measurement sensors and cameras, including using a temperature measurement module and a distance measurement module to achieve long-distance temperature measurement, using a K210 chip for image processing combined with a camera to achieve feature learning and recognition; the temperature measurement module and the distance measurement module are connected to a microcontroller unit MCU through two I2C buses, and the K210 image processing module is connected to the microcontroller unit MCU using a TTL circuit for serial communication.

[0033] The temperature is read using the temperature measurement method, and the distance temperature correction algorithm is used to compensate for the temperature measurement error caused by the distance for long-distance temperature measurement; the image processing algorithm and YoloV2 network are used to realize face recognition, face entry and mask detection, such as Figure 2 As shown, the following is a detailed description.

[0034] Temperature measurement method:

[0035] (1) Sensor data reading method

[0036] The non-contact temperature measurement module uses the MLX90614 sensor, and the communication interface uses the standard IIC protocol. When the sensor is working normally, it can directly read 16-bit temperature data from the internal RAM, which includes ambient temperature data and temperature data of the sensor-measured object, which are stored in different RAM addresses. The IIC protocol can be used to read temperature data at different addresses in a targeted manner.

[0037] (2) Raw data processing and calculation

[0038] The 16-bit data returned by the MLX90614 sensor needs to be linearly transformed to Celsius temperature. First, the 16-bit data is scaled, that is, the raw data is multiplied by a scaling factor of 0.02 to convert it to Kelvin temperature, then absolute zero is added to convert it to theoretical Celsius temperature, and finally a linear offset correction factor is added to convert it to actual Celsius temperature. The calculation formula is as follows:

[0039] y=data×0.02-273.15+e (1)

[0040] Where y is the Celsius temperature, data is the original 16-bit data read from the sensor, 0.02 is the scaling factor, -273.15 is absolute zero, and e is the linear offset correction factor, whose value is determined during system debugging.

[0041] Temperature correction algorithm:

[0042] The infrared temperature measurement module determines the temperature of the object through the radiation emitted by the surface of the object being measured. In actual measurement, the radiation received by the object being measured includes its own radiation and the radiation of the surrounding environment. The larger the temperature measurement distance, the greater the impact of the environment on the accuracy of its measurement. In an embodiment of the present invention, a subtraction compensation model is constructed based on the least squares method to reduce the error during infrared temperature measurement, as follows:

[0043] Assume that the measured temperature of the infrared temperature measurement module is y, and the actual target temperature is y0, then the measurement error is:

[0044] Δy=y0-y (2)

[0045] Then use Matlab software to perform polynomial fitting on the obtained Δy, and the fitting equation is:

[0046] Δy=a0+a1X+a2X 2 (3)

[0047] X is the distance value from the infrared temperature measurement module to the measurement target, a0, a1, a2 are polynomial coefficients, and a0, a1, a2 can be obtained by fitting the distance value experimental data in MATLAB. The current measured distance value is brought into the fitting equation to obtain the measurement error Δy'. The measurement error Δy' is used to correct the measured temperature y of the infrared temperature measurement module. The corrected temperature is:

[0048] y0'=y+Δy' (4)

[0049] Identification method:

[0050] The identification process includes obtaining face coordinates, cropping and adjusting the length and width of partial face images, extracting face feature points (eyes, nose, mouth), affine transformation of partial face images, extracting face feature maps for comparison, storing face features, and comparing face features. The entire process uses three convolutional neural network models, which are responsible for extracting face coordinates, extracting face feature points (two eyes, one nose, and two corners of the mouth), and obtaining face feature maps for comparison.

[0051] (1) Obtaining face coordinates

[0052] The YoloV2 network is used to input the image captured by the camera into the YoloV2 network, and the YoloV2 network is fully run to obtain the coordinate information of all faces in the image. The YoloV2 network contains up to 23 convolutional layers, and its main function is to extract the features of the face from the environment and then compare them with the face feature library inside the network. Since the convolutional neural network is not fully connected, the fitting characteristics of a single layer are poor, so repeated convolution is required to improve the feature extraction degree.

[0053] (2) Partial face image cropping and length and width adjustment

[0054] Use the coordinate information from the previous step to crop and adjust the length and width of the part of the picture containing the face to obtain the image to be corrected.

[0055] (3) Extracting facial feature points

[0056] Load the adjusted face image into the neural network used to extract facial feature points to obtain the feature point coordinates. This network uses the adjusted face image and does not contain many environmental components, so it reduces many convolutional layers compared to the previous network, but the network structure becomes more complex, adding two padding layers and an inverse quantization layer for fine-tuning. This can improve the recognition accuracy of the network, thereby accurately extracting the feature points of the eyes, nose, mouth, etc. in the face.

[0057] (4) Affine transformation of local face image

[0058] Use the standard facial feature point information as a reference value, use the facial feature point values ​​obtained in the previous step as parameters as the parameters of the image to be corrected, and perform affine transformation correction on the facial image. The purpose of correction is to preprocess the facial feature map extraction to obtain better feature map data.

[0059] (5) Extraction of facial feature maps for comparison

[0060] The image calibrated by affine transformation is loaded into the facial feature map extraction network for comparison, which will return the facial feature map that can be loaded into the feature library. This network structure is the most complex, containing a large number of convolutional layers, and more quantization, dequantization, and pooling layers. The reason for this is that the facial feature map used for comparison requires more refined feature values. This network is less tolerant of errors than the neural network for finding faces and feature points, so the complexity and precision of the network are increased as much as possible within the range allowed by memory.

[0061] (6) Facial features stored in the database

[0062] In the learning mode, the extracted facial feature maps are stored in the database to provide comparison samples.

[0063] (7) Feature comparison

[0064] The real-time acquired facial feature map is compared with the stored facial feature map by Euclidean distance. If it exceeds a certain threshold, it is judged as a different face; if it is within the threshold, it is judged as the same person, thereby achieving identity recognition.

[0065] Mask identification method:

[0066] The mask recognition process is similar to the face search process. Both load the image into the YoloV2 neural network and then extract features through convolution. The difference is that the neural network used for mask recognition integrates two feature maps, one is the feature map of wearing a mask, and the other is the feature map of not wearing a mask. After the network extracts the feature map through a series of convolutions and pooling, it will be compared one by one with the feature map library of wearing a mask and the feature map library of not wearing a mask. Finally, the feature map with the smallest Euclidean distance is found, and the library type and similarity to which the feature map belongs are returned.

[0067] It should be pointed out that, according to the needs of implementation, the various steps / components described in this application can be split into more steps / components, and two or more steps / components or partial operations of steps / components can be combined into new steps / components to achieve the purpose of the present invention.

[0068] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A non-contact temperature measurement and identity recognition system based on temperature measurement, distance measurement sensors and cameras, characterized in that: include: A temperature measurement module, a distance measurement module, an image processing module and a micro control unit, wherein the temperature measurement module and the distance measurement module are connected to the micro control unit via two I2C buses, the micro control unit reads the temperature value of the measurement target from the temperature measurement module, reads the distance value between the temperature measurement module and the measurement target from the distance measurement module, and then uses distance temperature correction to compensate for the temperature measurement error caused by the distance to perform long-distance temperature measurement; The image processing module and the microcontroller unit are connected using a TTL circuit for serial communication, so that the image processing module performs image processing in combination with a camera to achieve feature learning and recognition; The microcontroller unit is used to linearly transform the temperature data obtained from the temperature measurement module into Celsius temperature, and then construct a subtraction compensation model based on the least square method to reduce the error of infrared temperature measurement due to the influence of distance; The microcontroller unit first obtains the measurement error of the temperature measurement module by Δy=y0-y, wherein y is the measured temperature of the temperature measurement module and y0 is the target actual temperature; then polynomial fitting is performed on the obtained Δy to obtain Δy=a0+a1X+a2X 2 , X is the distance value from the temperature measurement module to the measurement target, a0, a1, a2 are polynomial coefficients; a0, a1, a2 are obtained by fitting the distance value obtained by experimental measurement, and the temperature measurement error Δy' is obtained by substituting the distance value currently measured into the fitting equation. Then the corrected temperature is: y0'=y+Δy'; The temperature measurement module is a contactless temperature measurement module, which uses the MLX90614 sensor. The communication interface uses the standard IIC protocol. The microcontroller reads 16-bit temperature data from the internal RAM of the MLX90614 sensor, which contains the ambient temperature data and the temperature data of the object measured by the sensor, and stores them in different RAM addresses respectively. Then, the temperature data at different addresses are read directionally using the IIC protocol. The image processing module uses a K210 chip.

2. The system according to claim 1, characterized in that The image processing module comprises: A face coordinate acquisition unit, used to acquire face coordinates based on a face image acquired from a camera through a first convolutional neural network model; An adjustment unit, used for cutting and adjusting the length and width of the part of the face image containing the face according to the face coordinates to obtain an image to be corrected; A facial feature point extraction unit, used to extract facial feature points including eyes, nose and mouth from the cropped and adjusted image through a second convolutional neural network model; A radiation transformation unit, used for using the facial feature point information of a standard human face as a reference value, and performing an affine transformation on the image to be corrected based on the extracted facial feature points; A facial feature map extraction unit, used for obtaining a facial feature map through a third convolutional neural network model based on the image after affine transformation; A storage unit is used to store the extracted facial feature map into the storage to provide a comparison sample; The feature comparison unit is used to compare the real-time acquired face feature map with the stored face feature map by Euclidean distance. If the distance exceeds a certain threshold, the faces are judged as different people; if the distance is within the threshold, the faces are judged as the same person, thereby realizing identity recognition.

3. The system according to claim 2, characterized in that The face coordinate acquisition unit is used to adopt the YoloV2 network, input the picture captured by the camera into the YoloV2 network, and completely run the YoloV2 network to obtain the coordinate information of all faces in the picture.

4. The system according to claim 2, characterized in that The facial feature point extraction unit is used to load the adjusted facial image into a second convolutional neural network model for extracting facial feature points to obtain feature point coordinates, wherein the second convolutional neural network model has fewer convolutional layers than the first convolutional neural network model, and adds two padding layers and an inverse quantization layer for fine-tuning.

5. The system according to claim 2, characterized in that The facial feature map extraction unit is used to load the image calibrated by affine transformation into a third convolutional neural network model for comparing and extracting facial feature maps, and return a facial feature map that can be loaded into a feature library, wherein the third convolutional neural network model includes a convolution layer, a quantization layer, a dequantization layer, and a pooling layer.

6. The system according to claim 1, characterized in that The image processing module is also used to load the picture acquired by the camera into the fourth convolutional neural network model, and then extract the feature map through convolution, compare it with the feature map library of wearing a mask and the feature map library of not wearing a mask one by one, and finally find the feature map with the smallest Euclidean distance, and return the library type and similarity to which the feature map belongs, wherein the fourth convolutional neural network model includes feature maps of wearing a mask and feature maps of not wearing a mask.

Citation Information

Patent Citations

  • Human body temperature detecting device

    CN110160670A

  • Long-distance human face temperature measurement system based on infrared imaging and implementation method

    CN111486962A

  • Temperature measurement method based on multilayer neural network

    CN111504509A

  • Infrared temperature measurement system and method based on face recognition

    CN111595453A

  • Face recognition system for access control equipment

    CN111611849A