Insulator string temperature measuring method and device

Through the rotating frame regression model and image registration technology, the problems of insulator string positioning and temperature measurement in infrared images are solved, the accuracy and efficiency of insulator string fault detection are improved, and efficient inspection of transmission lines is realized.

CN118641040APending Publication Date: 2024-09-13WUHAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410688721.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

It is difficult to efficiently locate and measure the temperature of insulator strings through infrared images using existing technology, resulting in low accuracy and low efficiency in detecting insulator string faults.

Method used

The rotating box regression model is used to register the visible and infrared images. The rotating box regression model is used to locate the insulator string in the visible light image, and the coordinate transformation matrix is ​​used to clip the sub-image in the infrared image to determine the temperature of the insulator string.

Benefits of technology

It achieves precise positioning and temperature measurement of insulator strings, improves the efficiency and accuracy of transmission line inspections, and can effectively detect faults such as zero values ​​and self-explosion of insulator strings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118641040A
    Figure CN118641040A
Patent Text Reader

Abstract

The invention provides an insulator string temperature measurement method and device, and the method comprises the steps: inputting a visible light image of a to-be-measured insulator string into a pre-constructed rotating frame regression model, and obtaining the position information, in the visible light image, of the to-be-measured insulator string output by the rotating frame regression model, an anchor frame of the rotating frame regression model comprises a plurality of rotating frames of which frame bodies are arranged at included angles with the horizontal direction; registering the visible light image and the infrared image of the insulator string to be detected to obtain a coordinate transformation matrix of the visible light image and the infrared image; and according to the position information of the to-be-measured insulator string in the visible light image and the coordinate transformation matrix, cutting a sub-image of the to-be-measured insulator string in the infrared image, and determining the temperature of the to-be-measured insulator string according to the sub-image. According to the invention, the unmanned aerial vehicle carries visible light and infrared imaging equipment to obtain the insulator string image, the infrared insulator string image is tightly positioned and identified, and the state of the power transmission line and the fault of the insulator string are judged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of insulator string detection, and in particular to an insulator string temperature measurement method and device. Background Art

[0002] Insulator strings are important components in the power system and play a key role in ensuring electrical performance. However, they are prone to failures such as wear, string drop, self-explosion or aging. Regular inspections of insulator strings on transmission lines are of great significance to ensure safe and reliable transmission of transmission lines.

[0003] In recent years, drone inspections have been favored by the industry. Drones equipped with visible light equipment can obtain images of insulator strings, identify and locate insulator strings, and make fault judgments. They have many advantages, such as low cost, flexibility, easy control, and intelligence. However, at present, it is not possible to efficiently detect zero value, self-explosion, and string drop faults of insulator strings only through visible light imaging, while infrared imaging can achieve its detection through unique temperature information. However, infrared insulator strings lack much texture and structural information, and have poor resolution. It is difficult to locate and identify insulator strings in infrared images, and there are great challenges in subsequent temperature measurement and fault detection through infrared insulator strings. Summary of the invention

[0004] The present invention provides an insulator string temperature measurement method and device, which are used to solve the defect in the prior art that it is difficult to locate the insulator string in an infrared image to obtain effective temperature information of the insulator string, and realize the insulator string temperature measurement method and device for compactly locating the insulator string.

[0005] The present invention provides a method for measuring the temperature of an insulator string, comprising:

[0006] Inputting the visible light image of the insulator string to be tested into a pre-built rotating frame regression model, obtaining the position information of the insulator string to be tested in the visible light image output by the rotating frame regression model, wherein the anchor frame of the rotating frame regression model includes a plurality of rotating frames set at angles between the frame body and the horizontal direction;

[0007] Registering the visible light image and the infrared image of the insulator string to be tested to obtain a coordinate conversion matrix of the visible light image and the infrared image;

[0008] According to the position information of the insulator string to be tested in the visible light image and the coordinate conversion matrix, a sub-image of the insulator string to be tested is cut out from the infrared image, and the temperature of the insulator string to be tested is determined according to the sub-image.

[0009] According to an insulator string temperature measurement method provided by the present invention, before the step of inputting the visible light image of the insulator string to be measured into a pre-built rotating frame regression model, the method further includes:

[0010] The input parameters of the rotating frame regression model are defined as the horizontal coordinate and the vertical coordinate of the center point of the target frame, the long side length and the short side length of the target frame, and the angle between the frame of the target frame and the horizontal direction based on the long side representation method;

[0011] The rotating box of a preset size is added at intervals of a preset angle between the horizontal anchor boxes generated by the rotating box regression model to complete the construction of the rotating box regression model.

[0012] According to a method for measuring the temperature of an insulator string provided by the present invention, before the step of inputting the visible light image of the insulator string into a pre-built rotating frame regression model, the method further includes:

[0013] Acquire multiple historical visible light images of insulator strings, annotate location information and category information of the insulator string in each of the historical visible light images, and randomly divide the annotated historical visible light images into a training set and a validation set;

[0014] The constructed rotating frame regression model is trained using the training set and the validation set.

[0015] According to a method for measuring the temperature of an insulator string provided by the present invention, the step of registering the visible light image and the infrared image of the insulator string to be measured to obtain a coordinate conversion matrix of the visible light image and the infrared image comprises:

[0016] The registration of the visible light image and the infrared image is achieved by using an infrared and visible light image registration method based on contour angles. During the registration process, the local gradient values ​​of the extracted contour corner points are divided into several intervals, and the gradient values ​​in each interval are counted and normalized.

[0017] According to a method for measuring the temperature of an insulator string provided by the present invention, the step of cutting out a sub-image of the insulator string to be measured in the infrared image according to the position information of the insulator string to be measured in the visible light image and the coordinate conversion matrix comprises:

[0018] Determine the vertex coordinates and the inclination angle of the circumscribed rectangular frame corresponding to the insulator string to be tested in the infrared image according to the position information;

[0019] Reversely rotate the infrared image by a corresponding degree according to the inclination angle of the circumscribed rectangular frame corresponding to the insulator string to be tested in the infrared image;

[0020] Determining the coordinates of the vertices of the circumscribed rectangular frame in the infrared image after rotation according to the coordinates of the vertices of the corresponding circumscribed rectangular frame in the infrared image;

[0021] The rotated infrared image is cropped according to the vertex coordinates of the circumscribed rectangular frame in the rotated infrared image.

[0022] According to a method for measuring the temperature of an insulator string provided by the present invention, the step of determining the temperature of the insulator string to be measured according to the sub-image specifically includes:

[0023] Performing infrared radiation calibration on the infrared photoelectric detection system to obtain the radiation brightness response of the infrared photoelectric detection system;

[0024] Inverting the radiance of the sub-image according to the radiance response of the infrared photoelectric detection system;

[0025] The temperature of the insulator string to be tested is determined according to the radiant brightness of the sub-image.

[0026] The present invention also provides an insulator string temperature measuring device, comprising:

[0027] A determination module, used for inputting the visible light image of the insulator string to be tested into a pre-built rotating frame regression model, and obtaining the position information of the insulator string to be tested in the visible light image output by the rotating frame regression model, wherein the anchor frame of the rotating frame regression model includes a plurality of rotating frames set at an angle with the horizontal direction;

[0028] A registration module, used for registering the visible light image and the infrared image of the insulator string to be tested, and obtaining a coordinate conversion matrix of the visible light image and the infrared image;

[0029] The acquisition module is used to cut out a sub-image of the insulator string to be tested in the infrared image according to the position information of the insulator string to be tested in the visible light image and the coordinate conversion matrix, and determine the temperature of the insulator string to be tested according to the sub-image.

[0030] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned methods for measuring the temperature of an insulator string is implemented.

[0031] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the insulator string temperature measurement method described in any one of the above is implemented.

[0032] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the insulator string temperature measurement method described above is implemented.

[0033] The insulator string temperature measurement and device provided by the present invention obtains a rotating frame regression model by constructing a rotating frame training on the basis of a YOLOv5 model, and more accurately locates the insulator string to be detected in a visible light image in the insulator string to be detected through the rotating frame regression model, and accurately locates the insulator string to be detected in the infrared image based on the registration result of the visible light image and the infrared image, thereby obtaining a more accurate infrared image of the insulator string to be detected and calculating more accurate temperature data of the insulator string, so as to realize the judgment of the transmission line state and the insulator string fault, improve the transmission line inspection efficiency, reduce the workload, and improve the inspection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the present invention or 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 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.

[0035] Figure 1 This is one of the flow charts of the insulator string temperature measurement method provided by the present invention;

[0036] Figure 2 It is a schematic diagram for displaying visible light images and infrared images in the insulator string temperature measurement method provided by the present invention;

[0037] Figure 3 It is a schematic diagram for demonstrating the long side representation method in the insulator string temperature measurement method provided by the present invention;

[0038] Figure 4 It is a schematic diagram for showing a rotating frame in the insulator string temperature measurement method provided by the present invention;

[0039] Figure 5 It is a flow chart for demonstrating the GIoU calculation method in the insulator string temperature measurement method provided by the present invention;

[0040] Figure 6 It is a schematic diagram for displaying the positioning result of the rotating frame regression model in the insulator string temperature measurement method provided by the present invention;

[0041] Figure 7 It is a schematic diagram for showing the registration result of the visible light image and the infrared image in the insulator string temperature measurement method provided by the present invention;

[0042] Figure 8 It is a schematic diagram for displaying the fusion result of visible light image and infrared image in the insulator string temperature measurement method provided by the present invention;

[0043] Fig. 9 It is a schematic diagram for displaying a sub-image in the insulator string temperature measurement method provided by the present invention;

[0044] Fig.10 This is the second flow chart of the insulator string temperature measurement method provided by the present invention;

[0045] Fig.11 It is a structural schematic diagram of the insulator string temperature measuring device provided by the present invention;

[0046] Fig.12 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.

[0048] Below Figures 1 to 10 The present invention introduces a method for measuring the temperature of an insulator string. Figure 1 As shown, including:

[0049] Step 101, inputting a visible light image of an insulator string to be tested into a pre-built rotating frame regression model, and obtaining position information of the insulator string to be tested in the visible light image output by the rotating frame regression model, wherein an anchor frame of the rotating frame regression model includes a plurality of rotating frames whose frames are set at an angle with the horizontal direction;

[0050] Obtain a visible light image of the insulator string to be tested.

[0051] Optionally, a visible light camera is mounted on a drone to obtain a visible light image of the insulator string to be tested. The visible light image of the insulator string to be tested should completely include the insulator string to be tested whose temperature is to be measured.

[0052] The obtained visible light image of the insulator string to be tested is input into a pre-built rotating frame regression model, and the rotating frame regression model is used to determine the position information of the insulator string to be tested in the visible light image.

[0053] like Figure 2As shown, since the insulator string is a long string shaped like a spring, the rotating box regression model in this application is built based on the YOLOv5 (You Only Look Once version 5, a target detection algorithm) target detection model, wherein the YOLOv5 model divides the input image into grid cells, and predicts the bounding box and category of the target in each cell, and then calibrates the predicted position of the target according to the bounding box. Therefore, it can be well applied to determine the position of the insulator string to be tested in the visible light image of the insulator string to be tested.

[0054] However, the bounding box used in the YOLOv5 model to predict the target position is a horizontal box, that is, the length and width of the box are horizontal and vertical directions; and the length direction of the insulator string in the image of the insulator string to be tested may appear at different angles depending on the shooting angle and the installation posture of the insulator string. Therefore, using the traditional YOLOv5 model to predict the position of the insulator string in the image of the insulator string to be tested, the best predicted position effect is also the position represented by the horizontal rectangular box with the length direction of the insulator string as the diagonal, and the accuracy of its position prediction result is relatively low.

[0055] Therefore, the rotating box regression model in the present application is based on the YOLOv5 model, and adds several rotating boxes with angles set with the horizontal direction on the basis of the horizontal anchor box used in its prediction. The position of the insulator string in the image of the insulator string to be tested is predicted based on the rotating boxes, so that the target box corresponding to the output insulator string can be the minimum circumscribed rectangle of the insulator string, that is, the target box with an angle with the horizontal direction is output as the position information of the insulator string.

[0056] Optionally, in the visible light image coordinate system of the insulator string to be tested, the line connecting the two diagonals of the target frame is used as the center point of the target frame, and the coordinates of the center point of the target frame, the inclination angle of the frame with the horizontal direction, and the length and width of the target library are used as the position information of the insulator string to be tested in its visible light image.

[0057] Optionally, in the visible light image coordinate system of the insulator string to be measured, the coordinates of the four vertices of the target frame are used as the position information of the insulator string to be measured in its visible light image.

[0058] Step 102, registering the visible light image and the infrared image of the insulator string to be tested to obtain a coordinate conversion matrix of the visible light image and the infrared image;

[0059] Acquire an infrared image of the insulator string to be tested.

[0060] Optionally, an infrared camera mounted on a drone is used to obtain an infrared image of the insulator string to be tested.

[0061] Optionally, a drone equipped with both a visible light camera and an infrared camera is used to synchronously acquire infrared images and visible light images of the insulator string to be tested, and the position and angle of the insulator string to be tested in the two acquired images are made roughly the same, to facilitate subsequent alignment.

[0062] Optionally, the present application does not limit the registration method of the visible light image and the infrared image.

[0063] The coordinate conversion matrix between the visible light image and the infrared image of the insulator string to be tested can be obtained by image registration, and the corresponding coordinate of each coordinate in the visible light image in the infrared image can be calculated using the coordinate conversion matrix.

[0064] Step 103 , according to the position information of the insulator string to be tested in the visible light image and the coordinate conversion matrix, a sub-image of the insulator string to be tested is cut out from the infrared image, and the temperature of the insulator string to be tested is determined according to the sub-image.

[0065] Optionally, when the position information is the coordinates of the center point of the target frame, the frame inclination angle, and the length and width of the frame, the coordinates of the four vertices of the target frame in the visible light image can be calculated based on the above information, and then the coordinates of the four vertices in the infrared image can be obtained through the coordinate transformation matrix.

[0066] By successively connecting the coordinates of the four vertices of the target frame in the infrared image, the corresponding position of the target frame in the infrared image can be obtained, that is, the sub-image of the insulator string to be tested in the infrared image. By cropping it in the infrared image, a separate infrared sub-image of the insulator string to be tested can be obtained, thereby realizing the precise positioning of the insulator string to be tested in the infrared image.

[0067] On this basis, the temperature of the insulator string to be tested can be determined by the cropped infrared image of the insulator string to be tested, thereby realizing the detection of zero value, self-explosion and other faults of the insulator string based on the temperature of the insulator string.

[0068] The present application constructs a rotating frame training based on the YOLOv5 model to obtain a rotating frame regression model, and uses the rotating frame regression model to more accurately locate the insulator string to be detected in the visible light image of the insulator string to be detected, and realizes accurate positioning of the insulator string to be detected in the infrared image based on the registration result of the visible light image and the infrared image, thereby obtaining a more accurate infrared image of the insulator string to be detected and calculating more accurate temperature data of the insulator string, so as to realize the judgment of the transmission line status and insulator string fault, improve the transmission line inspection efficiency, reduce the workload, and improve the inspection accuracy.

[0069] In the insulator string temperature measurement method of the present application, before the step of inputting the visible light image of the insulator string to be measured into the pre-built rotating frame regression model, the method further includes:

[0070] The input parameters of the rotating frame regression model are defined as the horizontal coordinate and the vertical coordinate of the center point of the target frame, the long side length and the short side length of the target frame, and the angle between the frame of the target frame and the horizontal direction based on the long side representation method;

[0071] The construction of the rotation box regression model first includes the input modification of the rotation box parameters in the YOLOv5 model. Specifically, since the rotation box needs to be introduced on the basis of the horizontal box of the YOLOv5 model, it is necessary to define new input parameters to accurately express the rotation box in the model.

[0072] In this application, the long edge representation is used to define the input parameters of the spinning box regression model.

[0073] Specifically, common ways to represent rotation box parameters include long side representation and OpenCV representation. The OpenCV representation uses a restricted range of 0° to 180° when representing the rotation angle of the rotation box relative to the horizontal direction, while 0° and 180° are prone to recognition errors in image detection, affecting the results of the model.

[0074] Therefore, if Figure 3 As shown, the present application adopts the long side representation method as the rectangular box representation method for rotating box improvement on the YOLOv5 model, so that the input parameters are the horizontal coordinate x, the vertical coordinate y of the center point of the target box, the long side length w, the short side length h of the target box, and the angle θ between the box and the horizontal direction.

[0075] The angle of the positive direction of the X-axis of the computer graphics coordinate system rotated to the longer side of the rectangle is θ, and the value range of θ is [-90°, 90°].

[0076] In summary, the long edge representation does not involve the impact of edge exchange on network training compared to the OpenCV representation. At the same time, its angle range is larger than that of the OpenCV representation, and it has more advantages in combating angle periodicity problems.

[0077] The rotating box of a preset size is added at intervals of a preset angle between the horizontal anchor boxes generated by the rotating box regression model to complete the construction of the rotating box regression model.

[0078] Furthermore, the construction of the rotated box regression model requires modifying the anchor box matching in the YOLOv5 model, and introducing a rotated box as an anchor box based on the horizontal anchor box.

[0079] Specifically, Figure 4 As shown, Figure 4The medium blue shadow represents an irregular target to be identified, the horizontal red box represents the horizontal anchor box of the YOLOv5 model, and the tilted red box represents the rotation box newly added in this application.

[0080] Optionally, a rotation frame of a preset size is added between the horizontal anchor frames at intervals of a preset angle, and the number of the added rotation frames is determined according to test results.

[0081] The preset angle and preset size are determined according to the test results. It is understandable that different models and types of insulator strings, such as ceramic insulator strings, composite insulator strings and glass insulator strings, will have different representations in image recognition, so their corresponding preset angles and preset sizes may have slight differences. The best preset angle and preset size can be determined by selecting different parameters and conducting multiple tests.

[0082] In this application, a total of 6 rotation frames are added at intervals of 30° using a 3×3 anchor frame for calculation of the rotation frame regression model. The use of a rotation frame can better match the rotation rectangular frame used for compact positioning of the insulator string. Therefore, by introducing the rotation frame and angle parameters, the prior frame selected by the rotation frame regression model is not only more suitable for the minimum circumscribed rectangle corresponding to the real insulator string in terms of aspect ratio, but also more realistic in terms of angle distance, thereby avoiding the generation of a large number of redundant prior frames.

[0083] In the insulator string temperature measurement method of the present application, before the step of inputting the visible light image of the insulator string to be measured into the pre-built rotating frame regression model, the method further includes:

[0084] Acquire multiple historical visible light images of insulator strings, annotate location information and category information of the insulator string in each of the historical visible light images, and randomly divide the annotated historical visible light images into a training set and a validation set;

[0085] After the rotating box regression model is constructed based on the rotating box design, it needs to be trained so that it can predict the position of the insulator string in the image based on the input image containing the insulator string.

[0086] First, it is necessary to obtain multiple historical visible light images of the insulator string.

[0087] Optionally, the multiple historical visible light images of insulator strings include visible light images acquired by photographing insulator strings of different positions and categories at different times and different angles.

[0088] The multiple historical visible light images of insulator strings were subjected to noise reduction. This application studied linear filtering and nonlinear filtering, and analyzed by comparing the peak signal-to-noise ratio (PSNR), similarity (SSIM) and mean square error (MSE) of different filters. Finally, the median filter 3×3 window method was used as the optimal noise reduction method to remove noise from historical visible light images.

[0089] On this basis, the insulator strings were labeled in each historical visible light image using the RolabelImg image annotation software.

[0090] Optionally, the annotation of the insulator string includes the annotation of the position information, that is, the insulator string in the historical visible light image is framed by image annotation software, and the position information of the frame is recorded.

[0091] Optionally, the labeling of the insulator strings includes labeling of category information to distinguish historical visible light images of insulator strings of different categories, so as to train rotating frame regression models corresponding to insulator strings of different categories, so as to better identify different types of insulator strings.

[0092] Furthermore, the multiple historical visible light images of each type of insulator string after annotation were divided into training set and validation set in a ratio of 7.5:2.5.

[0093] The constructed rotating frame regression model is trained using the training set and the validation set.

[0094] The training set is used to train the rotating box regression model, and the validation set is used to validate the trained rotating box regression model corresponding to each type of insulator string.

[0095] It should be noted that since the rotating box and corresponding definition parameters are added to the YOLOv5 model, the loss function and regression output used when training the rotating box regression model also need to be modified accordingly.

[0096] Specifically, in this application, the rotation box angle parameter is discretized by using the CSL method (Circular Smooth Label, a label smoothing method), and the classification parameter is used to calculate the loss. Since the rotation box angle parameter is a multi-classification problem, the cross entropy calculation of the multi-classification problem can be regarded as the superposition of a binary classification problem. The calculation formula of the cross entropy loss function BCE Loss for a binary classification problem is as follows:

[0097]

[0098] In the formula, σ represents the Sigmoid function, x is the output of the neural network, and y iIt indicates the category to which the i-th sample belongs, and K is the total number of samples.

[0099] Furthermore, the modification of the regression output in the rotating box regression model is as follows Figure 5 As shown, first determine the vertices of the target convex polygon to be identified. The convex polygon in this application is a rectangle; then sort the vertices of the convex polygon in chronological order starting from the point in the upper left corner, and then convert the convex polygon into a series of independent triangles composed of multiple vertices according to the point position sorting.

[0100] On this basis, by calculating the areas of independent triangles and overlapping convex polygons, the IoU (Intersection over Union) of the rotated rectangular box is obtained, and on this basis, the calculation of the GIoU (Generalized IoU) of the rotated rectangular box is completed.

[0101] In a specific implementation, the vertices of the convex polygon are determined first, that is, the actual positions of the four vertices of the selected state in the image coordinate system are calculated according to the geometric properties of the rectangle corresponding to the rotation box.

[0102] All vertices of the two determined rotated rectangles are merged and sorted according to their positions in the coordinate system. Optionally, each vertex is numbered in a clockwise or counterclockwise direction starting from the upper left corner to ensure that a continuous convex hull can be formed after sorting.

[0103] Furthermore, according to the sorted vertex list, vertices constituting the overlapping area are selected, and these vertices will form a new convex polygon.

[0104] On this basis, the overlapping convex polygons are split into multiple triangles. This can be done by connecting one vertex of the convex polygon to the midpoint of the opposite side (or using other splitting strategies) to ensure that all the splits are simple triangles.

[0105] For each independent triangle, calculate its triangle area, and then add up the areas of all triangles to get the total area of ​​the overlapping area.

[0106] Then, the IoU is obtained by dividing the area of ​​the overlapping area by the sum of the areas of the two rectangular boxes minus the area of ​​the overlapping area. The GIoU is obtained by calculating the area of ​​the smallest enclosing rectangle, then adding the area of ​​the overlapping area to the sum of the areas of the non-overlapping parts of the two boxes and dividing it by the area of ​​the smallest enclosing rectangle.

[0107] The rotating frame regression model constructed and trained in the above manner outputs the positioning result of the insulator string according to the input image of the insulator string to be tested, as shown in the figure: Figure 6 shown.

[0108] In the insulator string temperature measurement method of the present application, the step of registering the visible light image and the infrared image of the insulator string to be measured to obtain the coordinate conversion matrix of the visible light image and the infrared image includes:

[0109] The registration of the visible light image and the infrared image is achieved by using an infrared and visible light image registration method based on contour angles. During the registration process, the local gradient values ​​of the extracted contour corner points are divided into several intervals, and the gradient values ​​in each interval are counted and normalized.

[0110] The present application uses a CAO-C2F registration method (contour angle orientation-Coarse to Fine, an infrared and visible light image registration method based on contour angle) to achieve registration between a visible light image and an infrared image of an insulator string to be tested.

[0111] Specifically, a set of visible light images and infrared images to be registered are converted into grayscale so that their grayscale values ​​are all in the range of [0, 255]. At the same time, the vertical resolution and horizontal resolution of the visible light image and the infrared image are adjusted to the same, that is, the visible light images and infrared images of different sizes are adjusted to the same size for registration.

[0112] On this basis, the Canny edge detector is used to extract the edges of visible light and infrared images, and the curvature scale space (CSS) corner detector is used to detect the contour of the edge map to obtain the edge corner point information in the image as feature point information, where the edge corner point information includes the coordinates of the edge corner points.

[0113] The proposed contour angle direction is used as the accurate main direction of the feature point. Since the contour angle direction of the feature point is unique, the consistent sampling neighborhood of the same feature point in visible light and infrared images is guaranteed to achieve invariance of image viewpoint difference and rotation.

[0114] On this basis, the scale-invariant feature transform (SIFT) algorithm is improved. For the local gradient values ​​corresponding to the contour corners, the calculated gradient values ​​are divided into several intervals, and the gradient values ​​are counted and normalized in each interval. Finally, based on the normalized gradient values ​​and directions, a new histogram with reduced spectral differences is constructed.

[0115] In this application, in order to reduce the impact of the differences between spectra, the 16-bin histogram is converted into an 8-bin histogram, so that each key point is represented by a more robust 8-bin histogram, and the gradient value in each interval is normalized to the range of [0,1], so that the feature descriptors in different image regions and different lighting conditions are more stable, reducing the differences caused by changes in lighting or contrast, and better characterizing the local features of the key point.

[0116] Three sets of multi-scale sampled visible light image grayscale images are bilaterally matched with a set of infrared image SIFT descriptors, and the scale factor ξ between infrared and visible light images is determined by the absolute majority voting method, which then provides corresponding hypothetical matches for the proposed coarse-to-fine feature matching.

[0117] Then, a coarse-to-fine feature matching method is used. Coarse matching removes obvious mismatches through rotation angle estimation and line consistency, and the RANSAC algorithm (random sampling consensus algorithm) is selected for hundreds of iterations to remove the remaining small amount of mismatch information. Due to the differences in quality and imaging resolution between visible light and infrared images, fine matching based on global iterative optimization is used to reduce the position matching deviation between feature points at sub-pixel or pixel levels. Finally, the least squares method is used to calculate the coordinate transformation matrix M between the visible light image and the infrared image to obtain a set of corresponding relationship data between the visible light image and the infrared image.

[0118] The registration result is as follows Figure 7 As shown in the figure, the light and shadow fusion results of the visible light image and infrared image of the insulator string to be tested are as follows: Figure 8 shown.

[0119] In the insulator string temperature measurement method of the present application, the step of cutting out a sub-image of the insulator string to be measured in the infrared image according to the position information of the insulator string to be measured in the visible light image and the coordinate conversion matrix comprises:

[0120] Determine the vertex coordinates and the inclination angle of the circumscribed rectangular frame corresponding to the insulator string to be tested in the infrared image according to the position information;

[0121] Reversely rotate the infrared image by a corresponding degree according to the inclination angle of the circumscribed rectangular frame corresponding to the insulator string to be tested in the infrared image;

[0122] Determining the coordinates of the vertices of the circumscribed rectangular frame in the infrared image after rotation according to the coordinates of the vertices of the corresponding circumscribed rectangular frame in the infrared image;

[0123] The rotated infrared image is cropped according to the vertex coordinates of the circumscribed rectangular frame in the rotated infrared image.

[0124] After completing the registration of the visible light image and infrared image of the insulator string to be tested, the coordinate information of the insulator string position in the infrared image can be located according to the obtained coordinate transformation matrix M and the position information of the insulator string to be tested in the visible light image output by the rotating frame regression model, and then the sub-image corresponding to the insulator string to be tested in the infrared image can be obtained by coordinate rotation and cropping.

[0125] In a specific embodiment, the position information of the insulator string to be tested output by the rotating frame regression model includes the horizontal and vertical coordinates of the center point of the rotating frame corresponding to the insulator string to be tested, the long and short side lengths of the rotating frame, and the inclination angle between the rotating frame and the horizontal direction, that is, the rotation angle.

[0126] According to the position information of the rotating frame, the horizontal and vertical coordinates of the four vertices of the rotating frame of the insulator string to be tested in the visible light image can be calculated based on trigonometric functions.

[0127] Furthermore, according to the vertex coordinates of the rotating frame of the insulator string to be tested in the visible light image and the coordinate transformation matrix M, the vertex coordinates of the rotating frame corresponding to the rotating frame in the infrared image can be calculated, that is, the vertex coordinates of the circumscribed rectangular frame corresponding to the insulator string to be tested in the infrared image, and the inclination angle of the circumscribed rectangular frame can be calculated based on the vertex coordinates.

[0128] On this basis, the infrared image is rotated, and the rotation direction is opposite to the direction of the tilt angle, and the rotation angle is in the same direction as the tilt angle, so that after the infrared image is rotated, the frame of the circumscribed rectangular frame is horizontal.

[0129] The mapping method is used to obtain the four vertex coordinates of the circumscribed rectangular box after rotation according to the four vertex coordinates of the circumscribed rectangular box before rotation. The infrared image can be conveniently cropped based on the vertex coordinates to obtain a sub-image of the insulator string to be tested.

[0130] The cropped sub-image is Fig. 9 shown.

[0131] In the insulator string temperature measurement method of the present application, the step of determining the temperature of the insulator string to be measured according to the sub-image specifically includes:

[0132] Performing infrared radiation calibration on the infrared photoelectric detection system to obtain the radiation brightness response of the infrared photoelectric detection system;

[0133] To measure the temperature based on the obtained sub-image of the insulator string to be measured, it is first necessary to calibrate the infrared radiation of the infrared optoelectronic system.

[0134] Specifically, in order to reduce the influence of atmospheric attenuation and atmospheric path radiation, a high-precision large surface source black body needs to be placed in front of the entrance pupil of the infrared detector optical system to cover the system entrance pupil and the entire field of view. The infrared detector is aligned with the center of the black body to measure the corresponding grayscale output values ​​DN1, DN2,…,DN at different temperatures. n , and then use Planck's formula to calculate the blackbody radiation brightness at different temperatures, and then use the following formula (1) to perform least squares linear fitting to obtain the radiation brightness response of the system:

[0135] D o=α(τL T +L path )+D dark (1)

[0136] Where D o Represents the grayscale output value of the infrared detection system, D dark It is mainly the fixed bias caused by the dark current of the detector, and α is the responsivity of the infrared detection system (unit: (w / sr·m 2 ) -1 ), L(T) is the radiance of the optical entrance pupil of the detection system, τ and L path They are respectively the atmospheric transmittance and the atmospheric path radiation between the target and the infrared detection system.

[0137] Inverting the radiance of the sub-image according to the radiance response of the infrared photoelectric detection system;

[0138] According to formula (1), the radiance of the inverted sub-image is:

[0139]

[0140] The temperature of the insulator string to be tested is determined according to the radiant brightness of the sub-image.

[0141] According to the radiation brightness calculation formula:

[0142]

[0143] Where ε is the estimation error, the uncertainty is controlled within 10%, λ is the wavelength (unit: μm), C1 and C2 are constants, among which C1 is 3.7418×10 8 W·m -2 μm 4 , C2 is 14388μm·K, and T is temperature (unit: K).

[0144] Therefore, the temperature inversion equation is:

[0145]

[0146] Then, numerical calculation is performed to solve formula (4) to obtain the temperature T of the insulator string, and fault detection of the insulator string is performed based on the temperature of the insulator string.

[0147] The specific process of determining the temperature of the insulator string based on the infrared image and visible light image of the insulator string in the above manner is as follows: Fig.10 shown.

[0148] The insulator string temperature measuring device provided by the present invention is described below. The insulator string temperature measuring device described below and the insulator string temperature measuring method described above can be referred to each other.

[0149] like Fig.11 As shown, the insulator string temperature measurement device includes a determination module 1101, a registration module 1102 and an acquisition module 1103:

[0150] The determination module 1101 is used to input the visible light image of the insulator string to be tested into a pre-built rotating frame regression model to obtain the position information of the insulator string to be tested in the visible light image output by the rotating frame regression model, wherein the anchor frame of the rotating frame regression model includes a plurality of rotating frames set at an angle between the frame body and the horizontal direction;

[0151] Obtain a visible light image of the insulator string to be tested.

[0152] Optionally, a visible light camera is mounted on a drone to obtain a visible light image of the insulator string to be tested. The visible light image of the insulator string to be tested should completely include the insulator string to be tested whose temperature is to be measured.

[0153] The obtained visible light image of the insulator string to be tested is input into a pre-built rotating frame regression model, and the rotating frame regression model is used to determine the position information of the insulator string to be tested in the visible light image.

[0154] like Figure 2 As shown, since the insulator string is a long string shaped like a spring, the rotating box regression model in this application is built based on the YOLOv5 (You Only Look Once version 5, a target detection algorithm) target detection model, wherein the YOLOv5 model divides the input image into grid cells, and predicts the bounding box and category of the target in each cell, and then calibrates the predicted position of the target according to the bounding box. Therefore, it can be well applied to determine the position of the insulator string to be tested in the visible light image of the insulator string to be tested.

[0155] However, the bounding box used in the YOLOv5 model to predict the target position is a horizontal box, that is, the length and width of the box are horizontal and vertical directions; and the length direction of the insulator string in the image of the insulator string to be tested may appear at different angles depending on the shooting angle and the installation posture of the insulator string. Therefore, using the traditional YOLOv5 model to predict the position of the insulator string in the image of the insulator string to be tested, the best predicted position effect is also the position represented by the horizontal rectangular box with the length direction of the insulator string as the diagonal, and the accuracy of its position prediction result is relatively low.

[0156] Therefore, the rotating box regression model in the present application is based on the YOLOv5 model, and adds several rotating boxes with angles set with the horizontal direction on the basis of the horizontal anchor box used in its prediction. The position of the insulator string in the image of the insulator string to be tested is predicted based on the rotating boxes, so that the target box corresponding to the output insulator string can be the minimum circumscribed rectangle of the insulator string, that is, the target box with an angle with the horizontal direction is output as the position information of the insulator string.

[0157] Optionally, in the visible light image coordinate system of the insulator string to be tested, the line connecting the two diagonals of the target frame is used as the center point of the target frame, and the coordinates of the center point of the target frame, the inclination angle of the frame with the horizontal direction, and the length and width of the target library are used as the position information of the insulator string to be tested in its visible light image.

[0158] Optionally, in the visible light image coordinate system of the insulator string to be measured, the coordinates of the four vertices of the target frame are used as the position information of the insulator string to be measured in its visible light image.

[0159] A registration module 1102 is used to register the visible light image and the infrared image of the insulator string to be tested to obtain a coordinate conversion matrix of the visible light image and the infrared image;

[0160] Acquire an infrared image of the insulator string to be tested.

[0161] Optionally, an infrared camera mounted on a drone is used to obtain an infrared image of the insulator string to be tested.

[0162] Optionally, a drone equipped with both a visible light camera and an infrared camera is used to synchronously acquire infrared images and visible light images of the insulator string to be tested, and the position and angle of the insulator string to be tested in the two acquired images are made roughly the same, to facilitate subsequent alignment.

[0163] Optionally, the present application does not limit the registration method of the visible light image and the infrared image.

[0164] The coordinate conversion matrix between the visible light image and the infrared image of the insulator string to be tested can be obtained by image registration, and the corresponding coordinate of each coordinate in the visible light image in the infrared image can be calculated using the coordinate conversion matrix.

[0165] The acquisition module 1103 is used to cut out a sub-image of the insulator string to be tested in the infrared image according to the position information of the insulator string to be tested in the visible light image and the coordinate conversion matrix, and determine the temperature of the insulator string to be tested according to the sub-image.

[0166] Optionally, when the position information is the coordinates of the center point of the target frame, the frame inclination angle, and the length and width of the frame, the coordinates of the four vertices of the target frame in the visible light image can be calculated based on the above information, and then the coordinates of the four vertices in the infrared image can be obtained through the coordinate transformation matrix.

[0167] By successively connecting the coordinates of the four vertices of the target frame in the infrared image, the corresponding position of the target frame in the infrared image can be obtained, that is, the sub-image of the insulator string to be tested in the infrared image. By cropping it in the infrared image, a separate infrared sub-image of the insulator string to be tested can be obtained, thereby realizing the precise positioning of the insulator string to be tested in the infrared image.

[0168] On this basis, the temperature of the insulator string to be tested can be determined by the cropped infrared image of the insulator string to be tested, thereby realizing the detection of zero value, self-explosion and other faults of the insulator string based on the temperature of the insulator string.

[0169] The present application constructs a rotating frame training based on the YOLOv5 model to obtain a rotating frame regression model, and uses the rotating frame regression model to more accurately locate the insulator string to be detected in the visible light image of the insulator string to be detected, and realizes accurate positioning of the insulator string to be detected in the infrared image based on the registration result of the visible light image and the infrared image, thereby obtaining a more accurate infrared image of the insulator string to be detected and calculating more accurate temperature data of the insulator string, so as to realize the judgment of the transmission line status and insulator string fault, improve the transmission line inspection efficiency, reduce the workload, and improve the inspection accuracy.

[0170] Fig.12 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.12As shown, the electronic device may include: a processor (processor) 1210, a communication interface (Communications Interface) 1220, a memory (memory) 1230 and a communication bus 1240, wherein the processor 1210, the communication interface 1220, and the memory 1230 communicate with each other through the communication bus 1240. The processor 1210 can call the logic instructions in the memory 1230 to execute the insulator string temperature measurement method, which includes: inputting the visible light image of the insulator string to be measured into a pre-built rotating frame regression model to obtain the position information of the insulator string to be measured in the visible light image output by the rotating frame regression model, wherein the anchor frame of the rotating frame regression model includes a plurality of rotating frames set at an angle between the frame body and the horizontal direction; aligning the visible light image of the insulator string to be measured with the infrared image to obtain the coordinate conversion matrix of the visible light image and the infrared image; according to the position information of the insulator string to be measured in the visible light image and the coordinate conversion matrix, cutting out a sub-image of the insulator string to be measured in the infrared image, and determining the temperature of the insulator string to be measured according to the sub-image.

[0171] In addition, the logic instructions in the above-mentioned memory 1230 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including 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.

[0172] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the insulator string temperature measurement method provided by the above methods, the method comprising: inputting a visible light image of the insulator string to be measured into a pre-constructed rotating frame regression model to obtain the position information of the insulator string to be measured in the visible light image output by the rotating frame regression model, wherein the anchor frame of the rotating frame regression model includes a plurality of rotating frames set at an angle between the frame body and the horizontal direction; aligning the visible light image of the insulator string to be measured with the infrared image to obtain a coordinate conversion matrix of the visible light image and the infrared image; according to the position information of the insulator string to be measured in the visible light image and the coordinate conversion matrix, cutting out a sub-image of the insulator string to be measured in the infrared image, and determining the temperature of the insulator string to be measured according to the sub-image.

[0173] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the processor executes the insulator string temperature measurement method provided by the above methods, the method comprising: inputting the visible light image of the insulator string to be measured into a pre-constructed rotating frame regression model to obtain the position information of the insulator string to be measured in the visible light image output by the rotating frame regression model, wherein the anchor frame of the rotating frame regression model includes a plurality of rotating frames set at an angle with the horizontal direction; aligning the visible light image of the insulator string to be measured with the infrared image to obtain a coordinate conversion matrix of the visible light image and the infrared image; cropping a sub-image of the insulator string to be measured in the infrared image according to the position information of the insulator string to be measured in the visible light image and the coordinate conversion matrix, and determining the temperature of the insulator string to be measured according to the sub-image.

[0174] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0175] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0176] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for measuring the temperature of an insulator string, It is characterized in that include: Inputting the visible light image of the insulator string to be tested into a pre-built rotating frame regression model, obtaining the position information of the insulator string to be tested in the visible light image output by the rotating frame regression model, wherein the anchor frame of the rotating frame regression model includes a plurality of rotating frames set at angles between the frame body and the horizontal direction; Registering the visible light image and the infrared image of the insulator string to be tested to obtain a coordinate conversion matrix of the visible light image and the infrared image; According to the position information of the insulator string to be tested in the visible light image and the coordinate conversion matrix, a sub-image of the insulator string to be tested is cut out from the infrared image, and the temperature of the insulator string to be tested is determined according to the sub-image.

2. The insulator string temperature measurement method according to claim 1, It is characterized in that Before the step of inputting the visible light image of the insulator string to be tested into the pre-built rotating frame regression model, the method further includes: The input parameters of the rotating frame regression model are defined as the horizontal coordinate and the vertical coordinate of the center point of the target frame, the long side length and the short side length of the target frame, and the angle between the frame of the target frame and the horizontal direction based on the long side representation method; The rotating box of a preset size is added at intervals of a preset angle between the horizontal anchor boxes generated by the rotating box regression model to complete the construction of the rotating box regression model.

3. The insulator string temperature measurement method according to claim 2, It is characterized in that Before the step of inputting the visible light image of the insulator string to be tested into the pre-built rotating frame regression model, the following steps are also included: Acquire multiple historical visible light images of insulator strings, annotate location information and category information of the insulator string in each of the historical visible light images, and randomly divide the annotated historical visible light images into a training set and a validation set; The constructed rotating frame regression model is trained using the training set and the validation set.

4. The insulator string temperature measurement method according to any one of claims 1 to 3, It is characterized in that The step of registering the visible light image and the infrared image of the insulator string to be tested to obtain a coordinate conversion matrix of the visible light image and the infrared image comprises: The registration of the visible light image and the infrared image is achieved by using an infrared and visible light image registration method based on contour angles. During the registration process, the local gradient values ​​of the extracted contour corner points are divided into several intervals, and the gradient values ​​in each interval are counted and normalized.

5. The insulator string temperature measurement method according to any one of claims 1 to 3, It is characterized in that The step of cutting out a sub-image of the insulator string to be tested in the infrared image according to the position information of the insulator string to be tested in the visible light image and the coordinate conversion matrix comprises: Determine the vertex coordinates and the inclination angle of the circumscribed rectangular frame corresponding to the insulator string to be tested in the infrared image according to the position information; Reversely rotate the infrared image by a corresponding degree according to the inclination angle of the circumscribed rectangular frame corresponding to the insulator string to be tested in the infrared image; Determining the coordinates of the vertices of the circumscribed rectangular frame in the infrared image after rotation according to the coordinates of the vertices of the corresponding circumscribed rectangular frame in the infrared image; The rotated infrared image is cropped according to the vertex coordinates of the circumscribed rectangular frame in the rotated infrared image.

6. The insulator string temperature measurement method according to any one of claims 1 to 3, It is characterized in that The step of determining the temperature of the insulator string to be measured according to the sub-image specifically includes: Performing infrared radiation calibration on the infrared photoelectric detection system to obtain the radiation brightness response of the infrared photoelectric detection system; Inverting the radiance of the sub-image according to the radiance response of the infrared photoelectric detection system; The temperature of the insulator string to be tested is determined according to the radiation brightness of the sub-image.

7. An insulator string temperature measuring device, It is characterized in that include: A determination module, used for inputting the visible light image of the insulator string to be tested into a pre-built rotating frame regression model, and obtaining the position information of the insulator string to be tested in the visible light image output by the rotating frame regression model, wherein the anchor frame of the rotating frame regression model includes a plurality of rotating frames set at an angle with the horizontal direction; A registration module, used for registering the visible light image and the infrared image of the insulator string to be tested, and obtaining a coordinate conversion matrix of the visible light image and the infrared image; The acquisition module is used to cut out a sub-image of the insulator string to be tested in the infrared image according to the position information of the insulator string to be tested in the visible light image and the coordinate conversion matrix, and determine the temperature of the insulator string to be tested according to the sub-image.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the insulator string temperature measurement method according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the insulator string temperature measurement method according to any one of claims 1 to 6 is implemented.

10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the insulator string temperature measurement method according to any one of claims 1 to 6 is implemented.