CN113237556A - Temperature measurement method and device and computer equipment - Google Patents

Temperature measurement method and device and computer equipment Download PDF

Info

Publication number
CN113237556A
CN113237556A CN202110540999.9A CN202110540999A CN113237556A CN 113237556 A CN113237556 A CN 113237556A CN 202110540999 A CN202110540999 A CN 202110540999A CN 113237556 A CN113237556 A CN 113237556A
Authority
CN
China
Prior art keywords
temperature measurement
temperature
infrared
type
measuring
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.)
Pending
Application number
CN202110540999.9A
Other languages
Chinese (zh)
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.)
Shenzhen Waterward Information Co Ltd
Original Assignee
Shenzhen Waterward Information 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 Shenzhen Waterward Information Co Ltd filed Critical Shenzhen Waterward Information Co Ltd
Priority to CN202110540999.9A priority Critical patent/CN113237556A/en
Publication of CN113237556A publication Critical patent/CN113237556A/en
Priority to PCT/CN2021/113612 priority patent/WO2022241964A1/en
Pending legal-status Critical Current

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
    • 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
    • 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/80Calibration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/66Analysis of geometric attributes of image moments or centre of gravity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/40Spoof detection, e.g. liveness detection
    • G06V40/45Detection of the body part being alive
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10048Infrared image

Abstract

The application provides a temperature measuring method, a temperature measuring device and computer equipment. The temperature measurement system screens a temperature measurement algorithm corresponding to the temperature measurement type, and calculates and obtains a temperature value of the current measured object according to the temperature measurement data and the temperature measurement algorithm. According to the method and the device, the temperature measurement type corresponding to the current measured object is identified and obtained by combining the shot temperature measurement area image, and then the temperature measurement algorithm corresponding to the temperature measurement type is screened. Under the condition that the temperature measurement algorithm corresponds to the temperature measurement type of the measured object, the acquired temperature measurement data is substituted to calculate the temperature value of the measured object, and the method has excellent universality and accuracy and is convenient for a user to operate and use.

Description

Temperature measurement method and device and computer equipment
Technical Field
The present application relates to the field of temperature measurement technologies, and in particular, to a temperature measurement method, an apparatus, and a computer device.
Background
When the existing temperature measuring equipment measures the temperature of an object, the existing temperature measuring equipment can only measure the effective temperature of a preset temperature measuring area. For example, the forehead temperature measuring gun can accurately obtain the body temperature of a human body when measuring the temperature of the forehead area of the human body; however, if the forehead temperature gun is used for measuring the temperature of other areas of the human body (such as the arm and the cochlea) or other objects (such as hot water), the temperature value finally converted by the forehead temperature gun is not the real temperature of other areas of the human body or other objects due to the fact that the temperature compensation algorithm and the distance compensation algorithm which are built in the forehead temperature gun only aim at the forehead area of the human body, and accuracy and universality are low.
Disclosure of Invention
The application mainly aims to provide a temperature measuring method, a temperature measuring device and computer equipment, and aims to overcome the defects that the existing temperature measuring equipment can only measure the temperature of a single area or an object and is low in universality.
In order to achieve the above object, the present application provides a temperature measurement method, including:
acquiring a temperature measurement area image and temperature measurement data of a measured object;
identifying the temperature measuring area image to obtain a temperature measuring type corresponding to the temperature measuring area image;
screening a temperature measurement algorithm corresponding to the temperature measurement type;
and calculating to obtain a temperature value according to the temperature measurement data and the temperature measurement algorithm, and taking the temperature value as a temperature measurement result of the measured object.
Further, the temperature measuring method is applied to a mobile terminal, an infrared temperature measuring sensor and a camera are deployed on the mobile terminal, and the step of collecting the temperature measuring area image and the temperature measuring data of the measured object comprises the following steps:
acquiring the temperature measurement data of a measured object by using an infrared temperature measurement sensor, and acquiring an image by using the camera;
determining the pixel coordinate of a second infrared measuring point corresponding to the first infrared measuring point on the imaging surface of the camera; the first infrared measuring point is a measuring point when the infrared temperature measuring sensor is aligned with the measured object to acquire data;
and intercepting an image of a preset region on the imaging surface to obtain the image of the temperature measuring region, wherein the preset region is a region within N pixel ranges on the imaging surface by taking the pixel coordinate as the center, and N is not 0.
Further, the step of determining the pixel coordinate of the first infrared measurement point at the second infrared measurement point corresponding to the imaging surface of the camera includes:
establishing a three-dimensional Cartesian coordinate system by taking a lens center of the camera as an origin, and respectively acquiring relative position information between the lens center of the camera and the first infrared measurement point and an image distance of the camera, wherein an X axis of the three-dimensional Cartesian coordinate system passes through the lens center, the direction of the X axis is the same as the direction of an optical axis of a lens of the camera, a plane formed by a Y axis and a Z axis of the three-dimensional Cartesian coordinate system is mutually vertical to the X axis of the three-dimensional Cartesian coordinate system, the image distance represents a first vertical distance from the second infrared measurement point to a plane formed by the Y axis and the Z axis of the three-dimensional Cartesian coordinate system, and the image distance represents a first vertical distance from the second infrared measurement point to the plane formed by the Y axis and the Z axis of the three-dimensional Cartesian coordinate system;
according to the relative position information and the image distance, calculating to obtain a second vertical distance from the second infrared measuring point to a plane formed by an X axis and a Z axis of the three-dimensional Cartesian coordinate system and a third vertical distance from the second infrared measuring point to a plane formed by the X axis and the Y axis of the three-dimensional Cartesian coordinate system;
acquiring the pixel size of a photosensitive chip of the camera, calculating to obtain the first pixel number between the center of the imaging plane and the second infrared measuring point in the Y-axis direction of the three-dimensional Cartesian coordinate system according to the pixel size and the second vertical distance, and calculating to obtain the second pixel number between the center of the imaging plane and the second infrared measuring point in the Z-axis direction of the three-dimensional Cartesian coordinate system according to the pixel size and the third vertical distance;
and obtaining the pixel coordinate of the second infrared measuring point on the imaging surface according to the first pixel number and the second pixel number.
Further, the temperature measurement type includes a temperature measurement area type and/or a temperature measurement object type, and the step of identifying the temperature measurement area image to obtain the temperature measurement type corresponding to the temperature measurement area image includes:
performing visual identification processing on the temperature measurement area image, and judging whether the temperature measurement area type and/or the temperature measurement object type corresponding to the temperature measurement area image is identified or not;
if the temperature measuring area type and/or the temperature measuring object type corresponding to the temperature measuring area image cannot be identified, the preset area is enlarged according to a preset multiple, a new temperature measuring area image is obtained through shooting, and visual identification processing is carried out on the new temperature measuring area image.
Further, the temperature measurement type includes a temperature measurement area type and a temperature measurement object type, and the step of screening the temperature measurement algorithm corresponding to the temperature measurement type includes:
judging whether the object to be measured is a living object or not according to the type of the temperature measurement object;
if the measured object is a living object, screening a temperature conversion formula matched with the type of the temperature measuring area and the type of the temperature measuring object, and taking the temperature conversion formula as the temperature measuring algorithm;
and if the measured object is not a living object, calling a first operation mode as the temperature measurement algorithm, wherein the first operation mode is to directly use the temperature measurement data as the temperature value of the measured object.
Further, still dispose range finding sensor on the mobile terminal, range finding sensor with infrared temperature sensor is adjacent to be set up, before the step of gathering the temperature measurement area image of testee and temperature measurement data, still include:
acquiring the temperature measurement distance between the infrared temperature measurement sensor and the measured object through the distance measurement sensor;
judging whether the temperature measuring distance is within a preset distance range or not;
and if the temperature measurement distance is not within the preset distance range, outputting prompt information to remind a user of changing the temperature measurement distance.
Further, after the step of calculating a temperature value according to the temperature measurement data and the temperature measurement algorithm and using the temperature value as the temperature measurement result of the object to be measured, the method includes:
marking the temperature value and the temperature measurement type on the temperature measurement area image;
and outputting the marked temperature measurement area image to a display interface.
The application also provides a temperature measuring device, including:
the acquisition module is used for acquiring temperature measurement area images and temperature measurement data of a measured object;
the identification module is used for identifying the temperature measuring area image to obtain a temperature measuring type corresponding to the temperature measuring area image;
the screening module is used for screening the temperature measurement algorithm corresponding to the temperature measurement type;
and the calculation module is used for calculating to obtain a temperature value according to the temperature measurement data and the temperature measurement algorithm, and taking the temperature value as the temperature measurement result of the measured object.
The present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any of the above.
According to the temperature measuring method, the temperature measuring device and the computer equipment, the temperature measuring system firstly collects the temperature measuring area image and the temperature measuring data of the measured object, and then the temperature measuring type corresponding to the temperature measuring area image is obtained by identifying the temperature measuring area image. The temperature measurement system screens a temperature measurement algorithm corresponding to the temperature measurement type, and calculates and obtains a temperature value of the current measured object according to the temperature measurement data and the temperature measurement algorithm. According to the method and the device, the temperature measurement type corresponding to the current measured object is identified and obtained by combining the shot temperature measurement area image, and then the temperature measurement algorithm corresponding to the temperature measurement type is screened. Under the condition that the temperature measurement algorithm corresponds to the temperature measurement type of the measured object, the acquired temperature measurement data is substituted to calculate the temperature value of the measured object, and the method has excellent universality and accuracy and is convenient for a user to operate and use.
Drawings
FIG. 1 is a schematic diagram of the steps of a temperature measurement method according to an embodiment of the present application;
FIG. 2 is an imaging layout involved in a thermometry method according to an embodiment of the present application;
FIG. 3 is a block diagram of an overall structure of a temperature measuring device according to an embodiment of the present disclosure;
fig. 4 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1 and 2, an embodiment of the present application provides a temperature measurement method, including:
s1, acquiring temperature measuring area images and temperature measuring data of the measured object;
s2, identifying the temperature measuring area image to obtain a temperature measuring type corresponding to the temperature measuring area image;
s3, screening a temperature measurement algorithm corresponding to the temperature measurement type;
and S4, calculating to obtain a temperature value according to the temperature measurement data and the temperature measurement algorithm, and taking the temperature value as the temperature measurement result of the measured object.
In this embodiment, the temperature measurement method is described by taking the application to a mobile terminal as an example, and an infrared temperature measurement sensor and a camera are deployed on the mobile terminal and face the same direction. During temperature measurement, a user aims at the measured object by the mobile terminal, the temperature measurement system collects temperature measurement data of the measured object through the infrared temperature measurement sensor on the mobile terminal, and the camera is started to collect temperature measurement area images of the infrared temperature measurement sensor aiming at the measured object. In the field of view range of the camera, the center of the field of view of the camera and the center O 'of the imaging surface of the camera are both located on the imaging optical axis (the point where the optical axis penetrates the imaging surface is defined as the center O' of the imaging surface). The temperature measurement system defines that a measurement point corresponding to the infrared temperature measurement sensor when the infrared temperature measurement sensor is aligned with a measured object to acquire data is a first infrared measurement point P, and a measurement point corresponding to the first infrared measurement point P on an imaging surface of the camera is a second infrared measurement point P'. The temperature measurement system obtains the pixel coordinate of the second infrared measurement point P' on the imaging surface by calculation through the similar triangle imaging principle of lens imaging and by combining the relative position relation between the first infrared measurement point P and the lens center O of the camera and the image distance of the camera. After the pixel coordinates of the second infrared measurement point P ' are determined, the temperature measurement system takes the second infrared measurement point P ' as a central point, captures an area of N pixel ranges around the second infrared measurement point P ' as an automatic camera identification area through a camera algorithm, and shoots to obtain a temperature measurement area image. The temperature measurement system processes the temperature measurement area image through a visual identification technology, and identifies the temperature measurement type corresponding to the temperature measurement area image. The temperature measurement type comprises a temperature measurement area type and/or a temperature measurement object type, the temperature measurement area type comprises a forehead, an arm, an auricle (cochlea) and the like, and the temperature measurement object type comprises living objects such as people, cats, dogs and the like and dead objects such as ice cream, hot coffee and the like. The temperature measurement system is internally stored with a mapping relation table of temperature measurement types and temperature measurement algorithms, and screens the temperature measurement system from the mapping relation table of the temperature measurement types and the temperature measurement algorithms according to the current temperature measurement type to obtain the corresponding temperature measurement algorithms, wherein the temperature measurement algorithms comprise temperature measurement rules and temperature conversion formulas. The temperature measurement system carries out corresponding processing on the temperature measurement data according to the temperature measurement algorithm, so that a temperature value corresponding to the measured object is obtained, and the temperature value is the current temperature measurement result of the measured object.
In the present embodiment, the optical axis refers to the principal optical axis of the lens (the principal optical axis of the lens refers to a straight line passing through the optical center and perpendicular to the lens, also called the principal optical axis, or a straight line on which a line connecting two focal points of the lens is located)
In this embodiment, the temperature measurement system identifies and obtains the temperature measurement type corresponding to the current measured object by combining the shot temperature measurement area image, and then screens the temperature measurement algorithm corresponding to the temperature measurement type. And substituting the acquired temperature measurement data to calculate the temperature value of the measured object under the condition that the temperature measurement algorithm corresponds to the temperature measurement type of the measured object. The application of the temperature measuring method is not limited to a specific temperature measuring object or temperature measuring area (such as only aiming at the forehead area or only being used for measuring pets), and the method has excellent universality, intelligence, flexibility and accuracy and is convenient for users to operate and use.
Further, the temperature measuring method is applied to a mobile terminal, an infrared temperature measuring sensor and a camera are deployed on the mobile terminal, and the step of collecting the temperature measuring area image and the temperature measuring data of the measured object comprises the following steps:
s101, acquiring temperature measurement data of a measured object by using an infrared temperature measurement sensor, and acquiring an image by using a camera;
s102, determining the pixel coordinate of a second infrared measuring point P' corresponding to the first infrared measuring point P on the imaging surface of the camera; the first infrared measurement point P is a measurement point when the infrared temperature measurement sensor is aligned with the measured object to acquire data;
and S103, capturing an image of a preset area on the imaging surface to obtain the image of the temperature measuring area, wherein the preset area is an area within N pixel by N pixel ranges taking the pixel coordinate as the center on the imaging surface, and N is not 0.
In this embodiment, the infrared temperature sensor and the camera are disposed on the same plane on the mobile terminal, and the distance between the infrared temperature sensor and the camera is within a preset distance range, which is as small as possible. The temperature measurement system collects temperature measurement data of a measured object through the infrared temperature measurement sensor, and the temperature measurement data is the surface temperature of the measured object. Meanwhile, the temperature measurement system starts the camera and collects images by using the camera. After the camera is started, the lens center O of the camera and the center O' of the imaging surface are both positioned on the imaging optical axis. The temperature measurement system takes the lens center O of the camera as an original point to construct a three-dimensional Cartesian coordinate system, and an imaging surface is positioned on one side (on the object side) of the lens of the camera; the object to be measured is located on the other side (on the object side) of the lens of the camera. The temperature measurement system respectively acquires relative position information between a lens center O of the camera and the first infrared measurement point P (the relative position information represents the coordinate of the first infrared measurement point P on a three-dimensional Cartesian coordinate system), and the image distance of the camera; the image distance of the camera is the distance from an imaging surface to the lens plane of the camera, namely the first vertical distance representing the distance from the second infrared measuring point P' to the plane formed by the Y axis and the Z axis of the three-dimensional Cartesian coordinate system, and the imaging surface is parallel to the lens plane of the camera. According to the similar triangle imaging principle of lens imaging, the second vertical distance from the second infrared measurement point P 'to the plane formed by the X axis and the Z axis of the three-dimensional Cartesian coordinate system and the third vertical distance from the second infrared measurement point P' to the plane formed by the X axis and the Y axis of the three-dimensional Cartesian coordinate system are calculated by combining the coordinate of the first infrared measurement point P and the image distance of the camera. The temperature measurement system obtains the pixel size of a photosensitive chip of the camera, calculates the first pixel number between the center O ' of the imaging surface and the second infrared measurement point P ' in the vertical direction according to the pixel size and the second vertical distance, calculates the second pixel number between the center O ' of the imaging surface and the second infrared measurement point P ' in the horizontal direction according to the pixel size and the third vertical distance, and completes coordinate system conversion, so that the pixel coordinate of the second infrared measurement point P ' on the imaging surface is obtained by combining the first pixel number and the second pixel number between the second infrared measurement point P ' and the center O ' of the imaging surface. The temperature measurement system takes the pixel coordinate of the second infrared measurement point P ' as a reference, takes the second infrared measurement point P ' as a central point, intercepts an area of N pixel ranges around the second infrared measurement point P ' on an imaging surface through a camera algorithm, takes the area as an automatic identification area of the camera, and shoots to obtain a temperature measurement area image.
In this embodiment, the temperature measurement system performs the above processing and calculation to obtain the pixel coordinate of the second infrared measurement point P' corresponding to the first infrared measurement point P on the imaging surface of the camera, so that the disadvantage that the setting position between the infrared temperature measurement sensor and the camera has a deviation is eliminated, and the accuracy of the temperature measurement area is improved. Moreover, the temperature measurement system intercepts the image of the temperature measurement area by taking the pixel coordinate of the second infrared measurement point P' as the center, which is beneficial to pertinently identifying the object in the infrared temperature measurement area and the corresponding temperature measurement type in the subsequent steps, and does not need to identify all objects on the whole image of the temperature measurement area, thereby reducing the area to be identified, strengthening the target accuracy and improving the identification efficiency; the accuracy of image acquisition of the temperature measuring area can be further improved by acquiring images from the pixel layer, and the accuracy of the temperature value of the measured object obtained by subsequent measurement is further improved.
Further, the step of determining the pixel coordinate of the second infrared measurement point P' corresponding to the first infrared measurement point P on the imaging surface of the camera includes:
s1021: a three-dimensional Cartesian coordinate system is constructed by taking the lens center O of the camera as an origin, and respectively acquiring relative position information between the lens center O of the camera and the first infrared measurement point P and the image distance of the camera, wherein the X axis of the three-dimensional Cartesian coordinate system passes through the lens center O, and the direction of the X axis is the same as the direction of the optical axis of the lens of the camera, the plane formed by the Y axis and the Z axis of the three-dimensional Cartesian coordinate system is vertical to the X axis of the three-dimensional Cartesian coordinate system, the image distance represents a first perpendicular distance of the second infrared measurement point P' to a plane formed by the Y-axis and the Z-axis of the three-dimensional cartesian coordinate system, the image distance represents a first vertical distance from the second infrared measurement point P' to a plane formed by a Y axis and a Z axis of the three-dimensional Cartesian coordinate system;
s1022, according to the relative position information and the image distance, calculating to obtain a second vertical distance from the second infrared measurement point P 'to a plane formed by an X axis and a Z axis of the three-dimensional Cartesian coordinate system and a third vertical distance from the second infrared measurement point P' to a plane formed by the X axis and the Y axis of the three-dimensional Cartesian coordinate system;
s1023, acquiring the pixel size of a photosensitive chip of the camera, calculating to obtain a first pixel number between the center O 'of the imaging plane and the second infrared measuring point P' in the Y-axis direction of the three-dimensional Cartesian coordinate system according to the pixel size and the second vertical distance, and calculating to obtain a second pixel number between the center O 'of the imaging plane and the second infrared measuring point P' in the Z-axis direction of the three-dimensional Cartesian coordinate system according to the pixel size and the third vertical distance;
and S1024, obtaining the pixel coordinate of the second infrared measurement point P' on the imaging surface according to the first pixel number and the second pixel number.
In this embodiment, as shown in fig. 2, the temperature measurement system constructs a three-dimensional cartesian coordinate system with a lens center O of the camera as an origin (defined as O), wherein an X-axis of the three-dimensional cartesian coordinate system passes through the lens center O, and a direction of the X-axis is the same as a direction of an optical axis of a lens of the camera (a straight line where a connecting line of two focuses of the lens is located); a plane formed by the Y axis and the Z axis of the three-dimensional Cartesian coordinate system is perpendicular to the X axis, namely the plane formed by the Y axis and the Z axis of the three-dimensional Cartesian coordinate system is a plane where the lens is located. The temperature measurement system respectively acquires relative position information between the lens center O of the camera and the first infrared measurement point P, and the image distance of the camera. Wherein, the relative position information between the first infrared measurement point P and the center of the camera represents the coordinate of the first infrared measurement point P in the three-dimensional Cartesian coordinate system, and the first infrared measurement point P (x) is assumed to be the first infrared measurement point P1,y1,z1)。x1The value of (A) is the distance between the plane where the infrared temperature measurement sensor is located and the surface of the temperature measurement area of the measured object, and the distance can be measured by the distance measurement sensor. Preferably, the distance measuring sensor is arranged onOn the mobile terminal, the distance measuring sensor and the infrared temperature measuring sensor are located on the same plane on the mobile terminal, so that the distance between the distance measuring sensor and the temperature measuring area surface of the measured object is the same as the distance between the infrared temperature measuring sensor and the temperature measuring area surface of the measured object, or the distance measuring sensor can be arranged in the infrared temperature measuring sensor, or the infrared temperature measuring sensor has the functions of infrared temperature measurement and infrared distance measurement. y is1、z1The value of (a) is the distance between the center of the infrared temperature measurement sensor and the lens center O of the camera, and the distance is a known design parameter after the infrared temperature measurement sensor and the camera are deployed on the mobile terminal. Let the coordinates in the three-dimensional Cartesian coordinate system be (x)2,y2,z2) The image distance of the camera is the vertical distance between the imaging plane and the plane of the lens, so that the image distance represents a first vertical distance from the second infrared measurement point P' to a first vertical distance from the plane consisting of the Y axis and the Z axis of the three-dimensional Cartesian coordinate system, namely the value of the image distance is x2The value of (c). According to the principle of similar triangular imaging of lens imaging,
Figure BDA0003071747700000091
x is to be1、y1、z1、x2Respectively substituting the values to obtain y2、z2To obtain the coordinates (x) of the second infrared measurement point P' in the three-dimensional cartesian coordinate system2,y2,z2). The camera is provided with a photosensitive chip, and the pixel size of the photosensitive chip can be pre-recorded into an internal database of the temperature measuring system by developers and can also be calculated according to the size of an image sensor of the camera and the pixel resolution. The photosensitive chip is preferably a CMOS photosensitive chip, and the size of the CMOS image sensor is assumed to be M1*N1The number of rows and columns corresponding to the pixels of the image is M2*N2The sensor size calculation formula is as follows: pixel size-the number of rows or columns corresponding to a pixel of the sensor size/image, i.e. the image
Figure BDA0003071747700000092
S is the pixel size;the pixel shape of the CMOS photosensitive chip in the X direction and the Y direction is a square frame, so the side length is consistent. The temperature measurement system substitutes the pixel size and the second vertical distance into a first preset formula, and calculates to obtain the first pixel number between the second infrared measurement point P ' and the center O ' of the imaging surface in the Y-axis direction of the three-dimensional Cartesian coordinate system (namely, the Y ' -axis direction of the two-dimensional rectangular coordinate system), wherein the first preset formula is as follows:
Figure BDA0003071747700000093
n1the number of the first pixels; and substituting the pixel size and the third vertical distance into a second preset formula, and calculating to obtain a second pixel number of the center O ' of the imaging plane from the second infrared measurement point P ' in the Z-axis direction of the three-dimensional cartesian coordinate system (i.e. the Z ' axis direction of the two-dimensional rectangular coordinate system), wherein the second preset formula is as follows:
Figure BDA0003071747700000094
n2the number of the second pixels. Because the center of the field of view of the camera and the center O 'of the imaging plane are both positioned on the imaging optical axis, that is, the center O' of the imaging plane is positioned on the x axis of the three-dimensional Cartesian coordinate system. The number of the first pixels and the number of the second pixels thus calculated correspond to the coordinates (x) of the second infrared measurement point P' on the three-dimensional cartesian coordinate system to be established with the lens center O as the origin of coordinates2,y2,z2) After coordinate system conversion, obtaining pixel coordinate values of a second infrared measurement point P ' on a two-dimensional rectangular coordinate system (the abscissa and ordinate axes of the two-dimensional rectangular coordinate system are respectively Z ' and Y ') established by taking the center O ' of an imaging surface as a coordinate origin, namely the pixel coordinate of the second infrared measurement point P ' on the imaging surface consists of a first pixel number and a second pixel number, and the pixel coordinate is (n)2,n1) The unit is the number of pixels.
In practical applications, the infrared temperature measurement sensor is preferably disposed on the Z-axis or the Y-axis of a three-dimensional cartesian coordinate system with the lens center O of the camera as the origin of coordinates, so that the calculation amount of the pixel coordinates of the second infrared measurement point P' can be reduced. When the infrared temperature measurement sensor is positioned on the Z axis, n1The direct value is 0, and the pixel coordinate at this time is (n)20); when the infrared temperature measurement sensor is positioned on the Y axis, n2The direct value is 0, and the pixel coordinate at this time is (0, n)1) When the infrared temperature measurement sensor is arranged according to the two conditions, the data processing speed of temperature measurement can be increased, and the attractiveness of design is improved.
In summary, according to the relative position information (which may be a three-dimensional coordinate position) of the first infrared measurement point P relative to the center of the camera, the image distance from the first infrared measurement point P to the center of the camera, and according to the principle of the similar triangle, the pixel coordinate of the second infrared measurement point P' on the imaging plane may be obtained. The "relative position information of the first infrared measurement point P" can be obtained by directly setting the size of the infrared temperature measurement sensor relative to the center of the camera and the distance (measurable) between the infrared temperature measurement sensor and the first infrared measurement point P. The above-described embodiment (including specific orientation limits of the coordinate system, etc.) is merely one specific solution for ease of understanding.
Further, the temperature measurement type includes a temperature measurement area type and/or a temperature measurement object type, and the step of identifying the temperature measurement area image to obtain the temperature measurement type corresponding to the temperature measurement area image includes:
s201, carrying out visual identification processing on the temperature measurement area image, and judging whether the temperature measurement area type and/or the temperature measurement object type corresponding to the temperature measurement area image is identified or not;
s202, if the temperature measuring area type and/or the temperature measuring object type corresponding to the temperature measuring area image cannot be identified, the preset area is enlarged according to a preset multiple, a new temperature measuring area image is obtained through shooting, and visual identification processing is carried out on the new temperature measuring area image.
In this embodiment, the temperature measurement type includes a temperature measurement area type and/or a temperature measurement object type, and the temperature measurement system identifies the temperature measurement area image by using a visual identification technology after acquiring the temperature measurement area image. The principle of the visual recognition technology is the same as that of the existing object recognition technology, and the details are not described here. After the processing by the visual identification technology, if the temperature measurement object type and/or the temperature measurement area type of the measured object can be directly obtained according to the temperature measurement area image, the temperature measurement type and the temperature measurement type are generated according to the temperature measurement object type and/or the temperature measurement area type and are associated with the temperature measurement area image so as to carry out the next temperature measurement algorithm screening. If the vision identification technology cannot identify the temperature measurement object type and/or the temperature measurement area type of the measured object through the temperature measurement area image, the preset area on the imaging surface is enlarged according to a preset multiple (for example, the pixel area corresponding to the initial preset area is 8 × 8, and the preset multiple is 2, the pixel area corresponding to the new preset area is 16 × 16), so that an image with a larger pixel area is acquired, a new temperature measurement area image is obtained after interception, and the new temperature measurement area image is subjected to vision identification processing again. And if the temperature measuring area type and/or the temperature measuring object type corresponding to the new temperature measuring area image still cannot be obtained, shooting the temperature measuring area image with a larger pixel area again according to the preset multiple. And analogizing in sequence until the temperature measurement region type and/or the temperature measurement object type corresponding to the temperature measurement region image can be identified through visual identification processing, so that the situation that the shot image cannot be accurately identified due to too small pixel area of the selected preset region is avoided, the smooth implementation of the temperature measurement method is ensured, the intelligent degree is high, and the size of the preset region does not need to be manually adjusted by a user.
Further, the temperature measurement type includes a temperature measurement area type and a temperature measurement object type, and the step of screening the temperature measurement algorithm corresponding to the temperature measurement type includes:
s301, judging whether the object to be measured is a living object or not according to the type of the temperature measurement object;
s302, if the measured object is a living object, screening a temperature conversion formula matched with the type of the temperature measuring area and the type of the temperature measuring object, and taking the temperature conversion formula as the temperature measuring algorithm;
s303, if the measured object is not a living object, calling a first operation mode as the temperature measurement algorithm, wherein the first operation mode is to directly use the temperature measurement data as the temperature value of the measured object.
In this embodiment, the temperature measurement algorithm includes a temperature measurement rule and/or a temperature conversion formula, and the temperature measurement system obtains the temperature measurement object type of the measured object through a visual recognition technology, and then determines whether the measured object is a living object according to the temperature measurement object type. Because the temperature measurement data that temperature measurement sensor gathered are the surface temperature of testee, if the testee is not living thing (for example for objects such as ice cream, hot coffee), then can be with the temperature measurement data direct temperature value as the testee, temperature measurement system sets for the first operation mode of present time in view of the above and is: the temperature measurement data is the temperature value of the measured object. And if the measured object is a living object, screening a matched temperature conversion formula according to the type of the temperature measuring area of the measured object and the type of the temperature measuring object. Specifically, since the object to be measured is a living object and the temperature measurement data is the surface temperature of the object to be measured, the corresponding temperature compensation algorithm and distance compensation algorithm (i.e., temperature conversion formula) need to be called to perform corresponding processing on the temperature measurement data, so as to obtain the real temperature corresponding to the object to be measured. For example, the temperature measuring object type of the measured object is human, the temperature measuring area type is forehead, and the temperature measuring data is substituted into the temperature conversion formula to calculate the human body temperature so as to fit the real temperature condition of the measured object. Therefore, when the measured object is a living object, the temperature measurement system sets the temperature value of the measured object to be calculated according to the temperature measurement data and the temperature conversion formula, and the current temperature measurement algorithm is formed.
Further, still dispose range finding sensor on the mobile terminal, range finding sensor with infrared temperature sensor is adjacent to be set up, before the step of gathering the temperature measurement area image of testee and temperature measurement data, still include:
s5, acquiring the temperature measurement distance between the infrared temperature measurement sensor and the measured object through the distance measurement sensor;
s6, judging whether the temperature measuring distance is within a preset distance range;
and S7, if the temperature measuring distance is not within the preset distance range, outputting prompt information to remind a user to change the temperature measuring distance.
In this embodiment, when the user uses the mobile terminal to aim at the measured object to measure the temperature, the temperature measurement system obtains the temperature measurement distance between the infrared temperature measurement sensor and the measured object through the distance measurement sensor on the mobile terminal. The temperature measuring system is internally provided with a preset distance range, the preset distance range is a suitable distance for measuring temperature, the preferable distance is 28-32 cm, and the infrared temperature measuring sensor has higher accuracy in measuring the temperature within the preset distance range. The temperature measurement system compares the current temperature measurement distance with a preset distance range and judges whether the temperature measurement distance is within the preset distance range. And if the temperature measurement distance is within the preset distance range, the temperature measurement system adopts the temperature measurement data collected by the infrared temperature measurement sensor at the current time. If the temperature measurement distance is not within the preset distance range, the temperature measurement system outputs prompt information, and the prompt information is used for reminding a user to change the temperature measurement distance so that the temperature measurement distance is within the preset distance range. For example, the preset distance range is 28-32 cm, and the current temperature measurement distance is 40cm, the temperature measurement system prompts the user to approach the mobile terminal to the object to be measured, and indicates the approaching distance value, for example, the approaching distance value needs to be 8-12 cm.
Further, after the step of calculating a temperature value according to the temperature measurement data and the temperature measurement algorithm and using the temperature value as the temperature measurement result of the object to be measured, the method includes:
s8, marking the temperature value and the temperature measurement type on the temperature measurement area image;
and S9, outputting the marked temperature measurement area image to a display interface.
In this embodiment, after the temperature measurement system calculates the temperature value of the measured object, the temperature value and the temperature measurement type are marked on the photographed temperature measurement area image. And then, the marked temperature measurement area image is output to a display interface to be displayed, so that a user can visually know the real temperature of the measured object through the temperature measurement area image, the marked temperature measurement type and the marked temperature value, the method is simple and clear, and the use experience of the user is favorably improved.
Referring to fig. 3, an embodiment of the present application further provides a temperature measuring device, including:
the acquisition module 1 is used for acquiring temperature measurement area images and temperature measurement data of a measured object;
the identification module 2 is used for identifying the temperature measurement area image to obtain a temperature measurement type corresponding to the temperature measurement area image;
the screening module 3 is used for screening the temperature measurement algorithm corresponding to the temperature measurement type;
and the calculation module 4 is used for calculating to obtain a temperature value according to the temperature measurement data and the temperature measurement algorithm, and taking the temperature value as the temperature measurement result of the measured object.
Further, the temperature measurement method is applied to a mobile terminal, an infrared temperature measurement sensor and a camera are deployed on the mobile terminal, and the acquisition module 1 comprises:
the acquisition unit is used for acquiring the temperature measurement data of the measured object by using the infrared temperature measurement sensor and acquiring an image by using the camera;
the analysis unit is used for determining the pixel coordinate of a second infrared measurement point P' corresponding to the first infrared measurement point P on the imaging surface of the camera; the first infrared measurement point P is a measurement point when the infrared temperature measurement sensor is aligned with the measured object to acquire data;
and the intercepting unit is used for intercepting an image of a preset area on the imaging surface to obtain the image of the temperature measuring area, wherein the preset area is an area within N pixel ranges on the imaging surface by taking the pixel coordinate as the center, and N is not 0.
Further, the parsing unit includes:
the acquisition subunit is configured to construct a three-dimensional cartesian coordinate system with a lens center O of the camera as an origin, and respectively acquire relative position information between the lens center O of the camera and the first infrared measurement point P, and an image distance of the camera, where an X-axis of the three-dimensional cartesian coordinate system passes through the lens center O and has a same direction as an optical axis of a lens of the camera, a plane formed by a Y-axis and a Z-axis of the three-dimensional cartesian coordinate system is perpendicular to the X-axis of the three-dimensional cartesian coordinate system, and the image distance represents a first perpendicular distance from the second infrared measurement point P' to the plane formed by the Y-axis and the Z-axis of the three-dimensional cartesian coordinate system;
the first calculating subunit is used for calculating a second vertical distance from the second infrared measuring point P 'to a plane formed by an X axis and a Z axis of the three-dimensional Cartesian coordinate system and a third vertical distance from the second infrared measuring point P' to a plane formed by the X axis and the Y axis of the three-dimensional Cartesian coordinate system according to the relative position information and the image distance;
the second calculating subunit is configured to obtain a pixel size of a photosensitive chip of the camera, calculate, according to the pixel size and the second vertical distance, a first number of pixels in the Y-axis direction of the three-dimensional cartesian coordinate system between the center O 'of the imaging plane and the second infrared measurement point P', and calculate, according to the pixel size and the third vertical distance, a second number of pixels in the Z-axis direction of the three-dimensional cartesian coordinate system between the center O 'of the imaging plane and the second infrared measurement point P';
and the analyzing subunit is used for obtaining the pixel coordinate of the second infrared measurement point P' on the imaging surface according to the first pixel number and the second pixel number.
Further, the temperature measurement type includes a temperature measurement area type and/or a temperature measurement object type, and the identification module 2 includes:
the first judgment unit is used for carrying out visual identification processing on the temperature measurement area image and judging whether the temperature measurement area type and/or the temperature measurement object type corresponding to the temperature measurement area image is identified or not;
and the expanding unit is used for expanding the preset area according to a preset multiple if the temperature measuring area type and/or the temperature measuring object type corresponding to the temperature measuring area image cannot be identified, shooting to obtain a new temperature measuring area image, and performing visual identification processing on the new temperature measuring area image until the temperature measuring area type and/or the temperature measuring object type are/is obtained.
Further, the temperature measurement type includes a temperature measurement area type and a temperature measurement object type, and the screening module 3 includes:
the second judging unit is used for judging whether the object to be measured is a living object or not according to the type of the temperature measuring object;
the first setting unit is used for screening a temperature conversion formula matched with the type of the temperature measuring area and the type of the temperature measuring object if the measured object is a living object, and taking the temperature conversion formula as the temperature measuring algorithm;
and the second setting unit is used for calling a first operation mode as the temperature measurement algorithm if the measured object is not a living object, wherein the first operation mode is to directly use the temperature measurement data as the temperature value of the measured object.
Further, still dispose range finding sensor on the mobile terminal, range finding sensor with infrared temperature sensor is adjacent to be set up, temperature measuring device still includes:
the acquisition module 5 is used for acquiring the temperature measurement distance between the infrared temperature measurement sensor and the measured object through the distance measurement sensor;
the judging module 6 is used for judging whether the temperature measuring distance is within a preset distance range;
and the output module 7 is used for outputting prompt information to remind a user to change the temperature measuring distance if the temperature measuring distance is not within the preset distance range.
Further, the temperature measuring device further includes:
the marking module 8 is used for marking the temperature value and the temperature measurement type on the temperature measurement area image;
and the display module 9 is used for outputting the marked temperature measurement area image to a display interface.
In this embodiment, each module and unit in the temperature measuring device are used to correspondingly execute each step in the temperature measuring method, and the specific implementation process thereof is not described in detail herein.
According to the temperature measuring device provided by the embodiment, the temperature measuring device firstly collects the temperature measuring area image and the temperature measuring data of the measured object, and then the temperature measuring type corresponding to the temperature measuring area image is obtained by identifying the temperature measuring area image. The temperature measuring device screens a temperature measuring algorithm corresponding to the temperature measuring type, and calculates the temperature value of the current measured object according to the temperature measuring data and the temperature measuring algorithm. According to the method and the device, the temperature measurement type corresponding to the current measured object is identified and obtained by combining the shot temperature measurement area image, and then the temperature measurement algorithm corresponding to the temperature measurement type is screened. Under the condition that the temperature measurement algorithm corresponds to the temperature measurement type of the measured object, the acquired temperature measurement data is substituted to calculate the temperature value of the measured object, and the method has excellent universality and accuracy and is convenient for a user to operate and use.
Referring to fig. 4, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data such as a preset distance range and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a thermometry method.
The processor executes the temperature measuring method and comprises the following steps:
s1, acquiring temperature measuring area images and temperature measuring data of the measured object;
s2, identifying the temperature measuring area image to obtain a temperature measuring type corresponding to the temperature measuring area image;
s3, screening a temperature measurement algorithm corresponding to the temperature measurement type;
and S4, calculating to obtain a temperature value according to the temperature measurement data and the temperature measurement algorithm, and taking the temperature value as the temperature measurement result of the measured object.
Further, the temperature measuring method is applied to a mobile terminal, an infrared temperature measuring sensor and a camera are deployed on the mobile terminal, and the step of collecting the temperature measuring area image and the temperature measuring data of the measured object comprises the following steps:
s101, acquiring temperature measurement data of a measured object by using an infrared temperature measurement sensor, and acquiring an image by using a camera;
s102, determining the pixel coordinate of a second infrared measuring point P' corresponding to the first infrared measuring point P on the imaging surface of the camera; the first infrared measurement point P is a measurement point when the infrared temperature measurement sensor is aligned with the measured object to acquire data;
and S103, capturing an image of a preset area on the imaging surface to obtain the image of the temperature measuring area, wherein the preset area is an area within N pixel by N pixel ranges taking the pixel coordinate as the center on the imaging surface, and N is not 0.
Further, the step of determining the pixel coordinate of the second infrared measurement point P' corresponding to the first infrared measurement point P on the imaging surface of the camera includes:
s1021, constructing a three-dimensional Cartesian coordinate system by taking a lens center O of the camera as an origin, and respectively acquiring relative position information between the lens center O of the camera and the first infrared measurement point P and an image distance of the camera, wherein an X axis of the three-dimensional Cartesian coordinate system passes through the lens center O, the direction of the X axis is the same as the direction of an optical axis of a lens of the camera, a plane formed by the Y axis and the Z axis of the three-dimensional Cartesian coordinate system is mutually vertical to the X axis of the three-dimensional Cartesian coordinate system, and the image distance represents a first vertical distance from the second infrared measurement point P' to the plane formed by the Y axis and the Z axis of the three-dimensional Cartesian coordinate system;
s1022, according to the relative position information and the image distance, calculating to obtain a second vertical distance from the second infrared measurement point P 'to a plane formed by an X axis and a Z axis of the three-dimensional Cartesian coordinate system and a third vertical distance from the second infrared measurement point P' to a plane formed by the X axis and the Y axis of the three-dimensional Cartesian coordinate system;
s1023, acquiring the pixel size of a photosensitive chip of the camera, calculating to obtain a first pixel number between the center O 'of the imaging plane and the second infrared measuring point P' in the Y-axis direction of the three-dimensional Cartesian coordinate system according to the pixel size and the second vertical distance, and calculating to obtain a second pixel number between the center O 'of the imaging plane and the second infrared measuring point P' in the Z-axis direction of the three-dimensional Cartesian coordinate system according to the pixel size and the third vertical distance;
and S1024, obtaining the pixel coordinate of the second infrared measurement point P' on the imaging surface according to the first pixel number and the second pixel number.
Further, the temperature measurement type includes a temperature measurement area type and/or a temperature measurement object type, and the step of identifying the temperature measurement area image to obtain the temperature measurement type corresponding to the temperature measurement area image includes:
s201, carrying out visual identification processing on the temperature measurement area image, and judging whether the temperature measurement area type and/or the temperature measurement object type corresponding to the temperature measurement area image is identified or not;
s202, if the temperature measuring area type and/or the temperature measuring object type corresponding to the temperature measuring area image cannot be identified, the preset area is enlarged according to a preset multiple, a new temperature measuring area image is obtained through shooting, and visual identification processing is carried out on the new temperature measuring area image.
Further, the temperature measurement type includes a temperature measurement area type and a temperature measurement object type, and the step of screening the temperature measurement algorithm corresponding to the temperature measurement type includes:
s301, judging whether the object to be measured is a living object or not according to the type of the temperature measurement object;
s302, if the measured object is a living object, screening a temperature conversion formula matched with the type of the temperature measuring area and the type of the temperature measuring object, and taking the temperature conversion formula as the temperature measuring algorithm;
s303, if the measured object is not a living object, calling a first operation mode as the temperature measurement algorithm, wherein the first operation mode is to directly use the temperature measurement data as the temperature value of the measured object.
Further, still dispose range finding sensor on the mobile terminal, range finding sensor with infrared temperature sensor is adjacent to be set up, before the step of gathering the temperature measurement area image of testee and temperature measurement data, still include:
s5, acquiring the temperature measurement distance between the infrared temperature measurement sensor and the measured object through the distance measurement sensor;
s6, judging whether the temperature measuring distance is within a preset distance range;
and S7, if the temperature measuring distance is not within the preset distance range, outputting prompt information to remind a user to change the temperature measuring distance.
Further, after the step of calculating a temperature value according to the temperature measurement data and the temperature measurement algorithm and using the temperature value as the temperature measurement result of the object to be measured, the method includes:
s8, marking the temperature value and the temperature measurement type on the temperature measurement area image;
and S9, outputting the marked temperature measurement area image to a display interface.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a temperature measurement method, where the temperature measurement method specifically includes:
s1, acquiring temperature measuring area images and temperature measuring data of the measured object;
s2, identifying the temperature measuring area image to obtain a temperature measuring type corresponding to the temperature measuring area image;
s3, screening a temperature measurement algorithm corresponding to the temperature measurement type;
and S4, calculating to obtain a temperature value according to the temperature measurement data and the temperature measurement algorithm, and taking the temperature value as the temperature measurement result of the measured object.
Further, the temperature measuring method is applied to a mobile terminal, an infrared temperature measuring sensor and a camera are deployed on the mobile terminal, and the step of collecting the temperature measuring area image and the temperature measuring data of the measured object comprises the following steps:
s101, acquiring temperature measurement data of a measured object by using an infrared temperature measurement sensor, and acquiring an image by using a camera;
s102, determining the pixel coordinate of a second infrared measuring point P' corresponding to the first infrared measuring point P on the imaging surface of the camera; the first infrared measurement point P is a measurement point when the infrared temperature measurement sensor is aligned with the measured object to acquire data;
and S103, capturing an image of a preset area on the imaging surface to obtain the image of the temperature measuring area, wherein the preset area is an area within N pixel by N pixel ranges taking the pixel coordinate as the center on the imaging surface, and N is not 0.
Further, the step of determining the pixel coordinate of the second infrared measurement point P' corresponding to the first infrared measurement point P on the imaging surface of the camera includes:
s1021, constructing a three-dimensional Cartesian coordinate system by taking a lens center O of the camera as an origin, and respectively acquiring relative position information between the lens center O of the camera and the first infrared measurement point P and an image distance of the camera, wherein an X axis of the three-dimensional Cartesian coordinate system passes through the lens center O, the direction of the X axis is the same as the direction of an optical axis of a lens of the camera, a plane formed by the Y axis and the Z axis of the three-dimensional Cartesian coordinate system is mutually vertical to the X axis of the three-dimensional Cartesian coordinate system, and the image distance represents a first vertical distance from the second infrared measurement point P' to the plane formed by the Y axis and the Z axis of the three-dimensional Cartesian coordinate system;
s1022, according to the relative position information and the image distance, calculating to obtain a second vertical distance from the second infrared measurement point P 'to a plane formed by an X axis and a Z axis of the three-dimensional Cartesian coordinate system and a third vertical distance from the second infrared measurement point P' to a plane formed by the X axis and the Y axis of the three-dimensional Cartesian coordinate system;
s1023, acquiring the pixel size of a photosensitive chip of the camera, calculating to obtain a first pixel number between the center O 'of the imaging plane and the second infrared measuring point P' in the Y-axis direction of the three-dimensional Cartesian coordinate system according to the pixel size and the second vertical distance, and calculating to obtain a second pixel number between the center O 'of the imaging plane and the second infrared measuring point P' in the Z-axis direction of the three-dimensional Cartesian coordinate system according to the pixel size and the third vertical distance;
and S1024, obtaining the pixel coordinate of the second infrared measurement point P' on the imaging surface according to the first pixel number and the second pixel number.
Further, the temperature measurement type includes a temperature measurement area type and/or a temperature measurement object type, and the step of identifying the temperature measurement area image to obtain the temperature measurement type corresponding to the temperature measurement area image includes:
s201, carrying out visual identification processing on the temperature measurement area image, and judging whether the temperature measurement area type and/or the temperature measurement object type corresponding to the temperature measurement area image is identified or not;
s202, if the temperature measuring area type and/or the temperature measuring object type corresponding to the temperature measuring area image cannot be identified, the preset area is enlarged according to a preset multiple, a new temperature measuring area image is obtained through shooting, and visual identification processing is carried out on the new temperature measuring area image.
Further, the temperature measurement type includes a temperature measurement area type and a temperature measurement object type, and the step of screening the temperature measurement algorithm corresponding to the temperature measurement type includes:
s301, judging whether the object to be measured is a living object or not according to the type of the temperature measurement object;
s302, if the measured object is a living object, screening a temperature conversion formula matched with the type of the temperature measuring area and the type of the temperature measuring object, and taking the temperature conversion formula as the temperature measuring algorithm;
s303, if the measured object is not a living object, calling a first operation mode as the temperature measurement algorithm, wherein the first operation mode is to directly use the temperature measurement data as the temperature value of the measured object.
Further, still dispose range finding sensor on the mobile terminal, range finding sensor with infrared temperature sensor is adjacent to be set up, before the step of gathering the temperature measurement area image of testee and temperature measurement data, still include:
s5, acquiring the temperature measurement distance between the infrared temperature measurement sensor and the measured object through the distance measurement sensor;
s6, judging whether the temperature measuring distance is within a preset distance range;
and S7, if the temperature measuring distance is not within the preset distance range, outputting prompt information to remind a user to change the temperature measuring distance.
Further, after the step of calculating a temperature value according to the temperature measurement data and the temperature measurement algorithm and using the temperature value as the temperature measurement result of the object to be measured, the method includes:
s8, marking the temperature value and the temperature measurement type on the temperature measurement area image;
and S9, outputting the marked temperature measurement area image to a display interface.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware associated with instructions of a computer program, which may be stored on a non-volatile computer-readable storage medium, and when executed, may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, first object, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, first object, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of another identical element in a process, apparatus, first object or method that comprises the element.
The above description is only for the preferred embodiment of the present application and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.

Claims (10)

1. A method of measuring temperature, comprising:
acquiring a temperature measurement area image and temperature measurement data of a measured object;
identifying the temperature measuring area image to obtain a temperature measuring type corresponding to the temperature measuring area image;
screening a temperature measurement algorithm corresponding to the temperature measurement type;
and calculating to obtain a temperature value according to the temperature measurement data and the temperature measurement algorithm, and taking the temperature value as a temperature measurement result of the measured object.
2. The temperature measurement method according to claim 1, applied to a mobile terminal, wherein an infrared temperature measurement sensor and a camera are deployed on the mobile terminal, and the step of collecting the temperature measurement area image and the temperature measurement data of the measured object comprises:
acquiring the temperature measurement data of a measured object by using an infrared temperature measurement sensor, and acquiring an image by using the camera;
determining the pixel coordinate of a second infrared measuring point corresponding to the first infrared measuring point on the imaging surface of the camera; the first infrared measuring point is a measuring point when the infrared temperature measuring sensor is aligned with the measured object to acquire data;
and intercepting an image of a preset region on the imaging surface to obtain the image of the temperature measuring region, wherein the preset region is a region within N pixel ranges on the imaging surface by taking the pixel coordinate as the center, and N is not 0.
3. The method according to claim 2, wherein the step of determining the pixel coordinates of the first infrared measurement point at the second infrared measurement point corresponding to the imaging surface of the camera comprises:
establishing a three-dimensional Cartesian coordinate system by taking a lens center of the camera as an origin, and respectively acquiring relative position information between the lens center of the camera and the first infrared measurement point and an image distance of the camera, wherein an X axis of the three-dimensional Cartesian coordinate system passes through the lens center, the direction of the X axis is the same as the direction of an optical axis of a lens of the camera, a plane formed by a Y axis and a Z axis of the three-dimensional Cartesian coordinate system is mutually vertical to the X axis of the three-dimensional Cartesian coordinate system, and the image distance represents a first vertical distance from the second infrared measurement point to the plane formed by the Y axis and the Z axis of the three-dimensional Cartesian coordinate system;
according to the relative position information and the image distance, calculating to obtain a second vertical distance from the second infrared measurement to a plane formed by an X axis and a Z axis of the three-dimensional Cartesian coordinate system and a third vertical distance to a plane formed by the X axis and the Y axis of the three-dimensional Cartesian coordinate system;
acquiring the pixel size of a photosensitive chip of the camera, calculating to obtain the first pixel number between the center of the imaging plane and the second infrared measuring point in the Y-axis direction of the three-dimensional Cartesian coordinate system according to the pixel size and the second vertical distance, and calculating to obtain the second pixel number between the center of the imaging plane and the second infrared measuring point in the Z-axis direction of the three-dimensional Cartesian coordinate system according to the pixel size and the third vertical distance;
and obtaining the pixel coordinate of the second infrared measuring point on the imaging surface according to the first pixel number and the second pixel number.
4. The temperature measurement method according to claim 2, wherein the temperature measurement type includes a temperature measurement area type and/or a temperature measurement object type, and the step of identifying the temperature measurement area image to obtain the temperature measurement type corresponding to the temperature measurement area image includes:
performing visual identification processing on the temperature measurement area image, and judging whether the temperature measurement area type and/or the temperature measurement object type corresponding to the temperature measurement area image is identified or not;
if the temperature measuring area type and/or the temperature measuring object type corresponding to the temperature measuring area image cannot be identified, the preset area is enlarged according to a preset multiple, a new temperature measuring area image is obtained through shooting, and visual identification processing is carried out on the new temperature measuring area image.
5. The temperature measurement method according to claim 4, wherein the temperature measurement types include a temperature measurement region type and a temperature measurement object type, and the step of screening the temperature measurement algorithm corresponding to the temperature measurement types includes:
judging whether the object to be measured is a living object or not according to the type of the temperature measurement object;
if the measured object is a living object, screening a temperature conversion formula matched with the type of the temperature measuring area and the type of the temperature measuring object, and taking the temperature conversion formula as the temperature measuring algorithm;
and if the measured object is not a living object, calling a first operation mode as the temperature measurement algorithm, wherein the first operation mode is to directly use the temperature measurement data as the temperature value of the measured object.
6. The temperature measurement algorithm according to claim 2, wherein a distance measurement sensor is further deployed on the mobile terminal, the distance measurement sensor and the infrared temperature measurement sensor are adjacently disposed, and before the step of collecting the temperature measurement area image and the temperature measurement data of the object to be measured, the method further comprises:
acquiring the temperature measurement distance between the infrared temperature measurement sensor and the measured object through the distance measurement sensor;
judging whether the temperature measuring distance is within a preset distance range or not;
and if the temperature measurement distance is not within the preset distance range, outputting prompt information to remind a user of changing the temperature measurement distance.
7. The temperature measurement method according to claim 1, wherein the step of calculating a temperature value according to the temperature measurement data and the temperature measurement algorithm and using the temperature value as the temperature measurement result of the object to be measured comprises:
marking the temperature value and the temperature measurement type on the temperature measurement area image;
and outputting the marked temperature measurement area image to a display interface.
8. A temperature measuring device, comprising:
the acquisition module is used for acquiring temperature measurement area images and temperature measurement data of a measured object;
the identification module is used for identifying the temperature measuring area image to obtain a temperature measuring type corresponding to the temperature measuring area image;
the screening module is used for screening the temperature measurement algorithm corresponding to the temperature measurement type;
and the calculation module is used for calculating to obtain a temperature value according to the temperature measurement data and the temperature measurement algorithm, and taking the temperature value as the temperature measurement result of the measured object.
9. A computer device comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110540999.9A 2021-05-18 2021-05-18 Temperature measurement method and device and computer equipment Pending CN113237556A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110540999.9A CN113237556A (en) 2021-05-18 2021-05-18 Temperature measurement method and device and computer equipment
PCT/CN2021/113612 WO2022241964A1 (en) 2021-05-18 2021-08-19 Temperature measuring method, computer device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110540999.9A CN113237556A (en) 2021-05-18 2021-05-18 Temperature measurement method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN113237556A true CN113237556A (en) 2021-08-10

Family

ID=77135094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110540999.9A Pending CN113237556A (en) 2021-05-18 2021-05-18 Temperature measurement method and device and computer equipment

Country Status (2)

Country Link
CN (1) CN113237556A (en)
WO (1) WO2022241964A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113899395A (en) * 2021-09-03 2022-01-07 珠海格力电器股份有限公司 Temperature and humidity measuring method and device, computer equipment and storage medium
WO2022241964A1 (en) * 2021-05-18 2022-11-24 深圳市沃特沃德信息有限公司 Temperature measuring method, computer device, and computer-readable storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116520915B (en) * 2023-06-28 2023-09-05 泰山学院 Network center machine room temperature early warning control system based on thermal infrared image
CN116704009B (en) * 2023-08-10 2023-12-01 深圳普达核工业数字测控有限公司 Construction measurement data processing method, device and equipment based on prefabricated component

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040256541A1 (en) * 2001-01-19 2004-12-23 Honeywell International Inc. Method and apparatus for detecting objects using structured light patterns
CN110110629A (en) * 2019-04-25 2019-08-09 北京工业大学 Personal information detection method and system towards indoor environmental condition control
CN111412992A (en) * 2020-04-03 2020-07-14 华为技术有限公司 Method for measuring temperature and electronic equipment
CN111751001A (en) * 2019-03-26 2020-10-09 奇酷互联网络科技(深圳)有限公司 Temperature detection method, storage medium and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106855436B (en) * 2015-12-08 2019-06-18 深圳超多维光电子有限公司 A kind of terminal device and the method for temperature measurement
CN105488941B (en) * 2016-01-15 2018-10-30 中林信达(北京)科技信息有限责任公司 Double spectrum fire monitoring method and devices based on Infrared-Visible image
CN111968163B (en) * 2020-08-14 2023-10-10 济南博观智能科技有限公司 Thermopile array temperature measurement method and device
CN113237556A (en) * 2021-05-18 2021-08-10 深圳市沃特沃德信息有限公司 Temperature measurement method and device and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040256541A1 (en) * 2001-01-19 2004-12-23 Honeywell International Inc. Method and apparatus for detecting objects using structured light patterns
CN111751001A (en) * 2019-03-26 2020-10-09 奇酷互联网络科技(深圳)有限公司 Temperature detection method, storage medium and mobile terminal
CN110110629A (en) * 2019-04-25 2019-08-09 北京工业大学 Personal information detection method and system towards indoor environmental condition control
CN111412992A (en) * 2020-04-03 2020-07-14 华为技术有限公司 Method for measuring temperature and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022241964A1 (en) * 2021-05-18 2022-11-24 深圳市沃特沃德信息有限公司 Temperature measuring method, computer device, and computer-readable storage medium
CN113899395A (en) * 2021-09-03 2022-01-07 珠海格力电器股份有限公司 Temperature and humidity measuring method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2022241964A1 (en) 2022-11-24

Similar Documents

Publication Publication Date Title
CN113237556A (en) Temperature measurement method and device and computer equipment
WO2021208442A1 (en) Three-dimensional scene reconstruction system and method, device, and storage medium
CN111738215B (en) Human body temperature measuring method and computer equipment
CN113358231B (en) Infrared temperature measurement method, device and equipment
KR20200117251A (en) Apparatus and method for recommending cosmetics for skin type
Kawasue et al. Black cattle body shape and temperature measurement using thermography and KINECT sensor
CN111144398A (en) Target detection method, target detection device, computer equipment and storage medium
CN111563926B (en) Method, electronic device, medium and system for measuring physical size of object in image
CN114359334A (en) Target tracking method and device, computer equipment and storage medium
CN106197366A (en) The treating method and apparatus of range information
CN111507298A (en) Face detection method and device, computer equipment and storage medium
CN110458952A (en) A kind of three-dimensional rebuilding method and device based on trinocular vision
CN105180802B (en) A kind of dimension of object information identifying method and device
JP2019109200A (en) Data generation device for calibration, data generation method for calibration, calibration system, and control program
CN111626105A (en) Attitude estimation method and device and electronic equipment
WO2022052189A1 (en) Method and device for acquiring external features of animal, and computer device
CN110991306A (en) Adaptive wide-field high-resolution intelligent sensing method and system
CN113008380A (en) Intelligent AI body temperature early warning method, system and storage medium
JP2019165658A (en) Plant growth indicator measuring apparatus, method and program
CN106650656A (en) User identification device and robot
CN110889847A (en) Nuclear radiation damage assessment system and method based on infrared imaging
CN113446933B (en) External parameter calibration method, device and system for multiple three-dimensional sensors
CN113553920A (en) Gazing direction characteristic acquisition method and device, computer equipment and storage medium
CN112163519A (en) Image mapping processing method, device, storage medium and electronic device
CN112183271A (en) Image processing method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210810

RJ01 Rejection of invention patent application after publication