CN113432719B - Human body temperature determination method and device - Google Patents

Human body temperature determination method and device Download PDF

Info

Publication number
CN113432719B
CN113432719B CN202110693551.0A CN202110693551A CN113432719B CN 113432719 B CN113432719 B CN 113432719B CN 202110693551 A CN202110693551 A CN 202110693551A CN 113432719 B CN113432719 B CN 113432719B
Authority
CN
China
Prior art keywords
detection frame
distance
face detection
determining
human body
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110693551.0A
Other languages
Chinese (zh)
Other versions
CN113432719A (en
Inventor
祝孝裕
徐狄权
刘顺治
姚宇乐
王海波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Huagan Technology Co ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202110693551.0A priority Critical patent/CN113432719B/en
Publication of CN113432719A publication Critical patent/CN113432719A/en
Application granted granted Critical
Publication of CN113432719B publication Critical patent/CN113432719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J5/00Radiation pyrometry, e.g. infrared or optical thermometry
    • G01J5/0022Radiation pyrometry, e.g. infrared or optical thermometry for sensing the radiation of moving bodies
    • G01J5/0025Living bodies
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J5/00Radiation pyrometry, e.g. infrared or optical thermometry
    • G01J2005/0077Imaging

Abstract

The invention provides a method and a device for determining human body temperature, wherein the method comprises the following steps: synchronously collecting a visible light image and a thermal imaging image of a human body; acquiring a face detection frame of the visible light image, and determining a target distance between a human body and a camera corresponding to the face detection frame; adjusting the line width of the face detection frame according to the target distance to obtain an adjusted face detection frame; the human body temperature is determined according to the adjusted human face detection frame and the thermal imaging image, the problem that the human face information is covered due to the fact that the line width of the detection frame is too large when a human body is far away from a thermal imaging camera in the related technology can be solved, the distance between the human body and the camera is detected through the visible light image, the line width of the human face detection frame is adjusted according to the distance between the human face and the camera, the human face detection area is more accurate, and the human body temperature measurement precision can be improved.

Description

Human body temperature determination method and device
Technical Field
The invention relates to the field of image processing, in particular to a human body temperature determination method and a human body temperature determination device.
Background
The body temperature detection method comprises contact detection and non-contact detection, and usually adopts non-contact body temperature detection, while the non-contact body temperature detection comprises forehead temperature gun detection and human body temperature measurement detection by a thermal imaging camera. The thermal imaging human body temperature measurement detection adopts a thermal imaging technology and is matched with a black body, so that high-precision human body temperature measurement is realized.
The thermal imaging technology is based on the principle that all objects are heated, and utilizes an infrared detector and an optical imaging objective lens to receive the infrared radiation energy distribution pattern of a detected target and reflect the infrared radiation energy distribution pattern on a photosensitive element of the infrared detector, so as to obtain an infrared thermal imaging image. The light is not needed, the image is passively formed, and the image is not easy to be found and disturbed. The thermal imaging human body temperature measurement camera gives out face coordinates through a visible light channel intelligent algorithm, the face coordinates are mapped to a thermal imaging channel, full-picture face target identification is overlapped, and a face detection frame is overlapped on a real-time code stream. However, the width of the detection frame is fixed, and when the human body is far away from the thermal imaging camera, the width of the detection frame is too large, so that the human face information is covered.
Aiming at the problem that the width of the lines of the detection frame is too large and human face information is covered when the human body is far away from the thermal imaging camera in the related technology, no solution is provided.
Disclosure of Invention
The embodiment of the invention provides a human body temperature determination method and a human body temperature determination device, which are used for at least solving the problem that the width of a line of a detection frame is too large to cover human face information when a human body is far away from a thermal imaging camera in the related art.
According to an embodiment of the present invention, there is provided a human body temperature determination method including: synchronously collecting a visible light image and a thermal imaging image of a human body; acquiring a face detection frame of the visible light image, and determining a target distance between a human body and a camera corresponding to the face detection frame; adjusting the line width of the face detection frame according to the target distance to obtain an adjusted face detection frame; and determining the temperature of the human body according to the adjusted face detection frame and the thermal imaging image.
In an exemplary embodiment, the determining the target distance between the human body corresponding to the face detection frame and the camera includes: determining a similar detection frame of the face detection frame according to the vertex coordinates of the detection frame closest to the camera; respectively determining a first width of the detection frame and a second width of the similar detection frame; and determining the target distance between the human body corresponding to the face detection frame and the camera according to the first width, the second width and the first distance which is the farthest and detectable distance of the camera.
In an exemplary embodiment, determining the target distance between the human body corresponding to the face detection frame and the camera according to the first width, the second width and the first distance which is the farthest and detectable by the camera comprises: acquiring a second distance between the human body corresponding to the detection frame and the camera; determining a distance difference between the first distance and the second distance; determining a third distance between the detection frame and the face detection frame according to the first width, the second width and the distance difference value in the following way: l is a radical of an alcohol 1 =L-W 2 *L/W 1 ,W 1 Is the first width, W 2 Is the second width, L is the distance difference, L 1 Is that it isA third distance; determining a sum of the third distance and the second distance as the target distance.
In an exemplary embodiment, adjusting the line width of the face detection frame according to the target distance, and obtaining the adjusted face detection frame includes: determining the width of a target line corresponding to the target distance; and adjusting the line width of the face detection frame to the target line width to obtain the adjusted face detection frame.
In an exemplary embodiment, determining the human body temperature according to the adjusted face detection frame and the thermal imaging image includes: mapping the adjusted face detection frame to the thermal imaging image according to a predetermined mapping relation from the visible light image to the thermal imaging image to obtain a target detection frame diagram of the thermal imaging image; and determining the human body temperature according to the target detection frame.
In an exemplary embodiment, before mapping the adjusted face detection box into the thermal imaging image to obtain a target detection box of the thermal imaging image, the method further includes: calibrating the same target for the visible light image and the thermal imaging image; and determining the mapping relation from the visible light image to the thermal imaging image according to the same target.
According to still another embodiment of the present invention, there is also provided a human body temperature determination apparatus including: the acquisition module is used for synchronously acquiring a visible light image and a thermal imaging image of a human body; the acquisition module is used for acquiring a face detection frame of the visible light image and determining the target distance between a human body and a camera corresponding to the face detection frame; the adjusting module is used for adjusting the line width of the face detection frame according to the target distance to obtain an adjusted face detection frame; and the determining module is used for determining the temperature of the human body according to the adjusted human face detection frame and the thermal imaging image.
In one exemplary embodiment, the obtaining module includes: a first determining unit, configured to determine a similar detection frame of the face detection frame according to a vertex coordinate of a detection frame that is determined in advance and is closest to the camera; a second determining unit, configured to determine a first width of the detection frame and a second width of the similar detection frame, respectively; and the third determining unit is used for determining the target distance between the human body corresponding to the face detection frame and the camera according to the first width, the second width and the first distance which is the farthest and detectable distance of the camera.
In an exemplary embodiment, the third determining unit is further configured to: acquiring a second distance between the human body corresponding to the detection frame and the camera; determining a distance difference between the first distance and the second distance; determining a third distance between the detection frame and the face detection frame according to the first width, the second width and the distance difference value in the following way: l is 1 =L-W 2 *L/W 1 ,W 1 Is the first width, W 2 Is the second width, L is the distance difference, L 1 Is the third distance; determining a sum of the third distance and the second distance as the target distance.
In an exemplary embodiment, the adjustment module is further configured to: determining the width of a target line corresponding to the target distance; and adjusting the line width of the face detection frame to the target line width to obtain the adjusted face detection frame.
In one exemplary embodiment, the determining module is further configured to: mapping the adjusted face detection frame to the thermal imaging image according to a predetermined mapping relation from the visible light image to the thermal imaging image to obtain a target detection frame diagram of the thermal imaging image; and determining the human body temperature according to the target detection frame.
In an exemplary embodiment, the apparatus further includes: the calibration module is used for calibrating the same target on the visible light image and the thermal imaging image; and the mapping relation determining module is used for determining the mapping relation from the visible light image to the thermal imaging image according to the same target.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
By the invention, the visible light image and the thermal imaging image of the human body are synchronously collected; acquiring a face detection frame of the visible light image, and determining a target distance between a human body and a camera corresponding to the face detection frame; adjusting the line width of the face detection frame according to the target distance to obtain an adjusted face detection frame; the human body temperature is determined according to the adjusted human face detection frame and the thermal imaging image, the problem that the human face information is covered due to the fact that the line width of the detection frame is too large when a human body is far away from a thermal imaging camera in the related technology can be solved, the distance between the human body and the camera is detected through the visible light image, the line width of the human face detection frame is adjusted according to the distance between the human face and the camera, the human face detection area is more accurate, and the human body temperature measurement precision can be improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention and do not constitute a limitation of the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a human body temperature determination method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a human body temperature determination method according to an embodiment of the invention;
FIG. 3 is a flow chart diagram (one) of a human body temperature determination method according to an alternative embodiment of the invention;
FIG. 4 is a flow chart diagram (two) of a human body temperature determination method according to an alternative embodiment of the invention;
FIG. 5 is a flow chart diagram (III) of a human body temperature determination method according to an alternative embodiment of the invention;
FIG. 6 is a flow chart diagram (IV) of a human body temperature determination method according to an alternative embodiment of the invention;
FIG. 7 is a flow chart diagram (V) of a human body temperature determination method according to an alternative embodiment of the invention;
FIG. 8 is a schematic diagram of a visible light image algorithm detection model according to an alternative embodiment of the invention;
FIG. 9 is a block diagram of a human body temperature determination apparatus according to an embodiment of the present invention;
fig. 10 is a block diagram of a human body temperature determination apparatus according to an alternative embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings and embodiments. It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of the human body temperature determination method according to the embodiment of the present invention, as shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the human body temperature determination method in the embodiment of the present invention, and the processor 102 executes various functional applications and human body temperature determination by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a human body temperature determining method operating in the mobile terminal or the network architecture is provided, and fig. 2 is a flowchart of the human body temperature determining method according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, synchronously collecting a visible light image and a thermal imaging image of a human body;
step S204, a face detection frame of the visible light image is obtained, and the target distance between a human body and a camera corresponding to the face detection frame is determined;
step S206, adjusting the line width of the face detection frame according to the target distance to obtain an adjusted face detection frame;
and S208, determining the temperature of the human body according to the adjusted human face detection frame and the thermal imaging image.
Synchronously acquiring a visible light image and a thermal imaging image of the human body through the steps S202 to S208; acquiring a face detection frame of the visible light image, and determining a target distance between a human body and a camera corresponding to the face detection frame; adjusting the line width of the face detection frame according to the target distance to obtain an adjusted face detection frame; the human body temperature is determined according to the adjusted human face detection frame and the thermal imaging image, the problem that the human face information is covered due to the fact that the line width of the detection frame is too large when a human body is far away from a thermal imaging camera in the related technology can be solved, the distance between the human body and the camera is detected through the visible light image, the line width of the human face detection frame is adjusted according to the distance between the human face and the camera, the human face detection area is more accurate, and the human body temperature measurement precision can be improved.
Fig. 3 is a flowchart illustrating a method for determining a human body temperature according to an alternative embodiment of the present invention (i), as shown in fig. 3, the step S204 includes:
step S302, determining a similar detection frame of the face detection frame according to the predetermined vertex coordinates of the detection frame closest to the camera;
step S304, respectively determining a first width of the detection frame and a second width of the similar detection frame;
step S306, determining the target distance between the human body corresponding to the face detection frame and the camera according to the first width, the second width and the first distance which can be detected farthest by the camera.
That is, determining the target distance between the face detection frame and the camera requires: firstly, determining a similar detection frame of the face frame according to the predetermined vertex coordinates, and determining the target distance between the face detection frame and the camera according to the widths of the determined detection frame and the similar detection frame and the farthest detectable distance of the camera.
Fig. 4 is a flowchart illustrating a human body temperature determining method according to an alternative embodiment of the present invention (ii), and as shown in fig. 4, the step S306 includes:
step S402, acquiring a second distance between the human body corresponding to the detection frame and the camera;
step S404, determining a distance difference value between the first distance and the second distance;
step S406, determining a third distance between the detection frame and the face detection frame according to the first width, the second width, and the distance difference by: l is 1 =L-W 2 *L/W 1 ,W 1 Is the first width, W 2 Is the second width, L is the distance difference, L 1 Is the third distance;
step S408, determining the sum of the third distance and the second distance as the target distance.
Namely, determining the target distance requires acquiring a second distance between the detection frame and the camera, determining a distance difference value, determining a third distance between the detection frame and the face detection frame according to a formula, wherein the sum of the third distance and the second distance is the target distance.
Fig. 5 is a flowchart illustrating a human body temperature determining method according to an alternative embodiment of the invention (iii), and as shown in fig. 5, the step S206 includes:
step S502, determining the width of a target line corresponding to the target distance;
step S504, the line width of the face detection frame is adjusted to the target line width, and the adjusted face detection frame is obtained.
Namely, the width of a target line corresponding to the distance is determined, and then the line width of the face detection frame is adjusted according to the width of the target line.
Fig. 6 is a flowchart illustrating a method for determining a human body temperature according to an alternative embodiment of the present invention (four), and as shown in fig. 6, the step S208 includes:
step S602, mapping the adjusted face detection frame to the thermal imaging image according to a predetermined mapping relation from the visible light image to the thermal imaging image to obtain a target detection frame of the thermal imaging image;
and step S604, determining the human body temperature according to the target detection frame.
Namely, the human face detection frame is mapped into a thermal imaging image according to a preset mapping relation, a target detection frame diagram of the thermal imaging image is obtained, and the human body temperature is determined according to the target detection frame diagram.
Fig. 7 is a flowchart illustrating a method for determining a human body temperature according to an alternative embodiment of the present invention (iv), as shown in fig. 7, before step S602, the method further includes:
step S702, calibrating the same target for the visible light image and the thermal imaging image;
step S704, determining a mapping relationship from the visible light image to the thermal imaging image according to the same target.
Namely, the visible light image and the thermal imaging image are calibrated for the same target, and then mapping is carried out according to the calibrated same target entry relation.
Fig. 8 is a schematic diagram of a visible light image algorithm detection model according to an alternative embodiment of the present invention, and as shown in fig. 8, a binocular camera is used to synchronously acquire visible light and thermal imaging images respectively. Performing algorithm detection on the visible light image, establishing a model as shown in FIG. 8, setting the position LA at the closest distance from the camera to the human body (where a human body detection frame can appear, corresponding to the position of the detection frame), and obtaining the width W of the detection frame 1 (ii) a Face detection frame coordinates (X1, Y1), (X2, Y2), (X3, Y3), and (X4, Y4) are obtained. Similar graphs (X1 ', Y1'), (X2 ', Y2'), (X3 ', Y3'), (X4 ', Y4') in the face detection frame are obtained by utilizing the principle of the similar graphs, and the width W of the graph is further obtained 2 . And if the human face does not exist in the picture, the visible light namely the thermal imaging image is acquired again.
According to W 2 /W 1 =L 2 The proportional relation of/L, where the detectable farthest distance (corresponding to the first distance, i.e. the distance from the camera to the point O) is known, and L is the distance difference between the first distance and the second distance, where the second distance is the distance between the human body and the camera corresponding to the detection frame, the width W of the detection frame can be seen 1 The width of the similar detection frame in the human face detection frame is W 2 Obtaining the distance L between the face detection frame and the O point 2 Then the difference L-L of the distances 2 A third distance L can be obtained 1 So as to obtain the distance L between the current human body (i.e. human face detection frame) and LA (i.e. detection frame) 1 A third distance L 1 And determining the sum of the first distance and the second distance as the target distance of the human body corresponding to the camera and the face detection frame.
And setting the width of a target line corresponding to the target distance as w, obtaining the width of the target line corresponding to the target distance by setting an actual empirical value k (known) and w = k × target distance, and adjusting the line width of the face detection frame to be w. The width of the line is composed of a plurality of pixel points, and the width of the line can be changed by changing the number of the pixel points. And adjusting the line width of the face detection frame according to the proportional relation, so that the width of the face detection frame is self-adaptive, and the face information is prevented from being shielded by the full-picture face target identification.
The face detection frame is mapped to the thermal imaging channel, so that the face in the detection frame in the thermal imaging channel is accurately framed, and the temperature measurement precision is improved.
Example 2
According to another embodiment of the present invention, there is also provided a human body temperature determination apparatus, and fig. 9 is a block diagram of the human body temperature determination apparatus according to the embodiment of the present invention, as shown in fig. 9, including:
the acquisition module 92 is used for synchronously acquiring a visible light image and a thermal imaging image of a human body;
an obtaining module 94, configured to obtain a face detection frame of the visible light image, and determine a target distance between a human body and a camera corresponding to the face detection frame;
an adjusting module 96, configured to adjust a line width of the face detection frame according to the target distance, to obtain an adjusted face detection frame;
and the determining module 98 is used for determining the human body temperature according to the adjusted human face detection frame and the thermal imaging image.
By the device, the visible light image and the thermal imaging image of the human body are synchronously acquired; acquiring a face detection frame of the visible light image, and determining a target distance between a human body and a camera corresponding to the face detection frame; adjusting the line width of the face detection frame according to the target distance to obtain an adjusted face detection frame; according to the adjusted human face detection frame and the thermal imaging image, the human body temperature is determined, the problem that in the related art, when a human body is far away from a thermal imaging camera, the line width of the detection frame is too large, and human face information is covered can be solved.
Fig. 10 is a block diagram of a human body temperature determination apparatus according to an alternative embodiment of the present invention, and as shown in fig. 10, the obtaining module 94 includes:
a first determining unit 102, configured to determine a similar detection frame of the face detection frame according to a predetermined vertex coordinate of a detection frame closest to the camera;
a second determining unit 104, configured to determine a first width of the detection frame and a second width of the similar detection frame, respectively;
a third determining unit 106, configured to determine a target distance between the human body corresponding to the face detection frame and the camera according to the first width, the second width, and a first distance that is farthest and detectable by the camera.
That is, determining the target distance between the face detection frame and the camera requires: firstly, determining a similar detection frame of the face frame according to the predetermined vertex coordinates, and determining the target distance between the face detection frame and the camera according to the widths of the determined detection frame and the similar detection frame and the farthest detectable distance of the camera.
In an optional embodiment, the third determining unit is further configured to: acquiring a second distance between the human body corresponding to the detection frame and the camera; determining a distance difference between the first distance and the second distance; determining a third distance between the detection frame and the face detection frame according to the first width, the second width and the distance difference value in the following way: l is 1 =L-W 2 *L/W 1 ,W 1 Is the first width, W 2 Is the second width, L is the distance difference, L 1 Is the third distance; determining a sum of the third distance and the second distance as the target distance.
Namely, determining the target distance, namely acquiring a second distance between the detection frame and the camera, determining a distance difference value, determining a third distance between the detection frame and the face detection frame according to a formula, wherein the sum of the third distance and the second distance is the target distance.
In an alternative embodiment, the adjustment module 96 is further configured to: determining the width of a target line corresponding to the target distance; and adjusting the line width of the face detection frame to the target line width to obtain the adjusted face detection frame.
Namely, the width of a target line corresponding to the distance is determined, and then the line width of the face detection frame is adjusted according to the width of the target line.
In an alternative embodiment, the determining module 98 is further configured to: mapping the adjusted face detection frame to the thermal imaging image according to a predetermined mapping relation from the visible light image to the thermal imaging image to obtain a target detection frame diagram of the thermal imaging image; and determining the human body temperature according to the target detection frame.
Namely, the human face detection frame is mapped into a thermal imaging image according to a preset mapping relation, a target detection frame diagram of the thermal imaging image is obtained, and the body temperature of the human body is determined according to the target detection frame diagram.
In an optional embodiment, the apparatus further comprises: the calibration module is used for calibrating the same target for the visible light image and the thermal imaging image; and the mapping relation determining module is used for determining the mapping relation from the visible light image to the thermal imaging image according to the same target.
Namely, the visible light image and the thermal imaging image are calibrated for the same target, and then mapping is carried out according to the calibrated same target entry relation.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, synchronously acquiring a visible light image and a thermal imaging image of a human body;
s2, acquiring a face detection frame of the visible light image, and determining a target distance between a human body and a camera corresponding to the face detection frame;
s3, adjusting the line width of the face detection frame according to the target distance to obtain an adjusted face detection frame;
and S4, determining the temperature of the human body according to the adjusted human face detection frame and the thermal imaging image.
Optionally, in this embodiment, the storage medium may include but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Example 4
Embodiments of the present invention further provide an electronic device, comprising a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, synchronously acquiring a visible light image and a thermal imaging image of a human body;
s2, acquiring a face detection frame of the visible light image, and determining a target distance between a human body and a camera corresponding to the face detection frame;
s3, adjusting the line width of the face detection frame according to the target distance to obtain an adjusted face detection frame;
and S4, determining the temperature of the human body according to the adjusted human face detection frame and the thermal imaging image.
Optionally, for a specific example in this embodiment, reference may be made to the examples described in the above embodiment and optional implementation, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims (7)

1. A method for determining a temperature of a human body, comprising:
synchronously collecting a visible light image and a thermal imaging image of a human body;
acquiring a face detection frame of the visible light image, and determining a target distance between a human body and a camera corresponding to the face detection frame;
adjusting the line width of the face detection frame according to the target distance to obtain an adjusted face detection frame;
determining the temperature of the human body according to the adjusted human face detection frame and the thermal imaging image;
the determining the target distance between the human body corresponding to the face detection frame and the camera comprises:
determining a similar detection frame of the face detection frame according to the vertex coordinates of the detection frame closest to the camera;
respectively determining a first width of the detection frame and a second width of the similar detection frame;
determining the target distance between the human body corresponding to the face detection frame and the camera according to the first width, the second width and the first distance which can be detected by the camera at the farthest position, wherein the step of determining the target distance between the human body corresponding to the face detection frame and the camera comprises the following steps: acquiring a second distance between the human body corresponding to the detection frame and the camera; determining a distance difference between the first distance and the second distance; determining a third distance between the detection frame and the face detection frame according to the first width, the second width and the distance difference value in the following way: l is 1 =L-W 2 *L/W 1 ,W 1 Is the first width, W 2 Is the second width, L is the distance difference, L 1 Is the third distance; determining a sum of the third distance and the second distance as the target distance.
2. The method of claim 1, wherein adjusting the line width of the face detection frame according to the target distance to obtain an adjusted face detection frame comprises:
determining the width of a target line corresponding to the target distance;
and adjusting the line width of the face detection frame to the target line width to obtain the adjusted face detection frame.
3. The method of any of claims 1-2, wherein determining the human body temperature from the adjusted face detection frame and the thermographic image comprises:
mapping the adjusted human face detection frame to the thermal imaging image according to a predetermined mapping relation from the visible light image to the thermal imaging image to obtain a target detection frame diagram of the thermal imaging image;
and determining the human body temperature according to the target detection frame.
4. The method of claim 3, wherein before mapping the adjusted face detection box into the thermographic image to obtain a target detection box of the thermographic image, the method further comprises:
calibrating the same target for the visible light image and the thermal imaging image;
and determining the mapping relation from the visible light image to the thermal imaging image according to the same target.
5. A human body temperature determination apparatus, comprising:
the acquisition module is used for synchronously acquiring a visible light image and a thermal imaging image of a human body;
the acquisition module is used for acquiring a face detection frame of the visible light image and determining the target distance between a human body and a camera corresponding to the face detection frame;
the adjusting module is used for adjusting the line width of the face detection frame according to the target distance to obtain an adjusted face detection frame;
the determining module is used for determining the human body temperature according to the adjusted human face detection frame and the thermal imaging image;
the acquisition module comprises:
a first determining unit, configured to determine a similar detection frame of the face detection frame according to a vertex coordinate of a detection frame that is determined in advance and is closest to the camera;
a second determining unit, configured to determine a first width of the detection frame and a second width of the similar detection frame, respectively;
a third determining unit, configured to determine a target distance between the human body corresponding to the face detection frame and the camera according to the first width, the second width, and a first distance that is farthest and detectable by the camera, including: acquiring a second distance between the human body corresponding to the detection frame and the camera; determining a distance difference between the first distance and the second distance; determining a third distance between the detection frame and the face detection frame according to the first width, the second width and the distance difference value in the following way: l is 1 =L-W 2 *L/W 1 ,W 1 Is the first width, W 2 Is the second width, L is the distance difference, L 1 Is the third distance; determining a sum of the third distance and the second distance as the target distance.
6. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 4 when executed.
7. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 4.
CN202110693551.0A 2021-06-22 2021-06-22 Human body temperature determination method and device Active CN113432719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110693551.0A CN113432719B (en) 2021-06-22 2021-06-22 Human body temperature determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110693551.0A CN113432719B (en) 2021-06-22 2021-06-22 Human body temperature determination method and device

Publications (2)

Publication Number Publication Date
CN113432719A CN113432719A (en) 2021-09-24
CN113432719B true CN113432719B (en) 2022-10-18

Family

ID=77757163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110693551.0A Active CN113432719B (en) 2021-06-22 2021-06-22 Human body temperature determination method and device

Country Status (1)

Country Link
CN (1) CN113432719B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112464727A (en) * 2020-11-03 2021-03-09 电子科技大学 Self-adaptive face recognition method based on light field camera

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010230392A (en) * 2009-03-26 2010-10-14 Toshiba Corp Human body temperature measuring apparatus and measuring method of the same
CN113139413A (en) * 2020-08-07 2021-07-20 西安天和防务技术股份有限公司 Personnel management method and device and electronic equipment
CN112241700A (en) * 2020-10-15 2021-01-19 希望银蕨智能科技有限公司 Multi-target forehead temperature measurement method for forehead accurate positioning
CN112507786B (en) * 2020-11-03 2022-04-08 浙江大华技术股份有限公司 Human body multi-part detection frame association method and device, electronic device and storage medium
CN112580578A (en) * 2020-12-28 2021-03-30 珠海亿智电子科技有限公司 Binocular living camera face ranging method and system
CN112819754A (en) * 2021-01-13 2021-05-18 浙江大华技术股份有限公司 Human body temperature measurement method, terminal equipment and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112464727A (en) * 2020-11-03 2021-03-09 电子科技大学 Self-adaptive face recognition method based on light field camera

Also Published As

Publication number Publication date
CN113432719A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN108734744B (en) Long-distance large-view-field binocular calibration method based on total station
CN110995998B (en) Optical axis deviation calibration method and device
CN109035309A (en) Pose method for registering between binocular camera and laser radar based on stereoscopic vision
CN105844701A (en) Sequential-image three-dimensional modeling method
CN112613381A (en) Image mapping method and device, storage medium and electronic device
CN113781534A (en) Distance measuring method and device
CN113237556A (en) Temperature measurement method and device and computer equipment
CN109308714A (en) Camera and laser radar information method for registering based on classification punishment
JP2019109200A (en) Data generation device for calibration, data generation method for calibration, calibration system, and control program
CN113432719B (en) Human body temperature determination method and device
US20240087167A1 (en) Compensation of three-dimensional measuring instrument having an autofocus camera
CN112544076B (en) Method and system for mapping non-uniformities of image sensors
CN112102378A (en) Image registration method and device, terminal equipment and computer readable storage medium
CN112163519A (en) Image mapping processing method, device, storage medium and electronic device
CN109978926B (en) Automatic image fusion method and device and terminal equipment
US20170371035A1 (en) Protection and guidance gear or equipment with identity code and ip address
CN114611635B (en) Object identification method and device, storage medium and electronic device
EP3988895B1 (en) Compensation of three-dimensional measuring instrument having an autofocus camera
CN111182290B (en) Image detection method and device, storage medium and electronic device
CN106331496B (en) A kind of the synchronization fixed-focus method and multi channel imaging equipment of multi channel imaging equipment
CN113340433A (en) Temperature measuring method, temperature measuring device, storage medium, and electronic device
CN109379521B (en) Camera calibration method and device, computer equipment and storage medium
CN115657052A (en) ITOF ranging system and method, device and equipment for determining relative precision of ITOF ranging system
CN115953484B (en) Parameter calibration method and device of detection equipment, storage medium and electronic device
CN113643377B (en) Single lens consistency error analysis method and system based on multiple calibration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230914

Address after: Room 201, Building A, Integrated Circuit Design Industrial Park, No. 858, Jianshe 2nd Road, Economic and Technological Development Zone, Xiaoshan District, Hangzhou City, Zhejiang Province, 311200

Patentee after: Zhejiang Huagan Technology Co.,Ltd.

Address before: No.1187 Bin'an Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: ZHEJIANG DAHUA TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right