A method, device, medium and electronic equipment for detecting human body temperature

By establishing the mapping relationship between the thermopile matrix and the picture pixels and the temperature correction process, the inaccuracy problem of traditional infrared temperature measurement in high temperature environments is solved, and the accuracy of human body temperature measurement results and the reliability of the access control system are achieved.

CN114061764BActive Publication Date: 2024-10-01ZHEJIANG UNIVIEW TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010732184.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-27
Publication Date
2024-10-01
Estimated Expiration
2040-07-27

AI Technical Summary

Technical Problem

Traditional infrared temperature measurement methods lead to inaccurate human body temperature measurement results in high temperature or heat source environments, affecting the accuracy and widespread promotion of access control systems.

Method used

By establishing the mapping relationship between the thermopile matrix points and the picture pixels, the detection area and relative position of the detection target are identified, the temperature reading point is corrected, and the average value and cache processing of multiple basic temperature values ​​are used to ensure that the temperature difference is within Set the threshold value to improve the accuracy of temperature measurement results.

Benefits of technology

It improves the environmental adaptability of human body temperature measurement, ensures the accuracy of temperature measurement results, reduces manual intervention, and enhances the reliability and scope of application of the access control system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114061764B_ABST
    Figure CN114061764B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method, device, medium and electronic device for detecting human body temperature. The method includes: establishing a mapping relationship between thermopile matrix points and screen pixels at preset distances; if a detection target is identified according to the screen pixels, determining the detection area of ​​the detection target, and determining the measured distance of the detection area; determining the temperature reading point of the detection area according to the measured distance; determining the detection result of human body temperature according to the temperature value obtained by the thermopile at the temperature reading point. By executing this scheme, the environmental adaptability of human body temperature measurement can be improved to ensure the accuracy of the temperature measurement result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of image processing technology, and in particular to a method, device, medium and electronic device for detecting human body temperature. Background Art

[0002] With the rapid development of science and technology, people are paying more and more attention to efficient non-contact human body temperature measurement. For areas with large traffic, if fast and accurate human body temperature measurement can be achieved, the monitoring of abnormal human body temperature will be greatly improved. At present, there are plans to apply thermopile technology for human body temperature measurement to access control identification terminals, which can perform both face recognition and human body temperature measurement. However, due to a common problem in traditional infrared temperature measurement methods, that is, when there is a high temperature or a heat source within the temperature measurement range, the human body temperature measurement results will be inaccurate or even abnormal. This makes the process of face recognition and temperature measurement in the access control system greatly restricted by environmental factors, and abnormal response measures often require manual intervention, which cannot be widely promoted and used. Summary of the invention

[0003] The embodiments of the present application provide a method, device, medium and electronic device for detecting human body temperature, which can improve the environmental adaptability of human body temperature measurement to ensure the accuracy of temperature measurement results.

[0004] In a first aspect, an embodiment of the present application provides a method for detecting human body temperature, the method comprising:

[0005] Establishing a mapping relationship between the thermopile matrix points and the picture pixels at every preset distance;

[0006] If the detection target is identified according to the picture pixel points, the detection area of ​​the detection target is determined, and the measured distance of the detection area is determined;

[0007] Determine the temperature reading point in the detection area according to the measured distance;

[0008] The detection result of the human body temperature is determined according to the temperature value obtained by the thermopile at the temperature reading point.

[0009] Furthermore, after establishing a mapping relationship between the thermopile matrix points and the picture pixels at every preset distance, the method further includes:

[0010] The background temperature of each pixel in the picture is obtained by the thermopile matrix points;

[0011] If the detection target is identified according to the picture pixel points, the relative position of the detection target is determined; and, when a sudden change in the background temperature is identified, the matrix check point position is determined;

[0012] According to the relative position of the detection target, the verification distance corresponding to the matrix verification point position is corrected.

[0013] Furthermore, after obtaining the background temperature of each pixel point of the picture from the thermopile matrix point, the method further includes:

[0014] If at least two detection targets are identified based on the picture pixels, and the relative positions of the detection targets are the same, the average value of the verification distances corresponding to the matrix verification points of the at least two detection targets is taken as the matrix verification result.

[0015] Furthermore, the background temperature of each pixel in the picture is obtained by the thermopile matrix point, including:

[0016] determining whether a background temperature has been generated;

[0017] If it does not exist, continuously collect the first basic temperature value for a preset number of times;

[0018] If the fluctuation between the first basic temperature values ​​is less than a preset threshold value, the average value of the first basic temperature values ​​is determined as the background temperature.

[0019] Further, after determining whether the background temperature has been generated, the method further includes:

[0020] If it exists, the generated background temperature is obtained, and the second basic temperature value is continuously collected for a preset number of times;

[0021] determining a temperature difference between an average of the second base temperature values ​​and the background temperature;

[0022] If the temperature difference is less than the set difference threshold, the background temperature is updated with the average value of the second basic temperature value.

[0023] Further, after determining the temperature difference between the average value of the second basic temperature value and the background temperature, the method further includes:

[0024] If the temperature difference is greater than a set difference threshold, the average value of the second basic temperature value is cached;

[0025] and continuously collecting the third basic temperature values ​​for a preset number of times to determine an average value of the third basic temperature values;

[0026] If the difference between the average value of the third basic temperature value and the average value of the cached second basic temperature value is less than a set difference threshold, the background temperature is updated with the average value of the third basic temperature value.

[0027] Furthermore, after determining the average value of the third basic temperature value, the method further includes:

[0028] If the difference between the average value of the third basic temperature value and the average value of the cached second basic temperature value is greater than a set difference threshold, the average value of the third basic temperature value is cached.

[0029] In a second aspect, an embodiment of the present application provides a device for detecting human body temperature, the device comprising:

[0030] A mapping relationship building module is used to establish a mapping relationship between thermopile matrix points and picture pixels at every preset distance;

[0031] A measured distance determination module is used to determine a detection area of ​​the detection target and a measured distance of the detection area if a detection target is identified according to the picture pixels;

[0032] A temperature reading point determination module is used to determine the temperature reading point of the detection area according to the measured distance;

[0033] The detection result output unit is used to determine the detection result of the human body temperature according to the temperature value obtained by the thermopile at the temperature reading point.

[0034] In a third aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for detecting human body temperature as described in the embodiment of the present application is implemented.

[0035] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for detecting human body temperature as described in the embodiment of the present application is implemented.

[0036] The technical solution provided in the embodiment of the present application establishes a mapping relationship between the thermopile matrix points and the picture pixel points at preset distances; if the detection target is identified according to the picture pixel points, the detection area of ​​the detection target is determined, and the measured distance of the detection area is determined; according to the measured distance, the temperature reading point of the detection area is determined; according to the temperature value obtained by the thermopile at the temperature reading point, the detection result of the human body temperature is determined. By adopting the technical solution provided by the present application, the environmental adaptability of human body temperature measurement can be improved to ensure the accuracy of the temperature measurement result. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 is a flow chart of a method for detecting human body temperature provided in an embodiment of the present application;

[0038] Figure 2 It is a schematic diagram of the detection distance of the human body temperature detection process provided by the embodiment of the present application;

[0039] Figure 3 It is a schematic diagram of the mapping relationship of the human body temperature detection process provided in the embodiment of the present application;

[0040] Figure 4 is a flowchart of a mapping relationship correction process provided by an embodiment of the present application;

[0041] Figure 5 It is a flow chart of background temperature construction provided in the embodiment of the present application;

[0042] Figure 6 is a structural schematic diagram of a human body temperature detection device provided in an embodiment of the present application;

[0043] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.

[0045] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0046] Figure 1 It is a flow chart of the human body temperature detection method provided in the embodiment of the present application. The present embodiment can be applicable to the situation of human body temperature detection. The method can be executed by the human body temperature detection device provided in the embodiment of the present application. The device can be implemented by software and / or hardware and can be integrated into an electronic device with corresponding computing capabilities.

[0047] like Figure 1 As shown, the method for detecting human body temperature includes:

[0048] S110, establishing a mapping relationship between thermopile matrix points and picture pixels at every preset distance.

[0049] The thermopile matrix points may be a matrix composed of thermopile sensors, which may include at least two rows and at least two columns of thermopile sensors, for example, a matrix composed of 640 columns and 480 rows of pixels. The thermopile sensor is a pyroelectric infrared sensor, which is a device composed of thermocouples. It has been widely used as a temperature detection device in the fields of ear thermometers, radiation thermometers, electric ovens, food temperature detection, etc.

[0050] The thermopile matrix point position can be for a thermopile matrix, each thermopile sensor in it is numbered, and the point position of the thermopile sensor corresponding to each number in the matrix is ​​obtained. Since the camera and the thermopile matrix are set at different positions in the image temperature measurement device, the corresponding relationship between each pixel and the thermopile matrix point position is different at different measurement distances due to the difference between the visible light area and the temperature measurement area.

[0051] Figure 2 Schematic diagram of the detection distance of the human body temperature detection process provided by the embodiment of the present application. Figure 2 As shown, as the distance changes, the mapping relationship between the thermopile matrix points and the picture pixels is constantly changing. Therefore, the preset distance can be set to 10 cm, or a shorter distance, to construct the mapping relationship between the thermopile matrix points and the picture pixels at different detection distances.

[0052] Figure 3 Schematic diagram of the mapping relationship of the human body temperature detection process provided by the embodiment of the present application. Figure 3 As shown, for different distances, the correspondence between each pixel point of the image obtained by the visible light lens, such as pixel point (0,0), pixel point (0,1) and all other pixel points and the point position of the thermopile matrix can be expressed. Among them, the coordinates of the temperature measurement point can be the serial number of the thermopile sensor in the thermopile matrix. After completing the 30 cm mapping table statistics, the 40 cm mapping table statistics can be performed.

[0053] S120: If a detection target is identified according to the picture pixels, a detection area of ​​the detection target is determined, and a measured distance of the detection area is determined.

[0054] The detection target may be a person or a face. Specifically, when a face is recognized, it may be determined that the detection target is recognized in the pixels of the image. In this solution, the forehead of a person may be determined as the detection area. Specifically, the positions of the two pupils in the face may be calculated, and the position of the forehead may be determined according to the positions of the pupils.

[0055] In this solution, the distance between the face and the lens can be determined based on the pupil distance in the visible light image.

[0056] S130. Determine a temperature reading point in the detection area according to the measured distance.

[0057] After determining the distance and the position of the pixel point of the forehead in the visible light image, the position of the temperature measurement point can be determined. For example, if the detection area in the visible light is a rectangle, the pixel point range of the area in the visible light image can be determined by determining the coordinates of the upper left corner pixel point of the area in the visible light, as well as the length and width of the rectangle.

[0058] After obtaining the pixel range, the temperature reading points in the detection area can be determined based on the measured distance and the predetermined mapping relationship between the thermopile matrix points and the picture pixels, that is, the data measured by which thermopile sensors need to be read.

[0059] S140, determining a detection result of the human body temperature according to the temperature value obtained by the thermopile at the temperature reading point.

[0060] By reading the temperature value collected by the thermopile sensor of the corresponding potential, the temperature values ​​corresponding to all the pixels in the detection area can be determined. Then, the average value of all the temperature values ​​in the detection area can be determined by averaging, which is the detection result of the human body temperature.

[0061] The technical solution provided in the embodiment of the present application establishes a mapping relationship between the thermopile matrix points and the picture pixel points at preset distances; if the detection target is identified according to the picture pixel points, the detection area of ​​the detection target is determined, and the measured distance of the detection area is determined; according to the measured distance, the temperature reading point of the detection area is determined; according to the temperature value obtained by the thermopile at the temperature reading point, the detection result of the human body temperature is determined. By adopting the technical solution provided by the present application, the environmental adaptability of human body temperature measurement can be improved to ensure the accuracy of the temperature measurement result.

[0062] On the basis of the above technical solution, optionally, after establishing a mapping relationship between the thermopile matrix points and the picture pixels at every preset distance, the method further includes:

[0063] The background temperature of each pixel in the picture is obtained by the thermopile matrix points;

[0064] If the detection target is identified according to the picture pixel points, the relative position of the detection target is determined; and, when a sudden change in the background temperature is identified, the matrix check point position is determined;

[0065] According to the relative position of the detection target, the verification distance corresponding to the matrix verification point position is corrected.

[0066] Figure 4: is a flowchart of the mapping relationship correction process provided by the embodiment of the present application. Figure 4 As shown, the method includes:

[0067] S410, establishing a mapping relationship between thermopile matrix points and picture pixels at every preset distance.

[0068] S420, obtaining the background temperature of each pixel point in the picture from the thermopile matrix points.

[0069] If no human face enters the temperature measurement range, all thermopile sensors in the thermopile matrix obtain the background temperature. Since the background in the environment is often fixed and the temperature changes slowly, the background temperature of each position can be determined in advance when no person enters the temperature measurement range, thereby avoiding the background temperature from interfering with the human body temperature detection in the subsequent temperature measurement.

[0070] S430: If a detection target is identified according to the picture pixel points, the relative position of the detection target is determined; and when a sudden change in the background temperature is identified, the matrix check point position is determined.

[0071] The detection target can be identified based on the picture pixels, where the detection target can be a human face. For example, when the human eye features are identified in the image, the detection target is considered to be identified. The relative position of the detection target is determined in the same manner as in the above scheme.

[0072] When a sudden change in background temperature is detected, the matrix check point is determined. When a face enters the temperature measurement area, the detection direction in the pyroelectric matrix detects the face, and changes due to the difference between the face temperature and the background temperature. Thus, when a sudden change in background temperature is detected, the matrix check point is determined from the pyroelectric matrix potential.

[0073] S440: Correct the verification distance corresponding to the matrix verification point according to the relative position of the detection target.

[0074] The calibration distance corresponding to the matrix calibration point can be corrected according to the relative position of the detection target. Specifically, the coordinates of the visible light image and the matrix calibration point can be matched, and the coordinates are taken from the intersection to the center of the face circle to obtain a new coordinate mapping table.

[0075] S450: If the detection target is identified according to the picture pixel points, determine the detection area of ​​the detection target and determine the actual measured distance of the detection area.

[0076] S460: Determine a temperature reading point in the detection area according to the measured distance.

[0077] S470, determining a detection result of the human body temperature according to the temperature value obtained by the thermopile at the temperature reading point.

[0078] In the present embodiment, optionally, after the background temperature of each picture pixel is obtained by the thermopile matrix points, the method further includes: if at least two detection targets are identified based on the picture pixels, and the relative positions of the detection targets are the same, then the average value of the verification distances corresponding to the matrix verification points of the at least two detection targets is used as the matrix verification result.

[0079] Among them, after two different faces enter the temperature measurement area at the same verification distance at the same time, the mapping coordinates are taken as the average of the coordinates of the two people before and after. As the number of people increases, the accuracy of the mapping table can be improved.

[0080] In this solution, the thermopile matrix can support disassembly and reassembly, so that it can cooperate with any facial recognition device, and its mapping relationship can be implemented using an independent algorithm, which greatly improves the scope of application of temperature measurement while facial recognition.

[0081] On the basis of the above technical solutions, the present technical solution provides a method for verifying the mapping relationship. By adopting this solution, the obtained mapping relationship can be made more accurate, which helps to improve the accuracy of human body temperature detection.

[0082] Figure 5 It is a flow chart of background temperature construction provided by an embodiment of the present application. Based on the above technical solution, this solution has been further optimized, specifically as follows: the background temperature of each pixel of the screen is obtained by the thermopile matrix point, including: determining whether there is a generated background temperature; if not, continuously collecting the first basic temperature value for a preset number of times; if the fluctuation between the first basic temperature values ​​is less than the preset threshold value, then determining the average value of the first basic temperature value as the background temperature. After determining whether there is a generated background temperature, the method also includes: if so, obtaining the generated background temperature, and continuously collecting the second basic temperature value for a preset number of times; determining the temperature difference between the average value of the second basic temperature value and the background temperature; if the temperature difference is less than the set difference threshold, then updating the background temperature with the average value of the second basic temperature value.

[0083] like Figure 5 As shown, the specific process is as follows:

[0084] S510, determine whether there is a generated background temperature; and execute S520, or, execute S540.

[0085] The background temperature may be a temperature matrix measured by the thermopile matrix when no face enters the temperature measurement area. In some cases, such as when the device is just powered on, the background temperature is not generated, and the background temperature needs to be generated. Whether the background temperature has been generated can be determined by reading the background temperature variable assignment.

[0086] S520: If not present, continuously collect the first basic temperature value for a preset number of times.

[0087] If it does not exist, that is, the background temperature has not been generated, the first basic temperature value is continuously collected for a preset number of times. The preset number of times can be 5 times, or more or less times, and can generally be set to more than 3 times. The temperature obtained by the 5 measurements is determined as the first basic temperature value.

[0088] S530: If the fluctuation between the first basic temperature values ​​is less than a preset threshold value, determine the average value of the first basic temperature values ​​as the background temperature.

[0089] The maximum and minimum values ​​of the first basic temperature values ​​may be taken. If the difference between the two values ​​is less than a preset threshold value, where the preset threshold value may be set to 2 degrees, the average value of the first basic temperature values ​​may be determined as the background temperature.

[0090] S540: If it exists, obtain the generated background temperature, and continuously collect the second basic temperature value for a preset number of times.

[0091] In another case, if there is a generated background temperature, the second basic temperature value may be acquired five times in succession.

[0092] S550: Determine a temperature difference between an average value of the second basic temperature value and the background temperature.

[0093] The temperature difference between the average value of the second basic temperature value and the current background temperature. It is understandable that the maximum value and the minimum value in the second basic temperature value may also be subtracted, and if the difference is greater than a preset threshold value, the second basic temperature value may be discarded.

[0094] In the present embodiment, optionally, after determining the temperature difference between the average value of the second basic temperature value and the background temperature, the method further includes: if the temperature difference is greater than a set difference threshold, caching the average value of the second basic temperature value; and continuously collecting a preset number of third basic temperature values ​​to determine the average value of the third basic temperature value; if the difference between the average value of the third basic temperature value and the average value of the cached second basic temperature value is less than the set difference threshold, updating the background temperature with the average value of the third basic temperature value.

[0095] If the difference between the average value of the second basic temperature value and the current background temperature is greater than a set difference threshold, for example, the difference threshold is set to 1 degree, the average value of the second basic temperature value can be cached, and the third basic temperature value can be obtained 5 times in succession, and the average value is taken to obtain the average value of the third basic temperature value.

[0096] Further, whether the average value of the third basic temperature value is accurate can be determined based on the difference between the average value of the third basic temperature value and the average value of the cached second basic temperature value. Specifically, if the difference between the two is less than 1 degree, it can be determined that the average value of the third basic temperature value is accurate, and the current ambient temperature can be replaced.

[0097] In this solution, optionally, after determining the average value of the third basic temperature value, the method further includes: if the difference between the average value of the third basic temperature value and the average value of the cached second basic temperature value is greater than a set difference threshold, then caching the average value of the third basic temperature value. After caching, it can be calculated with the average value of subsequent basic temperature values ​​to determine whether the average value obtained in the subsequent measurement process is accurate. Through such a setting, the influence of temperature fluctuations on the background temperature can be effectively avoided, and the accuracy of the background temperature can be improved.

[0098] S560: If the temperature difference is less than a set difference threshold, update the background temperature with the average value of the second basic temperature value.

[0099] When the temperature difference is less than the set difference threshold, it can be determined that the average value of the second basic temperature value is relatively accurate, and the background temperature is updated with the average value of the second basic temperature value.

[0100] This solution provides a method for generating and updating the background temperature. Through such a setting, the accuracy of the background temperature can be improved and the influence of the background temperature fluctuation on the human body temperature measurement can be avoided.

[0101] Figure 6 Schematic diagram of the structure of the human body temperature detection device provided in the embodiment of the present application. Figure 6 As shown, the human body temperature detection device includes:

[0102] A mapping relationship building module 610, for establishing a mapping relationship between thermopile matrix points and picture pixels at every preset distance;

[0103] The measured distance determination module 620 is used to determine the detection area of ​​the detection target and the measured distance of the detection area if the detection target is identified according to the picture pixels;

[0104] A temperature reading point determination module 630 is used to determine the temperature reading point of the detection area according to the measured distance;

[0105] The detection result output unit 640 is used to determine the detection result of the human body temperature according to the temperature value obtained by the thermopile at the temperature reading point.

[0106] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.

[0107] The embodiment of the present application further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a method for detecting human body temperature when executed by a computer processor, the method comprising:

[0108] Establishing a mapping relationship between the thermopile matrix points and the picture pixels at every preset distance;

[0109] If the detection target is identified according to the picture pixel points, the detection area of ​​the detection target is determined, and the measured distance of the detection area is determined;

[0110] Determine the temperature reading point in the detection area according to the measured distance;

[0111] The detection result of the human body temperature is determined according to the temperature value obtained by the thermopile at the temperature reading point.

[0112] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system, which is connected to the computer system via a network (such as the Internet). The second computer system can provide program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.

[0113] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the human body temperature detection operation as described above, can also execute related operations in the human body temperature detection method provided in any embodiment of the present application.

[0114] An embodiment of the present application provides an electronic device, in which the human body temperature detection device provided by the embodiment of the present application can be integrated. Figure 7 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown, this embodiment provides an electronic device 700, which includes: one or more processors 720; a storage device 710, which is used to store one or more programs. When the one or more programs are executed by the one or more processors 720, the one or more processors 720 implement the human body temperature detection method provided in the embodiment of the present application. The method includes:

[0115] Establishing a mapping relationship between the thermopile matrix points and the picture pixels at every preset distance;

[0116] If the detection target is identified according to the picture pixel points, the detection area of ​​the detection target is determined, and the measured distance of the detection area is determined;

[0117] Determine the temperature reading point in the detection area according to the measured distance;

[0118] The detection result of the human body temperature is determined according to the temperature value obtained by the thermopile at the temperature reading point.

[0119] Of course, those skilled in the art can understand that the processor 720 also implements the technical solution of the human body temperature detection method provided in any embodiment of the present application.

[0120] Figure 7 The electronic device 700 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0121] like Figure 7 As shown, the electronic device 700 includes a processor 720, a storage device 710, an input device 730, and an output device 740; the number of processors 720 in the electronic device can be one or more. Figure 7 A processor 720 is taken as an example; the processor 720, the storage device 710, the input device 730 and the output device 740 in the electronic device can be connected via a bus or other means. Figure 7 The connection via bus 750 is taken as an example.

[0122] The storage device 710, as a computer-readable storage medium, can be used to store software programs, computer executable programs and module units, such as program instructions corresponding to the human body temperature detection method in the embodiment of the present application.

[0123] The storage device 710 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the storage device 710 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 710 may further include a memory remotely arranged relative to the processor 720, and these remote memories may be connected via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0124] The input device 730 may be used to receive input numbers, character information or voice information, and generate key signal input related to user settings and function control of the device. The output device 740 may include a display screen, a speaker and other devices.

[0125] The electronic device provided in the embodiment of the present application can achieve the purpose of improving the environmental adaptability of human body temperature measurement to ensure the accuracy of temperature measurement results.

[0126] The human body temperature detection device, medium, and electronic device provided in the above embodiments can execute the human body temperature detection method provided in any embodiment of the present application, and have the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in the above embodiments, please refer to the human body temperature detection method provided in any embodiment of the present application.

[0127] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A method for detecting human body temperature, characterized in that: The method includes: Establishing a mapping relationship between the thermopile matrix points and the picture pixels at every preset distance; If the detection target is identified according to the picture pixel points, the detection area of ​​the detection target is determined, and the measured distance of the detection area is determined; Determine the temperature reading point in the detection area according to the measured distance; Determine the detection result of human body temperature according to the temperature value obtained by the thermopile at the temperature reading point; After establishing a mapping relationship between the thermopile matrix points and the picture pixels at every preset distance, the method further includes: The background temperature of each pixel in the picture is obtained by the thermopile matrix points; If the detection target is identified according to the picture pixel points, the relative position of the detection target is determined; and, when a sudden change in the background temperature is identified, the matrix check point position is determined; According to the relative position of the detection target, the mapping relationship under the verification distance corresponding to the matrix verification point is corrected; wherein the verification distance is a preset distance when establishing the mapping relationship between the thermopile matrix point and the picture pixel point; Among them, the relative position is the pixel coordinates of the face in the visible light image, and the measured distance is the distance between the face and the lens; the pupil distance in the visible light image of the face is determined according to the relative position, and the measured distance is determined according to the pupil distance in the visible light image of the face.

2. The method according to claim 1, characterized in that After obtaining the background temperature of each pixel point of the picture from the thermopile matrix point, the method further includes: If at least two detection targets are identified based on the pixels of the picture, and the relative positions of the detection targets are the same, the average value of the thermopile matrix point coordinates in the coordinate mapping table at the verification distance corresponding to the matrix verification points of the at least two detection targets is used as the matrix verification result.

3. The method according to claim 1, characterized in that The background temperature of each pixel on the screen is obtained from the thermopile matrix points, including: determining whether a background temperature has been generated; If it does not exist, continuously collect the first basic temperature value for a preset number of times; If the fluctuation between the first basic temperature values ​​is less than a preset threshold value, the average value of the first basic temperature values ​​is determined as the background temperature.

4. The method according to claim 3, characterized in that: After determining whether a background temperature has been generated, the method further includes: If it exists, the generated background temperature is obtained, and the second basic temperature value is continuously collected for a preset number of times; determining a temperature difference between an average of the second base temperature values ​​and the background temperature; If the temperature difference is less than the set difference threshold, the background temperature is updated with the average value of the second basic temperature value.

5. The method according to claim 4, characterized in that After determining the temperature difference between the average value of the second basic temperature value and the background temperature, the method further includes: If the temperature difference is greater than a set difference threshold, the average value of the second basic temperature value is cached; and continuously collecting the third basic temperature values ​​for a preset number of times to determine an average value of the third basic temperature values; If the difference between the average value of the third basic temperature value and the average value of the cached second basic temperature value is less than a set difference threshold, the background temperature is updated with the average value of the third basic temperature value.

6. The method according to claim 5, characterized in that After determining the average value of the third basic temperature value, the method further includes: If the difference between the average value of the third basic temperature value and the average value of the cached second basic temperature value is greater than a set difference threshold, the average value of the third basic temperature value is cached.

7. A device for detecting human body temperature, characterized in that: The device includes: A mapping relationship building module is used to establish a mapping relationship between thermopile matrix points and picture pixels at every preset distance; A measured distance determination module is used to determine a detection area of ​​the detection target and a measured distance of the detection area if a detection target is identified according to the picture pixels; A temperature reading point determination module is used to determine the temperature reading point of the detection area according to the measured distance; A detection result output unit, used to determine the detection result of the human body temperature according to the temperature value obtained by the thermopile at the temperature reading point; The device further includes a calibration distance correction module, which is used to obtain the background temperature of each picture pixel from the thermopile matrix point after establishing a mapping relationship between the thermopile matrix point and the picture pixel point at every preset distance; If the detection target is identified according to the picture pixel points, the relative position of the detection target is determined; and, when a sudden change in the background temperature is identified, the matrix check point position is determined; According to the relative position of the detection target, the mapping relationship under the verification distance corresponding to the matrix verification point is corrected; wherein the verification distance is a preset distance when establishing the mapping relationship between the thermopile matrix point and the picture pixel point; Among them, the relative position is the pixel coordinates of the face in the visible light image, and the measured distance is the distance between the face and the lens; the pupil distance in the visible light image of the face is determined according to the relative position, and the measured distance is determined according to the pupil distance in the visible light image of the face.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for detecting human body temperature as described in any one of claims 1 to 6 is implemented.

9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for detecting human body temperature as described in any one of claims 1 to 6 is implemented.