A method and apparatus for detecting the creepage distance of a surge arrester

By establishing models for image acquisition, depth perception, volume reconstruction, and geometric distance calculation, and combining a 3D scanner and a human-computer interaction all-in-one machine, the problems of low efficiency and low accuracy in surge arrester creepage distance detection were solved, achieving high-precision and low-error creepage distance detection.

CN117450931BActive Publication Date: 2026-11-27ELECTRIC POWER RES INST OF STATE GRID ZHEJIANG ELECTRIC POWER COMAPNY +3
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311406142.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-25
Publication Date
2026-11-27
Estimated Expiration
2043-10-25

AI Technical Summary

Technical Problem

Existing technologies are inefficient, inaccurate, and have poor repeatability when detecting the creepage distance of surge arresters. They are difficult to accurately measure the creepage distance on uneven surfaces and contain a lot of noise and redundant data.

Method used

By employing image acquisition models, depth perception models, volume reconstruction models, and geometric distance calculation models, the internal structural features of the surge arrester are reconstructed by identifying surface features and edge information in the surge arrester image, generating three-dimensional digital twin data of the surge arrester. Combined with a liftable 3D scanner and a human-computer interaction all-in-one machine, one-click operation is achieved.

Benefits of technology

It improves the accuracy and reliability of creepage distance detection, reduces human error, and increases detection efficiency, enabling accurate perception of creepage distance on uneven surfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117450931B_ABST
    Figure CN117450931B_ABST
Patent Text Reader

Abstract

The application discloses a lightning arrester creeping distance detection method and instrument, and belongs to the technical field of lightning arrester detection. The lightning arrester creeping distance detection method is characterized in that: by establishing an image acquisition model, a depth perception model, a volume reconstruction model, a lightning arrester synthesis model and a geometric distance calculation model, surface features and edge information in a lightning arrester image are identified and labeled to obtain lightning arrester surface information, and then the internal structural features of the lightning arrester are reconstructed; the internal structural features of the lightning arrester are coupled with the lightning arrester surface information to generate lightning arrester three-dimensional digital twin data; and finally, the lightning arrester creeping distance is accurately detected according to the lightning arrester three-dimensional digital twin data, so that the problem of a large amount of noise and redundant data existing on the concave-convex surface can be effectively solved, the creeping distance detection efficiency is greatly improved, the subjective randomness and errors of manual work are reduced, and the data accuracy and reliability are higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a method and instrument for detecting the creepage distance of surge arresters, belonging to the field of surge arrester testing technology. Background Technology

[0002] According to relevant regulations, surge arresters must have their creepage distance measured. Currently, surge arrester creepage distance measurement is mainly done manually by applying tape along the creepage path, then removing the tape, straightening it, and measuring the tape length with a ruler; this length is taken as the surge arrester's creepage distance. Figures 1-3 As shown, this method suffers from drawbacks such as being outdated, cumbersome, inefficient, inaccurate, and unrepeatable. It is highly susceptible to misinterpretation of measurement results, potentially leading to unnecessary disputes.

[0003] Furthermore, Chinese patent (publication number CN115375843A) discloses a 3D reconstruction method for an uncalibrated monocular vision system, relating to the field of 3D reconstruction technology. The invention utilizes Haar wavelet transform to detect blurred images caused by motion during image capture, thereby reducing mismatches caused by blurred images in feature point matching. Secondly, for the dataset after removing blurred images, a keyframe filtering algorithm is used to select images with large baselines between adjacent images, reducing computational load and improving subsequent feature matching accuracy. The second aspect is point cloud reconstruction. First, the camera's internal parameters are obtained from the image using the camera self-calibration equation. Then, the sparse point cloud structure information of the target object is calculated from the image sequence using an incremental motion recovery structure method. Finally, through sparse point cloud optimization and region growing algorithms, the dense point cloud structure information of the target object is obtained.

[0004] However, the above solutions mainly involve three-dimensional reconstruction methods and do not address how to detect the length of the actual object. Especially for the creepage distance of the surge arrester, the surface is uneven, with a large amount of noise and redundant data. This makes it difficult to accurately detect the creepage distance of the surge arrester by directly applying the above three-dimensional reconstruction methods and other existing technologies.

[0005] The information disclosed in this background section is only for understanding the background of the inventive concept, and therefore may include information that does not constitute prior art. Summary of the Invention

[0006] To address the aforementioned problems, or one of them, the present invention aims to provide a method for detecting surge arrester creepage distance that is scientific, reasonable, and feasible. This method involves establishing an image acquisition model, a depth perception model, a volumetric reconstruction model, a surge arrester synthesis model, and a geometric distance calculation model to identify and annotate surface features and edge information in surge arrester images, thereby obtaining surge arrester surface information and reconstructing the internal structural features of the surge arrester. Furthermore, it involves coupling the internal structural features and surface information of the surge arrester to generate three-dimensional digital twin data of the surge arrester. Finally, based on the three-dimensional digital twin data of the surge arrester, the creepage distance of the surge arrester can be accurately detected.

[0007] To address the aforementioned problems, or one of them, the second objective of this invention is to provide a surge arrester creepage distance detection instrument that uses a liftable and movable 3D scanner to complete the scanning process with only one up-and-down movement. Utilizing the detection method of this invention, the creepage distance between the upper and lower ends of the surge arrester can be accurately identified and calculated. Furthermore, a human-machine interface allows for one-button operation, enabling one person to easily complete the detection work. This effectively reduces workload and minimizes human subjectivity and error, resulting in a surge arrester creepage distance detection instrument with higher data accuracy and reliability.

[0008] To address the aforementioned problems or one of the aforementioned problems, the third objective of this invention is to provide a surge arrester creepage distance detection method and instrument that can accurately sense uneven surfaces, effectively solve the problem of large amounts of noise and redundant data on uneven surfaces, and accurately identify and calculate the creepage distance, thereby significantly improving the creepage distance detection efficiency, reducing human subjectivity and errors, and providing higher data accuracy and reliability.

[0009] To achieve one of the above objectives, the first technical solution of the present invention is as follows:

[0010] A method for detecting the creepage distance of a surge arrester includes the following:

[0011] Using a pre-established image acquisition model, surge arrester images are acquired to obtain surge arrester images;

[0012] Based on a pre-established depth perception model, surface features and edge information in the surge arrester image are identified and labeled to obtain the surge arrester surface information;

[0013] Based on the surface information of the surge arrester, the internal structural features of the surge arrester are reconstructed using a pre-established volume reconstruction model;

[0014] By using a pre-built synthetic model of the surge arrester, the internal structural features and surface information of the surge arrester are coupled to generate three-dimensional digital twin data of the surge arrester.

[0015] Based on the three-dimensional digital twin data of the surge arrester, the creepage distance of the surge arrester is detected through a pre-established geometric distance calculation model.

[0016] Through continuous exploration and experimentation, this invention establishes an image acquisition model, a depth perception model, a volume reconstruction model, a surge arrester synthesis model, and a geometric distance calculation model. It identifies and labels surface features and edge information in surge arrester images to obtain surge arrester surface information, thereby reconstructing the internal structural features of the surge arrester. Then, it couples the internal structural features and surface information of the surge arrester to generate three-dimensional digital twin data of the surge arrester. Finally, based on the three-dimensional digital twin data of the surge arrester, it accurately detects the surge arrester creepage distance. The solution is scientific, reasonable, and feasible.

[0017] Furthermore, this invention is particularly applicable to surge arresters, and can accurately sense the creepage distance of surge arresters with uneven surfaces. It can effectively solve the problem of a large amount of noise and redundant data in uneven surfaces, and can accurately identify and calculate the creepage distance, which greatly improves the creepage distance detection efficiency, reduces the subjective arbitrariness and error of human intervention, and improves data accuracy and reliability.

[0018] As a preferred technical measure:

[0019] The image acquisition model uses a calibrated camera to acquire two-dimensional images of the surge arrester, and can denoise and enhance the two-dimensional images of the surge arrester to improve the image quality.

[0020] The camera calibration method is as follows:

[0021] Step 11: Select a smooth, textureless plane as the calibration board and place it in the shooting environment, ensuring that the distance between the camera and the calibration board is appropriate so that images of the calibration board can be captured from multiple angles;

[0022] Step 12: Take at least 10 images of the calibration board from different angles and positions to fully cover the camera's field of view; ensure that the calibration board is clearly visible in each image and that the corner points on the calibration board can be accurately detected;

[0023] Step 13: Preprocess the captured image. The preprocessing includes grayscale conversion and edge detection to more accurately detect corner points on the calibration board.

[0024] The cv::findChessboardCorners() function from the cross-platform computer vision library OpenCV is used to detect corner points;

[0025] Step 14: Based on the detected corner point positions, extract the coordinates of the corner points in each image; the coordinates are used to calculate the camera's intrinsic and extrinsic parameters;

[0026] Step 15: Based on the coordinates of the corner points in each image and the positions of the corner points on the calibration board in the world coordinate system, use the cv::calibrateCamera() function in the cross-platform computer vision library OpenCV to calculate the camera's intrinsic parameters and distortion coefficients, thus completing the camera calibration.

[0027] The calculated camera parameters are then applied to subsequent computer vision tasks, such as lightning arrester detection, tracking, and recognition; these parameters can help improve detection accuracy and reliability.

[0028] As a preferred technical measure:

[0029] The method for determining the position of the corner points on the calibration plate in the world coordinate system is as follows:

[0030] In the nonlinear calibration method, based on the camera's distortion characteristics, a correspondence between image coordinates and world coordinates is established, and the calculation formula is as follows:

[0031] [xyz]=[r11 r12 r13][X]+[r21 r22 r23][Y]+[r31 r32 r33][Z]+[t1 t2t3]

[0032] Where x, y, z are image coordinate vectors, X, Y, Z are world coordinate vectors, r11, r12, r13, r21, r22, r23, r31, r32, r33 are elements of the rotation matrix, t1, t2, t3 are elements of the translation matrix, and k is the radial distortion coefficient.

[0033] The transformation parameters are then obtained by solving the following equations using the least squares method:

[0034] Ax = b

[0035] Where A is the transformation matrix, x is the vector of internal parameters to be solved, and b is the vector of the known correspondence between image coordinates and world coordinates;

[0036] Then, the equation is solved using an iterative algorithm, such as the Gauss-Newton iteration method or the Levin-Sidt iteration method.

[0037] In each iteration, based on the known transformation matrix and distortion coefficients, the new image coordinates and corresponding corner coordinates are calculated, and then the transformation matrix and translation vector are updated until convergence or the specified number of iterations is reached.

[0038] As a preferred technical measure:

[0039] The deep perception model constructs a multi-layer neural network to perform multi-level feature representation on the surge arrester image, thereby identifying and labeling the surface features and edge information in the surge arrester image and obtaining the surface information of the surge arrester.

[0040] Deep perception models can automatically learn and extract features from raw data, avoiding the tedious process of manually designing features and improving the efficiency and accuracy of feature extraction.

[0041] Powerful representation capabilities: Deep perception algorithms can construct multi-layer neural networks to perform multi-level feature representation of input data, thereby better capturing the complex features of the data;

[0042] Good generalization performance: Deep perception algorithms learn feature representations by training on a large dataset, which can effectively improve the generalization performance of the model and avoid overfitting problems.

[0043] As a preferred technical measure:

[0044] The method for reconstructing and visualizing the internal structural features of a surge arrester using a volumetric reconstruction model is as follows:

[0045] Step 21: Preprocess the surface information of the surge arrester, including image enhancement, filtering, and noise reduction operations, to obtain image information in order to improve image quality and recognition accuracy;

[0046] Step 22 involves tracking and matching pixels based on the preprocessed image information to obtain the contour information of the surge arrester surface; the contour information is used to construct the surface shape of the surge arrester.

[0047] Step 23: Using a triangular mesh generation algorithm, surface smoothing and feature extraction are performed on the contour information, thereby transforming the contour information into the internal structural features of the surge arrester.

[0048] Step 24: Convert the internal structural features into a series of continuous two-dimensional slices, and perform image processing and display on each two-dimensional slice to visualize the internal structural features.

[0049] As a preferred technical measure:

[0050] The method for surface smoothing of contour information is as follows:

[0051] The raw point cloud data of the contour information is preprocessed to obtain the point cloud. The preprocessing includes noise removal and outlier removal.

[0052] The point cloud is sampled using the VoxelGrid filter to reduce the amount of data.

[0053] The normal estimation algorithm is used to estimate the normal vector of the sampled point cloud to obtain the normal vector of each point.

[0054] The normal vector is projected onto a two-dimensional plane using the greedy projection method, and a two-dimensional triangular mesh is obtained by using Delaunay triangulation.

[0055] Based on a two-dimensional triangular mesh, a smooth-surfaced surge arrester is derived using a triangular mesh generation algorithm.

[0056] As a preferred technical measure:

[0057] The following methods can be used to visualize internal structural features:

[0058] Step 31: Clean the internal structural features to remove noise, outliers and irrelevant information, and obtain three-dimensional feature data;

[0059] Step 32: Use one or more filtering algorithms to filter the three-dimensional feature data to obtain filtered three-dimensional data;

[0060] Step 33: Transform the filtered 3D data into a unified coordinate system and scale the filtered 3D data to obtain scaled data to meet the system requirements;

[0061] Step 34: Normalize the value range of the scaled data to the range of [0, 1] or [-1, 1], divide the scaled data into several three-dimensional slices, and then process each three-dimensional slice separately to reduce the amount of computation and memory usage.

[0062] Step 35: Perform dimensionality reduction preprocessing on each 3D slice to obtain 2D slices;

[0063] Step 36: Render the two-dimensional slice using the OpenGL or VTK graphics library and map it onto a two-dimensional image for visualization.

[0064] As a preferred technical measure:

[0065] The method for dimensionality reduction preprocessing is as follows:

[0066] Each 3D slice is sampled to obtain sampled data, in order to reduce the amount of data while maintaining the representativeness of the data;

[0067] The missing data points in the sampled data are interpolated to obtain interpolated data, which fills in the missing data points and makes the data smoother.

[0068] The dimensions of the interpolated data are then reduced to obtain two-dimensional data, thereby reducing the dimensionality of the data and the computational complexity.

[0069] Then, the data from multiple data sources in the two-dimensional data are fused to obtain two-dimensional slices, thereby improving the accuracy and reliability of the data.

[0070] As a preferred technical measure:

[0071] The method for detecting the creepage distance of a surge arrester using a geometric distance calculation model is as follows:

[0072] Step 41: Calculate the surface normal vector based on the three-dimensional digital twin data of the surge arrester;

[0073] Step 42: Convert the surface normal vectors into a triangular mesh;

[0074] Step 43: For each edge in the triangular mesh, calculate its length using the following formula:

[0075] Side length = sqrt((p2-p1)^2+(q2-q1)^2+(r2-r1)^2),

[0076] Where (p1, q1, r1) and (p2, q2, r2) are the coordinates of two vertices in the triangular mesh;

[0077] Step 44: Sum the lengths of each side in the triangular mesh to obtain the outer surface length of the object, i.e., the creepage distance of the surge arrester.

[0078] To achieve one of the above objectives, the second technical solution of the present invention is as follows:

[0079] A surge arrester creepage distance testing instrument includes a cabinet, a 3D scanner mounted inside the cabinet, a single door mounted on the cabinet, and a human-machine interface all-in-one machine.

[0080] The 3D scanner is equipped with one or more processors and storage devices, which are mounted on a modular platform that can be raised and lowered.

[0081] Storage device for storing one or more programs;

[0082] When the surge arrester is placed in the workstation inside the cabinet, the single door closes.

[0083] The operation command is input through the human-computer interaction all-in-one machine, and then the 3D scanner is controlled by the module platform to complete the scanning of the surge arrester by moving up and down once or multiple times;

[0084] The scanned data is then transmitted to one or more programs. When these programs are executed by the one or more processors, they enable the one or more processors to implement the surge arrester creepage distance detection method described above.

[0085] This invention utilizes a liftable and movable 3D scanner, which can complete the scanning work with just one up-and-down movement. Using the detection method of this invention, the creepage distance between the upper and lower ends of the surge arrester can be accurately identified and calculated. At the same time, one-click operation can be achieved through the human-computer interaction all-in-one machine, so that one person can easily complete the detection work, effectively reducing the workload and reducing the subjective arbitrariness and error of human labor, resulting in higher data accuracy and reliability.

[0086] Compared with existing technical solutions, the present invention has the following beneficial effects:

[0087] Through continuous exploration and experimentation, this invention establishes an image acquisition model, a depth perception model, a volume reconstruction model, a surge arrester synthesis model, and a geometric distance calculation model. It identifies and labels surface features and edge information in surge arrester images to obtain surge arrester surface information, thereby reconstructing the internal structural features of the surge arrester. Then, it couples the internal structural features and surface information of the surge arrester to generate three-dimensional digital twin data of the surge arrester. Finally, based on the three-dimensional digital twin data of the surge arrester, it accurately detects the surge arrester creepage distance. The solution is scientific, reasonable, and feasible.

[0088] This invention utilizes a liftable and movable 3D scanner, which can complete the scanning work with just one up-and-down movement. Using the detection method of this invention, the creepage distance between the upper and lower ends of the surge arrester can be accurately identified and calculated. At the same time, one-click operation can be achieved through the human-computer interaction all-in-one machine, so that one person can easily complete the detection work, effectively reducing the workload and reducing the subjective arbitrariness and error of human labor, resulting in higher data accuracy and reliability.

[0089] Furthermore, this invention is particularly applicable to surge arresters, and can accurately sense the creepage distance of surge arresters with uneven surfaces. It can effectively solve the problem of a large amount of noise and redundant data in uneven surfaces, and can accurately identify and calculate the creepage distance, which greatly improves the creepage distance detection efficiency, reduces the subjective arbitrariness and error of human intervention, and improves data accuracy and reliability. Attached Figure Description

[0090] Figures 1-3 This is a schematic diagram of the existing creepage distance measurement method for surge arresters;

[0091] Figure 4 This is a schematic flowchart of the surge arrester creepage distance detection method of the present invention;

[0092] Figure 5 This is a schematic diagram of the external structure of the surge arrester creepage distance detection instrument of the present invention;

[0093] Figure 6 This is a partial structural schematic diagram of the surge arrester creepage distance detection instrument of the present invention;

[0094] Figures 7-8 This diagram illustrates the effect of using the surge arrester creepage distance detection method of the present invention to test surge arresters.

[0095] Explanation of reference numerals in the attached figures:

[0096] 1. Cabinet; 2. Lightning arrester; 3. 3D scanner; 4. Modular platform; 5. Single door; 6. Human-computer interaction all-in-one machine; 7. USB interface. Detailed Implementation

[0097] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0098] Conversely, this invention encompasses any substitutions, modifications, equivalent methods, and solutions made within the spirit and scope of the invention as defined in the claims. Furthermore, to provide a better understanding of the invention, certain specific details are described in detail below. However, those skilled in the art will fully understand the invention even without these detailed descriptions.

[0099] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the invention. The term "or / and" as used herein includes any and all combinations of one or more of the associated listed items.

[0100] like Figure 4 As shown, the first specific embodiment of the surge arrester creepage distance detection method of the present invention is as follows:

[0101] A method for detecting the creepage distance of a surge arrester includes the following:

[0102] Using a pre-established image acquisition model, surge arrester images are acquired to obtain surge arrester images;

[0103] Based on a pre-established depth perception model, surface features and edge information in the surge arrester image are identified and labeled to obtain the surge arrester surface information;

[0104] Based on the surface information of the surge arrester, the internal structural features of the surge arrester are reconstructed using a pre-established volume reconstruction model;

[0105] By using a pre-built synthetic model of the surge arrester, the internal structural features and surface information of the surge arrester are coupled to generate three-dimensional digital twin data of the surge arrester.

[0106] Based on the three-dimensional digital twin data of the surge arrester, the creepage distance of the surge arrester is detected through a pre-established geometric distance calculation model.

[0107] like Figure 5-6 As shown, this is the second specific embodiment of the surge arrester creepage distance detection method of the present invention:

[0108] The present invention provides a method for detecting the creepage distance of surge arresters, used for three-dimensional reconstruction and external characterization measurement of the object under test. The specific steps are as follows:

[0109] Image acquisition and processing: First, use the scanner's built-in software to acquire the image, and then perform preprocessing as needed, such as noise reduction and enhancement, to improve the image quality.

[0110] Depth perception: The preprocessed image is input into the depth perception algorithm, which can automatically identify and label surface features and edge information in the image, providing basic data for subsequent 3D model reconstruction.

[0111] The advantages of depth perception algorithms are mainly reflected in the following aspects:

[0112] Automatic feature extraction: Deep perception algorithms can automatically learn and extract features from raw data, avoiding the tedious process of manually designing features and improving the efficiency and accuracy of feature extraction.

[0113] Powerful representation capabilities: Deep perception algorithms can construct multi-layer neural networks to perform multi-level feature representation of input data, thereby better capturing the complex features of the data.

[0114] Good generalization performance: Deep perception algorithms learn feature representations by training on a large dataset, which can effectively improve the generalization performance of the model and avoid overfitting problems.

[0115] Volume Reconstruction: The surface information extracted by the depth perception algorithm is input into the volume reconstruction algorithm, which can automatically reconstruct the internal structural features of an object based on image information from multiple perspectives.

[0116] Volumetric reconstruction algorithms are methods that automatically generate three-dimensional models from two-dimensional images using computer programs. The basic concepts of volumetric reconstruction algorithms in three-dimensional models include pixel-to-voxel conversion, surface reconstruction, and volumetric data visualization.

[0117] In volumetric reconstruction algorithms, the two-dimensional image first needs to be preprocessed, including image enhancement, filtering, and denoising, in order to improve image quality and recognition accuracy.

[0118] Next, the algorithm will track and match pixels based on the preprocessed image information to obtain the contour information of the object's surface. This contour information will be used to construct the surface shape of the 3D model.

[0119] In the surface reconstruction stage, the volumetric reconstruction algorithm uses techniques such as triangular mesh generation to transform contour information into the surface structure of a 3D model. This process requires addressing several complex issues, such as surface smoothing and feature extraction.

[0120] The specific mechanisms, processes, algorithm models, and function formulas for surface smoothing are as follows:

[0121] This invention uses non-rigid registration.

[0122] In non-rigid registration, PCL uses a gradient descent-based optimization algorithm to minimize the difference between the surface model and the original point cloud data. The specific process involves initializing the solution estimate, which is typically achieved using the Iterative Closest Point (ICP) algorithm.

[0123] In each iteration, an error field is calculated based on the current solution, which is the difference between the original point cloud data and the surface model.

[0124] The error field is minimized using nonlinear optimization methods (such as gradient descent), and the estimated solution is updated.

[0125] Repeat the above steps until the convergence condition is met.

[0126] The specific algorithm model for surface smoothing can be referenced through the implementation in the libpcl_surface module.

[0127] This invention uses the Greedy Projection Triangulation algorithm provided by PCL to achieve surface reconstruction and smoothing. The specific process and steps are as follows:

[0128] Input point cloud data and perform preprocessing, such as removing noise and outliers.

[0129] To sample point clouds, you can use the VoxelGrid filter or other methods to downsample and reduce the amount of data.

[0130] Normal vector estimation can be performed on the sampled point cloud using the NormalEstimation algorithm to calculate the normal vector of each point.

[0131] To project a point cloud onto a two-dimensional plane, you can use the greedy projection method or other projection methods.

[0132] The projected point cloud is subjected to Delaunay triangulation to obtain a two-dimensional triangular mesh.

[0133] Based on the results of Delaunay triangulation, the 3D model of the original point cloud can be derived, which can be achieved using a triangular mesh growth algorithm or other methods.

[0134] In the algorithm implementation, some steps can be implemented using other algorithms or libraries, such as using the CGAL library to implement Delaunay triangulation. Therefore, there is no specific formula to describe the entire algorithm flow.

[0135] By further optimizing the model, a high-quality 3D model can be obtained.

[0136] In terms of volumetric data visualization, volumetric reconstruction algorithms transform volumetric data into a series of continuous two-dimensional slices, then perform image processing and display on each slice, ultimately achieving the visualization of volumetric data.

[0137] This process requires solving some technical challenges, such as volume data preprocessing and volume visualization algorithm optimization.

[0138] The specific mechanisms, processes, and algorithm models for data preprocessing are as follows:

[0139] Data cleaning: removing noise, outliers, and irrelevant information from the data in order to better extract effective 3D features.

[0140] Data filtering: Various filtering algorithms are used to filter the data, such as statistical filtering and Gaussian filtering, to eliminate noise and redundant information in the data.

[0141] Data scaling: Transform the data to a unified coordinate system and scale the data to meet the requirements of the reconstruction system.

[0142] Data normalization: Normalize the range of data values ​​to the range of [0, 1] or [-1, 1] to facilitate subsequent processing.

[0143] Data partitioning: Divide the data into several blocks and process each block separately to reduce computation and memory usage.

[0144] Data sampling: Sampling the data to reduce the amount of data while maintaining its representativeness.

[0145] Data interpolation: performing interpolation on data to fill in missing data points and make the data smoother.

[0146] Data dimensionality reduction: Reducing the dimensionality of data to decrease its complexity and computational complexity.

[0147] Data fusion: Merging data from multiple data sources to improve data accuracy and reliability.

[0148] The specific algorithm model and function formula vary depending on the preprocessing steps. Below are some commonly used algorithm models and function formulas:

[0149] Filtering algorithms, such as Gaussian filters and statistical filters, are used to eliminate noise and redundant information in data.

[0150] Normalization algorithm: Use Z-score or min-max normalization method to normalize the range of data values ​​to the range of [0, 1] or [-1, 1].

[0151] Interpolation algorithms, such as linear interpolation, bilinear interpolation, and cubic spline interpolation, are used to fill in missing data points.

[0152] Dimensionality reduction algorithms, such as Principal Component Analysis (PCA) and t-SNE, are used to reduce the dimensionality of data to a lower dimensional space.

[0153] Data fusion algorithms, such as weighted fusion and feature fusion, are used to merge data from multiple data sources.

[0154] The specific mechanisms, processes, algorithm models, and function formulas of stereo visualization algorithms in PCL vary depending on the algorithm. Below are some commonly used PCL stereo visualization algorithms:

[0155] Point Cloud Rendering(pcl::visualization):

[0156] This library provides methods for using pcl::PointCloud <t>Format rendering and setting of visual properties (color, point size, opacity, etc.) for any nD point cloud dataset. Simultaneously, basic 3D shapes such as cylinders, spheres, lines, polygons, etc., can be drawn on the screen from point sets or parametric equations.

[0157] Range Image Visualizer: This module can visualize point cloud data as a range image.

[0158] This invention uses the Point Cloud Rendering stereoscopic visualization algorithm.

[0159] Point Cloud Rendering Algorithm Model:

[0160] Point cloud data is loaded into memory and preprocessed, such as segmentation and filtering, to eliminate noise and redundant information.

[0161] Choose the rendering method as needed, such as using graphics libraries like OpenGL or VTK.

[0162] Based on the location, color, normal vector, and other attributes of point cloud data, it is mapped onto a two-dimensional image and then visualized.

[0163] Loading point cloud data: Use the pcl::io::loadPCDFile() function to load the point cloud data file.

[0164] For example, loadPCDFile <pointt>("cloud.pcd", cloud);

[0165] Preprocessing data: Use the data structures and filtering algorithms provided in PCL to perform preprocessing operations such as segmentation, filtering, and normalization on the point cloud data.

[0166] For example, using the pcl:: filter VoxelGrid <pointt>

[0167] sorter; sorter.setInputCloud(cloud); sorter.filter(cloud_filtered); perform downsampling.

[0168] Visualization rendering: Rendering using graphics libraries such as OpenGL or VTK.

[0169] For example, create a pcl::visualization::PCLVisualizer

[0170] viewer("Cloud Rendering");viewer.setBackgroundColor(0, 0, 0);

[0171] viewer.addPointCloud <pointt>(cloud_filtered,

[0172] "sample cloud", pcl::visualization::PCL_RED); viewer.spin(); render and display.

[0173] Model synthesis: Finally, the internal structural information obtained by the volume reconstruction algorithm and the surface information obtained by the depth perception algorithm are synthesized to generate a complete and detailed 3D model.

[0174] The specific steps for calculating the surface length of surge arrester creepage using a geometric algorithm are as follows:

[0175] 1. Load point cloud data: Use the pcl::io::loadPCDFile() function to load the point cloud data file;

[0176] 2. Preprocessing point cloud data: For uneven objects, there may be a lot of noise and redundant data on the surface, so preprocessing is required. Use pcl::StatisticalOutlierRemoval filter to remove noise points and use pcl::filterVoxelGrid filter for downsampling.

[0177] 3. Calculate the surface normal vector: Use the method provided in PCL.

[0178] pcl::NormalEstimation<PointT,NormalT> ne;ne.setInputCloud(cloud);

[0179] ne.setSearchMethod(pcl::search::KdTree <pointt>::Ptr(newpcl::search::KdTree <pointt>));

[0180] ne.setRadiusSearch(0.03); ne.compute(cloud_normals)

[0181] Calculate the surface normal vector of point cloud data.

[0182] 4. Calculate the triangular mesh of the point cloud data: using the methods provided in PCL.

[0183] pcl::PolygonMesh polygon_mesh;

[0184] pcl::GreedyProjectionTriangulation <pointt>

[0185] gp3;gp3.setSearchRadius(0.025);

[0186] gp3.setMu(2.5);

[0187] gp3.setMaximumNearestNeighbors(100);gp3.setMaximumSurfaceAngle(M_PI / 4);

[0188] gp3.setMinimumAngle(M_PI / 18);

[0189] gp3.setMaximumAngle(2*M_PI / 3);

[0190] gp3.setNormalConsistency(false);

[0191] gp3.setInputCloud(cloud);

[0192] gp3.setSearchMethod(pcl::search::KdTree <pointt>::Ptr(new

[0193] pcl::search::KdTree <pointt>));

[0194] gp3.reconstruct(polygon_mesh) converts point cloud data into a triangular mesh.

[0195] 5. Calculate the side length of the triangular mesh: For each side of the triangular mesh, calculate its length. Use the following formula to calculate: side length = sqrt((p2-p1)^2+(q2-q1)^2+(r2-r1)^2), where (p1, q1, r1) and (p2, q2, r2) are the coordinates of two vertices in the triangular mesh.

[0196] 6. Accumulate Surface Length: For each edge in the triangular mesh, accumulate its length relative to all other edges. Use the accumulated result as the outer surface length of the object to generate the final creepage distance detection result required by the user.

[0197] This invention can synthesize three-dimensional images, identify and calculate creepage distance, thus greatly improving the efficiency of creepage distance detection, reducing human subjectivity and error, and improving data accuracy and reliability.

[0198] like Figure 5-6 As shown, a specific embodiment of the surge arrester creepage distance detection instrument of the present invention is as follows:

[0199] A surge arrester creepage distance testing instrument is a desktop device housed in a cabinet 1, which can be placed on a table. The lower left corner of the instrument has a USB port 7 for data exchange; the upper left corner has a 15-inch human-machine interface 6, which uses a high-performance processor, offering high computing efficiency, fast processing speed, low power consumption, quiet operation, and an operating environment ranging from -20℃ to 60℃. Its heat dissipation design is based on aerodynamic principles, primarily using dynamic cooling supplemented by natural cooling, effectively removing heat and extending the device's lifespan. The touchscreen can withstand over 35 million clicks; it has abundant interfaces, allowing for the connection of various external devices. On the right side of the instrument is a single-leaf door 5, made of glass, allowing objects to pass through. The door is visible from the outside in but not from the inside out (facilitating observation and scanning), ensuring stable data reception by the scanner and preventing interference from external light. Inside the instrument, on the right side, is a designated area for placing objects. The platform is smooth and flat, with a center reference line to prevent the surge arrester 2 from deviating too far from the scanning area. Inside the instrument, on the left, is the 3D scanner 3. The scanner has a repeatability of up to 0.02mm and outputs a model with a high-density point cloud with a dot pitch of 0.05mm, which can clearly present the texture details of the fine parts of the object. The scanning speed can reach 10 frames per second.

[0200] This invention's instrument integrates a dedicated high-performance chip, possessing extremely strong data processing capabilities. Utilizing pure blue light technology, it can project ultra-high-resolution structured light, capturing more details and exhibiting strong resistance to ambient light. The 3D scanner 3 is mounted on a height-adjustable module platform 4, enabling precise positioning down to 0.001mm. Due to the high precision and stability of these components, the module's vertical movement is smooth, quiet, and features high repeatability and adjustable speed.

[0201] A 3D scanner is a scanning instrument primarily used to scan the spatial shape and structure of objects to obtain the spatial coordinates of the object's surface and to reconstruct the object's surface in three dimensions. It is also a device used to detect irregular objects and capture them as 3D data. The 3D scanner features 3D measurement and rapid scanning capabilities. Using a high-speed laser scanning method, it quickly acquires the 3D coordinate data of the measured object's surface over a large area with high resolution. The 3D scanner has a built-in calibration function and is equipped with a flash and two industrial cameras. During operation, a laser line is shone onto the object, and the two cameras capture the 3D scan data at that instant. Due to the different curvatures of the object's surface, the light reflected and refracted upon impact, and this information is then converted into a 3D image using third-party software.

[0202] An embodiment of a device applying the method of the present invention:

[0203] An electronic device comprising:

[0204] One or more processors;

[0205] Storage device for storing one or more programs;

[0206] When the one or more programs are executed by the one or more processors, the one or more processors implement the above-described surge arrester creepage distance detection method.

[0207] An embodiment of a computer medium applying the method of the present invention:

[0208] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method for detecting the creepage distance of a surge arrester.

[0209] A specific embodiment of using the present invention for three-dimensional reconstruction of surge arresters:

[0210] (1) Image acquisition: Before image processing, a two-dimensional image of the three-dimensional object must first be acquired using a camera. Lighting conditions, camera geometry, and other factors have a significant impact on subsequent image processing.

[0211] (2) Camera calibration: By calibrating the camera, an effective imaging model is established and the camera's intrinsic and extrinsic parameters are solved. In this way, the coordinates of three-dimensional points in space can be obtained by combining the image matching results, thereby achieving the purpose of three-dimensional reconstruction.

[0212] This invention uses OpenCV, and the camera calibration process is as follows:

[0213] Prepare the calibration board and shooting environment: Select a smooth, textureless surface as the calibration board and place it in the shooting environment. Ensure that the distance between the camera and the calibration board is appropriate so that images of the calibration board can be captured from multiple angles.

[0214] Capture images: Take at least 10 images of the calibration board from different angles and positions to fully cover the camera's field of view. Ensure the calibration board is clearly visible in each image and that corner points on the calibration board can be accurately detected.

[0215] Image preprocessing: The captured image undergoes preprocessing, including grayscale conversion and edge detection, to more accurately detect corner points on the calibration board. The `cv::findChessboardCorners()` function in OpenCV can be used to detect corner points.

[0216] Corner coordinate extraction: Based on the detected corner locations, extract the coordinates of the corner points in each image. These coordinates will be used to calculate the camera's intrinsic and extrinsic parameters.

[0217] Camera calibration: Calibration is performed using the `cv::calibrateCamera()` function in OpenCV. This function requires the coordinates of each corner point in the image as input, and the positions of the corner points on the calibration board in the world coordinate system. The function will automatically calculate the camera's intrinsic parameters and distortion coefficients, among other results.

[0218] Application of calibration results: The calculated camera parameters are applied to subsequent computer vision tasks, such as object detection, tracking, and recognition. These parameters can help improve detection accuracy and reliability.

[0219] In the nonlinear calibration method, considering camera distortion, the correspondence between image coordinates and world coordinates is established using the following formula:

[0220] [xyz]=[r11 r12 r13][X]+[r21 r22 r23][Y]+[r31 r32 r33][Z]+[t1 t2t3]

[0221] Where x, y, z are image coordinate vectors, X, Y, Z are world coordinate vectors, r11, r12, r13, r21, r22, r23, r31, r32, r33 are elements of the rotation matrix, t1, t2, t3 are elements of the translation matrix, and k is the radial distortion coefficient.

[0222] The algorithm model for the nonlinear calibration method can be obtained by solving the following equations using the least squares method to obtain the transformation parameters:

[0223] Ax = b

[0224] Where A is the transformation matrix, x is the vector of internal parameters to be solved, and b is the vector of the known correspondence between image coordinates and world coordinates.

[0225] In nonlinear calibration methods, the above equations can be solved using iterative algorithms, such as the Gauss-Newton iteration method or the Levin-Sidt iteration method. In each iteration, based on the known transformation matrix and distortion coefficients, new image coordinates and corresponding object coordinates can be calculated. Then, parameters such as the transformation matrix and translation vector are updated until convergence or the specified number of iterations is reached.

[0226] (3) Feature extraction: Features mainly include feature points, feature lines, and regions. In most cases, feature points are used as matching primitives, and the form in which feature points are extracted is closely related to the matching strategy used. Therefore, when extracting feature points, it is necessary to first determine which matching method to use.

[0227] Feature point extraction algorithms can be summarized into three types: methods based on directional derivatives, methods based on image brightness contrast, and methods based on mathematical morphology.

[0228] The mechanism and process of feature extraction include the following steps:

[0229] Data preprocessing includes operations such as data cleaning and data normalization. The purpose of data cleaning is to remove noise and outliers to improve data quality, while the purpose of data normalization is to scale the data to a certain range to eliminate dimensional differences between different features.

[0230] Feature selection is the process of choosing the most representative subset of features from raw data. This can be done through methods such as filtering, wrapping, or embedding. Filtering methods select features by calculating their relevance or importance. Wrapping methods select features by training a model and evaluating the performance of the feature subset. Embedding methods transform the feature selection problem into a model training problem and perform feature selection during model training.

[0231] After completing the above steps, the required features have been extracted from the original data, which can then be used to train the model and perform subsequent operations such as classification or regression.

[0232] Principal component analysis (PCA) was used in this invention.

[0233] The process of the PCA algorithm is as follows:

[0234] Standardize the original d-dimensional dataset.

[0235] Construct the covariance matrix of the samples.

[0236] Calculate the eigenvalues ​​and corresponding eigenvectors of the covariance matrix.

[0237] Select the eigenvectors corresponding to the k largest eigenvalues, where k ≤ d.

[0238] The mapping matrix W is constructed using the first k eigenvectors.

[0239] The original d-dimensional data is transformed into a k-dimensional feature subspace by mapping matrix W.

[0240] The mathematical formula for the PCA algorithm is: X = UΣV^T, where X is the original data matrix, U is an orthogonal matrix, Σ is a diagonal matrix, and V^T is the transpose of V.

[0241] (4) Stereo matching: Stereo matching refers to establishing a correspondence between image pairs based on the extracted features, that is, matching the imaging points of the same physical space point in two different images one-to-one. When performing matching, attention should be paid to the interference of some factors in the scene, such as lighting conditions, noise interference, geometric distortion of objects, surface physical properties, and camera characteristics, etc.

[0242] Stereo matching, also known as disparity estimation or binocular depth estimation, has the following specific processing mechanism and process:

[0243] Stereo matching is based on the principle of binocular parallax, which requires epipolar correction of the two images captured at the same time to eliminate the effects of lens distortion and binocular parallax.

[0244] A disparity map d is generated by calculating the disparity values ​​of corresponding pixels. Disparity is the pixel-level difference between the positions of corresponding points in the left and right images of a given point in a 3D scene.

[0245] The depth map can be obtained using the formula z = (b × f) / d. Here, z represents depth, b represents baseline distance, f represents focal length, and d represents parallax.

[0246] This invention uses the Summed-Area Gaborfilter (SGBM) stereo matching algorithm based on global energy minimization. This algorithm uses a global energy function to describe the disparity distribution of the entire image and solves for the optimal disparity map by minimizing the energy function.

[0247] The formula for the SGBM algorithm is as follows:

[0248] Preprocessing: SGBM uses the horizontal Sobel operator to process the image, with the following formula:

[0249] Sobel(x,y)=2[P(x+1,y)-P(x-1,y)]+P(x+1,y-1)-P(x-1,y-1)+P(x+1,y+1)-P(x-1,y+1)

[0250] Where P(x, y) represents the pixel value of pixel (x, y) in the original image.

[0251] Mapping function: A function that maps each pixel (P representing its pixel value) in an image processed by the horizontal Sobel operator to a new image, where PNEW represents the pixel value in the new image. The specific expression for the mapping function can be found in research papers or code documentation.

[0252] (5) 3D Reconstruction: With a relatively accurate matching result, combined with the calibrated intrinsic and extrinsic parameters of the camera, the 3D scene information can be recovered. Since the accuracy of 3D reconstruction is affected by factors such as matching accuracy and errors in the camera's intrinsic and extrinsic parameters, it is essential to perform the preceding steps well to ensure high accuracy and low error in each stage, thus enabling the design of a relatively accurate stereo vision system. The 3D reconstruction effect of the lightning arrester is as follows: Figure 7 , Figure 8 As shown.

[0253] This invention uses the Poisson reconstruction algorithm from the PCL library for 3D reconstruction. This is a surface reconstruction algorithm, mainly used to estimate the surface from depth images or point cloud data.

[0254] The Discrete Poisson Reconstruction Algorithm is a discretized implementation of the Poisson Reconstruction Algorithm. It constructs a smooth surface by interpolating point cloud data in three-dimensional space.

[0255] The specific algorithm steps are as follows:

[0256] First, the input depth image or point cloud data is sampled to obtain a discrete set of points.

[0257] For each pixel or discrete point, calculate the normal vector of its surrounding points. This can be calculated by fitting a plane using the least squares method.

[0258] Next, for each point, the depth value of that point is interpolated based on its normal vector and the depth values ​​of surrounding points.

[0259] Finally, the depth values ​​of all the interpolated points are sorted and connected into a triangular mesh to obtain the final 3D surface model.

[0260] Since Poisson reconstruction is an optimization problem, there is no explicit formula for the depth function. It is typically solved iteratively. In each iteration, a new depth value is calculated based on the current point's depth and the depth values ​​of surrounding points, and then the point's depth value is updated. This process is repeated until a certain convergence condition is met.

[0261] The specific iterative formula is as follows:

[0262] Dnew=(A+1)Dold-AD-sum(w*n)

[0263] Where Dnew is the new depth value, Dold is the old depth value, A is a constant, D is the average depth value of all points, w is the sum of the weights of the surrounding points, and n is the normal vector of the surrounding points.

[0264] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0265] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, as well as combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0266] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0267] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0268] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.< / pointt> < / pointt> < / pointt> < / pointt> < / pointt> < / pointt> < / pointt> < / pointt> < / t>

Claims

1. A method for detecting the creepage distance of a surge arrester, characterized in that: Includes the following: Using a pre-established image acquisition model, surge arrester images are acquired to obtain surge arrester images; Based on a pre-established depth perception model, surface features and edge information in the surge arrester image are identified and labeled to obtain the surge arrester surface information; Based on the surface information of the surge arrester, the internal structural features of the surge arrester are reconstructed using a pre-established volume reconstruction model; The method for reconstructing and visualizing the internal structural features of a surge arrester using a volumetric reconstruction model is as follows: Step 21: Preprocess the surface information of the surge arrester, including image enhancement, filtering, and noise reduction operations, to obtain image information and improve the quality and recognition accuracy of the surge arrester image. Step 22 involves tracking and matching pixels based on the preprocessed image information to obtain the contour information of the surge arrester surface. Contour information is used to construct the surface shape of the surge arrester; Step 23: Using a triangular mesh generation algorithm, surface smoothing and feature extraction are performed on the contour information, thereby transforming the contour information into the internal structural features of the surge arrester. Step 24: Convert the internal structural features into a series of continuous two-dimensional slices, and perform image processing and display on each two-dimensional slice to visualize the internal structural features. The following methods can be used to visualize internal structural features: Step 31: Clean the internal structural features to remove noise, outliers and irrelevant information, and obtain three-dimensional feature data; Step 32: Use one or more filtering algorithms to filter the three-dimensional feature data to obtain filtered three-dimensional data; Step 33: Transform the filtered 3D data into a unified coordinate system and scale the filtered 3D data to obtain scaled data to meet the system requirements; Step 34: Normalize the value range of the scaled data to the range of [0, 1] or [-1, 1], divide the scaled data into several three-dimensional slices, and then process each three-dimensional slice separately to reduce the amount of computation and memory usage. Step 35: Perform dimensionality reduction preprocessing on each 3D slice to obtain 2D slices; Step 36: Render the two-dimensional slices using the OpenGL or VTK graphics library and map them onto a two-dimensional image for visualization. By using a pre-built synthetic model of the surge arrester, the internal structural features and surface information of the surge arrester are coupled to generate three-dimensional digital twin data of the surge arrester. Based on the three-dimensional digital twin data of the surge arrester, the creepage distance of the surge arrester is detected through a pre-established geometric distance calculation model.

2. The surge arrester creepage distance detection method as described in claim 1, characterized in that: The image acquisition model uses a calibrated camera to acquire two-dimensional images of the surge arrester, and then performs noise reduction and enhancement on the two-dimensional images of the surge arrester to improve the image quality. The camera calibration method is as follows: Step 11: Select a smooth, textureless flat surface as the calibration board, place the calibration board in the shooting environment, and ensure that the distance between the camera and the calibration board is appropriate; Step 12: Take at least 10 images of the calibration board from different angles and positions; and ensure that the corner points on the calibration board can be accurately detected. Step 13: Preprocess the image of the calibration board, including grayscale conversion and edge detection. And it uses functions from the cross-platform computer vision library OpenCV to detect corner points; Step 14: Based on the detected corner point positions, extract the coordinates of the corner points in the image of each calibration board; the coordinates of the corner points are used to calculate the intrinsic and extrinsic parameters of the camera. Step 15: Based on the coordinates of the corner points in the image of each calibration board and the position of the corner points on the calibration board in the world coordinate system, use functions in the cross-platform computer vision library OpenCV to calculate the camera's intrinsic parameters and distortion coefficients, and complete the camera calibration.

3. The surge arrester creepage distance detection method as described in claim 2, characterized in that: The method for determining the position of the corner points on the calibration plate in the world coordinate system is as follows: In the nonlinear calibration method, based on the camera's distortion characteristics, a correspondence between image coordinates and world coordinates is established, and the calculation formula is as follows: [xyz]=[r11 r12 r13][X]+[r21 r22 r23][Y]+[r31 r32 r33][Z]+[t1 t2 t3] Where x, y, z are image coordinate vectors, X, Y, Z are world coordinate vectors, r11, r12, r13, r21, r22, r23, r31, r32, r33 are elements of the rotation matrix, t1, t2, t3 are elements of the translation matrix, and k is the radial distortion coefficient. The transformation parameters are then obtained by solving the following equations using the least squares method: Ax=b Where A is the transformation matrix, x is the vector of internal parameters to be solved, and b is the vector of the known correspondence between image coordinates and world coordinates; Then, the equation is solved using an iterative algorithm, such as the Gauss-Newton iteration method or the Levin-Sidt iteration method. In each iteration, based on the known transformation matrix and distortion coefficients, the new image coordinates and the coordinates of the corresponding corner points are calculated. Then, the transformation matrix and translation vector parameters are updated until convergence or the specified number of iterations is reached.

4. The surge arrester creepage distance detection method as described in claim 1, characterized in that: The deep perception model constructs a multi-layer neural network to perform multi-level feature representation on the surge arrester image, thereby identifying and labeling the surface features and edge information in the surge arrester image and obtaining the surface information of the surge arrester.

5. The surge arrester creepage distance detection method as described in claim 1, characterized in that: The method for surface smoothing of contour information is as follows: The raw point cloud data of the contour information is preprocessed to obtain the point cloud. The preprocessing includes noise removal and outlier removal. The point cloud is sampled using the VoxelGrid filter to reduce the amount of data. The normal estimation algorithm is used to estimate the normal vector of the sampled point cloud to obtain the normal vector of each point. The normal vector is projected onto a two-dimensional plane using the greedy projection method, and a two-dimensional triangular mesh is obtained by using Delaunay triangulation. Based on a two-dimensional triangular mesh, a smooth-surfaced surge arrester is derived using a triangular mesh generation algorithm.

6. The surge arrester creepage distance detection method as described in claim 5, characterized in that: The method for dimensionality reduction preprocessing is as follows: Each 3D slice is sampled to obtain sampled data, in order to reduce the amount of data while maintaining the representativeness of the data; The missing data points in the sampled data are interpolated to obtain interpolated data, which fills in the missing data points and makes the data smoother. The dimensions of the interpolated data are then reduced to obtain two-dimensional data, thereby reducing the dimensionality of the data and the computational complexity. Then, the data from multiple data sources in the two-dimensional data are fused to obtain two-dimensional slices, thereby improving the accuracy and reliability of the data.

7. The surge arrester creepage distance detection method as described in claim 1, characterized in that: The method for detecting the creepage distance of a surge arrester using a geometric distance calculation model is as follows: Step 41: Calculate the surface normal vector based on the three-dimensional digital twin data of the surge arrester; Step 42: Convert the surface normal vectors into a triangular mesh; Step 43: For each edge in the triangular mesh, calculate the length of each edge using the following formula: Side length = sqrt((p2-p1)^2 + (q2-q1)^2 + (r2-r1)^2), Where (p1, q1, r1) and (p2, q2, r2) are the coordinates of two vertices in the triangular mesh; Step 44: Sum the lengths of each side in the triangular mesh to obtain the surge arrester creepage distance.

8. A surge arrester creepage distance testing instrument, characterized in that: This includes the cabinet, a 3D scanner installed inside the cabinet, a single door installed on the cabinet, and a human-computer interaction all-in-one machine; The 3D scanner is equipped with one or more processors and storage devices, mounted on a modular platform that can be raised and lowered; Storage device for storing one or more programs; When the surge arrester is placed in the workstation inside the cabinet, the single door closes. The operation command is input through the human-computer interaction all-in-one machine, and then the 3D scanner is controlled by the module platform to complete the scanning of the surge arrester by moving up and down once or multiple times; The scanned data is then transmitted to one or more programs, which, when executed by the one or more processors, enable the one or more processors to implement a surge arrester creepage distance detection method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Three-dimensional reconstruction method of uncalibrated monocular vision system

    CN115375843A

  • Three dimensional reconstruction-based insulator creepage distance measurement system and method

    CN106910189A

  • Evaluation method of lightning arrester running state based on big data

    CN107870275A