Infrared image temperature measurement method, infrared imaging equipment, medium and product
By obtaining target position information in infrared images and identifying target edges, and extracting target temperature data, the precise identification and temperature detection interference problems of specific targets in infrared images in complex scenes are solved, and efficient and accurate temperature measurement is achieved.
Patent Information
- Application Number
- CN202510422842.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-07
- Publication Date
- 2025-07-04
AI Technical Summary
In complex scenarios, how to accurately identify specific types of targets in infrared images and reduce the interference of the surrounding environment to temperature detection, improving detection accuracy.
By acquiring infrared image data, obtaining target position information using interactive operations, identifying target edges using target recognition algorithms, and extracting temperature data within target edges to calculate the reference temperature, eliminating heat interference from non-targets.
It realizes more accurate temperature detection, simplifies operation, and improves the accuracy and efficiency of detection.
Smart Images

Figure CN120252971A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of infrared image technology, and in particular, to an infrared image temperature measurement method, an infrared imaging device, a computer-readable storage medium, and a computer program product. Background Art
[0002] With the development of infrared technology, infrared images are often used in fault diagnosis. However, for many complex scenes containing a large number of targets, the amount of infrared image and its temperature data is very large. How to more accurately identify specific types of targets in infrared images and avoid interference from the surrounding environment on the temperature detection of targets has become an urgent problem to be solved in the field of intelligent fault diagnosis using infrared images. Summary of the Invention
[0003] To solve the existing technical problems, the present application provides an infrared image temperature measurement method, an infrared imaging device, a computer-readable storage medium, and a computer program product that can effectively reduce the heat interference of non-targets, are simple to operate, and improve the accuracy of temperature detection.
[0004] In a first aspect, an embodiment of the present application provides an infrared image temperature measurement method, including:
[0005] Obtain infrared image data;
[0006] Based on an interactive operation on the infrared image data, obtain target position information;
[0007] Perform target recognition on the infrared image data including the target position information to determine the target edge of the target in the infrared image data;
[0008] Based on the target edge of the target, extract the temperature data within the target edge to obtain target temperature data, and calculate the reference temperature of the target based on the target temperature data.
[0009] In a second aspect, an embodiment of the present application provides an infrared imaging device, including a memory, a processor, and an infrared image acquisition device;
[0010] The infrared image acquisition device acquires infrared image data and sends it to the processor;
[0011] The processor stores a computer program therein, and the processor is configured to execute the computer program to implement the infrared image temperature measurement method according to any embodiment of the present application.
[0012] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the infrared image temperature measurement method according to any embodiment of the present application.
[0013] In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program which, when executed by a processor, implements the infrared image temperature measurement method described in any embodiment of the present application.
[0014] In the above embodiment, in the infrared image temperature measurement method, the target position information is obtained through the interactive operation on the infrared image data, the infrared image data including the target position information is recognized by using the target recognition algorithm to identify the target edge in the infrared image data, and the temperature data in the corresponding target area is specifically extracted according to the target edge. In this way, the staff can initially indicate any target of interest in the infrared image data to be temperature measured through the interactive operation, and based on the interactive operation of the staff, the temperature data within the range of the area belonging to the corresponding target can be more accurately extracted to calculate the reference temperature of the target, so as to exclude the heat interference of the surrounding non-targets. The operation is simple and can effectively improve the detection accuracy.
[0015] The infrared imaging device, computer-readable storage medium, and computer program product provided in the above embodiment belong to the same concept as the corresponding embodiment of the infrared image temperature measurement method, and thus have the same technical effects as the corresponding embodiment of the infrared image temperature measurement method, which will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic diagram of an optional application scenario of the infrared image temperature measurement method.
[0017] Figure 2 It is a flowchart of the infrared image temperature measurement method in an embodiment.
[0018] Figure 3 It is an optional schematic diagram of the target temperature measurement page in an embodiment.
[0019] Figure 4 It is a schematic diagram of the structure of the infrared imaging device in an embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0020] The technical solution of the present invention will be further elaborated in detail below with reference to the accompanying drawings and specific embodiments.
[0021] In order to make the purpose, technical solution, and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on the present application. All other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.
[0022] In the following description, the expression "some embodiments" describes a subset of all possible embodiments. It should be noted that "some embodiments" can be the same subset or different subsets of all possible embodiments, and they can be combined with each other without conflict.
[0023] In the following description, the terms "first", "second", "third" are only used to distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first", "second", "third" can be interchanged with a specific order or sequence when permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0024] Please refer to Figure 1 , which is a schematic diagram of an optional application scenario of the infrared image temperature measurement method provided by the embodiments of the present application. The infrared image temperature measurement method is applied to an infrared imaging device. The infrared imaging device can be various devices for collecting infrared image data such as an infrared thermal imager, a thermal imaging temperature measurement instrument, or other intelligent devices integrated with devices for collecting infrared image data such as an infrared thermal imager and a thermal imaging temperature measurement instrument and having communication and storage functions. Among them, the infrared image temperature measurement method may include the following processes: S1, collecting infrared image data; S2, obtaining target position information based on an interactive operation on the infrared image data; S3, using a target recognition algorithm to perform target recognition on the infrared image data including the target position information to identify the target edge of the target of concern; S4, extracting the temperature data within the target edge to calculate the reference temperature of the corresponding target.
[0025] In some optional embodiments, the infrared imaging device may refer to an infrared image temperature measurement system to which the infrared image temperature measurement method is applied. The infrared image temperature measurement system includes a plurality of physically separated hardware devices, such as an infrared image acquisition device and a data processing device communicatively connected to the infrared image acquisition device. The infrared image acquisition device is used to execute the process of S1 in the infrared image temperature measurement method, and the data processing device is used to execute the processes of S2-S4 in the infrared image temperature measurement method.
[0026] In some other optional embodiments, the infrared imaging device includes an infrared thermal imager and a terminal device communicatively connected to the infrared thermal imager. The terminal device is used to execute the processes of S2 and S3 in the infrared image temperature measurement method, and the infrared thermal imager is used to execute the processes of S1 and S4 in the infrared image temperature measurement method.
[0027] Please refer to Figure 2 , which is an infrared image temperature measurement method provided by an embodiment of the present application, including the following steps:
[0028] S101, obtaining infrared image data.
[0029] Among them, the infrared image data can refer to infrared imaging pictures or infrared video frame data collected by a device with the function of collecting infrared image data; it can also refer to the infrared imaging pictures or infrared video frame data obtained from a device with the function of collecting infrared image data after its collection and transmission. The infrared image data can be collected in real time by a device with the function of collecting infrared image data, or can be pre-collected and stored. Correspondingly, the infrared image data can refer to multiple infrared imaging pictures collected in real time, or called from an image database, or obtained from other devices through communication, or multiple infrared image frames extracted from infrared video data.
[0030] It should be noted that an infrared image is generated based on the infrared radiation (thermal radiation) emitted or reflected by an object. Thus, the infrared image actually contains both image information and temperature information. In an optional specific example, the infrared image data includes temperature data and image data, which can be represented by a temperature data set T mn and an image data set Y mn as follows:
[0031] T p =(x p , w p , t p ), T p ∈T mn ; where x p , w p are the coordinates of point p, and t p is the temperature data value of point p.
[0032] Y p =(x p , w p , y p ), Y p ∈Y mn ; where x p , w p are the coordinates of point p, and y p is the gray value of point p.
[0033] S103. Based on the interaction operation on the infrared image data, obtain the target position information.
[0034] The interaction operation can include various operation methods of information interaction between people and computer devices through input and output devices, such as interaction based on a graphical user interface, interaction with the device through a touch screen or a touchpad, etc. By using the interaction operation on the infrared image data, the area range for temperature measurement of the infrared image data can be quickly determined, the recognition efficiency of the target in the infrared image data in subsequent steps can be improved, and the recognition accuracy can be improved.
[0035] S105. Perform object recognition on the infrared image data including the target position information to determine the target edge of the object in the infrared image data.
[0036] The object refers to the overall or partial imaging of the target object contained in the infrared image. The target edge refers to the edge contour of the object contained in the infrared image. For example, taking the application of the infrared image temperature measurement method in the field of power equipment inspection as an example, the object refers to multiple components in the power inspection scenario, and the corresponding objects are component A, component B, and component C. The user can specify component A in the infrared image data through interactive operations on the infrared image data, and use the object recognition algorithm to perform object recognition on the infrared image data to determine the corresponding edge contours of the recognized component A, component B, and component C respectively; in another example, the corresponding objects are part a1, part a2, and part a3 of device a. The user can specify part a1 of device a in the infrared image data through interactive operations on the infrared image data, and use the object recognition algorithm to perform object recognition on the infrared image data to determine the edge contour of part a1 of the recognized device a.
[0037] S107. Based on the target edge of the object, extract the temperature data within the target edge to obtain target temperature data, and calculate the reference temperature of the object based on the target temperature data.
[0038] Based on the target edge of the object, extract the temperature data within the target edge to obtain the target temperature data corresponding to the object. In this way, for each object, the temperature data contained only within the edge contour of the object itself can be accurately extracted to calculate the reference temperature corresponding to the object, which can avoid the interference of the temperature data of other objects or non-objects around the object.
[0039] Among them, the reference temperature refers to the required temperature value determined by performing temperature measurement and / or temperature data calculation on the target object recognized in the infrared image based on the infrared image temperature measurement method provided in the embodiments of the present application. It should be noted that the reference temperatures corresponding to different objects are all the actual temperature values obtained by performing temperature measurement on the objects themselves, and this temperature value is usually used for subsequent further comparison with the corresponding temperature threshold to assist in judging the working state of the object according to the comparison result.
[0040] In an alternative example, based on the target position information obtained from the interactive operation on the infrared image data, target recognition is performed on the infrared image to determine the edge contour corresponding to a component A included in the infrared image. For component A, the temperature data within the edge contour of component A is extracted (the temperature data of other components in the infrared image, such as component B and component C, can be excluded to affect the calculation of the reference temperature of component A), and the target temperature data of component A is obtained for calculating the reference temperature of this component A. The target temperature data is usually saved in the form of a temperature data set for subsequent use in data analysis and research applications.
[0041] In the infrared image temperature measurement method provided in the above embodiment, the target position information is obtained through the interactive operation on the infrared image data, and then target recognition is performed on the infrared image data including the target position information to identify the target edge of the target recognized based on the target position information in the infrared image data. By specifically extracting the temperature data within the target area of the corresponding target according to the target edge, in this way, the staff can initially select any target of interest in the infrared image data to be measured through the interactive operation, and based on the interactive operation of the staff, the temperature data within the range of the area belonging to the corresponding target can be more accurately extracted only to calculate the reference temperature of the target, so as to exclude the heat interference of non-targets around, and the operation is simple and can effectively improve the detection accuracy.
[0042] In some embodiments, step S105 includes:
[0043] Perform target recognition on the infrared image data using a target recognition algorithm to identify the target contour, and calculate the mask of the target to be measured according to the target contour;
[0044] Perform dilation or erosion processing on the mask of the target to be measured to obtain the final mask of the target to be measured.
[0045] The target to be measured can usually be preset according to the target object or the part of the target object that needs to be recognized in the fault diagnosis scenario of applying the infrared image temperature measurement method provided in this embodiment of the application. Taking a certain power inspection scenario as an example, according to different types of components that need to be recognized for faults in the inspection scenario, such as components A, B, and C are potential fault risk points that need to be recognized in this inspection scenario, so as to determine that the targets to be measured can be: targets to be measured A, B, and C. By performing target recognition on the infrared image data including the target position information, the area range that needs to measure the temperature of the infrared image data can be more accurately and quickly locked using the target position information, and it is determined whether the corresponding area range in the infrared image data contains the targets to be measured A, B, and C, and the target edges corresponding to the recognized targets to be measured A, B, and / or C are determined.
[0046] A mask is a binary or pixel-level label used to represent a specific area or object in an image. A mask can be a matrix of the same size as the image, where each pixel value in the matrix indicates whether the pixel belongs to a certain object or area.
[0047] The target recognition algorithm can be selected from various known traditional target recognition algorithms that can detect target categories and positions in images or target recognition algorithms based on deep learning.
[0048] In the above embodiment, a target recognition algorithm is used to perform target recognition on infrared image data containing target position information, and the target contour of the target to be measured at the position corresponding to the target position information in the infrared image is identified. After expansion or corrosion processing, the size and shape of the imaging area corresponding to the target to be measured are adjusted to obtain the final mask (Mask_final) of the target to be measured, and the final mask is used to more accurately express the edge contour of the target to be measured.
[0049] In some embodiments, the use of a target recognition algorithm to perform target recognition on the infrared image data, identifying a target outline, and calculating a mask of the target to be detected according to the target outline includes:
[0050] A pre-trained convolutional neural network is used as a feature extractor, and a target detection algorithm is used for training to obtain a target recognition model; wherein the target detection algorithm is selected from one of the following: U-Net, Mask R-CNN, DeepLab;
[0051] Inputting the infrared image data into the target recognition model;
[0052] The target recognition model is used to output the target contour of the target to be detected, and the mask of the boundary of the target to be detected is calculated using the target contour.
[0053] In this embodiment, the target recognition algorithm adopts a deep learning-based method, uses a pre-trained convolutional neural network as a feature extractor, forms a training dataset with training samples annotated with the masks and target bounding boxes of the targets to be measured, and obtains a target recognition model after training the feature extractor. Among them, in the selected target detection algorithm, U-Net has a symmetric encoder-decoder structure. The encoder is responsible for extracting image features, and the decoder is used to restore the spatial resolution of the image, and can classify each pixel in the image, which is suitable for high-precision segmentation tasks. Mask R-CNN adds a segmentation mask branch on the basis of Faster R-CNN, can perform target detection and instance segmentation simultaneously, can provide both bounding boxes and segmentation masks, and is applicable to a variety of application scenarios. DeepLab adopts multi-scale feature fusion and ASPP (Atrous Spatial Pyramid Pooling) modules, enhances the segmentation ability of objects at different scales, has advantages in multi-scale object segmentation and detail optimization, and is suitable for processing complex natural scene image segmentation tasks.
[0054] In the above embodiment, the infrared image temperature measurement method identifies the targets included in the infrared image by using a deep learning-based target recognition model, identifies the target contours of the targets to be measured included in the image, calculates the masks of the boundaries of the targets to be measured, and uses the target recognition results to improve the accuracy of fault diagnosis.
[0055] In some embodiments, step S107 includes:
[0056] According to the final mask of the target to be measured, extract the temperature data at the position of the final mask in the temperature dataset of the infrared image data to obtain the target temperature data of the target to be measured;
[0057] Calculate the reference temperature of the target based on the target temperature data.
[0058] The final mask is obtained by adjusting according to the own shape contour of the target to be measured on the basis that the target recognition algorithm recognizes the target contour and calculates the mask of the boundary of the target to be measured.
[0059] In the above embodiment, by using the final mask of the target to be measured obtained according to the target recognition result, extracting the temperature data at the position of the final mask, and obtaining the temperature data only included in the target to be measured itself to calculate its corresponding reference temperature, the interference of other targets or non-targets in the image can be excluded, and the accuracy of the reference temperature of the target to be measured can be improved.
[0060] It should be noted that the reference temperature can be determined according to the temperature measurement rules corresponding to different targets to be measured. That is, different targets to be measured can be obtained by using different temperature measurement rules for temperature measurement and calculation, so as to measure different types of temperatures of the corresponding targets to be measured from different perspectives. The temperature measurement rules corresponding to different targets to be measured can be different, and the reference temperatures required to be calculated for different targets to be measured can also be different. For example, for the target to be measured A, the temperature measurement rule for determining whether there is a fault 1 in the target to be measured A is to determine whether the maximum temperature of the target to be measured A exceeds the temperature threshold A1. In this way, calculating the reference temperature based on the target temperature data of the target to be measured A means calculating the maximum temperature of the target to be measured A. Another example is that for the target to be measured B, the temperature measurement rule for determining whether there is a fault 1 in the target to be measured B is to determine whether the maximum temperature of the target to be measured B exceeds the temperature threshold B1 and whether the average temperature exceeds the temperature threshold B2. In this way, calculating the reference temperature based on the target temperature data of the target to be measured B means calculating the maximum temperature and the average temperature of the target to be measured B. In an optional specific example, the reference temperature includes at least one of the following: the maximum temperature, the minimum temperature, the average temperature, and the standard temperature difference within the final mask range.
[0061] In some embodiments, step S103 includes:
[0062] Based on the click operation on the infrared image data displayed on the target temperature measurement page, obtain the target position point information.
[0063] The target temperature measurement page can refer to one of the interfaces of the client program of the infrared image temperature measurement method, or can include multiple interfaces that support mutual jumping after manual clicking. The target temperature measurement page can display the infrared image data. The infrared image displayed on the target temperature measurement page may include one or more targets. The user can click on any target on the target temperature measurement page, and obtain the target position point information by detecting the position clicked by the user.
[0064] In the above embodiments, by supporting the user interaction operation to directly select a target in the infrared image, and determining the image area range for target detection in the subsequent target recognition process of the image according to the target position point information determined by the interaction operation, in this way, the accuracy requirement for the selected target recognition algorithm can be effectively reduced, the computing power requirement can be reduced, and the recognition efficiency can be improved.
[0065] In some embodiments, step S103 includes:
[0066] Based on the area selection operation on the infrared image data displayed on the target temperature measurement page, determine the target area, and use the coordinate information of the target area as the target position information.
[0067] The target temperature measurement page can refer to one of the interfaces of the client program for the infrared image temperature measurement method, or it can include multiple interfaces that support mutual jumping after manual clicks. The target temperature measurement page can display infrared image data. The infrared image displayed on the target temperature measurement page may include one or more targets. The user can select any area on the target temperature measurement page to determine the target area to be temperature measured.
[0068] In the above embodiments, by supporting user interaction operations to directly select the target area in the infrared image, and determining the image area range for target detection in the subsequent target recognition processing of the image according to the target area determined by the interaction operation, in this way, the accuracy requirement for the selected target recognition algorithm can be effectively reduced, the computing power requirement can be reduced, and the target recognition efficiency can be improved.
[0069] In some embodiments, step S103 includes:
[0070] Based on the click operations on multiple target points of the infrared image data displayed on the target temperature measurement page, determine the target area with the target points as the diagonal coordinate points, and use the coordinate information of the target area as the target position information.
[0071] The target temperature measurement page can refer to one of the interfaces of the client program for the infrared image temperature measurement method, or it can include multiple interfaces that support mutual jumping after manual clicks. The target temperature measurement page can display infrared image data. The infrared image displayed on the target temperature measurement page may include one or more targets. The user can click on any multiple points on the target temperature measurement page to cover the image area of all selected target points to determine the target area to be temperature measured.
[0072] In the above embodiments, by supporting user interaction operations to directly select multiple target points to be temperature measured in the infrared image, and determining the target area that can cover these target points according to the interaction operation, to determine the image area range for target detection in the subsequent target recognition processing of the image, in this way, the accuracy requirement for the selected target recognition algorithm can be effectively reduced, the computing power requirement can be reduced, and the target recognition efficiency can be improved.
[0073] In some embodiments, after obtaining the final mask of the target to be measured, the infrared image fault diagnosis method further includes:
[0074] According to the final mask, calculate the boundary coordinate set of the target to be measured through the binary image contour extraction function, and draw the target boundary box of the target to be measured according to the boundary coordinate set; wherein, the binary image contour extraction function is the findContours function.
[0075] A target bounding box is a bounding box that represents the position and range of a target in computer vision. In this embodiment, the target bounding box is a boundary contour line drawn along the edge contour of the target shape. The binary image contour extraction function can be selected from known functions for extracting contours from binary images, such as the findContours function in the OpenCV library. Please refer to Figure 3 FIG. Figure 3 is a schematic diagram of drawing a corresponding boundary contour line for the edge contour of the target to be measured according to the final mask of the target to be measured. On the target temperature measurement page, drawing an edge contour line for the target edge of the recognized target can facilitate more intuitively seeing the contour of the target to be temperature measured. The user can judge whether the target selected for current image temperature measurement is correct by visually observing the edge contour line of the target, and whether the range of the temperature data of the target based on which the reference temperature of the target is obtained is accurate.
[0076] In the above embodiment, according to the final mask of the target to be measured, drawing a corresponding boundary contour line for the edge contour of the target to be measured and displaying it is beneficial for the user to intuitively and quickly judge the extraction range of the temperature data based on which the diagnostic temperature of the target is calculated, and the user can thereby confirm the accuracy of the diagnostic temperature of the target obtained currently.
[0077] In some embodiments, the infrared image temperature measurement method further includes:
[0078] Displaying the reference temperature at the position of the corresponding target on the target temperature measurement page.
[0079] Please refer to Figure 3 FIG. Figure 3 . On the basis of drawing an edge contour line for the target edge of the recognized target on the target temperature measurement page, the reference temperature of the target obtained by current temperature measurement can also be directly displayed on the target temperature measurement page, facilitating the user to intuitively see the reference temperature of the target from the attached figure.
[0080] In the above embodiment, during the process of measuring the temperature of the target using infrared image data, the setting of the target temperature measurement page provides support for the user to more accurately and quickly determine the target to be temperature measured through interactive operations, narrow the image area range of target recognition, thereby effectively reducing the accuracy requirements for the selected target recognition algorithm, reducing the computing power requirements, and improving the target recognition efficiency; the user only needs to perform simple interactive operations, such as clicking on the target to be temperature measured in the image, or clicking on the temperature measurement position point, or circling the image area to be temperature measured in the image, and then combining with the target recognition algorithm to more efficiently draw the target contour of the target to be temperature measured, reducing the heat interference of non-targets, thereby improving the detection efficiency and temperature measurement accuracy without high professional requirements from the user.
[0081] On the other hand, an embodiment of the present application further provides an infrared imaging device. Please refer to Figure 4, which is an optional hardware structure diagram of the infrared imaging device provided by the embodiments of the present application. The infrared imaging device includes a processor 111, a memory 112 connected to the processor 111, and an infrared image acquisition device 113. The memory 112 is used to store various types of data to support the operation of the infrared imaging device, and stores a computer program for implementing the infrared image temperature measurement method provided by any embodiment of the present application. When the computer program is executed by the processor, it implements the steps of the infrared image temperature measurement method provided by any embodiment of the present application and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0082] Optionally, the infrared imaging device includes a data acquisition module for acquiring infrared image data of the temperature measurement scenario. The infrared image data includes infrared temperature data and infrared image data. A data storage module for storing the infrared image data and caching the data required during the execution of the computer program corresponding to the infrared image temperature measurement method. An interaction and position determination module for providing an interaction module to determine the position of the target by providing support for the user's interaction operations. An intelligent recognition module for performing target recognition on the infrared image data to determine the target type and target edge of the target in the infrared image data, and correspondingly drawing a boundary contour line for the edge contour of the recognized target. A temperature calculation module for calculating the reference temperature of the target by using the temperature data within the target edge range corresponding to the target edge recognized by the intelligent recognition module.
[0083] Among them, the infrared imaging device includes a display module connected to the processor 111. The display module is used to display various interactive pages during the execution of the infrared image temperature measurement method, such as the target temperature measurement page, etc. The target temperature measurement page displays the image, the target with the edge contour line, and the calculated reference temperature of the target.
[0084] The embodiments of the present application also provide a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, it implements each process of the above-mentioned infrared image temperature measurement method embodiment and can achieve the same technical effects. To avoid repetition, it will not be elaborated here. Among them, the computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc, etc.
[0085] The embodiments of the present application also provide a computer program product, including a computer program. When the computer program is executed by a processor, it implements each process of the above-mentioned infrared image temperature measurement method embodiment and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0086] It should be noted that in this document, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of additional identical elements in the process, method, article or device comprising such element.
[0087] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc) and includes several instructions for causing a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0088] The above are only the specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should all be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. An infrared image temperature measurement method, characterized in that, Including: Obtaining infrared image data; Based on the interactive operation on the infrared image data, obtaining target position information; Performing target recognition on the infrared image data including the target position information to determine the target edge of the target in the infrared image data; Based on the target edge of the target, extracting the temperature data within the target edge to obtain target temperature data, and calculating the reference temperature of the target based on the target temperature data.
2. The infrared image temperature measurement method according to claim 1, wherein The performing target recognition on the infrared image data including the target position information to determine the target edge of the target in the infrared image data includes: Using a target recognition algorithm to perform target recognition on the infrared image data, identifying a target contour, and calculating a mask of the target to be measured according to the target contour; Performing dilation or erosion processing on the mask of the target to be measured to obtain the final mask of the target to be measured.
3. The infrared image temperature measurement method according to claim 2, characterized in that, The using a target recognition algorithm to perform target recognition on the infrared image data, identifying a target contour, and calculating a mask of the target to be measured according to the target contour includes: Using a pre-trained convolutional neural network as a feature extractor, and obtaining a target recognition model after training using a target detection algorithm; wherein, the target detection algorithm is selected from one of the following: U-Net, Mask R-CNN, DeepLab; Inputting the infrared image data into the target recognition model; Outputting the target contour of the target to be measured through the target recognition model, and calculating a mask of the boundary of the target to be measured using the target contour.
4. The infrared image temperature measurement method according to claim 2, wherein The based on the target edge of the target, extracting the temperature data within the target edge to obtain target temperature data, and calculating the reference temperature of the target based on the target temperature data includes: According to the final mask of the target to be measured, extracting the temperature data at the position of the final mask in the temperature data set of the infrared image data to obtain the target temperature data of the target to be measured; Calculating the reference temperature of the target based on the target temperature data.
5. The infrared image temperature measurement method according to claim 4, wherein After obtaining the final mask of the target to be measured, further including: According to the final mask, calculating a set of boundary coordinates of the target to be measured through a binary image contour extraction function, and drawing a target boundary box of the target to be measured according to the set of boundary coordinates; wherein, the binary image contour extraction function is the findContours function; Wherein, the reference temperature includes at least one of the following: the maximum temperature, the minimum temperature, the average temperature, and the standard temperature difference within the range of the final mask.
6. The infrared image temperature measurement method according to any one of claims 1 to 5, characterized in that The based on the interactive operation on the infrared image data, obtaining target position information includes: Based on a click operation on the infrared image data displayed on the target temperature measurement page, obtaining target position point information; or, Based on a region selection operation on the infrared image data displayed on the target temperature measurement page to determine a target region, and using the coordinate information of the target region as the target position information; or, Based on click operations on multiple target points of the infrared image data displayed on the target temperature measurement page, determining a target region with the target points as diagonal coordinate points, and using the coordinate information of the target region as the target position information.
7. An infrared imaging device, comprising a memory, a processor, and an infrared image acquisition device; The infrared image acquisition device acquires infrared image data and sends it to the processor; A computer program is stored in the processor, and the processor is configured to execute the computer program to implement the infrared image temperature measurement method according to any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the infrared image temperature measurement method according to any one of claims 1 to 6 is implemented.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, the infrared image temperature measurement method according to any one of claims 1 to 6 is implemented.