Novel temperature indicating paint butterfly-shaped sample wafer calibration method based on deep learning
Automatically identify color changes of temperature-indicating paint through deep learning technology, solving the problems of low efficiency and poor accuracy in the calibration of butterfly-shaped temperature-indicating paint samples in the existing technology, achieving fast and accurate secondary calibration of temperature-indicating paint, suitable for high-accuracy temperature applications detection.
Patent Information
- Application Number
- CN202410721143.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-08-30
AI Technical Summary
The existing temperature-indicating paint butterfly sample calibration method based on isotherms has low efficiency and poor accuracy, making it difficult to meet the rapidly changing needs of industrial applications.
Using a method based on deep learning, machine vision and deep learning technology are used to automatically identify the color changes of the temperature-indicating paint, and the isotherm position is accurately calculated through the MAE-UPerNet segmentation network to achieve fast and accurate secondary calibration of the temperature-indicating paint.
It significantly improves the accuracy and efficiency of secondary calibration of temperature-indicating paint and is suitable for scientific research and industrial fields that require high-accuracy temperature detection.
Smart Images

Figure CN118570545A
Abstract
Description
Technical field:
[0001] The present invention relates to image processing technology, and in particular to a new deep learning-based calibration method for temperature-indicating paint butterfly samples. Background technology:
[0002] Temperature indicating paint is a special coating that changes color when a specific temperature is reached. It is widely used in temperature testing of hot end components such as engine turbine disks, blades, combustion chamber casings and flame tubes.
[0003] The calibration of standard samples of thermo-indicating paint has always been a key link and difficult part in the temperature measurement of thermo-indicating paint. It is the basis and basis for the temperature judgment of thermo-indicating paint, and is directly related to the accuracy and reliability of the temperature measurement of thermo-indicating paint. The calibration methods of standard samples of thermo-indicating paint are divided into calibration methods based on color space and calibration methods based on isotherms. The calibration method based on isotherms adopts the method of "butterfly sample + electric baking + thermocouple comparison". First, a temperature gradient is formed on the surface of the butterfly sample through a voltage-adjustable electric heating device. The isotherm is the transition boundary between two adjacent colors, and the temperature values on this boundary are basically the same. Then take a new butterfly sample for secondary calibration, visually observe the position of the isotherm of the previous butterfly sample, manually weld the wall thermocouple at the same position of the new butterfly sample to connect the thermometer, and add current again to obtain the temperature of the isotherm. Such calibration methods mainly rely on manual measurement and evaluation, which is not only time-consuming and labor-intensive, but also difficult to achieve high accuracy and repeatability, especially in a continuous and wide temperature range. This in turn affects the temperature reading of the hot end components and makes it difficult to adapt to the rapidly changing needs of industrial applications. Summary of the invention:
[0004] The purpose of the present invention is to solve the problem of low efficiency and poor accuracy in the prior art of the butterfly sample calibration method of temperature-indicating paint based on isotherms. In order to achieve this purpose, the present invention provides a new butterfly sample calibration method of temperature-indicating paint based on deep learning, which is characterized by using machine vision and deep learning technology to automatically identify the color change of temperature-indicating paint and accurately calculate the position of isotherms, thereby realizing fast and accurate secondary calibration of temperature-indicating paint. The present invention mainly includes three parts: the first part is to collect data to make data sets and data enhancement; the second part is to train and test through the MAE-UPerNet segmentation network and output the segmentation map; the third part calculates the geometric characteristics of the segmentation area contour and maps the pixel distance to the actual physical distance.
[0005] The first part consists of three steps:
[0006] Step 1: Use the constructed experimental platform to collect pictures of the butterfly pieces with different temperature-indicating paint changes;
[0007] Step 2: Use the Labelme tool to label the collected images as the data set for the second part of network training;
[0008] Step 3: Data enhancement: randomly adjust the color of the parts other than the background in the HSV color space to enhance the diversity of the image data.
[0009] The second part consists of six steps:
[0010] Step 4: resize all input images to 512x512 pixels and normalize them;
[0011] Step 5: Use the MAE encoder to divide the image processed in step 4 into multiple small patches (patches), each patch is 16x16 pixels. Then use a linear layer to map these patches to a 768-dimensional space, and then input these embedded patches into an encoder composed of multiple Transformer layers. These layers use the self-attention mechanism to process the serialized patch representation, allowing the model to capture the relationship between different patches. Finally, a high-level feature representation of each patch is obtained;
[0012] Step 6: Pass the high-level features obtained in step 5 to the decoder through the output index. The output index determines which encoder layer outputs will be used in the decoding process. The decoder receives features from different Transformer layer outputs, which represent different scales and levels of abstraction;
[0013] Step 7: The decoder uses the features received in step 6 to perform a series of operations, including convolution and upsampling, to gradually restore the spatial dimensions of the feature map until it is close to the size of the original image. The high-level features are mapped to pixel-level category predictions through the segmentation head. The segmentation head includes several convolutional layers to generate the final semantic segmentation map, where the output of each pixel position represents a category label.
[0014] Step 8 uses cross entropy loss as the main loss function, and combines weight decay, dropout, batch normalization and other techniques to improve the training effect and generalization ability of the model, helping the model to avoid overfitting during training and achieve better performance in multi-class image segmentation tasks;
[0015] Step 9: Output a segmentation map with the same resolution as the input image, where each pixel corresponds to a category label, indicating which semantic category the pixel belongs to in the input image.
[0016] The third part consists of four steps:
[0017] Step 10, calculate the ROI sub-image of the non-background area. Binarize the prediction result, set the non-background area to 1, otherwise set it to 0. Extract the contour of the binary image, and calculate the circumscribed rotated rectangle for each contour. Find the largest contour of the circumscribed rotated rectangle as the only non-background area contour. Use affine transformation to obtain the image inside the rotated rectangle as the ROI sub-image;
[0018] Step 11, color block outline extraction;
[0019] Step 11-1, obtain the binary image of each category, if it is the category, it is 1, otherwise it is 0;
[0020] Step 11-2, calculate the center point of the first category: perform morphological opening operation on the binary image of the first category to extract the contour. If there are multiple contours, take the contour with the largest area and calculate the contour centroid, which is recorded as offsetx, offsety;
[0021] Step 11-3, non-class 1 binary image cropping: For the remaining 3 categories, each category is cropped into 4 parts: top, bottom, left, and right according to the center point;
[0022] Step 11-4, first perform a morphological opening operation on each binary image, then extract the contour, and record the orientation of the binary image corresponding to the contour (upper left, lower left, upper right, lower right);
[0023] Step 12, when processing the ROI sub-image of the image, first remove the noise contours with an area less than 50 pixels, and then determine and record the edge points of each contour according to the orientation of the contour. Next, determine the points close to the four corners in the ROI sub-image, and map these points back to the original image to calibrate the key points required for measuring temperature. After these key points are grouped by orientation, the relative distances of the points within the group are calculated for further analysis and measurement;
[0024] Step 13, determine the conversion relationship between the camera's pixels and physical coordinates through the chessboard calibration method. First, collect an image of a 10×10 chessboard (10 mm per grid), extract and sort the corner point coordinates. Take the upper left corner as the origin, construct the corner point coordinates in the world coordinate system, calculate the transformation matrix from the image to the world coordinate, and use this matrix to transform the image coordinates to calculate the physical distance.
[0025] The present invention proposes a new calibration method for butterfly samples of temperature-indicating paint based on deep learning. First, a specific experimental setting, including a high-resolution camera and a lighting system, is used to collect butterfly sample images of the color change reaction of the temperature-indicating paint under different temperature conditions; secondly, the isotherms and adjacent areas in these images are annotated in detail by the Labelme tool, and the images are divided into five categories according to the color change to support accurate regional division, and data enhancement is performed on the basis of the existing data; then, the data loader and normalization technology are used to process the image to meet the input requirements of the pre-trained network; then, on the basis of the MAE model, the features of the image blocks are abstracted and encoded by a multi-layer Transformer encoder to achieve in-depth learning and recognition of the color change of the temperature-indicating paint; then, the UPerNet network is used to gradually restore the spatial details of the image through the decoding process combined with the upsampling technology to generate a high-precision color segmentation map; finally, these image processing results are used to accurately calibrate the color change area of the temperature-indicating paint, and assist in determining the secondary calibration points in the experiment. This method greatly improves the accuracy and efficiency of the secondary calibration of the temperature-indicating paint, and is suitable for scientific research and industrial fields that require high-accuracy temperature detection. Description of the drawings:
[0026] Figure 1 Flowchart of the present invention
[0027] Figure 2 It is a size illustration diagram of the butterfly sample of the data set of the present invention;
[0028] Figure 3 This is an example diagram of data enhancement of the present invention;
[0029] Figure 4 It is the network structure diagram of MAE-UPerNet of the present invention;
[0030] Figure 5 It is a structural diagram of the MAE encoder of the present invention;
[0031] Figure 6 It is a structural diagram of the decoding part of the present invention;
[0032] Figure 7 This is an example of a segmentation map output by the MAE-UPerNet model of the present invention;
[0033] Figure 8 It is the effect diagram of the present invention. Specific implementation method:
[0034] In order to better understand the present invention, a new deep learning-based temperature-indicating paint butterfly sample calibration method of the present invention is described in more detail below in conjunction with a specific embodiment. In the following description, a detailed description of the current prior art may dilute the subject content of the present invention, and these descriptions will be ignored here.
[0035] Step 1, the flow chart of the present invention is as follows Figure 1 As shown in the figure, firstly, the experimental platform was used to collect 101 butterfly sample pictures of different temperature-indicating paint types and different color changes under different heating conditions. The specifications of each butterfly sample are the same, and its size is as follows Figure 2 The experimental platform includes MV-CA060-11GM (600W pixels) Hikvision camera, 35MM lens, ring light source, light source controller and 600MM high-precision fine-tuning bracket to ensure high-quality image data to capture the color changes of temperature-indicating paint under different temperatures and environmental conditions.
[0036] Step 2: Import the collected image into the Labelme annotation tool. In this tool, manually annotate the color change area related to the isotherm in the image to create accurate labels and boundaries. The present invention divides the area on both sides of the isotherm into 5 categories according to the position of the isotherm. The division example is as follows: Figure 7 As shown in the segmentation example of the network output, each category has significant color and shape features, where category color3 and category color4 have the same color and shape features. Because the semantic segmentation network is used later, they are set as different categories. These annotated data will be used as the dataset for training the MAE model, which is crucial to the performance of the model.
[0037] Step 3, data enhancement. In order to improve the color recognition ability of subsequent machine learning models for temperature-indicating paint butterfly samples under changing environmental conditions, the present invention adopts a new data enhancement strategy. The data set is expanded by arbitrarily and differently transforming the color of the temperature-indicating paint in the butterfly sample while keeping the background color unchanged. This method can generate a sample set with rich color changes without additional labeling work, which can enhance the generalization and robustness of the model. Specifically, the present invention randomly adjusts the hue and saturation of the temperature-indicating paint area in the HSV color space to create a wide range of color variations, thereby helping the model learn to accurately identify and process temperature-indicating paint in different color states under the condition of fixed background color.
[0038] Step 3-1, first, convert the original image from BGR to HSV color space. Because the color information and brightness information of HSV color space are separated, it is more suitable for color segmentation and color adjustment operations;
[0039] Step 3-2, Next, define the black threshold to identify the black or nearly black areas in the image, that is, the background area other than the butterfly pattern. This is achieved by setting an HSV threshold range, where the threshold of the lightness channel is set lower to capture the dark area. Then create a mask for the black area, which is 255 (white) in the black area and 0 (black) in the non-black area;
[0040] Step 3-3, obtain the mask of the non-black area, that is, the inverse of the black mask, and use this mask in the subsequent color adjustment step to ensure that only the non-black area is color-changed;
[0041] Steps 3-4, for each image, randomly generate changes in hue (H), saturation (S), and value (V). Hue changes are achieved by simply adding a random offset to the original hue value; saturation and value changes are achieved by scaling the original values. These changes are applied to the entire HSV image, but actually only affect non-black areas, and masks are used in subsequent steps to isolate these areas;
[0042] Step 3-5, apply the non-black mask generated earlier to ensure that only the hue, saturation and lightness of the non-black areas are modified, while the black areas remain the same. First, perform element-wise multiplication of the mask with the changed HSV image, and then perform element-wise addition with the original HSV image corresponding to the black mask to restore the original value of the black area;
[0043] Steps 3-6, finally, convert the color-adjusted HSV image back to the BGR color space. Figure 8 As an example, the original image is transformed into four random colors. Figure 3 As shown;
[0044] Figure 4 : is a network structure diagram of the MAE-UPerNet segmentation network for obtaining the isotherm of the temperature-indicating paint of the present invention. In the MAE-UPerNet structure, the encoder of the MAE is used as a feature extractor (i.e., backbone), and the UPerNet is used as a decoder architecture to convert the feature map generated by the encoder into the final segmentation output. In this embodiment, the following steps are performed:
[0045] Step 4: Divide the dataset produced in step 3 into a training set and a validation set in a ratio of 7:3. Use the data loader to manage the loading of images and labels. Extract images and corresponding labels from the dataset in batches, package them into a batch, and then input them into the model. These images and their corresponding labels are processed into a uniform size (512*512 pixels) and then normalized to fit the network input.
[0046] Step 5, in the feature extraction stage, the encoder of the MAE network is used as the backbone network of the MAE-UPerNet network of the present invention. The structure of the MAE encoder is as follows: Figure 5 As shown, the adjusted image is first divided into multiple small blocks (patches) of 16x16 pixels, which are simplified to 16 patches in the structure diagram, and these patches are converted into high-dimensional feature vectors with 768 dimensions through a linear projection layer, that is, the traditional image pixels are converted into an expression form that is more suitable for MAE model processing. In addition, position encoding is added after these feature vectors so that the model can understand the position information of different patches. Next, these feature vectors are sent to a Transformer encoder consisting of a multi-head self-attention mechanism and a feedforward network. This encoder contains multiple interacting Transformer layers, each of which contains a self-attention mechanism and a multi-layer perceptron. The self-attention mechanism allows the model to take into account the features of all other patches when processing the features of each patch, thereby capturing global information in the image. The output of each layer is layer normalized, and a residual connection is set between every two operations, which helps prevent the gradient disappearance problem during training. Finally, a series of feature maps are output;
[0047] Next, we need to convert the high-level features extracted from the MAE encoder into the final semantic segmentation map. The decoding part uses the UPerNet decoding strategy, which effectively fuses multi-level features and performs upsampling to generate accurate pixel-level predictions. The specific content is described in detail in steps 6, 7, 8, and 9. The decoding part structure diagram is shown in the figure. Figure 6 shown.
[0048] Step 6: Multi-scale feature fusion. The output feature maps from different layers of the MAE backbone are integrated into the feature pyramid structure Feature2Pyramid. The Feature2Pyramid feature pyramid structure is as follows: Figure 6 As shown on the left, the sampling multiples of the pyramid features are set to 4, 2, 1, and 0.5, that is, the features are enlarged by 4 times, 2 times, kept as they are, and reduced by 2 times to aggregate contextual information of different scales and capture image information at different resolutions. The fusion module is then used to further enhance the features. These features are then restored to a size close to the original resolution through a series of upsampling steps.
[0049] Step 7, decoding and classification. After the decoder receives the features from the encoder, it converts the aggregated multi-scale features into the final pixel-level classification map through the UPerHead decoding head composed of some convolutional layers and upsampling layers. In this process, features at different levels will be fused, and the convolutional layers will be used to further extract and refine the features. The upsampling operation is used to gradually increase the size of the feature map until it approaches the resolution of the original input image. The upsampling operation is implemented using bilinear interpolation, transposed convolution, and pixel rearrangement. The output of each pixel corresponds to a category prediction, which is usually processed by a softmax function to obtain the probability of each category;
[0050] Step 8, loss calculation and back propagation. The cross entropy loss function CrossEntropyLoss is used to measure the difference between the model output and the true label. The calculation formula of the cross entropy loss function CrossEntropyLoss is shown in formula (1). Weight decay is used to prevent the model from overfitting, and regularization is used to randomly set the output of a part of the neurons to zero, effectively reducing the model's dependence on specific neurons, thereby enhancing the generalization ability of the model. Based on the result of the loss function, the Adam optimizer is used to back propagate and update the parameters. When using MAE as an encoder, the network is initialized using its self-supervised pre-trained weights, which capture rich image features. This pre-trained weight initialization helps to improve the performance of semantic segmentation tasks, especially under the condition that the labeled data of the present invention is limited. And when training the network, the pre-trained model of the MAE network is used to enhance the model's feature extraction capabilities, and can reduce training time and improve the model's generalization ability for new data.
[0051]
[0052] Where N is the number of samples in the batch. i,c and are the true label and predicted probability of the i-th sample for category c, respectively.
[0053] Step 9: Output the segmentation map. The final output of the model is a segmentation map with a resolution of 512*512 pixels. The output of each pixel position represents the category of the divided data set to which the pixel belongs, and is enlarged to the size of the input image. The output example of the MAE-UPerNet model of the present invention is shown in the figure below: Figure 7 As shown;
[0054] The segmentation map obtained by the MAE-UPerNet model is post-processed to obtain the final secondary calibration position auxiliary points. The specific post-processing steps are described in detail in steps 10, 11, 12, and 13.
[0055] Step 10, first convert the image prediction result into a binary image, where all non-background pixels are set to 1 (foreground) and background pixels are set to 0. Extract all contours from the binary image. Calculate the contour with the largest area of the circumscribed rotated rectangle from the extracted contours. This contour represents the main non-background area in the image. Use affine transformation to obtain the image inside the rotated rectangle as the ROI subimage;
[0056] Step 11, extracting the outline of each color block in the ROI sub-image;
[0057] Step 11-1, process the ROI sub-image to generate a binary image of each color block category, where the color blocks belonging to a specific category are marked as 1, and the others are marked as 0;
[0058] Step 11-2, apply morphological opening operation to the binary image of the first type of color block (labeled as color1), with a kernel size of 9, to eliminate noise and small breaks. Re-extract the contour, select the contour with the largest area, and calculate its center of gravity to obtain the center point coordinates (offsetx, offsety);
[0059] Step 11-3, according to the center point of the first category, the color block binary image of each other category is cut into four parts: top, bottom, left, and right. If there are n color blocks in the image, (n-1)*4 new binary images are generated;
[0060] Step 11-4, perform morphological opening operation on each cropped binary image with a kernel size of 5, and then extract the contour. And mark the binary image orientation corresponding to each contour (upper left, lower left, upper right, lower right);
[0061] Step 12, check each contour and remove contours with an area of less than 50 pixels to prevent noise. And find and record the leftmost or rightmost contour point of each contour according to the contour orientation. Specifically, for example, if the orientation is the upper left or lower left, find the boundary point with the largest horizontal coordinate, that is, the rightmost contour point. If the orientation is located in the upper right or lower right, find the boundary point with the smallest horizontal coordinate, that is, the leftmost contour point. Then find the four points in the ROI sub-image close to the four corners of the image. Finally, map these points from the ROI sub-image to the original image, and intuitively see the temperature points that need to be measured for the secondary calibration. The example figure is shown in the figure. Record the orientations corresponding to these points; divide all corner points into 4 groups according to the four orientations. Sort the points in each group, and calculate the distance between two adjacent points after sorting;
[0062] Step 13, camera calibration, calculate the conversion relationship between pixel coordinates and physical coordinates. Assuming that the image and the stage are perpendicular, and not considering camera distortion, the camera first collects a checkerboard calibration image. This article uses a 10×10 checkerboard, and each grid size is 10 mm. Calculate the coordinates of the corner points in the image and sort the corner points from left to right and from top to small. Next, construct the coordinates of the corner points in the world coordinate system, take the upper left corner as the origin, and construct the world coordinate system coordinates of all corner points. Then calculate the transformation matrix from the image coordinate system to the world coordinate system. Finally, convert the image coordinates of the point in step 12 into the coordinates of the world coordinate system through the transformation matrix, and calculate the physical distance.
[0063] As shown in the following table, Figure 8 There are 4 isotherms in total. The table records the actual physical distances and calculated physical distances between the secondary calibration points in the upper left, upper right, lower left and lower right areas of the butterfly specimen, with an average error of 0.53 mm.
[0064]
[0065] The present invention proposes a new calibration method for butterfly samples of temperature-indicating paint based on deep learning. First, a specific experimental setting, including a high-resolution camera and a lighting system, is used to collect butterfly sample images of the color change reaction of the temperature-indicating paint under different temperature conditions; secondly, the isotherms and adjacent areas in these images are annotated in detail by the Labelme tool, and the images are divided into five categories according to the color change to support accurate regional division, and data enhancement is performed on the basis of the existing data; then, the data loader and normalization technology are used to process the image to meet the input requirements of the pre-trained network; then, on the basis of the MAE model, the features of the image blocks are abstracted and encoded by a multi-layer Transformer encoder to achieve in-depth learning and recognition of the color change of the temperature-indicating paint; then, the UPerNet network is used to gradually restore the spatial details of the image through the decoding process combined with the upsampling technology to generate a high-precision color segmentation map; finally, these image processing results are used to accurately calibrate the color change area of the temperature-indicating paint, and assist in determining the secondary calibration points in the experiment. This method greatly improves the accuracy and efficiency of the secondary calibration of the temperature-indicating paint, and is suitable for scientific research and industrial fields that require high-accuracy temperature detection.
[0066] Although the above describes an illustrative specific embodiment of the present invention, it should be clear that the present invention is not limited to the scope of the specific embodiment. For ordinary technicians in this technical field, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations using the concept of the present invention are protected.
Claims
1. A new deep learning-based calibration method for temperature-indicating paint butterfly samples, characterized in that: The thermometric paint information of the butterfly sample is obtained by machine vision, and the isotherm of the thermometric paint of the butterfly sample is extracted, and secondary calibration assistance is realized, including data acquisition to make a data set and data enhancement, output of the segmentation map through the MAE-UperNet network, and calculation of the geometric characteristics of the segmentation area contour to obtain the actual physical distance. The first part includes three steps: Step 1: Use the constructed experimental platform to collect pictures of the butterfly pieces with different temperature-indicating paint changes; Step 2: Use the Labelme tool to label the collected images as the data set for the second part of network training; Step 3: Data enhancement: randomly adjust the color of the parts other than the background in the HSV color space to enhance the diversity of the image data. The second part consists of six steps: Step 4: resize all input images to 512x512 pixels and normalize them; Step 5: Use an encoder to divide the image processed in step 4 into multiple small patches (patches), each patch is 16x16 pixels, and then use a linear layer to map these patches to a 768-dimensional space. Then, these mapped patches are input into an encoder composed of multiple Transformer layers. These layers use a self-attention mechanism to process the serialized patch representation, allowing the model to capture the relationship between different patches and finally obtain a high-level feature representation of each patch; Step 6: Pass the high-level features obtained in step 5 to the decoder through the output index. The output index determines which encoder layer outputs will be used in the decoding process. The decoder receives features from different Transformer layer outputs, which represent different scales and levels of abstraction. Step 7: The decoder uses the features received in step 6 to perform a series of operations, including convolution and upsampling, to gradually restore the spatial dimensions of the feature map until it is close to the size of the original image, and maps the high-level features to pixel-level category predictions through the segmentation head. The segmentation head includes several convolutional layers to generate the final semantic segmentation map, where the output of each pixel position represents a category label. Step 8 uses cross entropy loss as the main loss function, and combines various techniques such as weight decay and batch normalization to improve the training effect and generalization ability of the model, helping the model to avoid overfitting during training and achieve better performance in multi-class image segmentation tasks; Step 9: Output a segmentation map with the same resolution as the input image, where each pixel corresponds to a category label, indicating which semantic category the pixel belongs to in the input image. The third part consists of four steps: Step 10, calculate the ROI sub-image of the non-background area, binarize the prediction result, set the non-background area to 1, otherwise set it to 0, extract the contour of the binary image, calculate the circumscribed rotated rectangle for each contour; find the largest contour of the circumscribed rotated rectangle as the only non-background area contour; use affine transformation to obtain the image inside the rotated rectangle as the ROI sub-image; Step 11, color block outline extraction; Step 11-1, obtain the binary image of each category, if it is the category, it is 1, otherwise it is 0; Step 11-2, calculate the center point of the first category: perform morphological opening operation on the binary image of the first category to extract the contour. If there are multiple contours, take the contour with the largest area and calculate the contour centroid, which is recorded as offsetx, offsety; Step 11-3, non-class 1 binary image cropping: For the remaining 3 categories, each category is cropped into 4 parts: top, bottom, left, and right according to the center point; Step 11-4, first perform a morphological opening operation on each binary image, then extract the contour, and record the orientation of the binary image corresponding to the contour (upper left, lower left, upper right, lower right); Step 12, when processing the ROI sub-image of the image, first remove the noise contours with an area less than 50 pixels, and then determine and record the edge points of each contour according to the orientation of the contour; then, determine the points close to the four corners in the ROI sub-image, and map these points back to the original image to calibrate the key points required for measuring temperature. After these key points are grouped by orientation, the relative distances of the points in the group are calculated for further analysis and measurement; Step 13, determine the conversion relationship between the camera's pixels and physical coordinates through the chessboard calibration method. First, collect an image of a 10×10 chessboard (10 mm per grid), extract and sort the corner point coordinates, take the upper left corner point as the origin, construct the corner point coordinates in the world coordinate system, calculate the transformation matrix from the image to the world coordinate, and use this matrix to transform the image coordinates to calculate the physical distance.
2. According to a new deep learning-based temperature-indicating paint butterfly sample calibration method according to claim 1, it is characterized in that: Step 3 uses a new data augmentation method to improve the model's adaptability to color changes while ensuring background consistency, optimizing the model's positioning and analysis performance in practical applications.
3. According to a new deep learning-based temperature-indicating paint butterfly sample calibration method according to claim 1, it is characterized in that: Step 5 uses the MAE encoder to better extract the representation of effective features.
4. According to a new deep learning-based temperature-indicating paint butterfly sample calibration method according to claim 1, it is characterized in that: The decoding process in step 7 uses the UperNet segmentation head to convert the features extracted by the encoder into pixel-level category predictions.
5. A new deep learning-based temperature-indicating paint butterfly sample calibration method according to claim 1, characterized in that: In step 13, camera calibration is used to realize pixel and physical coordinate conversion to obtain secondary calibration points.
Citation Information
Cited By
Method, system and equipment for multi-target tracking measurement of turbine blade surface temperature field based on OpenCV library, and medium
CN120672717A
