Face temperature measurement method and system, electronic device, and storage medium

By processing a two-dimensional array of facial coordinates and temperature information detected by a camera, combined with a facial tracking algorithm, the problem of temperature measurement error caused by background objects is solved, and higher accuracy facial temperature detection is achieved.

CN115512412BActive Publication Date: 2026-02-06GUANGZHOU GOSUNCN ROBOTICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211167764.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-23
Publication Date
2026-02-06
Estimated Expiration
2042-09-23

AI Technical Summary

Technical Problem

Existing facial temperature measurement methods are prone to false alarms due to similar background object temperatures, resulting in poor accuracy.

Method used

The system detects facial coordinates using a camera, obtains temperature information of the facial region, simplifies it into a two-dimensional array, uses a recursive algorithm to determine the number of adjacent blocks, and performs multiple temperature acquisitions in conjunction with facial tracking to eliminate background interference.

Benefits of technology

It improves the accuracy of facial temperature measurement, effectively eliminates the influence of background on temperature measurement, and ensures the accuracy of temperature detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115512412B_ABST
    Figure CN115512412B_ABST
Patent Text Reader

Abstract

The application discloses a face temperature measurement method and system, electronic equipment and a storage medium. The method comprises the following steps: face detection is performed through a camera to obtain coordinate information of all faces in a current image; temperature information of a face region of each face is obtained, and the temperature information is simplified; one temperature is obtained for each pixel point in the current image, and temperature data of multiple pixel points in the face region is represented by a two-dimensional array; the number of blocks of data 1 and the number of data 1 of any two adjacent data in the two-dimensional array are obtained; preliminary judgment is performed according to the obtained number of blocks and the number, and the face temperature of the current frame is obtained; the face temperature is obtained multiple times in combination with face tracking; and the face temperature result is output. According to the application, the temperature distribution of each pixel point in the face region is accurately obtained, so that the temperature of the current face is more accurate. The face tracking temperature measurement effectively improves the accuracy of the face temperature measurement.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of face temperature measurement, more particularly, to a face temperature measurement method, system, electronic device and storage medium. BACKGROUND

[0002] At present, the existing face temperature measurement method first synchronously acquires the surface temperature of human skin, the ambient temperature and the surface temperature of a marker. Then, according to the acquired ambient temperature and the surface temperature of the marker, it is judged whether the surface temperature of the marker is abnormal. When the surface temperature of the marker is abnormal, the human body temperature is calculated through the ambient temperature and the surface temperature of the human skin. When the surface temperature of the marker is not abnormal, the human body temperature is calculated through the surface temperature of the marker and the surface temperature of the human skin.

[0003] However, the existing face temperature measurement method often only acquires the highest temperature on the face, which may easily cause temperature measurement false alarm due to inaccurate temperature measurement of the device. For some temperature measurement scenes with background objects having a temperature close to the face temperature, when the face is close to the background object, the temperature of the background object will be taken as the temperature of the face, thereby causing temperature measurement false alarm. SUMMARY

[0004] An object of the present application is to provide a new technical solution of a face temperature measurement method, system, electronic device and storage medium, which can at least solve the problems of poor accuracy of the existing face temperature measurement method and easy occurrence of temperature measurement error.

[0005] In a first aspect, the present application provides a face temperature measurement method, comprising the following steps:

[0006] detecting a face through a camera to acquire coordinate information of all faces in a current image captured by the camera;

[0007] acquiring temperature information of a face region of each face in the current image, and simplifying the temperature information of the face region to obtain temperature data of the face region, each pixel point in the current image acquiring a temperature, and the temperature data of multiple pixel points in the face region being represented by a two-dimensional array, wherein the acquired temperature within a set temperature range is recorded as data 1 of the two-dimensional array, and the acquired temperature not within the set temperature range is recorded as data 0 of the two-dimensional array;

[0008] acquiring the number of blocks with any two adjacent data being data 1 in the two-dimensional array and the number of data 1 in each two-dimensional array;

[0009] performing a primary judgment according to the acquired number of blocks and number, and acquiring a face temperature of a current frame;

[0010] obtaining multiple face temperatures in combination with face tracking;

[0011] outputting a face temperature result according to the face temperature obtaining result.

[0012] Optionally, the step of detecting faces by the camera to obtain coordinate information of all faces in a current image captured by the camera comprises:

[0013] obtaining a visible light image;

[0014] obtaining all face coordinate information in the current image by a face detection algorithm.

[0015] Optionally, the step of obtaining temperature information of a face region of each face in the current image and simplifying the temperature information of the face region comprises:

[0016] corresponding the face coordinate information to a face region in the infrared thermal imaging image; the face region is Rect(x0, y0, w0, h0), wherein x0 and y0 are coordinates of a top-left corner of the face, w0 is a pixel width of the face, and h0 is a pixel height of the face;

[0017] using a two-dimensional array T[w0][h0] to represent temperature data of the face region;

[0018] simplifying face data of the two-dimensional array T[w0][h0] to obtain a two-dimensional array data of simplified t[w0][h0].

[0019] Optionally, the step of obtaining a number of blocks of data 1 and a number of data 1 in each block in the two-dimensional array comprises:

[0020] using a recursive algorithm to recursively judge the two-dimensional array t[w0][h0];

[0021] obtaining a number of blocks of data 1 and a number of data 1 in each block in the two-dimensional array t[w0][h0].

[0022] Optionally, a formula for the initial judgment according to the calculated number of blocks and the number of data 1 is:

[0023]

[0024] wherein N is a total number of 1 in the blocks of adjacent 1, w0 is a pixel width of the face, h0 is a pixel height of the face, and F is a threshold value.

[0025] Optionally, the step of obtaining multiple face temperatures in combination with face tracking comprises:

[0026] Obtaining a temperature value of a face in a frame of image;

[0027] Obtaining a plurality of frames of face temperature through face tracking;

[0028] Determining whether the plurality of frames of face temperature is consistent with the temperature value of the face, if consistent, the plurality of frames of face temperature is the accurate temperature value of the face, if inconsistent, excluding the abnormal face temperature of individual frame.

[0029] Optionally, according to the obtaining result of the face temperature, the step of outputting the face temperature result comprises:

[0030] Calculating the average value of the face temperature.

[0031] The second aspect of the present application provides a face temperature measurement system, which is applied to the face temperature measurement method in the above-mentioned embodiments, and the face temperature measurement system comprises:

[0032] A first obtaining module, which is used for obtaining all face coordinate information in a current image;

[0033] A second obtaining module, which is connected with the first obtaining module and is used for obtaining temperature information of a face region;

[0034] A simplifying module, which is connected with the second obtaining module and is used for simplifying the temperature information of the face region;

[0035] A third obtaining module, which is connected with the simplifying module and is used for obtaining the number of blocks with data 1 and the number of data 1 in each block in the two-dimensional array;

[0036] A judging module, which is connected with the third obtaining module and is used for performing a primary judgment on the calculated number of blocks and the number of data 1 to obtain the face temperature of the current frame;

[0037] A face tracking module, which is connected with the judging module and is used for tracking and obtaining a plurality of face temperatures;

[0038] An output module, which is connected with the face tracking module and is used for outputting a face temperature result.

[0039] The third aspect of the present application provides an electronic device, which comprises a processor and a memory, and computer program instructions are stored in the memory, wherein when the computer program instructions are run by the processor, the processor executes the steps of the face temperature measurement method in the above-mentioned embodiments.

[0040] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program, when executed by a processor, causes the processor to perform the steps of the face temperature measurement method according to any one of the above embodiments.

[0041] The face temperature measurement method according to the present application can accurately obtain the temperature of a current face by analyzing the temperature distribution of each pixel point in the face region. The face tracking temperature measurement can be used to detect and analyze the temperature of a dynamic face, which can eliminate the influence of the background on the face temperature measurement and effectively improve the accuracy of the face temperature measurement.

[0042] Other features and advantages of the present application will become apparent from the following detailed description of illustrative embodiments thereof, which proceeds with reference to the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS

[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and, together with the description, serve to explain the principles of the application.

[0044] Figure 1 is a face temperature measurement method according to an embodiment of the present application;

[0045] Figure 2 is a face region temperature data simplified diagram of the face temperature measurement method according to an embodiment of the present application;

[0046] Figure 3 is a working principle diagram of an electronic device according to an embodiment of the present application. BRIEF DESCRIPTION OF DRAWINGS

[0048] The processor 201;

[0049] The memory 202; the operating system 2021; the application program 2022;

[0050] The network interface 203;

[0051] The input device 204;

[0052] The hard disk 205;

[0053] The display device 206. DETAILED DESCRIPTION

[0054] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Note that the relative arrangement, numerical expressions, and numerical values of the components and steps set forth in these embodiments are not limiting to the scope of the present application unless otherwise specifically stated.

[0055] The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the application or its application and uses.

[0056] Techniques, methods, and apparatus known to those of ordinary skill in the relevant art can not be discussed in detail herein. However, where appropriate, such techniques, methods, and apparatus should be considered as being part of the specification.

[0057] In all of the examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as a limitation. Thus, other examples of exemplary embodiments can have different values.

[0058] It should be noted that like reference numerals and letters refer to like items throughout the attached drawings, and once an item is defined in one drawing, it is not necessary to discuss it further in subsequent drawings.

[0059] The face temperature measurement method according to the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0060] As shown in the drawings, the face temperature measurement method according to the embodiments of the present application includes the following steps: Figure 1

[0061] S1, face detection is performed by a camera to obtain coordinate information of all faces in a current image captured by the camera;

[0062] S2, temperature information of a face region of each face in the current image is obtained, and the temperature information of the face region is simplified to obtain temperature data of the face region, one temperature is obtained for each pixel point in the current image, and temperature data of multiple pixel points in the face region is represented by a two-dimensional array; wherein the obtained temperature within a set temperature range is recorded as data 1 of the two-dimensional array, and the obtained temperature outside the set temperature range is recorded as data 0 of the two-dimensional array;

[0063] S3, the number of blocks with any two adjacent data being data 1 in the two-dimensional array and the number of data 1 in each block are obtained;

[0064] S4, a preliminary judgment is made according to the obtained block number and the number, and a face temperature of the current frame is obtained;

[0065] S5, multiple face temperatures are obtained in combination with face tracking;

[0066] S6, a face temperature result is output according to the obtained face temperature result.

[0067] In other words, the face temperature measurement method according to the embodiments of the present application is applicable to various scenes, including stationary and moving scenes, and can realize the function of patrol temperature measurement in combination with a patrol robot. In the face temperature measurement method according to the present application,​Figure 1 Firstly, face detection can be performed by a camera (for example, a visible light high-definition camera) to obtain coordinate information of all faces in a current image captured by the camera. Then, temperature information of a face region of each face in the current image can be obtained by an infrared thermal imaging camera, and the temperature information of the face region is simplified to obtain temperature data of the face region. Each pixel point in the current image obtains a temperature, and the temperature data of multiple pixel points in the face region is represented by a two-dimensional array. Among them, the obtained temperature within a set temperature range is recorded as data 1 of the two-dimensional array, and the obtained temperature outside the set temperature range is recorded as data 0 of the two-dimensional array. Then, the number of blocks with data 1 adjacent to each other in the two-dimensional array and the number of data 1 in each block can be obtained. The initial judgment is performed according to the obtained block number and the number, and the face temperature of the current frame is obtained.

[0068] Meanwhile, the face temperature is obtained multiple times in combination with face tracking, the face temperature value is effectively obtained through multiple screening of the temperature data of the face region, and the face temperature value is more accurate than the highest temperature of the face region obtained by ordinary means. Meanwhile, through the face temperature detection of dynamic face tracking, the temperature false alarm caused by the background can be effectively excluded. Finally, the face temperature result can be output according to the obtained face temperature result. According to the single-frame accurate detection and multi-frame dynamic detection, the situation that the background is considered to affect the face detection is excluded, and the accuracy of the face detection is improved.

[0069] Therefore, according to the face temperature measurement method of the embodiment of the application, the temperature distribution of each pixel point in the face region is accurately obtained to obtain the more accurate temperature of the current face. Through the face tracking temperature measurement, the temperature of the dynamic face is detected and counted, and the influence of the background on the face temperature measurement can be excluded through the dynamic temperature measurement method, so that the accuracy of the face temperature measurement is effectively improved.

[0070] According to an embodiment of the application, the step of face detection by a camera to obtain coordinate information of all faces in a current image captured by the camera includes:

[0071] obtaining a visible light image;

[0072] obtaining all face coordinate information in the current image by a face detection algorithm.

[0073] That is, in the process of face detection by a camera to obtain coordinate information of all faces in a current image captured by the camera, firstly, a visible light image can be obtained by a visible light high-definition camera. Then, all face coordinate information in the current image can be obtained by a face detection algorithm.

[0074] According to one embodiment of the present application, the step of acquiring temperature information of a face region in an infrared thermal imaging camera and simplifying the temperature information of the face region includes:

[0075] corresponding the face coordinate information to the face region in the infrared thermal imaging image; the face region is Rect(x0, y0, w0, h0), wherein x0 and y0 are the top-left coordinates of the face, w0 is the pixel width of the face, and h0 is the pixel height of the face;

[0076] using a two-dimensional array T[w0][h0] to represent the temperature data of the face region;

[0077] simplifying the face data of the two-dimensional array T[w0][h0] to obtain the two-dimensional array data of the simplified t[w0][h0].

[0078] In other words, in the process of acquiring temperature information of a face region in an infrared thermal imaging camera and simplifying the temperature information of the face region, the face coordinate information can be corresponded to the face region in the infrared thermal imaging image; the face region is Rect(x0, y0, w0, h0), wherein x0 and y0 are the top-left coordinates of the face, w0 is the pixel width of the face, and h0 is the pixel height of the face. Then, a two-dimensional array T[w0][h0] is used to represent the temperature data of the face region. Finally, the face data of the two-dimensional array T[w0][h0] is simplified, as shown in Figure 2 , to obtain the two-dimensional array data of the simplified t[w0][h0].

[0079] Specifically, it is assumed that the face detection information in step S1 corresponds to a region Rect(x0, y0, w0, h0) in the infrared thermal imaging image, wherein x0 and y0 are the top-left coordinates of the face, w0 is the pixel width of the face, and h0 is the pixel height of the face.

[0080] The temperature data of the face region is acquired by the infrared thermal imaging camera, and each pixel point can acquire a temperature, and there are a total of w0*h0 temperature data, which can be represented by a two-dimensional array T[w0][h0] to represent the temperature data of the face region.

[0081] The face temperature data of the two-dimensional array T[w0][h0] is simplified. Since the temperature range when the human body generates heat is in the range of 37.5-42℃, each temperature data of the two-dimensional array T[w0][h0] is compared with the temperature range when the human body generates heat. If it is in the 37.5-42℃ region, it is represented by 1, and if it is not in the 37.5-42℃ region, it is represented by 0. As shown in Figure 2 , the two-dimensional array data of t[w0][h0] is obtained by simplifying the temperature data.

[0082] In some embodiments of the present application, the step of obtaining the number of blocks of data 1 and the number of data 1 in each block in any two adjacent data in the two-dimensional array includes:

[0083] The recursive algorithm is used to recursively judge the two-dimensional array t[w0][h0];

[0084] The number of blocks of data 1 and the number of data 1 in each block in the two-dimensional array t[w0][h0] are obtained.

[0085] That is, in the process of obtaining the number of blocks of data 1 and the number of data 1 in each block in the two-dimensional array, the recursive algorithm can be used to recursively judge the two-dimensional array t[w0][h0], and then the number of blocks of data 1 (denoted by B) and the number of data 1 (denoted by N) in each block in the two-dimensional array t[w0][h0] are obtained. The recursive algorithm is as follows:

[0086]

[0087] Where area(i)(j) is a function of the recursive algorithm, i and j are parameters, 0≤i<w0, 0≤j<h0, B is the number of blocks of data 1 in the entire two-dimensional array t[w0][h0], and N is the number of data 1 in each block.

[0088] According to one embodiment of the present application, the formula for the initial judgment according to the calculated number of blocks and the number of data 1 is:

[0089]

[0090] Where N is the total number of data 1 in the block of data 1, w0 is the pixel width of the face, h0 is the pixel height of the face, and F is the threshold value.

[0091] That is, the total number of data 1 N in the block of data 1 can be considered as the number of pixels, and the range of N is 0<N<w0*h0, and a threshold value F is set here. When the condition is met, it is considered that there may be a face heat situation, and the data in the block is normal and valid data, and the face temperature in the current frame can be determined by the average value of the face temperature in the block. If the condition is not met, the data in the block is considered to be invalid data, and the data in the block is ignored. If there is no abnormal temperature block in the entire face region, it is considered that the face temperature in the frame is normal, and the face temperature can be taken as the maximum value of the temperature in the face region. The larger the threshold value F, the more accurate the detection of the abnormal face temperature.

[0092] According to one embodiment of the present application, the step of acquiring multiple face temperatures in combination with face tracking includes:

[0093] Acquiring a temperature value of a face in an image frame;

[0094] Detecting multiple frames of face temperatures through face tracking;

[0095] Determining whether the detection of multiple frames of face temperatures is consistent with the temperature value of the face, if consistent, the multiple frames of face temperatures are accurate temperature values of the face; if not consistent, excluding abnormal face temperatures of individual frames.

[0096] In other words, an accurate temperature value of a face in an image frame is acquired, but the influence of the background on the face temperature detection cannot be excluded. Therefore, face tracking is needed to acquire multiple frames of the detection of the face temperature through face tracking. Due to the dynamic detection feature, if the face is indeed in a temperature abnormality situation, the face temperatures detected through multiple face tracking detections are basically consistent, and there is no situation that only individual frames are temperature abnormality and most frames are temperature normality. On the contrary, if only individual frames are abnormal situation and most frames are temperature normality in the multiple face tracking detections, it can be considered that it is the influence of the background, and the situation of individual frame temperature abnormality is excluded.

[0097] According to one embodiment of the present application, the step of outputting a face temperature result according to the acquisition result of the face temperature includes:

[0098] Calculating an average value of the face temperature.

[0099] That is, in the process of outputting a face temperature result according to the acquisition result of the face temperature, the single frame accurate detection and the multiple frame dynamic detection, and the exclusion of the situation that the background influence is considered in the multiple frame process, the average value of the face temperature in the face tracking process is calculated, that is, the temperature value T of the current face temperature measurement, as shown in the following formula:

[0100]

[0101] Wherein, n is the number of dynamic face detection, and Ti is the value of each face detection.

[0102] In summary, according to the face temperature measurement method of the embodiment of the present application, the temperature of the current face is accurately acquired by the temperature distribution of each pixel point in the face area. And through the face tracking temperature measurement, the temperature detection statistics of the dynamic face can exclude the influence of the background on the face temperature measurement, and effectively improve the accuracy of the face temperature measurement.

[0103] According to a second aspect of the present application, a face temperature measurement system is provided, which is applied to the face temperature measurement method of the above-mentioned embodiments. The face temperature measurement system comprises a first acquisition module, a second acquisition module, a simplification module, a third acquisition module, a judgment module, a face tracking module and an output module.

[0104] Specifically, the first acquisition module is configured to acquire all face coordinate information in a current image. The second acquisition module is connected with the first acquisition module and is configured to acquire temperature information of a face region. The simplification module is connected with the second acquisition module and is configured to simplify the temperature information of the face region. The third acquisition module is connected with the simplification module and is configured to acquire a number of blocks in which any two adjacent data are data 1 in a two-dimensional array and a number of data 1 in the number of blocks in each two-dimensional array. The judgment module is connected with the third acquisition module and is configured to perform a primary judgment on the calculated number of blocks and number of data 1 to acquire a face temperature of a current frame. The face tracking module is connected with the judgment module and is configured to track and acquire a plurality of face temperatures. The output module is connected with the face tracking module and is configured to output a face temperature result.

[0105] In summary, according to the face temperature measurement system of the embodiments of the present application, the temperature of the current face can be accurately acquired by accurately acquiring the temperature distribution of each pixel point in the face region. The face tracking temperature measurement can be used to detect and count the temperature of a dynamic face. The dynamic temperature measurement method can eliminate the influence of the background on the face temperature measurement and effectively improve the accuracy of the face temperature measurement.

[0106] According to a third aspect of the present application, an electronic device is provided, which comprises a processor 201 and a memory 202, and the memory 202 stores computer program instructions. When the computer program instructions are run by the processor 201, the processor 201 performs the steps of the face temperature measurement method of the above-mentioned embodiments.

[0107] Further, as shown in Figure 3 the electronic device further comprises a network interface 203, an input device 204, a hard disk 205 and a display device 206.

[0108] The various interfaces and devices described above can be interconnected through a bus architecture. The bus architecture can include any number of interconnecting buses and bridges. Various circuits can be connected to one or more central processing units (CPU) represented by the processor 201, along with various memories represented by the memory 202. The bus architecture also can include various other circuits such as peripheral devices, voltage regulators, and power management circuits. It is to be understood that the bus architecture is used to facilitate communication over the system bus among the components. The bus architecture includes a data bus to facilitate the transfer of data, a control bus to facilitate the transfer of control information, and a state signal bus to facilitate the transfer of status information. These buses are well known in the art, and accordingly, they will not be described in detail herein.

[0109] The network interface 203 can be connected to a network (e.g., the Internet, a local area network, etc.) to obtain relevant data from the network and store the data in the hard disk 205.

[0110] The input device 204 can receive various instructions input by an operator and send the instructions to the processor 201 for execution. The input device 204 can include a keyboard or a pointing device (e.g., a mouse, a trackball, a touchpad, or a touchscreen).

[0111] The display device 206 can display the results obtained by the processor 201 executing the instructions.

[0112] The memory 202 can store programs and data necessary for the operation of the operating system 2021, as well as intermediate results and other data during the computation of the processor 201.

[0113] It is to be understood that the memory 202 in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM) used as an external cache. The memory 202 of the apparatus and method described herein is intended to include, but is not limited to, these and any other suitable type of memory 202.

[0114] In some embodiments, the memory 202 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof: an operating system 2021 and an application program 2022.

[0115] The operating system 2021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application program 2022 includes various application programs 2022, such as a browser and the like, for implementing various application services. The program implementing the method of the embodiment of the present application can be included in the application program 2022.

[0116] The processor 201 described above, when calling and executing the application program 2022 and data stored in the memory 202, specifically, the program or instruction stored in the application program 2022, executes the steps of the face temperature measurement method according to the above embodiment.

[0117] The method disclosed in the above embodiment of the present application can be applied to the processor 201 or implemented by the processor 201. The processor 201 can be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method can be completed by the integrated logic circuit or the instruction in the form of software in the processor 201. The processor 201 described above can be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application. The general processor can be a microprocessor or the processor 201 can also be any conventional processor 201 and the like. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware coding processor for execution, or a combination of hardware and software modules in the coding processor. The software module can be located in the random access memory, the flash memory, the read only memory, the programmable read only memory or the electrically erasable programmable memory, the register or other mature storage medium in the art. The storage medium is located in the memory 202, and the processor 201 reads the information in the memory 202 and combines the hardware to complete the steps of the above method.

[0118] It can be understood that the embodiments described herein can be realized by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for executing functions of the present application or a combination thereof.

[0119] For software implementation, the techniques herein can be implemented by means of a module for performing the function, such as procedures, functions, and so on. Software codes can be stored in the memory 202 and executed by the processor 201. The memory 202 can be implemented in the processor 201 or outside the processor 201.

[0120] In particular, the processor 201 is further configured to read a computer program, and execute the following steps: predicting and outputting answers to questions raised by users in the pile charging method.

[0121] The fourth aspect of the present application further provides a computer readable storage medium, which stores a computer program. When the computer program is run by the processor 201, the processor 201 executes the steps of the face temperature measurement method of the above-mentioned embodiments.

[0122] In several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. In actual implementation, there can be another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0123] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically included separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of hardware plus software functional unit.

[0124] The integrated unit realized in the form of software functional unit can be stored in a computer readable storage medium. The software functional unit stored in a storage medium includes a plurality of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute part of the steps of the transmitting and receiving method of each embodiment of the present application. The storage medium mentioned above includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0125] While certain specific embodiments of the application have been described in detail herein for the purposes of exemplification and to provide a thorough and enabling disclosure, it will be understood that the application is not limited to the particular embodiments described. Any modifications of the methods and materials described herein, which come within the scope and spirit of the application, are to be considered within the scope of the application. The scope of the application is to be determined by the claims appended hereto, which are to be construed in accordance with the principles of patent law.

Claims

1. A face temperature measurement method, characterized by, The method comprises the following steps: detecting a face through a camera to obtain coordinate information of all faces in a current image captured by the camera; obtaining temperature information of a face region of each face in the current image, and simplifying the temperature information of the face region to obtain temperature data of the face region, each pixel point in the current image obtaining a temperature, and temperature data of multiple pixel points in the face region being represented by a two-dimensional array, wherein a temperature obtained within a set temperature range is recorded as data 1 of the two-dimensional array, and a temperature not within the set temperature range is recorded as data 0 of the two-dimensional array; the set temperature range is 37.5-42℃; obtaining the number of blocks of data 1 and the number of data 1 in each of the two-dimensional arrays from any two adjacent data 1 in the two-dimensional arrays; using a recursive algorithm to recursively judge the two-dimensional arrays to obtain the number of blocks and the number of data 1, the recursive algorithm satisfying: , wherein area(i)(j) is a function of a recursive algorithm, i and j are parameters, 0≤i<w0, 0≤j<h0, B is the number of blocks in the entire two-dimensional array t[w0][h0] adjacent to 1 in the upper, lower, left and right directions, and N is the number of 1 in each block; w0 is the pixel width of the face, and h0 is the pixel height of the face; According to the number of blocks and the number of people, a preliminary judgment is made, and the face temperature of the current frame is obtained; the formula of the preliminary judgment is: , wherein N is the total number of 1 in the blocks adjacent to 1, and F is a threshold value; obtaining multiple face temperatures in combination with face tracking; outputting a face temperature result according to the face temperature obtaining result.

2. The face temperature measurement method of claim 1, wherein, The step of detecting a face through a camera to obtain coordinate information of all faces in a current image captured by the camera comprises: obtaining a visible light image; obtaining all face coordinate information in the current image through a face detection algorithm.

3. The face temperature measurement method of claim 1, wherein, The step of obtaining temperature information of a face region of each face in the current image and simplifying the temperature information of the face region comprises: corresponding the face coordinate information to a face region in an infrared thermal imaging image; the face region is Rect(x0, y0, w0, h0), wherein x0 and y0 are the coordinates of the top-left corner of the face, w0 is the pixel width of the face, and h0 is the pixel height of the face; using a two-dimensional array T[w0][h0] to represent the temperature data of the face region; simplifying the face data of the two-dimensional array T[w0][h0] to obtain the two-dimensional array data of the simplified t[w0][h0].

4. The face temperature measurement method of claim 1, wherein, The step of obtaining multiple face temperatures in combination with face tracking comprises: obtaining a temperature value of a face in an image; obtaining multiple face temperature detections through face tracking; determining whether the multiple face temperature detections are consistent with the temperature value of the face, if consistent, the multiple face temperatures are accurate temperature values of the face, and if inconsistent, excluding abnormal face temperatures of individual frames.

5. The method of claim 1, wherein, The step of outputting a face temperature result according to the face temperature obtaining result comprises: calculating the average value of the face temperature.

6. A human face temperature measurement system applied to the human face temperature measurement method of any one of claims 1-5, characterized in that, The face temperature measurement system comprises: a first obtaining module, configured to obtain all face coordinate information in a current image; a second obtaining module, connected with the first obtaining module, configured to obtain temperature information of a face region; the temperature of each pixel point in the face region temperature information covers a temperature range of 37.5-42℃. A simplification module is connected with the second acquisition module, and is configured to simplify the temperature information of the face region; temperature within the range of 37.5-42℃ is recorded as two-dimensional array data 1, and temperature out of the range is recorded as data 0, to obtain a simplified two-dimensional array t[w0][h0]; A third acquisition module is connected with the simplification module, and is configured to acquire the number of blocks with any two adjacent data being data 1 in the two-dimensional array and the number of data 1 in each of the two-dimensional arrays; A judging module connected with the third obtaining module, the judging module being configured to perform a primary judgment on the calculated block number and the number of 1s to obtain the face temperature of the current frame; the formula of the primary judgment being: wherein, N is the total number of 1s in the block number adjacent to 1, and F is a threshold value; the primary judgment is performed on the calculated block number and the number of 1s to obtain the face temperature of the current frame. A face tracking module is connected with the judgment module, and is configured to track and acquire the temperature of the face multiple times; An output module is connected with the face tracking module, and is configured to output the face temperature result.

7. An electronic device, comprising: The processor and the memory, wherein the memory stores computer program instructions, wherein when the computer program instructions are run by the processor, the processor executes the steps of the face temperature measurement method in any one of claims 1-5. The computer readable storage medium stores a computer program, and when the computer program is run by the processor, the processor executes the steps of the face temperature measurement method in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, ​

Citation Information

Patent Citations

  • Temperature measurement method and device, computer storage medium and electronic device

    CN111323125A

  • Personnel body temperature measurement method and system, computer storage medium and electronic equipment

    CN111426388A

  • Body temperature measuring method and device based on infrared image face detection

    CN111579083A