Digital twinning pretreatment method for ultraviolet detection of line insulator

By acquiring and normalizing the line insulator images and their influencing factors captured by drones, and using the pix2pix network model to generate target images, the problem of missing data in image frames is solved and the image quality and data integrity are significantly improved.

CN118587155AInactive Publication Date: 2024-09-03STATE GRID HUBEI EXTRA HIGH VOLTAGE CO +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410596600.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-09-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Data about line insulators in image frames captured by drones is easily missing due to shooting distance, angle and environmental factors, especially in the case of ultra-high voltage lines, which affects the quality of digital twin construction.

Method used

By obtaining the image to be processed and its corresponding influencing factors such as shooting distance, angle and time, perform normalization processing to generate an intermediate image, and input it into the trained pix2pix network model to generate the target image, realizing the reconstruction and data of image defects. of supplement.

Benefits of technology

The image quality is significantly improved, the missing data is compensated, and the completeness and accuracy of line insulator data are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587155A
    Figure CN118587155A
Patent Text Reader

Abstract

The invention provides a line insulator ultraviolet detection digital twin preprocessing method, and relates to the technical field of graphic image processing, and the method comprises the steps: obtaining a to-be-processed image and an impact factor corresponding to the to-be-processed image; the influence factor comprises at least one of a shooting distance, a shooting angle and shooting time; performing normalization processing on the to-be-processed image based on the influence factor to generate an intermediate image; and inputting the intermediate image into a trained pix2pix network model to generate a target image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of graphic image processing, and in particular to a digital twin preprocessing method for ultraviolet detection of line insulators. Background Art

[0002] The drone system has the advantages of strong mobility, agility and safety. The task of photographing the corona discharge of line insulators can be completed by using drones equipped with ultraviolet optical detection equipment. However, due to the position of the line insulators, as well as the complex environment and obstructions around the line insulators, the ultraviolet discharge spots captured in continuous ultraviolet video frames will be affected by factors such as shooting distance and angle. In addition, the line insulators may be blocked by foreign objects, which often leads to the loss of data about the line insulators in the image frames. In particular, ultra-high voltage line insulators are more prone to local data loss, which affects the subsequent construction of digital twins. Summary of the invention

[0003] The purpose of the present invention is to solve the problem of missing data about line insulators in image frames taken by drones. The present invention provides a digital twin preprocessing method for ultraviolet detection of line insulators.

[0004] The technical solution of the embodiment of the present application is implemented as follows: A first aspect of an embodiment of the present application provides a line insulator ultraviolet detection digital twin preprocessing method, comprising: Acquire an image to be processed and an influencing factor corresponding to the image to be processed; the influencing factor includes at least one of a shooting distance, a shooting angle, and a shooting time; performing normalization processing on the image to be processed based on the influencing factor to generate an intermediate image; The intermediate image is input into the trained pix2pix network model to generate the target image.

[0005] Optionally, the obtaining of the image to be processed and the influencing factor corresponding to the image to be processed includes: A plurality of frames of images to be processed and an influencing factor corresponding to each frame of the images to be processed are obtained.

[0006] Optionally, the normalizing the image to be processed based on the influencing factor to generate an intermediate image includes: Extracting feature points corresponding to the ultraviolet light spots from each frame of the image to be processed; Determine a transformation matrix between the feature points using a least square method and similarities between the feature points; The image to be processed is registered using the transformation matrix.

[0007] Optionally, before inputting the intermediate image into a trained pix2pix network model to generate a target image, the method further includes: The initial pix2pix network model is trained using multiple groups of defect sample images and corresponding multiple groups of ideal sample images to obtain a trained pix2pix network model.

[0008] Optionally, the using of multiple groups of defect sample images and corresponding multiple groups of ideal sample images to train the initial pix2pix network model to obtain a trained pix2pix network model includes: The joint loss function is used as the training loss function of the pix2pix model, and the training loss function satisfies the following formula: ; in, represents the loss function of the conditional generative adversarial network, (G) represents the distance loss function, is a weight parameter; G represents the generator and D represents the discriminator; ; ; Where x is the input, y is the true label, and z is random noise.

[0009] Optionally, the normalizing the image to be processed based on the influencing factor further includes: The image to be processed is subjected to distance normalization processing, angle normalization processing and time normalization processing.

[0010] Optionally, after inputting the intermediate image into a trained pix2pix network model to generate a target image, the method further includes: The target image is subjected to edge smoothing and color correction processing.

[0011] A second aspect of the embodiment of the present application provides a line insulator ultraviolet detection digital twin preprocessing device, including: an acquisition module, a first generation module and a second generation module; wherein, The acquisition module is configured to acquire the image to be processed and the influencing factor corresponding to the image to be processed; the influencing factor includes at least one of the shooting distance, the shooting angle and the shooting time; The first generating module is configured to perform normalization processing on the image to be processed based on the influencing factor to generate an intermediate image; The second generation module is configured to input the intermediate image into a trained pix2pix network model to generate a target image.

[0012] A third aspect of an embodiment of the present application provides an electronic device, comprising a processor and a memory; the memory stores a computer program, wherein the computer program, when executed by the processor, implements the digital twin preprocessing method for ultraviolet detection of line insulators described in the first aspect.

[0013] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect.

[0014] Compared with the prior art, the technical solution provided by this application has the following beneficial effects: The present invention provides a digital twin preprocessing method for ultraviolet detection of line insulators. By acquiring an image to be processed and influencing factors such as the shooting distance, shooting angle and shooting time when shooting the image to be processed, the image to be processed is normalized using the influencing factors to generate an intermediate image. The intermediate image is then input into a trained pix2pix network model to generate a target image, thereby realizing reconstruction of image defects, making up for data missing, and greatly improving image quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A schematic flow chart of a digital twin preprocessing method for ultraviolet detection of line insulators provided in an embodiment of the present application; Figure 2 A schematic diagram of the structure of a digital twin preprocessing device for ultraviolet detection of line insulators provided in an embodiment of the present application; Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0016] Below, embodiments of the present application will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present application. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present application. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present application. The terms used herein are only for describing specific embodiments and are not intended to limit the present application. The terms "include", "comprising", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components. All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0017] Some block diagrams and / or flow charts are shown in the accompanying drawings. It should be understood that some blocks or combinations thereof in the block diagrams and / or flow charts may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that these instructions, when executed by the processor, may create a device for implementing the functions / operations described in these block diagrams and / or flow charts.

[0018] In some embodiments, see Figure 1 , Figure 1 A schematic diagram of a process flow of a digital twin preprocessing method for ultraviolet detection of line insulators provided in an embodiment of the present application; A digital twin preprocessing method for ultraviolet detection of line insulators provided in an embodiment of the present application includes: S110, obtaining an image to be processed and an influencing factor corresponding to the image to be processed; the influencing factor includes at least one of a shooting distance, a shooting angle, and a shooting time.

[0019] S120, performing normalization processing on the image to be processed based on the influencing factors to generate an intermediate image.

[0020] S130, inputting the intermediate image into the trained pix2pix network model to generate a target image.

[0021] In this embodiment, the image to be processed may be a photographed image of a line insulator. The line insulator is photographed at different shooting distances, different shooting angles, and different shooting times using an ultraviolet optical detection device to obtain a series of images to be processed. Here, during the shooting process, it is necessary to record the shooting distance, shooting angle, and shooting time corresponding to each frame of the image to be processed. It should be noted that the influencing factor may be one of the shooting distance, shooting angle, and shooting time, or any two or three factors. In addition, the influencing factor may also be other factors, such as light intensity, weather conditions, etc., which are not enumerated.

[0022] Normalization is a common data preprocessing method, which converts data of different magnitudes or units to the same scale and reduces the dynamic range difference between data, thereby improving the stability of numerical calculation and the convergence speed of the model. In this embodiment, by normalizing the image to be processed, the image to be processed at different shooting distances, shooting angles and shooting times is made more consistent, which is convenient for subsequent processing.

[0023] The pix2pix network model is based on the conditional generative adversarial network (CGAN), which achieves conditional image generation by introducing conditional information in the generator and discriminator. Specifically, the generator uses the U-Net network structure, which can fuse the underlying fine-grained features and high-level abstract features to generate high-quality images. The discriminator uses the patchGAN network structure, which can extract high-frequency information such as texture at the tile scale, further improving the quality of the generated image.

[0024] This embodiment can implement image restoration by inputting the intermediate image into the trained pix2pix network model, remove noise that may exist in the intermediate image, repair damaged areas in the intermediate image, etc., greatly improve the image quality, and obtain a target image that meets the requirements.

[0025] In some embodiments, S110, obtaining the image to be processed and the influencing factor corresponding to the image to be processed, includes: Obtain multiple frames of images to be processed and the impact factors corresponding to each frame of the image to be processed.

[0026] In this embodiment, ultraviolet optical detection equipment is used to photograph line insulators from different shooting distances, different shooting angles and different shooting times, and the mapping relationship between each frame of the image to be processed and the shooting distance, shooting angle and shooting time is recorded to facilitate subsequent normalization processing.

[0027] In some embodiments, S120, performing normalization processing on the image to be processed based on the influence to generate an intermediate image includes: Extracting feature points corresponding to the ultraviolet light spots from each frame of the image to be processed; Using the least square method and the similarity between feature points, the transformation matrix between feature points is determined; The images to be processed are registered using the transformation matrix.

[0028] In the normalization process, feature extraction is first required to extract significant feature points or regions from each image, such as through SIFT (Scale Invariant Feature Transform), SURF (Speeded Up Robust Features) or ORB (Oriented BRIEF and Rotation Invariant). After feature extraction, the features in the two images are compared to find the correspondence between them and complete feature matching, which can be done by calculating the similarity between feature descriptors, such as Euclidean distance. Using the matched feature pairs, the transformation matrix is ​​estimated through an optimization algorithm. This matrix may include transformations such as rotation, translation, scaling and / or distortion. Further, the calculated transformation matrix is ​​used to transform one image to align with the other image.

[0029] Taking the normalization of shooting distance as an example for explanation, it may specifically include the following steps: Rough registration: extract the feature points between multiple images to be processed and perform preliminary registration based on the characteristic equation. For the UV spot area, use The formula is normalized, where is a constant coefficient, is the observation distance, For distance The corresponding spot area value is: is the exponent of the power function.

[0030] Fine registration,After rough registration, the transformation estimate is obtained as the initial value, and continuous convergence and iteration are carried out to make the transformation estimate more accurate. The error function is minimized based on the least squares method, and it is iterated repeatedly until the mean square error is less than the set threshold.

[0031] Global registration uses the entire frame of the image to be processed to calculate the transformation matrix. The images to be processed are then registered based on the result of the precise registration.

[0032] In some embodiments, before the intermediate image is input into the trained pix2pix network model to generate the target image, the line insulator ultraviolet detection digital twin preprocessing method further includes: The initial pix2pix network model is trained using multiple groups of defect sample images and corresponding multiple groups of ideal sample images to obtain a trained pix2pix network model.

[0033] The pix2pix network model includes a generator module and a discriminator module; the generator module uses the U-Net network structure to convert images to features and then to images, and also introduces skip connections. The discriminator uses the patchGAN structure. Among them, the U-Net network structure includes: encoding stage and decoding stage. The encoding stage consists of a series of convolutional layers and downsampling layers, which are used to gradually reduce the spatial dimension, increase the feature dimension, and capture abstract and global context information. The decoding stage consists of a series of convolutional layers and upsampling layers, which gradually restore the spatial dimension and merge the feature maps of the corresponding layers in the encoding stage to ensure that low-level details are preserved. Through these operations, functions such as upsampling of feature maps, feature fusion, and detail reconstruction can be achieved. In the decoding process, skip connections are used to connect different layers in the encoding module and the decoding module to help better transmit information and restore details. The PatchGAN structure divides the input image into multiple small local patches (Patch), and then distinguishes true from false for each local patch. The advantage of this design is that it can pay more attention to the local texture details of the image, and the computational cost is relatively low. PatchGAN is usually a series of convolutional layers and batch normalization (BN) layers, and finally a sigmoid activation function can output the authenticity score of each image patch.

[0034] In this embodiment, Pix2Pix can optimize the model by minimizing the loss function between the generated image and the real image. The loss function may include pixel-level reconstruction loss and adversarial loss. The reconstruction loss is used to ensure the consistency of the generated image with the input image in content, while the adversarial loss enables the image generated by the generator to deceive the discriminator, making it unable to judge whether the image is real. By training the initial pix2pix network model with multiple groups of defective sample images and corresponding multiple groups of ideal sample images, the Pix2Pix network model can have functions such as image style conversion, image restoration, and image segmentation.

[0035] In some embodiments, the initial pix2pix network model is trained using multiple groups of defect sample images and corresponding multiple groups of ideal sample images to obtain a trained pix2pix network model, including: The joint loss function is used as the training loss function of the pix2pix model, and the training loss function satisfies the following formula: ; in, represents the loss function of the conditional generative adversarial network, (G) represents the distance loss function, is a weight parameter; G represents the generator and D represents the discriminator; ; ; Where x is the input, y is the true label, and z is random noise.

[0036] In this embodiment, a joint loss function is used as the training loss function of the pix2pix model, and the pix2pix network model can be further optimized as needed to ensure the quality of the generated target image. Exemplarily, cross-validation can be used to determine the pix2pix network model. Specifically, the sample set is randomly divided into k parts, k-1 parts are used as training sets, and 1 part is used as a validation set. The training set and the validation set are rotated k times in turn, and the model with the smallest validation error is selected as the final pix2pix network model.

[0037] In some embodiments, S120, normalizing the image to be processed based on the impact factor, further includes: The image to be processed is subjected to distance normalization, angle normalization and time normalization.

[0038] Here, based on the principle of the above distance normalization processing example, the shooting angle and shooting time corresponding to each frame of the image to be processed can be normalized to facilitate the registration between the images to be processed.

[0039] In some embodiments, at S130, after the intermediate image is input into the trained pix2pix network model to generate the target image, the line insulator ultraviolet detection digital twin preprocessing method further includes: Perform edge smoothing and color correction on the target image.

[0040] Edge smoothing is used to smooth the edges of the target image to eliminate unnatural seams that may be caused by perspective switching. Edge smoothing algorithms include but are not limited to: morphological smoothing, median filtering algorithm, and mean filtering algorithm. Color correction is to adjust the color and brightness of the restored target image so that all restored target images have consistency in color and brightness.

[0041] The embodiment of the present application obtains the image to be processed and the influencing factors such as the shooting distance, shooting angle and shooting time when shooting the image to be processed, uses the influencing factors to normalize the image to be processed, generates an intermediate image, and then inputs the intermediate image into the trained pix2pix network model to generate a target image, thereby realizing reconstruction of image defects, compensating for data missing, and greatly improving image quality.

[0042] In some embodiments, see Figure 2 , Figure 2 A schematic diagram of the structure of a digital twin preprocessing device for ultraviolet detection of line insulators provided in an embodiment of the present application. A digital twin preprocessing device 200 for ultraviolet detection of line insulators provided in an embodiment of the present application comprises: an acquisition module 210, a first generation module 220 and a second generation module 230; wherein, An acquisition module 210 is configured to acquire an image to be processed and an influencing factor corresponding to the image to be processed; the influencing factor includes at least one of a shooting distance, a shooting angle, and a shooting time; A first generating module 220 is configured to perform normalization processing on the image to be processed based on the influencing factor to generate an intermediate image; The second generation module 230 is configured to input the intermediate image into the trained pix2pix network model to generate a target image.

[0043] In some embodiments, the acquisition module 210 is specifically configured as follows: Obtain multiple frames of images to be processed and the impact factors corresponding to each frame of the image to be processed.

[0044] In some embodiments, the first generating module 220 is specifically configured as follows: Extracting feature points corresponding to the ultraviolet light spots from each frame of the image to be processed; Using the least square method and the similarity between feature points, the transformation matrix between feature points is determined; The images to be processed are registered using the transformation matrix.

[0045] In some embodiments, the line insulator ultraviolet detection digital twin preprocessing device 200 further includes a training module; the training module is specifically configured as follows: The initial pix2pix network model is trained using multiple groups of defect sample images and corresponding multiple groups of ideal sample images to obtain a trained pix2pix network model.

[0046] In some embodiments, the training module is specifically configured as follows: The joint loss function is used as the training loss function of the pix2pix model, and the training loss function satisfies the following formula: ; in, represents the loss function of the conditional generative adversarial network, (G) represents the distance loss function, is a weight parameter; G represents the generator and D represents the discriminator; ; ; Where x is the input, y is the true label, and z is random noise.

[0047] In some embodiments, the first generating module 220 is further configured to: The image to be processed is subjected to distance normalization, angle normalization and time normalization.

[0048] In some embodiments, the line insulator ultraviolet detection digital twin preprocessing device 200 further includes a processing module; the processing module is specifically configured as follows: Perform edge smoothing and color correction on the target image.

[0049] The digital twin preprocessing device for ultraviolet detection of line insulators provided in the embodiment of the present application can implement each process in the embodiment corresponding to the above-mentioned digital twin preprocessing method for ultraviolet detection of line insulators. To avoid repetition, they will not be described here.

[0050] It should be noted that the digital twin preprocessing device for ultraviolet detection of line insulators provided in the embodiment of the present application and the digital twin preprocessing method for ultraviolet detection of line insulators provided in the embodiment of the present application are based on the same application concept. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned digital twin preprocessing method for ultraviolet detection of line insulators, and the repeated parts will not be repeated.

[0051] In some embodiments, see Figure 3 , Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. An electronic device 300 provided in an embodiment of the present application includes a processor 310 and a memory 320; the memory 320 stores a computer program, wherein the computer program implements the above-mentioned line insulator ultraviolet detection digital twin preprocessing method when executed by the processor. Specifically, the processor 310 may include, for example, a general-purpose microprocessor, an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 310 may also include an onboard memory for cache purposes. The processor 310 may be a single processing unit or multiple processing units for executing different actions of the method flow according to the embodiment of the present application. The memory 320 may be any medium capable of containing, storing, conveying, propagating or transmitting instructions. For example, the memory 320 may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device, component or propagation medium. Specific examples of the memory 320 include: a magnetic storage device, such as a magnetic tape or a hard disk (HDD); an optical storage device, such as a compact disk (CD-ROM); a random access memory (RAM) or a flash memory; and / or a wired / wireless communication link. The present application also provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned line insulator ultraviolet detection digital twin preprocessing method. The computer-readable medium may be included in the device / apparatus / system described in the above-mentioned embodiment; or it may exist alone without being assembled into the device / apparatus / system. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed, the method according to the embodiment of the present application is implemented. According to an embodiment of the present application, a computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, optical cable, radio frequency signal, etc., or any suitable combination of the above. Those skilled in the art will appreciate that the features described in the various embodiments and / or claims of the present application may be combined in a variety of ways and / or combinations, even if such combinations or combinations are not explicitly described in the present application. In particular, without departing from the spirit and teachings of the present application, the features described in the various embodiments and / or claims of the present application may be combined in a variety of ways and / or combinations. All of these combinations and / or combinations fall within the scope of the present application. Therefore, the scope of the present application should not be limited to the above-described embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims.

Claims

1. A digital twin preprocessing method for ultraviolet detection of line insulators, It is characterized in that include: Obtaining an image to be processed and an impact factor corresponding to the image to be processed; The influencing factors include at least one of shooting distance, shooting angle and shooting time; performing normalization processing on the image to be processed based on the influencing factor to generate an intermediate image; The intermediate image is input into the trained pix2pix network model to generate the target image.

2. The line insulator ultraviolet detection digital twin preprocessing method according to claim 1, It is characterized in that The obtaining of the image to be processed and the influencing factor corresponding to the image to be processed includes: A plurality of frames of images to be processed and an influencing factor corresponding to each frame of the images to be processed are obtained.

3. The line insulator ultraviolet detection digital twin preprocessing method according to claim 1, It is characterized in that The normalizing the image to be processed based on the influencing factor to generate an intermediate image includes: Extracting feature points corresponding to the ultraviolet light spots from each frame of the image to be processed; Determine a transformation matrix between the feature points using a least square method and similarities between the feature points; The image to be processed is registered using the transformation matrix.

4. The line insulator ultraviolet detection digital twin preprocessing method according to claim 1, It is characterized in that Before inputting the intermediate image into the trained pix2pix network model to generate the target image, the method further includes: The initial pix2pix network model is trained using multiple groups of defect sample images and corresponding multiple groups of ideal sample images to obtain a trained pix2pix network model.

5. The line insulator ultraviolet detection digital twin preprocessing method according to claim 4, It is characterized in that The initial pix2pix network model is trained using multiple groups of defect sample images and corresponding multiple groups of ideal sample images to obtain a trained pix2pix network model, including: The joint loss function is used as the training loss function of the pix2pix model, and the training loss function satisfies the following formula: ; in, represents the loss function of the conditional generative adversarial network, (G) represents the distance loss function, is a weight parameter; G represents the generator and D represents the discriminator; ; ; Where x is the input, y is the true label, and z is random noise.

6. The line insulator ultraviolet detection digital twin preprocessing method according to claim 1, It is characterized in that The normalizing the image to be processed based on the influencing factor further includes: The image to be processed is subjected to distance normalization processing, angle normalization processing and time normalization processing.

7. The line insulator ultraviolet detection digital twin preprocessing method according to claim 1, It is characterized in that After inputting the intermediate image into the trained pix2pix network model to generate the target image, the method further includes: The target image is subjected to edge smoothing and color correction processing.

8. A digital twin preprocessing device for ultraviolet detection of line insulators, It is characterized in that include: An acquisition module, a first generation module and a second generation module; wherein, The acquisition module is configured to acquire the image to be processed and the influencing factor corresponding to the image to be processed; the influencing factor includes at least one of the shooting distance, the shooting angle and the shooting time; The first generating module is configured to perform normalization processing on the image to be processed based on the influencing factor to generate an intermediate image; The second generation module is configured to input the intermediate image into a trained pix2pix network model to generate a target image.

9. An electronic device comprising a processor and a memory; the memory stores a computer program, in, When the computer program is executed by the processor, the digital twin preprocessing method for ultraviolet detection of line insulators according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.