Rapid temperature measurement method and system applied to infrared image
By dividing the AD value range of the infrared image into multiple sections and constructing the section function, the problem of large calculation amount of high-resolution images in infrared temperature measurement technology is solved, and high frame rate and high-precision temperature matrix output is achieved, reducing the platform costs.
Patent Information
- Application Number
- CN202410580565.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-08-30
AI Technical Summary
Existing infrared temperature measurement technology requires a large amount of calculation when processing high-resolution images, cannot achieve high frame rate requirements, and the platform cost is high to meet the performance requirements.
By dividing the AD value range of the infrared image into multiple segments, a segment function is constructed, and the segment function is used to calculate the temperature for each pixel point, thereby reducing the number of calculations and achieving rapid temperature measurement.
It achieves full-image temperature measurement with high frame rates while ensuring temperature measurement accuracy. It supports infrared detector products with any resolution to achieve temperature matrix output with any frame rate requirements on each platform, reducing computational complexity and cost.
Smart Images

Figure CN118565632A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of infrared temperature measurement, and in particular relates to a rapid temperature measurement method and system applied to infrared images. Background Art
[0002] At present, infrared equipment is widely used in many fields, including human body temperature measurement in the medical industry, and industrial temperature measurement in power detection and fire detection. In the application of fire detection, it is usually only necessary to measure the temperature of the center point of the image, the highest temperature and the lowest temperature. In the applications of the medical industry and power detection, it is often necessary to measure the temperature of each pixel in the entire image (hereinafter referred to as the temperature matrix), which will greatly increase the amount of calculation for temperature measurement. For example, when the image resolution is 120×90, the temperature of 10,800 pixels needs to be calculated; and when the resolution is 640*512, the temperature of 327,680 pixels needs to be calculated. The temperature calculation needs to obtain the radiation of the target through the infrared detector and then go through a series of algorithms to achieve it. It can be seen that if the conventional calculation method is used, it is necessary to calculate A (A is the product of the image resolution) temperature measurement algorithms to obtain the temperature matrix of the image. With such a large amount of calculation, it is impossible to achieve the basic frame rate requirements by using a general platform, and choosing a platform whose performance meets the frame rate requirements will increase the cost of the product. Summary of the invention
[0003] The purpose of the present invention is to overcome the defects of the prior art. The present invention provides a rapid temperature measurement method and system for infrared images. The present invention can support infrared detector products of any resolution and can achieve temperature matrix output with any frame rate requirements on various platforms.
[0004] In order to achieve the expected effect, the present invention adopts the following technical solutions:
[0005] The invention discloses a rapid temperature measurement method applied to infrared images, comprising:
[0006] Obtain the minimum AD value and the maximum AD value in the target infrared image. The AD value is the output value converted from the thermal radiation of the target object received by the infrared detector;
[0007] Divide the range from the minimum AD value to the maximum AD value into N different segments connected in sequence, where N is a positive integer and N≥1;
[0008] According to the mapping algorithm of AD value to temperature, the temperatures corresponding to the AD values of the N different sections are obtained;
[0009] According to the temperatures corresponding to the AD values of the N different sections, section functions corresponding to the N different sections are constructed, wherein the independent variable of the section function is the AD value and the dependent variable is the temperature;
[0010] For any target pixel in the target infrared image, the temperature corresponding to the AD value of the target pixel is determined according to the segment functions corresponding to the N different segments.
[0011] Furthermore, through n endpoint values AD n The range from the minimum AD value to the maximum AD value is divided into N different segments connected in sequence, n∈[0, N-1], and the minimum AD value is recorded as AD min , the maximum AD value is recorded as AD max ; the AD n Based on the following expression:
[0012] AD n =AD min +n·(AD max -AD min ) / (N-1).
[0013] Furthermore, the segment function is a monotonically increasing function.
[0014] Furthermore, the segment function is a linear function.
[0015] Furthermore, the AD values of the different segments except the minimum AD value and the maximum AD value in the N different segments are recorded as AD i , A.D. min <AD i <AD max , i is a positive integer and i∈[1,N];
[0016] F(x) of the linear function corresponding to the i-th segment i It is expressed as:
[0017]
[0018] Among them, x is the independent variable and x∈[AD i-1 , A.D. i ], T i AD is determined according to the mapping algorithm i The corresponding temperature, T i-1 AD is determined according to the mapping algorithm i-1 The corresponding temperature.
[0019] Furthermore, determining the temperature corresponding to the AD value of the target pixel point according to the segment functions corresponding to the N different segments specifically includes:
[0020] Determine the section where the AD value of the target pixel is located;
[0021] The temperature corresponding to the AD value of the target pixel is calculated based on the segment function of the segment where the AD value of the target pixel is located.
[0022] Furthermore, the value of N is determined according to the difference between the maximum AD value and the minimum AD value.
[0023] Furthermore, the higher the requirements for temperature measurement accuracy and infrared image frame rate, the larger the value of N; the lower the requirements for temperature measurement accuracy and infrared image frame rate, the smaller the value of N.
[0024] The present invention also discloses a rapid temperature measurement system applied to infrared images, comprising:
[0025] An acquisition module is configured to acquire a minimum AD value and a maximum AD value in a target infrared image, where the AD value is an output value converted from the thermal radiation of the target object received by the infrared detector;
[0026] A selection module is configured to divide the range from the minimum AD value to the maximum AD value into N different segments connected in sequence, where N is a positive integer and N≥1;
[0027] A mapping module, configured to obtain the temperatures corresponding to the AD values of the N different sections according to a mapping algorithm of AD value to temperature;
[0028] A construction module is configured to construct section functions corresponding to the N different sections according to the temperatures corresponding to the AD values of the N different sections, wherein the independent variable of the section function is the AD value and the dependent variable is the temperature;
[0029] The determination module is configured to determine, for any target pixel in the target infrared image, the temperature corresponding to the AD value of the target pixel according to the segment functions corresponding to the N different segments.
[0030] The present invention also discloses an electronic device, comprising:
[0031] one or more processors;
[0032] A memory for storing one or more programs;
[0033] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described above.
[0034] Compared with the prior art, the invention has the following beneficial effects: the invention provides a rapid temperature measurement method and system for infrared images, the invention can be applied to infrared equipment to achieve rapid temperature measurement of infrared images, and the invention can achieve full-image temperature measurement with a high frame rate while ensuring temperature measurement accuracy. The invention can be implemented using C++ tools, is easy to implement, is simple to operate, and can be implemented on multiple platforms. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 The present invention provides a flowchart of a rapid temperature measurement method for infrared images. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] See also Figure 1 The present invention discloses a rapid temperature measurement method applied to infrared images, comprising:
[0039] Step 1: Obtain the minimum AD value and the maximum AD value in the target infrared image; the AD value is the output value converted from the thermal radiation of the target object received by the infrared detector.
[0040] Step 2: Divide the range from the minimum AD value to the maximum AD value into N different segments connected in sequence, where N is a positive integer and N≥1;
[0041] In one embodiment, the n endpoint values AD n The range from the minimum AD value to the maximum AD value is divided into N different segments connected in sequence, n∈[0, N-1], and the minimum AD value is recorded as AD min , the maximum AD value is recorded as AD max ; the AD n Based on the following expression:
[0042] AD n =AD min+n·(AD max -AD min ) / (N-1).
[0043] In one embodiment, the value of N is determined according to the difference between the maximum AD value and the minimum AD value.
[0044] In another embodiment, the higher the requirements for the temperature measurement accuracy and the infrared image frame rate, the larger the value of N; the lower the requirements for the temperature measurement accuracy and the infrared image frame rate, the smaller the value of N.
[0045] Specifically, the value of the number of segments N can be comprehensively considered based on the requirements for temperature measurement accuracy and frame rate. When the value of N is 50, the temperature measurement accuracy loss is about 0.2°C, and a temperature matrix of about 50Hz can be achieved for detectors of any resolution. The larger the value of N, the smaller the temperature measurement accuracy loss, and the frame rate will also decrease. Therefore, infrared detector products that support any resolution can achieve temperature matrix output with any frame rate requirements on various platforms. Because for detectors of any resolution, the number of calculations is fixed through segmentation. If each point is calculated separately, the number of calls required is the product of the image resolution. Using the segmented method, each segment only needs to be called once.
[0046] Step 3: According to the mapping algorithm fTemp=f(AD) from AD value to temperature, the temperature T corresponding to the AD values of the N different sections is obtained. min , T 1 , T 2 ..., T n-1 , T max ;
[0047] Step 4: constructing segment functions corresponding to the N different segments according to the temperatures corresponding to the AD values of the N different segments, wherein the independent variable of the segment function is the AD value and the dependent variable is the temperature;
[0048] In medical and power grid applications, it is necessary to obtain the temperature of every pixel in the entire image, but the conventional method is too computationally intensive to achieve high frame rate temperature matrix output.
[0049] In one embodiment, the segment function is a monotonically increasing function.
[0050] In one embodiment, the segment function is a linear function.
[0051] In one embodiment, the AD values of the N different segments except the minimum AD value and the maximum AD value are recorded as AD i , A.D. min <AD i <AD max, i is a positive integer and i∈[1,N];
[0052] F(x) of the linear function corresponding to the i-th segment i It is expressed as:
[0053]
[0054] Among them, x is the independent variable and x∈[AD i-1 , A.D. i ], T i AD is determined according to the mapping algorithm i The corresponding temperature, T i-1 AD is determined according to the mapping algorithm i-1 The corresponding temperature.
[0055] Specifically, these N+1 points (AD min , T min ), (AD 1 , T 1 ), (AD 2 , T 2 ),...,(AD N-1 , T i-1 ), (AD max , T max ) as N linear functions, and calculate the slope of each linear function, and then express each linear function as a linear equation of one variable. Other equations can also be used as needed.
[0056] Step 5: For any target pixel in the target infrared image, determine the temperature corresponding to the AD value of the target pixel according to the segment functions corresponding to the N different segments.
[0057] It is worth noting that the higher the required frame rate, the smaller the value of N will be, but the corresponding loss of temperature measurement accuracy will be greater.
[0058] In one embodiment, determining the temperature corresponding to the AD value of the target pixel point according to the segment functions corresponding to the N different segments specifically includes:
[0059] Determine the section where the AD value of the target pixel is located;
[0060] The temperature corresponding to the AD value of the target pixel is calculated based on the segment function of the segment where the AD value of the target pixel is located.
[0061] Specifically, for any pixel in the current frame infrared image, its AD value AD is obtained mAfter that, by comparing the size relationship with the N+1 endpoint values, find out the segment where it is located, assuming that it belongs to the i-th interval; according to the calculation formula of the linear function, the temperature of the current pixel can be obtained:
[0062]
[0063] The present invention can support infrared detector products of any resolution to realize temperature matrix output with any frame rate requirements on various platforms, and can also reduce the number of calls of the temperature measurement algorithm to N+1 times, and can realize full-image temperature measurement with high frame rate while ensuring the temperature measurement accuracy. The present invention can be implemented using C++ tools, is easy to implement, simple to operate, and can be implemented on multiple platforms.
[0064] The present invention also discloses a rapid temperature measurement system applied to infrared images, comprising:
[0065] An acquisition module is configured to acquire a minimum AD value and a maximum AD value in a target infrared image, where the AD value is an output value converted from the thermal radiation of the target object received by the infrared detector;
[0066] A selection module is configured to divide the range from the minimum AD value to the maximum AD value into N different segments connected in sequence, where N is a positive integer and N≥1;
[0067] A mapping module, configured to obtain the temperatures corresponding to the AD values of the N different sections according to a mapping algorithm of AD value to temperature;
[0068] A construction module is configured to construct section functions corresponding to the N different sections according to the temperatures corresponding to the AD values of the N different sections, wherein the independent variable of the section function is the AD value and the dependent variable is the temperature;
[0069] The determination module is configured to determine, for any target pixel in the target infrared image, the temperature corresponding to the AD value of the target pixel according to the segment functions corresponding to the N different segments.
[0070] The system embodiments can be implemented one-to-one with the aforementioned method embodiments, and will not be described in detail here.
[0071] The present invention also discloses an electronic device, comprising:
[0072] one or more processors;
[0073] A memory for storing one or more programs;
[0074] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described above.
[0075] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0076] On the one hand, an embodiment of the present invention further provides a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer can execute a rapid temperature measurement method applied to an infrared image provided by the above-mentioned method embodiments, including:
[0077] Obtain the minimum AD value and the maximum AD value in the target infrared image. The AD value is the output value converted from the thermal radiation of the target object received by the infrared detector;
[0078] Divide the range from the minimum AD value to the maximum AD value into N different segments connected in sequence, where N is a positive integer and N≥1;
[0079] According to the mapping algorithm of AD value to temperature, the temperatures corresponding to the AD values of the N different sections are obtained;
[0080] According to the temperatures corresponding to the AD values of the N different sections, section functions corresponding to the N different sections are constructed, wherein the independent variable of the section function is the AD value and the dependent variable is the temperature;
[0081] For any target pixel in the target infrared image, the temperature corresponding to the AD value of the target pixel is determined according to the segment functions corresponding to the N different segments.
[0082] On the other hand, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a rapid temperature measurement method applied to an infrared image provided in the above embodiments is implemented, including:
[0083] Obtain the minimum AD value and the maximum AD value in the target infrared image. The AD value is the output value converted from the thermal radiation of the target object received by the infrared detector;
[0084] Divide the range from the minimum AD value to the maximum AD value into N different segments connected in sequence, where N is a positive integer and N≥1;
[0085] According to the mapping algorithm of AD value to temperature, the temperatures corresponding to the AD values of the N different sections are obtained;
[0086] According to the temperatures corresponding to the AD values of the N different sections, section functions corresponding to the N different sections are constructed, wherein the independent variable of the section function is the AD value and the dependent variable is the temperature;
[0087] For any target pixel in the target infrared image, the temperature corresponding to the AD value of the target pixel is determined according to the segment functions corresponding to the N different segments.
[0088] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0089] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A rapid temperature measurement method applied to infrared images, characterized in that: include: Obtain the minimum AD value and the maximum AD value in the target infrared image. The AD value is the output value converted from the thermal radiation of the target object received by the infrared detector; Divide the range from the minimum AD value to the maximum AD value into N different segments connected in sequence, where N is a positive integer and N≥1; According to the mapping algorithm of AD value to temperature, the temperatures corresponding to the AD values of the N different sections are obtained; According to the temperatures corresponding to the AD values of the N different sections, section functions corresponding to the N different sections are constructed, wherein the independent variable of the section function is the AD value and the dependent variable is the temperature; For any target pixel in the target infrared image, the temperature corresponding to the AD value of the target pixel is determined according to the segment functions corresponding to the N different segments.
2. The method according to claim 1, characterized in that: Through n endpoint values AD n The range from the minimum AD value to the maximum AD value is divided into N different segments connected in sequence, n∈[0, N-1], and the minimum AD value is recorded as AD min , the maximum AD value is recorded as AD max ; the AD n Based on the following expression: <h2 style=";text-align:left;direction:ltr">AD<h2 style=";text-align:left;direction:ltr"> n <h2 style=";text-align:left;direction:ltr"> =AD<h2 style=";text-align:left;direction:ltr"> min <h2 style=";text-align:left;direction:ltr"> +n·(AD<h2 style=";text-align:left;direction:ltr"> max <h2 style=";text-align:left;direction:ltr"> -AD<h2 style=";text-align:left;direction:ltr"> min <h2 style=";text-align:left;direction:ltr"> ) / (N-1)。 3. The method according to claim 2, characterized in that: The segment function is a monotonically increasing function.
4. The method according to claim 3, characterized in that: The segment function is a linear function.
5. The method according to claim 4, characterized in that: The AD values of the N different segments except the minimum AD value and the maximum AD value are recorded as AD i , A.D. min <AD i <AD max , i is a positive integer and i∈[1,N]; F(x) of the linear function corresponding to the i-th segment i It is expressed as: Among them, x is the independent variable and x∈[AD i-1 , A.D. i ], T i AD is determined according to the mapping algorithm i The corresponding temperature, T i-1 AD is determined according to the mapping algorithm i-1 The corresponding temperature.
6. The method according to claim 1, characterized in that: Determining the temperature corresponding to the AD value of the target pixel point according to the segment functions corresponding to the N different segments specifically includes: Determine the section where the AD value of the target pixel is located; The temperature corresponding to the AD value of the target pixel is calculated based on the segment function of the segment where the AD value of the target pixel is located.
7. The method according to claim 1, characterized in that: The value of N is determined according to the difference between the maximum AD value and the minimum AD value.
8. The method according to any one of claims 1 to 7, characterized in that: The higher the requirements for temperature measurement accuracy and infrared image frame rate, the larger the value of N; the lower the requirements for temperature measurement accuracy and infrared image frame rate, the smaller the value of N.
9. A rapid temperature measurement system applied to infrared images, characterized in that: include: An acquisition module is configured to acquire a minimum AD value and a maximum AD value in a target infrared image, where the AD value is an output value converted from the thermal radiation of the target object received by the infrared detector; A selection module is configured to divide the range from the minimum AD value to the maximum AD value into N different segments connected in sequence, where N is a positive integer and N≥1; A mapping module, configured to obtain the temperatures corresponding to the AD values of the N different sections according to a mapping algorithm of AD value to temperature; A construction module is configured to construct section functions corresponding to the N different sections according to the temperatures corresponding to the AD values of the N different sections, wherein the independent variable of the section function is the AD value and the dependent variable is the temperature; The determination module is configured to determine, for any target pixel in the target infrared image, the temperature corresponding to the AD value of the target pixel according to the segment functions corresponding to the N different segments.
10. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in any one of claims 1 to 8.
