Structured static model reconstruction method, system and medium for transformer

By extracting class activation maps and feature points from the transformer image data set, combined with FastRCNN and SIFT algorithms, the problem of noise and poor visualization effects in the reconstruction of the transformer static model is solved, and the unified representation and collaborative regulation of the transformer in the virtual space are realized to support monitoring. analyze.

CN118351248BActive Publication Date: 2024-09-27BINZHOU POWER SUPPLY COMPANY OF STATE GRID SHANDONG ELECTRIC POWER
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410773237.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-27
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

In the reconstruction of the static model of the transformer, the existing technology has the problem that the reconstructed model has a lot of external noise and poor visualization effect, and cannot realize the unified representation, collaborative regulation and monitoring analysis of the transformer in the virtual space under multiple time and space.

Method used

By obtaining the transformer image data set to be detected, use the classifier network to extract the class activation map, construct the initial target anchor frame, combine the FastRCNN network and SIFT algorithm to filter out the background, extract feature points, calculate the camera pose, and achieve dense image feature matching and The point cloud is meshed to obtain a structured static model of the transformer.

Benefits of technology

It effectively reduces the external noise of the reconstructed model, improves the visualization effect, realizes unified characterization and coordinated control of transformers in multiple time and space, and supports monitoring and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118351248B
    Figure CN118351248B
Patent Text Reader

Abstract

The present application discloses a structured static model reconstruction method, system and medium for transformers, which mainly relates to the technical field of structured static models, and is used to solve the problems of the existing static reconstruction, such as the large amount of in vitro noise of the reconstructed model, poor visualization effect, and inability to achieve unified representation, coordinated regulation and monitoring analysis of transformers in virtual space under multiple time and space. It includes: obtaining a data set of transformer images to be detected, and constructing an initial target anchor frame in the transformer image to be detected; obtaining a transformer foreground image; using the transformer foreground images of several perspectives of the same transformer as the input of the SIFT algorithm to obtain a set of feature point pairs; obtaining the camera pose based on the set of feature point pairs; completing feature matching of dense feature points of the image to obtain feature matching data; based on the camera pose and feature matching data, realizing point cloud conversion of dense feature points of the image, and then realizing gridding of the point cloud to obtain a structured static model of the transformer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of structured static models, and in particular to a structured static model reconstruction method, system and medium for transformers. Background Art

[0002] With the proposal of the "dual carbon" goal and the promotion of the digital economy, realizing the digital transformation of production materials and knowledge information and improving the digital level of the power grid have become urgent needs for the development of the power industry. The construction of the virtual entity of the transformer is the key to realizing the digital twin of the distribution grid, and the construction method of the static model of the high-fidelity digital facility of the transformer is mainly manual modeling based on geometric modeling software and three-dimensional reconstruction based on computer vision. However, the manual modeling method is highly dependent on design information and ledger data, and there are differences between design and operation, which leads to low modeling efficiency, incomplete expression of semantic information, and differences between the model and reality, which restricts the development of intelligent power grid construction.

[0003] In contrast, the static model reconstruction method based on computer vision is low-cost, highly realistic and highly automated, but its reconstruction process has high requirements on image quality, and there are problems such as high external noise in the reconstructed model and poor visualization effect, which seriously restricts its progress and development in the field of reconstruction of other power equipment such as transformers.

[0004] Therefore, there is an urgent need for a structured static model reconstruction method, system and medium for transformers. On the basis of solving the problems of high in vitro noise and poor visualization effect of the reconstructed model during static reconstruction, the unified representation, coordinated regulation and monitoring analysis of transformers in virtual space under multi-time and space can be achieved. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the present application provides a structured static model reconstruction method, system and medium for transformers to solve the problems in the existing static reconstruction, such as high external noise of the reconstructed model, poor visualization effect, and inability to achieve unified representation, coordinated regulation and monitoring analysis of transformers in virtual space under multiple time and space.

[0006] In a first aspect, the present application provides a structured static model reconstruction method for a transformer, the method comprising: obtaining a transformer image dataset to be detected, inputting the dataset into a classifier network to extract a class activation map of the transformer; constructing an initial target anchor frame in the transformer image to be detected based on the class activation map; wherein the transformer image dataset to be detected includes transformer images to be detected from several perspectives; obtaining a trained FastRCNN network model (Fast region with CNNfeatures), using the transformer image to be detected containing the target anchor frame as input to the trained FastRCNN network model to obtain the transformer image to be detected, filtering out the background of the transformer image to obtain a transformer foreground image; using the transformer foreground images from several perspectives of the same transformer as the SIFT algorithm (Scale-invariant feature transform The input of the method is a scale-invariant feature transform (SFT), which extracts feature points and obtains a set of feature point pairs. Based on the set of feature point pairs, the camera pose corresponding to each transformer foreground image is obtained. The dense feature points of the transformer foreground image are obtained, and feature matching of the dense feature points of the image is completed to obtain feature matching data. Based on the camera pose and feature matching data, the point cloud conversion of the dense feature points of the image is realized, and the point cloud is meshed to obtain a structured static model of the transformer.

[0007] Furthermore, a data set of transformer images to be detected is obtained and input into a classifier network to extract a class activation map of the transformer, specifically including: inputting the transformer image to be detected into the classifier network for feature extraction, and extracting the class activation map of the transformer from the feature map of the last classification layer of the network.

[0008] Furthermore, based on the class activation map, an initial target anchor box is constructed in the transformer image to be detected, specifically including: based on the formula: , normalize the class activation map; where x and y are the horizontal and vertical coordinates, respectively, and CAM represents the class activation map; perform thresholding on the normalized image: ;in, is the preset threshold; based on the formula: , , , , construct the initial target anchor frame in the transformer image to be detected; where, is the pixel set of the class activation map; xc and yc are the center coordinates of the anchor box.

[0009] Furthermore, a trained FastRCNN network model is obtained, specifically including: obtaining a sample transformer image dataset; wherein the transformer model corresponding to the sample transformer image dataset is the same as the transformer model to be detected; inputting the sample transformer image dataset into the FastRCNN network model to obtain a feature map corresponding to the sample transformer image dataset through a feature extraction network in the model; inputting the feature map into an RPN network in the model to obtain a number of anchor frame data in the feature map; wherein the anchor frame data includes predicted data and corrected anchor frames; inputting the anchor frame data into a fully connected network to obtain a number of target anchor frame data corresponding to the transformer; determining the foreground image of the transformer with the highest confidence from a number of target anchor frame data through NMS (Non-Maximum Suppression); based on the predicted foreground image and the actual foreground image, calculating the loss function and updating the FastRCNN network model, so as to obtain a trained FastRCNN network model when the FastRCNN network model completes a preset number of training times.

[0010] Further, the background of the transformer image is filtered out to obtain the transformer foreground image, specifically including: filtering out the background of the transformer image by using a GrabCut algorithm to obtain the transformer foreground image.

[0011] Furthermore, based on the feature point pair set, the camera pose corresponding to each transformer foreground image is obtained, specifically including: inputting the feature point pair set into the RANSAC algorithm (Random Sample Consensus) to remove the erroneous feature point pairs in the feature point pair set; then using the five-point method to obtain the eigenmatrix; decomposing the eigenmatrix through SVD (Singular Value Decomposition) to obtain the camera pose.

[0012] Furthermore, dense image feature points of the transformer foreground image are obtained, and then feature matching of the dense image feature points is completed to obtain feature matching data, specifically including: using a minimum eigenvalue algorithm to obtain dense image feature points of the transformer foreground image; completing feature matching of dense image feature points through an optical flow method to obtain feature matching data.

[0013] Furthermore, before implementing the gridding of the point cloud, the method also includes: removing erroneous point cloud data by using a bundle adjustment method.

[0014] In the second aspect, the present application provides a structured static model reconstruction system for transformers, the system comprising: a construction module, used to obtain a dataset of transformer images to be detected, input into a classifier network to extract a class activation map of the transformer; based on the class activation map, construct an initial target anchor frame in the transformer image to be detected; wherein the dataset of transformer images to be detected contains transformer images to be detected from several perspectives; an image acquisition module, used to obtain a trained FastRCNN network model, and use the transformer image to be detected containing the target anchor frame as the input of the trained FastRCNN network model to obtain the transformer image to be detected, and filter out the transformer. The background of the transformer image is obtained to obtain the transformer foreground image; a collection module is obtained, which is used to use the transformer foreground images of several viewing angles of the same transformer as the input of the SIFT algorithm to extract feature points, and then obtain a feature point pair set; a matching module is obtained, which is used to obtain the camera pose corresponding to each transformer foreground image based on the feature point pair set; the image dense feature points of the transformer foreground image are obtained, and then the feature matching of the image dense feature points is completed to obtain feature matching data; a model module is obtained, which is used to realize the point cloud conversion of the image dense feature points based on the camera pose and feature matching data, and then the point cloud is gridded to obtain a structured static model of the transformer.

[0015] Furthermore, the construction module includes a class activation map obtaining unit, which is used to input the transformer image to be detected into the classifier network for feature extraction, and extract the class activation map of the transformer from the feature map of the last classification layer of the network.

[0016] Further, the building block includes building units for building blocks based on the formula: , normalize the class activation map; where x and y are the horizontal and vertical coordinates, respectively, and CAM represents the class activation map; perform thresholding on the normalized image: ;in, is the preset threshold; based on the formula: , , , , construct the initial target anchor frame in the transformer image to be detected; where, is the pixel set of the class activation map; xc and yc are the center coordinates of the anchor box.

[0017] Furthermore, the image acquisition module includes a training unit for acquiring a sample transformer image data set; wherein the transformer model corresponding to the sample transformer image data set is the same as the transformer model to be detected; the sample transformer image data set is input into the FastRCNN network model to obtain a feature map corresponding to the sample transformer image data set through a feature extraction network in the model; the feature map is input into the RPN network in the model to obtain a number of anchor frame data in the feature map; wherein the anchor frame data includes predicted data and corrected anchor frames; the anchor frame data is input into a fully connected network to obtain a number of target anchor frame data corresponding to the transformer; the foreground image of the transformer with the highest confidence is determined from the number of target anchor frame data through NMS; based on the predicted foreground image and the actual foreground image, the loss function is calculated and the FastRCNN network model is updated to obtain a FastRCNN network model that has completed training when the FastRCNN network model completes a preset number of training times.

[0018] Furthermore, the image acquisition module includes a foreground acquisition unit, which is used to filter out the background of the transformer image through a GrabCut algorithm to obtain a transformer foreground image.

[0019] Furthermore, the matching module includes a posture acquisition unit, which is used to input the feature point pair set into the RANSAC algorithm to remove erroneous feature point pairs in the feature point pair set; then use the five-point method to obtain the intrinsic matrix; and decompose the intrinsic matrix through SVD to obtain the camera posture.

[0020] Furthermore, the matching module includes a data acquisition unit, which is used to obtain dense image feature points of the transformer foreground image using a minimum eigenvalue algorithm; and complete feature matching of the dense image feature points using an optical flow method to obtain feature matching data.

[0021] In a third aspect, the present application provides a non-volatile computer storage medium having computer instructions stored thereon, which when executed implement a structured static model reconstruction method for a transformer as described in any one of the above items.

[0022] Those skilled in the art can understand that the present application has at least the following beneficial effects:

[0023] 1. Transformer or other power equipment inspection datasets (transformer images to be inspected) are often produced through manual annotation, which is time-consuming and costly. Once the annotation accuracy deviates, convergence difficulties will occur. In order to improve this problem, we introduced a detection-aware dataset generation method, which extracts location information based on class activation maps for transformers. Location information can predict bounding boxes and can easily adapt to the target boundaries unique to transformers.

[0024] 2. The foreground image is extracted through transformer detection and positioning and foreground segmentation model, which can effectively eliminate the influence of external noise and feature mismatch caused by complex background in the reconstruction process on the reconstruction effect.

[0025] 3. Taking multiple foreground images as input, a camera pose estimation method and point cloud densification scheme based on the SIFT algorithm are proposed to solve the problem that some transformer equipment has weak texture, single color, and unclear features under visual perception, resulting in a small number of point clouds and poor visualization effects.

[0026] 4. Through feature matching data, unified representation, coordinated regulation, and monitoring and analysis of transformers in virtual space under multiple time and space are achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Some embodiments of the present disclosure are described below with reference to the accompanying drawings, in which:

[0028] Figure 1 It is a flow chart of a structured static model reconstruction method for a transformer provided in an embodiment of the present application.

[0029] Figure 2 It is a schematic diagram of the internal structure of a structured static model reconstruction system for a transformer provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] It should be understood by those skilled in the art that the embodiments described below are only preferred embodiments of the present disclosure, and do not mean that the present disclosure can only be implemented through the preferred embodiments. The preferred embodiments are only used to explain the technical principles of the present disclosure, and are not used to limit the protection scope of the present disclosure. Based on the preferred embodiments provided by the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work should still fall within the protection scope of the present disclosure.

[0031] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0032] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0033] The present application embodiment provides a structured static model reconstruction method for a transformer, such as Figure 1As shown, the method provided in the embodiment of the present application mainly includes the following steps:

[0034] Step 110: obtain a transformer image dataset to be detected, input it into a classifier network to extract a class activation map of the transformer; and construct an initial target anchor frame in the transformer image to be detected based on the class activation map.

[0035] It should be noted that the transformer image dataset to be detected contains transformer images to be detected from several perspectives. Specifically, multi-angle images of the transformer to be detected that meet the requirements can be obtained through a drone or a monocular camera to construct the transformer image dataset to be detected.

[0036] Among them, the transformer image dataset to be detected is obtained and input into the classifier network to extract the class activation map of the transformer, which can be specifically:

[0037] The transformer image to be detected is input into the classifier network for feature extraction, and the class activation map of the transformer is extracted from the feature map of the last classification layer of the network.

[0038] It should be noted that the classifier network can be a CNN convolutional neural network.

[0039] Among them, based on the class activation map, the initial target anchor frame is constructed in the transformer image to be detected, which can be specifically:

[0040] Based on the formula:

[0041]

[0042] The class activation map is normalized; where x and y are the horizontal and vertical coordinates, respectively, and CAM represents the class activation map.

[0043] Perform thresholding on the normalized image:

[0044] ;in, is the preset threshold.

[0045] Based on the formula:

[0046] , , ,

[0047] , construct the initial target anchor box in the transformer image to be detected.

[0048] in, is the pixel set of the class activation map; xc and yc are the center coordinates of the anchor box.

[0049] Step 120: obtain a trained FastRCNN network model, use the detected transformer image containing the target anchor frame as the input of the trained FastRCNN network model to obtain the transformer image to be detected, and filter out the background of the transformer image to obtain the transformer foreground image.

[0050] The FastRCNN network model that has completed training can be obtained as follows:

[0051] S21. Obtain a sample transformer image data set; wherein the transformer model corresponding to the sample transformer image data set is the same as the transformer model to be detected.

[0052] S22. Input the sample transformer image dataset into the FastRCNN network model to obtain the feature map corresponding to the sample transformer image dataset through the feature extraction network in the model; input the feature map into the RPN network in the model to obtain a number of anchor frame data in the feature map; wherein the anchor frame data includes predicted data and corrected anchor frames; input the anchor frame data into the fully connected network to obtain a number of target anchor frame data corresponding to the transformer.

[0053] S23. Determine, through NMS, the foreground image of the transformer with the highest confidence from a number of target anchor frame data; calculate the loss function and update the FastRCNN network model based on the predicted foreground image and the actual foreground image, so as to obtain a FastRCNN network model that has completed training when the FastRCNN network model completes a preset number of training times.

[0054] The background of the transformer image is filtered out to obtain the transformer foreground image, which can be specifically:

[0055] The background of the transformer image is filtered out by the GrabCut algorithm to obtain the transformer foreground image.

[0056] Step 130: Using the transformer foreground images of the same transformer at several viewing angles as inputs of the SIFT algorithm to extract feature points, thereby obtaining a set of feature point pairs.

[0057] It should be noted that the SIFT algorithm refers to the scale-invariant feature transformation algorithm.

[0058] Step 140: Based on the set of feature point pairs, obtain the camera pose corresponding to each transformer foreground image; obtain the image dense feature points of the transformer foreground image, and then complete feature matching of the image dense feature points to obtain feature matching data.

[0059] Among them, based on the feature point pair set, the camera pose corresponding to each transformer foreground image is obtained, which can be specifically:

[0060] The feature point pair set is input into the RANSAC algorithm to remove the erroneous feature point pairs in the feature point pair set; then the five-point method is used to obtain the intrinsic matrix; the SVD is used to decompose the intrinsic matrix to obtain the camera pose.

[0061] Among them, the dense feature points of the transformer foreground image are obtained, and then the feature matching of the dense feature points of the image is completed to obtain the feature matching data, which can be specifically:

[0062] The minimum eigenvalue algorithm is used to obtain the dense feature points of the transformer foreground image. The feature matching of the dense feature points of the image is completed through the optical flow method to obtain feature matching data.

[0063] Step 150: Based on the camera pose and feature matching data, the point cloud conversion of the dense feature points of the image is realized, and then the point cloud is meshed to obtain a structured static model of the transformer.

[0064] It should be noted that the specific method of realizing meshing of point clouds can be implemented by a Poisson surface reconstruction algorithm.

[0065] The present application can remove erroneous point cloud data before implementing point cloud gridding, specifically by removing erroneous point cloud data through a bundle adjustment method.

[0066] besides, Figure 2 A structured static model reconstruction system for a transformer is provided in an embodiment of the present application. Figure 2 As shown, the system provided in the embodiment of the present application mainly includes:

[0067] The construction module 210 is used to obtain a transformer image dataset to be detected and input it into a classifier network to extract a class activation map of the transformer; based on the class activation map, an initial target anchor frame is constructed in the transformer image to be detected.

[0068] It should be noted that the construction module 210 can be any feasible device or apparatus capable of processing the transformer image to be detected and constructing the initial target anchor frame in the transformer image to be detected. The transformer image dataset to be detected includes transformer images to be detected from several perspectives.

[0069] The construction module 210 includes a class activation map obtaining unit, which is used to input the transformer image to be detected into the classifier network for feature extraction, and extract the class activation map of the transformer from the feature map of the last classification layer of the network.

[0070] The building block 210 includes building units,

[0071] For use based on the formula: , normalize the class activation map; where x and y are the horizontal and vertical coordinates, respectively, and CAM represents the class activation map.

[0072] Perform thresholding on the normalized image:

[0073] ;in, is the preset threshold.

[0074] Based on the formula:

[0075] , , ,

[0076] , construct the initial target anchor box in the transformer image to be detected.

[0077] in, is the pixel set of the class activation map; xc and yc are the center coordinates of the anchor box.

[0078] The image acquisition module 220 is used to obtain a trained FastRCNN network model, and use the detection transformer image containing the target anchor frame as the input of the trained FastRCNN network model to obtain the transformer image to be detected, and filter out the background of the transformer image to obtain the transformer foreground image.

[0079] It should be noted that the image acquisition module 220 is any feasible device or apparatus that can utilize the FastRCNN network model to obtain the transformer image to be detected, and then filter out the background of the transformer image to obtain the transformer foreground image.

[0080] The image acquisition module 220 includes a training unit for acquiring a sample transformer image data set; wherein the transformer model corresponding to the sample transformer image data set is the same as the transformer model to be detected.

[0081] The sample transformer image dataset is input into the FastRCNN network model to obtain the feature map corresponding to the sample transformer image dataset through the feature extraction network in the model; the feature map is input into the RPN network in the model to obtain several anchor frame data in the feature map; wherein the anchor frame data includes predicted data and corrected anchor frames; the anchor frame data is input into the fully connected network to obtain several target anchor frame data corresponding to the transformer.

[0082] The foreground image of the transformer is determined to have the highest confidence from a number of target anchor frame data through NMS; based on the predicted foreground image and the actual foreground image, the loss function is calculated and the FastRCNN network model is updated to obtain a trained FastRCNN network model when the FastRCNN network model completes a preset number of training times.

[0083] The image acquisition module 220 includes a foreground acquisition unit, which is used to filter out the background of the transformer image by using a GrabCut algorithm to obtain a transformer foreground image.

[0084] The set acquisition module 230 is used to use the transformer foreground images of the same transformer at several viewing angles as the input of the SIFT algorithm to extract feature points, thereby obtaining a set of feature point pairs.

[0085] It should be noted that the set acquisition module 230 is any feasible device or apparatus that can utilize the SIFT algorithm to extract feature points and then obtain a set of feature point pairs.

[0086] The matching module 240 is used to obtain the camera pose corresponding to each transformer foreground image based on the feature point pair set; obtain the image dense feature points of the transformer foreground image, and then complete the feature matching of the image dense feature points to obtain feature matching data.

[0087] It should be noted that the matching module 240 is any feasible device or apparatus for obtaining the camera pose corresponding to each transformer foreground image, completing feature matching of dense feature points of the image, and obtaining feature matching data.

[0088] The matching module 240 includes a posture acquisition unit, which is used to input the feature point pair set into the RANSAC algorithm to remove the erroneous feature point pairs in the feature point pair set; then use the five-point method to obtain the intrinsic matrix; and decompose the intrinsic matrix through SVD to obtain the camera posture.

[0089] The matching acquisition module 240 includes a data acquisition unit, which is used to obtain dense image feature points of the transformer foreground image using a minimum eigenvalue algorithm; complete feature matching of the dense image feature points using an optical flow method to obtain feature matching data.

[0090] The model acquisition module 250 is used to realize point cloud conversion of dense feature points of the image based on camera pose and feature matching data, and then realize gridding of the point cloud to obtain a structured static model of the transformer.

[0091] It should be noted that the model acquisition module 250 is any feasible device or apparatus that can realize point cloud conversion of dense feature points of an image, and then realize gridding of the point cloud to obtain a structured static model of the transformer.

[0092] In addition, an embodiment of the present application further provides a non-volatile computer storage medium on which executable instructions are stored. When the executable instructions are executed, a structured static model reconstruction method for a transformer as described above is implemented.

[0093] So far, the technical solutions of the present disclosure have been described in combination with the above multiple embodiments, but it is easy for those skilled in the art to understand that the protection scope of the present disclosure is not limited to these specific embodiments. Without departing from the technical principles of the present disclosure, those skilled in the art can split and combine the technical solutions in the above-mentioned various embodiments, and can also make equivalent changes or replacements to the relevant technical features. Any changes, equivalent replacements, improvements, etc. made within the technical concept and / or technical principle of the present disclosure will fall within the protection scope of the present disclosure.

Claims

1. A structured static model reconstruction method for a transformer, characterized in that: The method comprises: Obtain a dataset of transformer images to be detected and input it into a classifier network to extract a class activation map of the transformer; based on the class activation map, construct an initial target anchor frame in the transformer image to be detected; wherein the dataset of transformer images to be detected includes transformer images to be detected from several perspectives; Obtain a trained FastRCNN network model, use the detection transformer image containing the target anchor box as the input of the trained FastRCNN network model to obtain the transformer image to be detected, and filter out the background of the transformer image to obtain the transformer foreground image; Among them, the FastRCNN network model that has completed training is obtained, including: Obtain a sample transformer image data set; wherein the transformer model corresponding to the sample transformer image data set is the same as the transformer model to be detected; input the sample transformer image data set into the FastRCNN network model to obtain the feature map corresponding to the sample transformer image data set through the feature extraction network in the model; input the feature map into the RPN network in the model to obtain a number of anchor frame data in the feature map; wherein the anchor frame data includes predicted data and corrected anchor frames; input the anchor frame data into the fully connected network to obtain a number of target anchor frame data corresponding to the transformer; determine the foreground image of the transformer with the highest confidence from the several target anchor frame data through NMS; based on the predicted foreground image and the actual foreground image, calculate the loss function and update the FastRCNN network model, so as to obtain a FastRCNN network model that has completed training when the FastRCNN network model completes a preset number of training times; The transformer foreground images of the same transformer at several viewing angles are used as the input of the SIFT algorithm to extract feature points, thereby obtaining a set of feature point pairs; Based on the feature point pair set, the camera pose corresponding to each transformer foreground image is obtained; the dense feature points of the transformer foreground image are obtained, and then the feature matching of the dense feature points of the image is completed to obtain feature matching data; Based on the camera pose and feature matching data, the point cloud conversion of dense feature points in the image is realized, and then the point cloud is meshed to obtain the structured static model of the transformer.

2. The structured static model reconstruction method for transformer according to claim 1, characterized in that: Obtain the transformer image dataset to be detected and input it into the classifier network to extract the class activation map of the transformer, including: The transformer image to be detected is input into the classifier network for feature extraction, and the class activation map of the transformer is extracted from the feature map of the last classification layer of the network.

3. The structured static model reconstruction method for transformer according to claim 1, characterized in that: Based on the class activation map, the initial target anchor box is constructed in the transformer image to be detected, including: Based on the formula: , normalize the class activation map; where x and y are the horizontal and vertical coordinates respectively, and CAM represents the class activation map; Perform thresholding on the normalized image: ;in, is the preset threshold; Based on the formula: , , , , construct an initial target anchor box in the transformer image to be detected; in, is the pixel set of the class activation map; xc and yc are the center coordinates of the anchor box.

4. The structured static model reconstruction method for transformer according to claim 1, characterized in that: Filter out the background of the transformer image to obtain the transformer foreground image, including: The background of the transformer image is filtered out by the GrabCut algorithm to obtain the transformer foreground image.

5. The structured static model reconstruction method for transformer according to claim 1, characterized in that: Based on the feature point pair set, the camera pose corresponding to each transformer foreground image is obtained, including: Input the feature point pair set into the RANSAC algorithm to remove the wrong feature point pairs in the feature point pair set; Then, the five-point method is used to obtain the intrinsic matrix; the intrinsic matrix is ​​decomposed by SVD to obtain the camera pose.

6. The structured static model reconstruction method for transformer according to claim 1, characterized in that: Obtain the dense feature points of the transformer foreground image, and then complete the feature matching of the dense feature points of the image to obtain feature matching data, including: The minimum eigenvalue algorithm is used to obtain dense feature points of the transformer foreground image; The feature matching of dense feature points in the image is completed through the optical flow method to obtain feature matching data.

7. The structured static model reconstruction method for transformer according to claim 1, characterized in that: Before meshing the point cloud, the method further includes: The error point cloud data is removed by bundle adjustment method.

8. A structured static model reconstruction system for transformers, characterized in that: The system comprises: A construction module is used to obtain a dataset of transformer images to be detected and input it into a classifier network to extract a class activation map of the transformer; based on the class activation map, an initial target anchor frame is constructed in the transformer image to be detected; wherein the dataset of transformer images to be detected includes transformer images to be detected from several perspectives; An image acquisition module is used to obtain a trained FastRCNN network model, and the detection transformer image containing the target anchor frame is used as the input of the trained FastRCNN network model to obtain the transformer image to be detected, and the background of the transformer image is filtered out to obtain the transformer foreground image; The image acquisition module includes a training unit, Used to obtain a sample transformer image dataset; wherein the transformer model corresponding to the sample transformer image dataset is the same as the transformer model to be detected; input the sample transformer image dataset into the FastRCNN network model to obtain the feature map corresponding to the sample transformer image dataset through the feature extraction network in the model; input the feature map into the RPN network in the model to obtain a number of anchor frame data in the feature map; wherein the anchor frame data includes predicted data and corrected anchor frames; input the anchor frame data into the fully connected network to obtain a number of target anchor frame data corresponding to the transformer; determine the foreground image of the transformer with the highest confidence from the several target anchor frame data through NMS; based on the predicted foreground image and the actual foreground image, calculate the loss function and update the FastRCNN network model, so as to obtain a FastRCNN network model that has completed training when the FastRCNN network model completes a preset number of training times; A set acquisition module is used to use transformer foreground images of the same transformer at several viewing angles as inputs of a SIFT algorithm to extract feature points, thereby obtaining a set of feature point pairs; A matching module is obtained, which is used to obtain the camera pose corresponding to each transformer foreground image based on a set of feature point pairs; dense feature points of the transformer foreground image are obtained, and then feature matching of the dense feature points of the image is completed to obtain feature matching data; A model module is obtained, which is used to realize the point cloud conversion of dense feature points of the image based on camera pose and feature matching data, and then to realize the gridding of the point cloud and obtain the structured static model of the transformer.

9. The structured static model reconstruction system for transformer according to claim 8, characterized in that: The building blocks include a class activation map acquisition unit, It is used to input the transformer image to be detected into the classifier network for feature extraction, and extract the class activation map of the transformer from the feature map of the last classification layer of the network.

10. The structured static model reconstruction system for transformer according to claim 8, characterized in that: The building blocks include building units, For use based on the formula: , normalize the class activation map; where x and y are the horizontal and vertical coordinates respectively, and CAM represents the class activation map; Perform thresholding on the normalized image: ;in, is the preset threshold; Based on the formula: , , , , construct an initial target anchor box in the transformer image to be detected; in, is the pixel set of the class activation map; xc and yc are the center coordinates of the anchor box.

11. The structured static model reconstruction system for transformer according to claim 8, characterized in that: The image acquisition module includes a foreground acquisition unit, It is used to filter out the background of the transformer image through the GrabCut algorithm to obtain the transformer foreground image.

12. The structured static model reconstruction system for transformer according to claim 8, characterized in that: The matching module includes a pose acquisition unit. Used to input the feature point pair set into the RANSAC algorithm to remove the erroneous feature point pairs in the feature point pair set; Then, the five-point method is used to obtain the intrinsic matrix; the intrinsic matrix is ​​decomposed by SVD to obtain the camera pose.

13. The structured static model reconstruction system for transformer according to claim 8, characterized in that: The matching module includes a data acquisition unit, Used to obtain dense feature points of the transformer foreground image using the minimum eigenvalue algorithm; The feature matching of dense feature points in the image is completed through the optical flow method to obtain feature matching data.

14. A non-volatile computer storage medium, characterized in that: Computer instructions are stored thereon, and when the computer instructions are executed, a structured static model reconstruction method for a transformer is implemented as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Geometric model construction method and system for power transformers

    CN105956340A

  • Dense matching point cloud building structured model fine reconstruction method

    CN112712596A

  • Weak supervision detection method for multi-level feature fusion

    CN114913485A

  • Static environment and dynamic object dense reconstruction method and system and storage medium

    CN115578435A

  • Vehicle explicit three-dimensional reconstruction method under rough camera pose labeling condition

    CN115731351A