A method and system for batch calibration of multiple temperature measurement modules
By connecting multiple temperature measurement modules to the computer and surrounding them in front of the blackbody, the batch temperature calibration algorithm is used to solve the problem of low calibration efficiency of a single blackbody, achieve efficient calibration of multiple temperature measurement modules, and reduce costs.
Patent Information
- Application Number
- CN202111455467.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-02
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-12-02
AI Technical Summary
In the existing technology, the calibration efficiency of temperature measurement modules is low because one blackbody can only calibrate one temperature measurement module at a time, which results in the need to purchase multiple blackbodies to improve efficiency, but the cost is high.
By connecting multiple temperature measurement modules to the computer through USBHUB and surrounding them in front of the blackbody in a fan shape at a preset distance, the preset batch temperature calibration algorithm is used to perform temperature calibration on multiple temperature measurement modules at the same time, including binary processing and smoothing. Filtering and Bezier curve methods to determine calibration bias values.
Without increasing costs, the efficiency of temperature measurement module calibration is significantly improved, and simultaneous calibration of multiple temperature measurement modules is achieved, greatly improving calibration efficiency.
Smart Images

Figure CN114235169B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of temperature detection technology, and in particular to a method and system for batch calibrating multiple temperature measurement modules. Background Art
[0002] At present, temperature measurement has become a major function of the access control system. The temperature measurement function is realized by installing a temperature measurement module on the access control system. Before the temperature measurement module is installed in the access control system, it generally needs to be calibrated so that the temperature detected by the temperature measurement module is consistent with the actual temperature.
[0003] At present, black bodies are usually used to calibrate temperature measurement modules. However, one black body can only calibrate one temperature measurement module at a time, and the calibration efficiency is low. If the calibration efficiency is to be improved, multiple black bodies need to be purchased for synchronous calibration, which is very costly.
[0004] Therefore, it is necessary to propose a new temperature measurement module calibration method that can perform batch calibration on multiple temperature measurement modules at the same time. Summary of the invention
[0005] The embodiments of the present invention aim to provide a method and system for batch calibrating multiple temperature measurement modules, which can solve the problem that a black body can only calibrate one temperature measurement module at a time, resulting in low calibration efficiency.
[0006] In order to solve the above technical problems, the embodiment of the present invention provides the following technical solution: a method for batch calibrating multiple temperature measurement modules, the method comprising:
[0007] Connect several temperature measurement modules to the computer via USBHUB;
[0008] Place a number of temperature measurement modules in a fan shape around the black body at a preset distance;
[0009] Temperature calibration is performed on several temperature measurement modules simultaneously according to a preset batch temperature calibration algorithm.
[0010] Optionally, the step of surrounding the black body in a fan-shaped manner with a preset distance by a plurality of temperature measurement modules includes:
[0011] A clamp is used to clamp the temperature measuring module, and a plurality of temperature measuring modules are arranged in a fan shape in front of the black body at a preset distance.
[0012] Optionally, the method further comprises: the temperature measurement module outputs the temperature measurement image to a computer via a USBHUB.
[0013] Optionally, the temperature measurement module outputs the temperature measurement image to a computer via a USBHUB; including:
[0014] After a plurality of temperature measurement modules are arranged in a fan shape in front of the black body at a preset distance, the temperature measurement modules take a temperature measurement image of the black body;
[0015] The captured temperature measurement image is transmitted to a computer.
[0016] Optionally, the preset batch temperature calibration algorithm includes:
[0017] Binarizing the received temperature measurement image to obtain a binary image;
[0018] According to the binary image, determine the center point of the black body;
[0019] According to the determination of the center point of the black body, the calibration deviation value of the temperature measurement module is determined.
[0020] Optionally, the step of performing binarization processing on the received temperature measurement image to obtain a binarized image comprises:
[0021] The temperature measurement image is smoothed by using a smoothing spatial filter to remove temperature measurement noise;
[0022] Use a low-pass filter to filter the temperature measurement image and smooth out the noise in the frequency domain;
[0023] The filtered temperature measurement image is binarized to obtain a binary image.
[0024] Optionally, determining the center point of a black body according to the binarized image comprises:
[0025] Scanning the binary image row by row to determine the row containing the most 1 parts in the binary image, wherein the 1 part in the binary image is a part of the black body heating in the binary image;
[0026] For the row with the most 1 parts, perform upper and lower neighbor searches to determine the column with the most 1 parts in this row;
[0027] Based on the row with the most 1 parts and the column with the most 1 parts determined above, the intersection of the two is determined as the center point of the boldface.
[0028] Optionally, determining the calibration deviation value of the temperature measurement module according to determining the center point of the black body comprises:
[0029] Measuring the temperature of the center point of the black body to determine the temperature measurement value of the black body;
[0030] The temperature measurement value is compared with the preset temperature value of the black body to determine the calibration deviation value of the temperature measurement module.
[0031] Optionally, measuring the temperature of the center point of the black body to determine the temperature measurement value of the black body includes:
[0032] If only one preset temperature value is set for the black body, only one black body temperature measurement value is determined; or,
[0033] If a plurality of preset temperature values are set for the black body, a plurality of black body temperature measurement values are determined.
[0034] Optionally, when it is determined that there are a plurality of blackbody temperature measurement values, the plurality of blackbody temperature measurement values are converted into a smooth temperature calibration curve using a variant Bezier curve method, specifically comprising:
[0035] Given a blackbody preset temperature value T0, obtain the temperature measurement value (T0, D0) of the blackbody at the blackbody preset temperature value, where T0 is the blackbody preset temperature value, and D0 is the blackbody temperature measurement value corresponding to the blackbody preset temperature value;
[0036] Change the blackbody preset temperature value T n , repeat the previous step to obtain the blackbody temperature measurement value (T n , D n );
[0037] According to the blackbody preset temperature values, the blackbody temperature measurement value sequences at low temperature, normal temperature, and high temperature are obtained: (T0, D0), (T1, D1), ..., (T n , D n );
[0038] The variant Bezier curve method is used to convert the discrete blackbody temperature measurement value sequence into a smooth temperature calibration curve.
[0039] Optionally, the variant Bezier curve method includes:
[0040] Adding a pre-control point (0, D0) before the sequence means using the blackbody temperature measurement value D0 corresponding to the lowest temperature at 0 degrees;
[0041] Add a post-control point (60, D n ), indicating that the blackbody temperature measurement value D corresponding to the highest temperature is used at 60 degrees n ;
[0042] For every three adjacent calibration points (x0, y0), (x1, y1), (x2, y2), modify the coordinates of the middle calibration point to: x1=2*x1-(x0+x2) / 2, y1=2*y1-(y0+y2) / 2;
[0043] According to the modified coordinates of the intermediate calibration points, every three calibration points are used as input control points of the traditional Bezier curve to draw a Bezier curve, and the Bezier curve is the final temperature calibration curve.
[0044] Optionally, the method further includes: writing the calibration deviation value to a corresponding temperature measurement module via a USB HUB.
[0045] To solve the above technical problems, the embodiments of the present invention further provide the following technical solutions: a system for batch calibrating multiple temperature measuring modules, applied to a method for batch calibrating multiple temperature measuring modules described in any embodiment of the present invention, the system comprising: a computer, at least one USBHUB, a black body and a plurality of temperature measuring modules; wherein:
[0046] The USBHUB includes a plurality of USB serial port modules, each of which is connected to the temperature measurement module via a USB to serial port converter, so that the plurality of temperature measurement modules are connected to the computer via the USBHUB;
[0047] A plurality of the temperature measuring modules are arranged in a fan shape in front of the black body at a preset distance;
[0048] The computer stores and runs a preset batch temperature calibration algorithm, and performs temperature calibration on a plurality of temperature measurement modules simultaneously according to the preset batch temperature calibration algorithm.
[0049] Compared with the prior art, the method and system for batch calibration of multiple temperature measurement modules provided in the embodiment of the present invention connects several temperature measurement modules to a computer via a USBHUB, surrounds several temperature measurement modules in front of a black body in a fan shape at a preset distance, so that each temperature measurement module can capture the black body, and performs temperature calibration on several temperature measurement modules at the same time according to a preset batch temperature calibration algorithm. Thus, by using a black body combined with a preset batch temperature calibration algorithm, temperature calibration can be performed on several temperature measurement modules at the same time, greatly improving the calibration efficiency without increasing the cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0051] Figure 1 It is a flow chart of a method for batch calibrating multiple temperature measurement modules provided by an embodiment of the present invention;
[0052] Figure 2It is a structural schematic diagram of a system for batch calibrating multiple temperature measurement modules provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to facilitate the understanding of the present invention, the present invention is described in more detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that when an element is described as "fixed to" another element, it can be directly on another element or there can be one or more centered elements therebetween. When an element is described as "connected" to another element, it can be directly connected to another element or there can be one or more centered elements therebetween. The orientation or positional relationship indicated by the terms "upper", "lower", "inner", "outer", "bottom" etc. used in this specification is based on the orientation or positional relationship shown in the accompanying drawings, only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", "third", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0054] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in this specification and in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.
[0055] In addition, the technical features involved in different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0056] The temperature measurement module in the access control system generally needs to be calibrated before it can reflect the actual temperature. The temperature calibration of the temperature measurement module is calibrated using a black body. The specific process of using a black body to calibrate the temperature measurement module is as follows: set the black body to a specified temperature, then place the black body in front of the temperature measurement module, check the temperature read by the temperature measurement module, compare the measured temperature value with the specified temperature value of the black body, and the deviation value is the calibration deviation value of the temperature measurement module. This deviation value is written into the temperature measurement module. This process is called calibration. When the temperature measurement module actually measures the temperature, it adds the calibration deviation value to the temperature measurement value to obtain a basically bias-free measurement temperature. However, one black body can only calibrate one temperature measurement module at a time, and the calibration efficiency is low. If you want to improve the calibration efficiency, you need to purchase multiple black bodies for synchronous calibration, which is very costly.
[0057] In view of this, the present invention proposes a method for batch calibration of multiple temperature measurement modules, which uses a black body combined with a preset batch temperature calibration algorithm to perform temperature calibration on several temperature measurement modules at the same time, which can greatly improve the calibration efficiency without increasing the cost.
[0058] Based on the above-mentioned method for batch calibration of multiple temperature measurement modules, the present invention proposes the following embodiments. It should be noted that the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other, and are not limited to the embodiments proposed below.
[0059] In one embodiment, Figure 1 As shown, the present invention provides a method for batch calibrating multiple temperature measurement modules, the method comprising:
[0060] S1. Connect several temperature measurement modules to the computer via USBHUB (Universal Serial Bus Hub);
[0061] S2, surrounding the black body in a fan shape at a preset distance in front of a plurality of temperature measurement modules, so that each temperature measurement module can capture the black body;
[0062] S3. Perform temperature calibration on several temperature measurement modules simultaneously according to a preset batch temperature calibration algorithm.
[0063] In this embodiment, by connecting several temperature measuring modules to a computer via a USBHUB, the several temperature measuring modules are placed in a fan shape in front of a black body at a preset distance, so that each temperature measuring module can capture the black body, and temperature calibration is performed on several temperature measuring modules at the same time according to a preset batch temperature calibration algorithm. Thus, by using a black body in combination with a preset batch temperature calibration algorithm, temperature calibration can be performed on several temperature measuring modules at the same time, greatly improving the calibration efficiency without increasing the cost.
[0064] In one embodiment, in step S1, the plurality of temperature measurement modules are connected to a computer via a USB HUB.
[0065] The system for batch calibrating multiple temperature measuring modules corresponding to the method for batch calibrating multiple temperature measuring modules includes a computer, multiple USBHUBs and several temperature measuring modules, and the multiple USBHUBs are connected in series to the computer; each USBHUB includes several USB serial port modules, and each of the USB serial port modules is connected to the temperature measuring module via a USB to serial port converter, thereby connecting several temperature measuring modules to the USB serial port modules and then connecting them to the computer via the USBHUB.
[0066] For example, the system includes 4 USBHUBs, each USBHUB includes 4 USB serial port modules, and 16 temperature measurement modules can be connected to the computer through the USBHUB.
[0067] like Figure 2 As shown, a USBHUB is shown, including 4 USB serial port modules, and 4 temperature measurement modules can be connected to a computer through the USBHUB.
[0068] In one embodiment, in step S2, surrounding the black body in a fan-shaped manner with a preset distance with a plurality of temperature measurement modules includes:
[0069] A clamp is used to clamp the temperature measuring module, and a plurality of temperature measuring modules are arranged in a fan shape in front of the black body at a preset distance, so that each temperature measuring module can photograph the black body.
[0070] In this embodiment, a preset distance is set between the temperature measuring module and the black body, and each temperature measuring module is clamped by a fixture, and fan-shaped around the front of the black body at a preset distance, so that each temperature measuring module does not block each other and can capture the image of the black body. Preferably, the preset distance is 0.5 meters.
[0071] In one embodiment, the step S2 further includes: the temperature measurement module outputs the temperature measurement image to the computer via the USBHUB through the reserved serial port protocol. Specifically including:
[0072] After a plurality of temperature measurement modules are arranged in a fan shape in front of the black body at a preset distance, the temperature measurement modules take a temperature measurement image of the black body;
[0073] The temperature measurement module is connected to a computer via a USB HUB, and the captured temperature measurement image is transmitted to the computer.
[0074] In this embodiment, the temperature measurement module establishes a communication connection with the computer through a serial port protocol to perform data transmission. After taking a temperature measurement image of the black body, it transmits it to the computer through the serial port protocol so that the computer can perform image processing on the temperature measurement image.
[0075] In one embodiment, in step S3, temperature calibration is performed on a plurality of temperature measurement modules simultaneously according to a preset batch temperature calibration algorithm.
[0076] The preset batch temperature calibration algorithm is stored in a computer and is run by the computer. The preset batch temperature calibration algorithm includes:
[0077] S31, binarizing the received temperature measurement image to obtain a binarized image; comprising:
[0078] 1) Use smoothing spatial filtering to smooth the temperature measurement image and remove temperature measurement noise.
[0079] Smoothing spatial filtering is a low-frequency enhanced spatial filtering technology, which is mainly used for blurring and noise reduction.
[0080] In this embodiment, smoothing spatial filtering is used to smooth the temperature measurement image transmitted by the temperature measurement module to remove temperature measurement noise of the temperature measurement image.
[0081] 2) Use a low-pass filter to filter the temperature measurement image and smooth out the noise in the frequency domain.
[0082] Low-pass filtering allows low-frequency signals to pass normally, while blocking and weakening high-frequency signals that exceed the set critical value. In the field of digital image processing, from the frequency domain, low-pass filtering can smooth and denoise the image, filter out the noise in the image, and make the image smooth.
[0083] In this embodiment, a low-pass filter is used to filter the temperature measurement image from which the temperature measurement noise has been removed with a k coefficient, and the noise is removed by smoothing in the frequency domain to obtain a filtered temperature measurement image.
[0084] 3) Binarize the filtered temperature measurement image to obtain a binary image.
[0085] Image binarization is the process of setting the grayscale value of pixels on an image to 0 or 255, which is the process of making the entire image appear in obvious black and white.
[0086] In digital image processing, binary images play a very important role. First, the binarization of images is conducive to further processing of images, making the images simpler, reducing the amount of data, and highlighting the outline of the target of interest. Secondly, to process and analyze binary images, the grayscale image must first be binarized to obtain a binary image.
[0087] All pixels with grayscale greater than or equal to the threshold are judged to belong to a specific object, and their grayscale value is 255. Otherwise, these pixels are excluded from the object area, and the grayscale value is 0, indicating the background or exceptional object area.
[0088] In this embodiment, since the temperature difference between the black body and the background is large, the portion where the black body is heated is set to 1, and the portion where the background temperature is low is set to 0, and the filtered temperature measurement image is binarized to obtain a binarized image.
[0089] S32, determining the center point of the black body according to the binary image; comprising:
[0090] Scanning the binary image row by row to determine the row containing the most 1 parts in the binary image, wherein the 1 part in the binary image is a part of the black body heating in the binary image;
[0091] For the row with the most 1 parts, perform upper and lower neighbor searches to determine the column with the most 1 parts in this row;
[0092] Based on the row with the most 1 parts and the column with the most 1 parts determined above, the intersection of the two is determined as the center point of the boldface.
[0093] S33, determining the calibration deviation value of the temperature measurement module according to the determined black body center point; including:
[0094] 1) Measure the temperature of the center point of the black body to determine the temperature measurement value of the black body.
[0095] After the center point of the black body is determined, the temperature of the center point of the black body is measured to determine the black body temperature measurement value.
[0096] Before the blackbody is calibrated with the temperature measurement module, a preset temperature value is generally set for the blackbody in advance. If only one preset temperature value is set for the blackbody, there is only one calibration point, and at this time, there is only one blackbody temperature measurement value to be determined; or
[0097] If multiple preset temperature values are set for the black body, there are multiple calibration points, each calibration point corresponds to a black body temperature measurement value. At this time, there are multiple black body temperature measurement values. At this time, it is necessary to convert the multiple discrete black body temperature measurement values into a smooth temperature calibration curve using a variant Bezier curve method, so that a black body temperature measurement value can be obtained for each calibration point. The specific process is as follows:
[0098] 1. Given a blackbody preset temperature value T0, obtain the temperature measurement value (T0, D0) of the blackbody at the blackbody preset temperature value, where T0 is the blackbody preset temperature value, and D0 is the corresponding blackbody temperature measurement value at the blackbody preset temperature value.
[0099] 2. Change the blackbody preset temperature value T n Repeat step 1 above to obtain the blackbody temperature measurement value (T n ,D n ).
[0100] 3. Sort the blackbody preset temperature values from low temperature to high temperature, and obtain the blackbody temperature measurement value sequence at low temperature, normal temperature, and high temperature respectively:
[0101] (T0,D0), (T1,D1),..., (T n,D n )
[0102] 4. A variant of the Bezier curve method is used to convert the above discrete blackbody temperature measurement value sequence into a smooth temperature calibration curve, so that a corresponding blackbody temperature measurement value can be obtained for each blackbody preset temperature value (calibration point).
[0103] The variant Bezier curve method includes:
[0104] 1) Add a leading control point (0, D0) before the sequence, indicating that the blackbody temperature measurement value D0 corresponding to the lowest temperature is used at 0 degrees.
[0105] 2) Add a post-control point after the sequence (60, D n ), indicating that the blackbody temperature measurement value D corresponding to the highest temperature is used at 60 degrees n .
[0106] 3) For every three adjacent calibration points (x0, y0), (x1, y1), (x2, y2), modify the coordinates of the middle calibration point to:
[0107] x1=2*x1-(x0+x2) / 2
[0108] y1=2*y1-(y0+y2) / 2
[0109] 4) According to the modified coordinates of the intermediate calibration points, every three calibration points are used as input control points of the traditional Bezier curve to draw a Bezier curve. This Bezier curve is the final temperature calibration curve.
[0110] For example, the following is a specific example to illustrate the above specific process in detail.
[0111] Before the black body is calibrated with the temperature measurement module, a preset temperature value is set for the black body in advance. For example, a preset temperature value is set for the black body as follows:
[0112] Set the preset temperature value of the blackbody to 20 degrees (T0=20), measure the temperature of the center point of the blackbody, and obtain a corresponding blackbody temperature measurement value (D0=19);
[0113] Set the preset temperature value of the blackbody to 30 degrees (T1=30), measure the temperature of the center point of the blackbody, and obtain a corresponding blackbody temperature measurement value (D1=31);
[0114] Set the preset temperature value of the blackbody to 40 degrees (T2=40), measure the temperature of the center point of the blackbody, and obtain a corresponding blackbody temperature measurement value (D2=40);
[0115] This gives us 3 (T x ,D x )’s calibration points:
[0116] (19,20), (31,30), (40,40)
[0117] By interpolating these three calibration points using a modified Bezier curve, a complete temperature calibration curve is obtained.
[0118] Get a complete temperature calibration curve. When measuring the blackbody temperature D x =39 degrees, then according to the temperature calibration curve, the actual value can be obtained as 39.1 degrees.
[0119] In this embodiment, the defect that the traditional Bezier curve does not pass through all control points (calibration points) can be solved by using a variant Bezier curve, so that the variant Bezier curve passes through all control points and can more accurately control the temperature correction deviation.
[0120] 2) Compare the temperature measurement value with the preset temperature value of the black body to determine the calibration deviation value of the temperature measurement module.
[0121] Before the black body is used to calibrate the temperature measurement module, a preset temperature value is generally set for the black body in advance.
[0122] The temperature measurement value determined above is compared with the preset temperature value of the black body, and the difference between the temperature measurement value and the preset temperature value is used as the calibration deviation value of the temperature measurement module, thereby determining the calibration deviation value of the temperature measurement module.
[0123] In one embodiment, the method further includes: the computer writes the calibration deviation value to the corresponding temperature measurement module via a USB HUB to complete the temperature calibration of the corresponding temperature measurement module.
[0124] The above is an explanation of the temperature calibration of a temperature measuring module, but in actual operation, several temperature measuring modules are placed in a fan shape in front of a black body at a preset distance. Each temperature measuring module can simultaneously capture the black body and obtain a corresponding temperature measurement image. Each temperature measurement image is transmitted to a computer. The computer runs a preset batch temperature calibration algorithm and performs batch temperature calibration on several temperature measuring modules at the same time. This achieves the purpose of using a black body combined with a preset batch temperature calibration algorithm to perform temperature calibration on several temperature measuring modules at the same time, which greatly improves the calibration efficiency without increasing the cost.
[0125] Based on the same concept, in one embodiment, Figure 2As shown, the present invention provides a system for batch calibrating multiple temperature measuring modules, which is applied to a method for batch calibrating multiple temperature measuring modules described in any of the above embodiments, and the system includes: a computer 1, at least one USBHUB 2, a black body 3 and a plurality of temperature measuring modules 4; wherein:
[0126] The USBHUB 2 includes a plurality of USB serial port modules 21, each of which is connected to the temperature measurement module 4 via a USB to serial port converter, so that the plurality of temperature measurement modules 4 are connected to the computer 1 via the USBHUB 2;
[0127] A plurality of the temperature measuring modules 4 are arranged in a fan shape in front of the black body 3 at a preset distance;
[0128] The computer 1 stores and runs a preset batch temperature calibration algorithm, and performs temperature calibration on a plurality of temperature measurement modules 4 simultaneously according to the preset batch temperature calibration algorithm.
[0129] For example, the system for batch calibration of multiple temperature measurement modules includes 4 USBHUBs, each USBHUB includes 4 USB serial port modules, and 16 temperature measurement modules can be connected to a computer through the USBHUB.
[0130] like Figure 2 As shown, a USBHUB is shown, including 4 USB serial port modules, and 4 temperature measurement modules can be connected to a computer through the USBHUB.
[0131] In this embodiment, the USBHUB includes several USB serial port modules, each of which is connected to the temperature measurement module through a USB to serial port converter, so that several temperature measurement modules are connected to the computer through the USBHUB; several temperature measurement modules are arranged in a fan shape in front of the black body at a preset distance; the computer stores and runs a preset batch temperature calibration algorithm, and performs temperature calibration on several temperature measurement modules at the same time according to the preset batch temperature calibration algorithm. Therefore, by using a black body combined with a preset batch temperature calibration algorithm, several temperature measurement modules can be temperature calibrated at the same time, which greatly improves the calibration efficiency without increasing the cost.
[0132] In one embodiment, the system further comprises a clamp for clamping the temperature measuring module 4 , and surrounding a plurality of temperature measuring modules 4 in a fan shape in front of the black body 3 at a preset distance, so that each temperature measuring module 4 can photograph the black body 3 .
[0133] In this embodiment, a preset distance is set between the temperature measuring module and the black body, and each temperature measuring module is clamped by a fixture, and fan-shaped around the front of the black body at a preset distance, so that each temperature measuring module does not block each other and can capture the image of the black body. Preferably, the preset distance is 0.5 meters.
[0134] In one embodiment, the temperature measurement module 4 is also used to output the temperature measurement image to the computer 1 through the USBHUB 2 via the reserved serial port protocol. Specifically including:
[0135] After a plurality of temperature measurement modules 4 surround the front of the black body in a fan shape at a preset distance, the temperature measurement modules 4 take a temperature measurement image of the black body;
[0136] The temperature measurement module 4 is connected to the computer 1 via the USBHUB 2 to transmit the captured temperature measurement image to the computer 1 .
[0137] In one embodiment, the preset batch temperature calibration algorithm is stored in the computer 1 and is run by the computer 1. The preset batch temperature calibration algorithm includes: binarizing the received temperature measurement image to obtain a binarized image; determining the center point of the black body according to the binarized image; and determining the calibration deviation value of the temperature measurement module according to the determined center point of the black body.
[0138] The step of performing binarization processing on the received temperature measurement image to obtain a binarized image comprises:
[0139] 1) Use smoothing spatial filtering to smooth the temperature measurement image and remove temperature measurement noise.
[0140] Smoothing spatial filtering is a low-frequency enhanced spatial filtering technology, which is mainly used for blurring and noise reduction.
[0141] In this embodiment, smoothing spatial filtering is used to smooth the temperature measurement image transmitted by the temperature measurement module to remove temperature measurement noise of the temperature measurement image.
[0142] 2) Use a low-pass filter to filter the temperature measurement image and smooth out the noise in the frequency domain.
[0143] Low-pass filtering allows low-frequency signals to pass normally, while blocking and weakening high-frequency signals that exceed the set critical value. In the field of digital image processing, from the frequency domain, low-pass filtering can smooth and denoise the image, filter out the noise in the image, and make the image smooth.
[0144] In this embodiment, a low-pass filter is used to filter the temperature measurement image from which the temperature measurement noise has been removed with a k coefficient, and the noise is removed by smoothing in the frequency domain to obtain a filtered temperature measurement image.
[0145] 3) Binarize the filtered temperature measurement image to obtain a binary image.
[0146] Image binarization is the process of setting the grayscale value of pixels on an image to 0 or 255, which is the process of making the entire image appear in obvious black and white.
[0147] In digital image processing, binary images play a very important role. First, the binarization of images is conducive to further processing of images, making the images simpler, reducing the amount of data, and highlighting the outline of the target of interest. Secondly, to process and analyze binary images, the grayscale image must first be binarized to obtain a binary image.
[0148] All pixels with grayscale greater than or equal to the threshold are judged to belong to a specific object, and their grayscale value is 255. Otherwise, these pixels are excluded from the object area, and the grayscale value is 0, indicating the background or exceptional object area.
[0149] In this embodiment, since the temperature difference between the black body and the background is large, the portion where the black body is heated is set to 1, and the portion where the background temperature is low is set to 0, and the filtered temperature measurement image is binarized to obtain a binarized image.
[0150] In one embodiment, determining the center point of the black body according to the binary image comprises:
[0151] Scanning the binary image row by row to determine the row containing the most 1 parts in the binary image, wherein the 1 part in the binary image is a part of the black body heating in the binary image;
[0152] For the row with the most 1 parts, perform upper and lower neighbor searches to determine the column with the most 1 parts in this row;
[0153] Based on the row with the most 1 parts and the column with the most 1 parts determined above, the intersection of the two is determined as the center point of the boldface.
[0154] In one embodiment, the step of determining the calibration deviation value of the temperature measurement module based on the determination of the black body center point comprises:
[0155] 1) The temperatures of the black body center points are averaged to obtain a temperature average value, which is used as a temperature measurement value.
[0156] After the center point of the black body is determined, the temperature of the center point of the black body is detected multiple times, and the detected temperatures are averaged multiple times to obtain an average temperature value, and the average temperature value is used as the temperature measurement value.
[0157] 2) Compare the temperature measurement value with the preset temperature value of the black body to determine the calibration deviation value of the temperature measurement module.
[0158] Before the black body is used to calibrate the temperature measurement module, a preset temperature value is generally set for the black body in advance.
[0159] The temperature measurement value determined above is compared with the preset temperature value of the black body, and the difference between the temperature measurement value and the preset temperature value is used as the calibration deviation value of the temperature measurement module, thereby determining the calibration deviation value of the temperature measurement module.
[0160] In one embodiment, the computer 1 is further used to write the calibration deviation value to the corresponding temperature measurement module 4 through the USB HUB 2 to complete the temperature calibration of the corresponding temperature measurement module 4 .
[0161] The above is an explanation of the temperature calibration of a temperature measuring module, but in actual operation, several temperature measuring modules are placed in a fan shape in front of a black body at a preset distance. Each temperature measuring module can simultaneously capture the black body and obtain a corresponding temperature measurement image. Each temperature measurement image is transmitted to a computer. The computer runs a preset batch temperature calibration algorithm and performs batch temperature calibration on several temperature measuring modules at the same time. This achieves the purpose of using a black body combined with a preset batch temperature calibration algorithm to perform temperature calibration on several temperature measuring modules at the same time, which greatly improves the calibration efficiency without increasing the cost.
[0162] It should be noted that the above-mentioned system embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the system embodiment, which will not be repeated here.
[0163] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0164] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for batch calibration of multiple temperature measurement modules, characterized in that: The method comprises: Connect several temperature measurement modules to the computer via USB HUB; Place a number of temperature measurement modules in a fan shape around the black body at a preset distance; The temperature measurement module captures a temperature measurement image of the black body, and transmits the captured temperature measurement image to a computer via a USB HUB; Perform temperature calibration on several temperature measurement modules simultaneously according to the preset batch temperature calibration algorithm, including: Binarizing the received temperature measurement image to obtain a binary image; According to the binary image, determine the center point of the black body; According to the determination of the center point of the black body, the calibration deviation value of the temperature measurement module is determined, including: measuring the temperature determined as the center point of the black body to determine the temperature measurement value of the black body; including: setting multiple preset temperature values for the black body, and then there are multiple black body temperature measurement values; when there are multiple black body temperature measurement values, the multiple black body temperature measurement values are converted into a smooth temperature calibration curve using a variant Bezier curve method, specifically including: given a black body preset temperature value T0, obtaining the temperature measurement value (T0, D0) of the black body at the black body preset temperature value, wherein T0 is the black body preset temperature value, and D0 is the black body temperature measurement value corresponding to the black body preset temperature value; changing the black body preset temperature value T0 n Repeat the previous step to obtain the blackbody temperature measurement value (T n , D n ); sort the blackbody preset temperature values from low temperature to high temperature, and obtain the blackbody temperature measurement value sequence at low temperature, normal temperature, and high temperature respectively: (T0, D0), (T1, D1), ..., (T n , D n ); using a variant Bezier curve method, the above discrete blackbody temperature measurement value sequence is converted into a smooth temperature calibration curve; wherein the variant Bezier curve method includes: adding a front control point (0, D0) before the sequence, indicating that the blackbody temperature measurement value D0 corresponding to the lowest temperature is used at 0 degrees; adding a rear control point (60, D n ), indicating that the blackbody temperature measurement value D corresponding to the highest temperature is used at 60 degrees n ; For every three adjacent calibration points (x0, y0), (x1, y1), (x2, y2), modify the coordinates of the middle calibration point to: x1=2*x1-(x0+x2) / 2, y1=2*y1-(y0+y2) / 2; according to the modified coordinates of the middle calibration point, every three calibration points are used as input control points of the traditional Bezier curve to draw the Bezier curve, and the Bezier curve is the final temperature calibration curve; compare the temperature measurement value with the blackbody preset temperature value to determine the calibration deviation value of the temperature measurement module.
2. The method according to claim 1, characterized in that The method of surrounding the black body in a fan-shaped manner with a preset distance comprises: A clamp is used to clamp the temperature measuring module, and a plurality of temperature measuring modules are arranged in a fan shape in front of the black body at a preset distance.
3. The method according to claim 1, characterized in that The step of performing binarization processing on the received temperature measurement image to obtain a binarized image comprises: The temperature measurement image is smoothed by using a smoothing spatial filter to remove temperature measurement noise; Use a low-pass filter to filter the temperature measurement image and smooth out the noise in the frequency domain; The filtered temperature measurement image is binarized to obtain a binary image.
4. The method according to claim 1, characterized in that: Determining the center point of the black body according to the binary image comprises: Scanning the binary image row by row to determine the row containing the most 1 parts in the binary image, wherein the 1 part in the binary image is a part of the black body heating in the binary image; For the row with the most 1 parts, perform upper and lower neighbor searches to determine the column with the most 1 parts in this row; Based on the row with the most 1 parts and the column with the most 1 parts determined above, the intersection of the two is determined as the center point of the boldface.
5. The method according to claim 1, characterized in that The method further includes: writing the calibration deviation value to the corresponding temperature measurement module via the USB HUB.
6. A system for batch calibration of multiple temperature measurement modules, characterized in that: A method for batch calibrating multiple temperature measurement modules according to any one of claims 1 to 5, wherein the system comprises: a computer, at least one USB HUB, a black body, and a plurality of temperature measurement modules; wherein: The USB HUB includes a plurality of USB serial port modules, each of which is connected to the temperature measurement module via a USB to serial port converter, so that the plurality of temperature measurement modules are connected to the computer via the USB HUB; A plurality of the temperature measuring modules are arranged in a fan shape in front of the black body at a preset distance; The computer stores and runs a preset batch temperature calibration algorithm, and performs temperature calibration on a plurality of temperature measurement modules simultaneously according to the preset batch temperature calibration algorithm.
Citation Information
Patent Citations
Temperature-sensitive camera temperature compensation method and system
CN112393808A
System and Method for Determining Health Status of Object
KR1020150129937A
System and method for measuring temperature with blackbody source
KR102211136B1
Non-uniformity correction for focal plane arrays
US20210096031A1
