Image detection method for crack defects of solar cell panel

Through the combination of image recognition network structure and adaptive angle module, the accuracy problem of crack defect detection of solar panels is solved, high-accuracy detection is achieved, and maintenance costs are reduced.

CN118887154AInactive Publication Date: 2024-11-01NORTH CHINA ELECTRIC POWER UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310461106.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-26
Publication Date
2024-11-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art is difficult to accurately identify and detect crack defects in solar panels, affecting service life and power generation efficiency.

Method used

Using image recognition network structure, combined with adaptive angle module and attention mechanism module, electroluminescent pictures are taken through black and white industrial cameras, data annotation and feature extraction are carried out, a complete network model is constructed, training sets and test sets are divided, and crack features are performed. Learning and testing.

Benefits of technology

It improves the accuracy and reliability of crack defect detection of solar panels, can identify cracks in solar panels with an accuracy rate of 90%, and reduces maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0004200750900000081
    Figure BDA0004200750900000081
  • Figure BDA0004200750900000082
    Figure BDA0004200750900000082
  • Figure HDA0004200750910000011
    Figure HDA0004200750910000011
Patent Text Reader

Abstract

The invention discloses an image detection method for crack defects of a solar cell panel. The method comprises the following steps: S1, shooting an electroluminescent picture of a solar cell panel to obtain an image with a crack defect of the solar cell panel; s2, performing data set labeling on the image with the crack defect; and S3, constructing a data input module. S4, constructing a feature extraction module; s5, constructing an adaptive angle module; s6, constructing a complete deep learning network structure; s7, dividing the data set; s8, inputting the image data into the network structure for training; and S9, detecting cracks of the solar cell panel. According to the method, the problem that the power generation efficiency of a solar power generation panel becomes low is comprehensively considered, the image detection method for the crack defects of the solar cell panel is researched, a new model structure is constructed, and the method has certain advantages compared with an existing model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image defect detection, and in particular to an image detection method for crack defects of a solar cell panel. Background Art

[0002] Nowadays, with the rapid development of social economy, energy issues have become one of the important factors of social progress. Fossil energy is a non-renewable energy source. Due to excessive exploitation, fossil energy will gradually dry up. At the same time, the burning of fossil fuels has also caused great damage to the ecological environment. In order to curb global warming and improve the traditional energy structure, countries around the world are paying more and more attention to the use and development of clean energy, such as solar energy, wind energy, geothermal energy and tidal energy. Among many clean energy sources, with the continuous maturity of solar cell technology, solar energy has become a major focus of clean energy development in various countries. From 2003 to 2016, the proportion of photovoltaic power generation in Germany's total power generation increased from 0.1% to 6.0%. The United States' "Ten Million Solar Roofs Plan" and Japan's "New Sunshine Plan" both reflect the importance attached to the photovoltaic industry. China has even formulated the "Smart Photovoltaic Industry Innovation and Development Action Plan (2021-2025)" to promote the development of the photovoltaic industry. As of the end of December 2021, China's total installed capacity of solar power generation was about 310 million kilowatts, a year-on-year increase of 20.9%. The total installed capacity of new installed capacity and power generation grid-connected installed capacity has ranked first in the world for seven consecutive years. However, whether in the process of production, transportation, installation or use, solar panels may be damaged due to various reasons. The defects of solar cells will affect the service life and power generation efficiency. Therefore, it is of great significance to carry out research on solar panel defect detection. Summary of the invention

[0003] The invention proposes an image detection method for crack defects of a solar cell panel, aiming at accurately identifying crack defects of the solar cell panel.

[0004] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0005] S1 takes electroluminescent pictures of solar panels to obtain images with crack defects on the solar panels;

[0006] S2 annotates the dataset of images with crack defects;

[0007] S3 builds a data input module to ensure that data can enter the training network normally;

[0008] S4 builds a feature extraction module to extract crack features of the data set;

[0009] S5 builds an adaptive angle module to fuse the receptive field information of a specific angle with the high-frequency information of wavelet transform to improve recognition accuracy;

[0010] S6 builds a complete new network structure that can realize image training and detection;

[0011] S7 divides the data set into a training set and a test set;

[0012] S8 inputs the image data into the network structure for training and learning crack characteristics;

[0013] S9 detects cracks in solar panels.

[0014] Furthermore, the step of acquiring the image in step S1 is:

[0015] First, the solar panel is placed in a dark box and an excitation voltage is applied to it to produce an electroluminescent effect;

[0016] Secondly, use a black and white industrial camera to take pictures and connect to a computer to store the pictures;

[0017] Finally, the ratio of images with cracks to normal images is 2:1.

[0018] Furthermore, the step of labeling the data set in step S2 is:

[0019] First, select LabelImg as the software for dataset annotation;

[0020] Secondly, the crack defect information in the image is annotated;

[0021] Finally, a complete dataset of annotated solar cracks is constructed.

[0022] Furthermore, the steps of constructing the data input module in step S3 are:

[0023] First, we perform data augmentation on the images, and randomly scale, crop, and arrange the four photos;

[0024] Secondly, the input image size is set to be fixed at 640 pixels × 640 pixels;

[0025] Finally, the image is scaled to a fixed size to facilitate feature training.

[0026] Furthermore, the steps of constructing the feature extraction module in step S4 are:

[0027] First, a top-down structure is adopted to fuse high-level feature information through upsampling.

[0028] Secondly, on the basis of the top-down structure, a bottom-up structure is added to convey strong positioning information;

[0029] Finally, the CBAM attention mechanism module is added to improve the model's attention to cracks.

[0030] Furthermore, the steps of constructing the adaptive angle module in step S5 are:

[0031] First, the cracks are divided into three branches: transverse, longitudinal and diagonal. ;

[0032] Secondly, for cracks at different angles, asymmetric convolution at a specific angle and high-frequency features of Haar wavelet transform are used for fusion;

[0033] Secondly, a deep separable module is added to improve the network's ability to extract non-redundant features;

[0034] Finally, a complete adaptive angle module is built.

[0035] Furthermore, the steps of constructing a complete network structure in step S6 are:

[0036] First, the data input, feature extraction and adaptive angle modules are connected;

[0037] Secondly, the feature output is divided into three angle crack feature maps with a size of 40×40, corresponding to the detection of crack defect features at different angles;

[0038] Finally, a complete crack defect detection network model is constructed.

[0039] Furthermore, the step of dividing the data set in step S7 is:

[0040] First, the dataset is divided into two parts;

[0041] Secondly, the training set accounts for the first 80% of the data set, and the test set accounts for the last 20% of the data set;

[0042] Finally, the data set is divided, the training set is used for network model training, and the test set is used for crack detection.

[0043] Through the above technical solutions, it can be known that, in the context of my country's solar energy installed capacity ranking among the top in the world, it is extremely important to have an image recognition method that can accurately detect solar panel defects, especially for the detection of solar panel crack defects. The present invention studies an image detection method for solar panel defects. First, solar panel pictures are collected by a black and white industrial camera. At the same time, a new image recognition network structure is built. Effectively identify and locate solar panel cracks. Secondly, the image recognition network structure innovatively adds an adaptive angle module and an attention mechanism module, which improves the accuracy and reliability of the present invention for image detection of solar panel defects, and has certain advantages over existing models. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the disclosed drawings without paying creative work.

[0045] Figure 1 This is an image detection process for crack defects in a solar panel of the present invention;

[0046] Figure 2 It is the electroluminescence process used in the present invention;

[0047] Figure 3 It is a structural diagram of the adaptive angle model of the present invention;

[0048] Figure 4 is the attention mechanism module of the present invention;

[0049] Figure 5 It is the adaptive angle module proposed by the present invention;

[0050] Figure 6 is a wavelet transform module of the present invention;

[0051] Figure 7 is the asymmetric convolution module of the present invention;

[0052] Figure 8 is the depthwise separable convolution module of the present invention; DETAILED DESCRIPTION

[0053] The method of the present invention is described clearly and completely below in conjunction with the accompanying drawings and specific examples in the present invention. Obviously, what is described is only one implementation example of the present invention, not all implementation examples. Based on the implementation examples in the present invention, all other implementation examples obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0054] Reference Figure 1 As shown, the present invention discloses an image detection method for crack defects of a solar panel, comprising the following steps:

[0055] S1 takes electroluminescent photos of solar panels to obtain images with crack defects of solar panels;

[0056] S2 annotates the dataset of images with crack defects;

[0057] S3 builds a data input module to ensure that data can enter the training network normally;

[0058] S4 builds a feature extraction module to extract crack features of the data set;

[0059] S5 builds an adaptive angle module to identify cracks based on characteristic angles and improve recognition accuracy;

[0060] S6 builds a complete new network structure that can realize image training and detection;

[0061] S7 divides the data set into a training set and a test set;

[0062] S8 inputs the image data into the network structure for training and learning crack characteristics;

[0063] S9 detects cracks in solar panels.

[0064] In a specific embodiment, the steps of acquiring image data in step S1 are:

[0065] First, place the solar panel in a dark box and apply an excitation voltage to it to produce a cell luminescence effect;

[0066] Secondly, use an industrial black and white camera to take pictures and connect to a computer to store the pictures;

[0067] Finally, the ratio of images with cracks to normal images is controlled to be 2:1.

[0068] In a specific embodiment, the step of labeling the data set in step S2 is:

[0069] First, select LabelImg as the software for dataset annotation;

[0070] Secondly, the crack information in the picture is marked;

[0071] Finally, a new complete dataset with annotations is constructed.

[0072] In a specific embodiment, the step of constructing the data input module in step S3 is:

[0073] First, perform data augmentation on the image, such as Figure 2 As shown, the four photos are randomly scaled, randomly cropped, and randomly arranged;

[0074] Secondly, the input image size is set to be fixed at 640 pixels × 640 pixels;

[0075] Finally, the image is scaled to a fixed size to facilitate feature training.

[0076] In a specific embodiment, the step of constructing the feature extraction module in step S4 is:

[0077] First, the convolution plus C3 structure is used to extract preliminary feature information;

[0078] Secondly, the CBAM attention mechanism module is added to improve the network's ability to extract crack features;

[0079] Secondly, the sampling and concatenation operations are combined to enhance the network's ability to extract diverse linear features;

[0080] Finally, a complete feature extraction module is built.

[0081] In a specific embodiment, a CBAM attention mechanism module is introduced, which includes two independent submodules: Channel Attention Module (CAM) and Spatial Attention Module (SAM), which perform channel and spatial attention respectively. This not only saves parameters and computing power, but also ensures that it can be integrated into the existing network framework as a plug-and-play module.

[0082] In a specific embodiment, the steps of constructing the adaptive angle module in step S5 are:

[0083] First, the cracks were divided into three branches: transverse, longitudinal, and diagonal;

[0084] Secondly, for cracks at different angles, asymmetric convolution at a specific angle and high-frequency features of Haar wavelet transform are used for fusion;

[0085] Secondly, a deep separable module is added to improve the network's ability to extract non-redundant information;

[0086] Finally, a complete adaptive angle module is built.

[0087] In a specific embodiment, the steps of constructing a complete network structure in step S6 are:

[0088] First, the data input, feature extraction and adaptive angle modules are connected;

[0089] Secondly, the feature output is divided into three angle crack feature maps with a size of 40×40, corresponding to the detection of crack defect features at different angles;

[0090] Finally, a complete defect detection network model is constructed.

[0091] In a specific embodiment, the step of dividing the data set in step S7 is:

[0092] First, the dataset is divided into two parts;

[0093] Secondly, the training set accounts for the first 80% of the data set, and the test set accounts for the last 20% of the data set;

[0094] Finally, the data set is divided, the training set is used for network model training, and the test set is used for recognition detection.

[0095] In a specific embodiment, the present invention first inputs the training set into the feature extraction module, such as Figure 3 As shown in the figure, the feature extraction module is mainly composed of convolution module, C3 module, SPP module, upsampling module and splicing module, in which the CBAM attention mechanism module is added. CBAM contains two independent submodules, Channel Attention Module (CAM) and Spatial Attention Module (SAM), which perform channel and spatial attention respectively. This not only saves parameters and computing power, but also ensures that it can be integrated into the existing network framework as a plug-and-play module.

[0096] In a specific embodiment, the present invention uses a Haar wavelet transform module to improve the network's ability to extract crack features. Haar wavelet is an orthogonal wavelet function with compact support in wavelet analysis. The definition of Haar wavelet function is as follows, and its scaling function is as follows.

[0097]

[0098]

[0099] Crack information is high-frequency information. The horizontal component information decomposed by Haar wavelet transform is used to enhance the transverse crack characteristics, the vertical direction information is used to enhance the longitudinal crack information, and the diagonal direction component is used to enhance the inclined crack information. Haar wavelet transform can not only enhance the crack information, but also help reduce the influence of the background information of the feature map, thereby effectively improving the accuracy of network recognition.

[0100] In a specific embodiment, the present invention uses asymmetric convolution. In a convolutional neural network, the receptive field refers to the area of ​​the input image that a certain point on the feature map can see. The point on the feature map is calculated from the receptive field size area in the input image. The larger the value of the neuron's receptive field, the larger the range of the original image it contacts, which means that it may contain more global information. On the contrary, the smaller the receptive field, the more local and detailed the features it contains. Crack features are usually slender features. Using ordinary convolution operations will extract most of the redundant information, so this article draws on the asymmetric convolution in the asymmetric convolution module to enhance the receptive field of the feature map for slender features. In order to improve the performance of various j convolutional network architectures, the algorithm sums the outputs of three convolution branches with square, horizontal and vertical kernels. Asymmetric convolution is usually used to approximate the existing square convolution to compress and accelerate the model. In order to enhance the ability of the feature map to extract crack information, this article draws on the convolution kernel in the asymmetric convolution module.

[0101] In a specific embodiment, Figure 8 Depthwise Convolution is a module of depthwise separable convolution. Depthwise Convolution is divided into two parts: Depthwise Convolution and Pointwise Convolution. A convolution kernel of Depthwise Convolution is only responsible for one channel, and a channel is only convolved by one convolution kernel. It is a special grouped convolution. The number of feature maps after completion is the same as the number of input layer channels, and the feature map cannot be expanded. And only relying on Depthwise Convolution to perform independent convolution operations on each input layer channel does not effectively utilize the feature information of different channels in the same space. Therefore, it needs to be used in conjunction with Pointwise Convolution. Pointwise Convolution uses a 1x1 convolution to realize information exchange between channels. 1x1 convolution performs weighted combination of feature maps in the depth direction to generate new feature maps.

[0102] In a specific embodiment, the present invention uses Alpha-IoU as a loss function during network training, balancing the accuracy and recall of the symplectic model, and further improving the accuracy of the network structure. Alpha-IoU is a new type of IOU that performs power operations in the IOU and penalty term expressions. In a clean or noisy environment, it does not introduce additional parameters, nor does it increase the training and reasoning time. It is more obvious for small data sets. The formula is as follows:

[0103] α-IOU = 1-IOU α

[0104] In a specific embodiment, the operating system supporting the experiment of the present invention is Windows 10, the CPU is Intel (R) core (R) i7-8700 CPU 3.70GHZ, the GPU is GeForce GTX 2080ti with 11GB video memory, and the framework is Pytorch. The data set is divided into a training set and a test set in a ratio of 8:2, and divided six times, and experiments are carried out respectively. The initial learning rate is 0.01, the termination learning rate is 0.2, the number of pictures passed into the model each time is 8, the number of data loaders is 4, and the number of training rounds is 200. The experiment shows that the average accuracy of detecting cracks in solar panels is about 90%.

[0105] Based on the above invention analysis, the image detection method of solar panel defects based on this invention has more excellent performance, can more accurately inspect and identify cracks in solar panels, and reduce the maintenance cost of solar panels.

[0106] The above description of the disclosed embodiments is provided in a progressive manner to enable those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An image detection method for crack defects in solar panels, characterized in that: The following steps are involved: S1 takes electroluminescent pictures of solar panels to obtain images with crack defects on the solar panels; S2 annotates the dataset of images with crack defects; S3 builds a data input module to ensure that data can enter the training network normally; S4 builds a feature extraction module to extract crack features of the data set; S5 builds an adaptive angle module to fuse the receptive field information of a specific angle with the high-frequency information of wavelet transform to improve recognition accuracy; S6 builds a complete new network structure that can realize image training and detection; S7 divides the data set into a training set and a test set; S8 inputs the image data into the network structure for training and learning crack characteristics; S9 detects cracks in solar panels.

2. The image detection method for crack defects of a solar panel according to claim 1, characterized in that: The steps of acquiring image data in step S1 are: First, the solar panel is placed in a dark box and an excitation voltage is applied to it to produce an electroluminescent effect; Secondly, use a black and white industrial camera to take pictures and connect to a computer to store the pictures; Finally, the ratio of images with cracks to normal images is 2:

1.

3. The image detection method for crack defects of a solar panel according to claim 1, characterized in that: The steps of data set annotation in step S2 are: First, select LabelImg as the software for dataset annotation; Secondly, the crack information in the picture is marked; Finally, a new complete dataset with annotations is constructed.

4. The image detection method for crack defects of a solar panel according to claim 1, characterized in that: The steps of constructing the data input module in step S3 are: First, we perform data augmentation on the images, and randomly scale, crop, and arrange the four photos; Secondly, the input image size is set to be fixed at 640 pixels × 640 pixels; Finally, the image is scaled to a fixed size to facilitate feature training.

5. The image detection method for crack defects of a solar panel according to claim 1, characterized in that: The steps of constructing the feature extraction module in step S4 are: First, a top-down structure is adopted to fuse high-level feature information through upsampling. Secondly, on the basis of the top-down structure, a bottom-up structure is added to convey strong positioning information; Finally, the CBAM attention mechanism module is added to improve the model's attention to cracks.

6. The feature extraction module according to claim 5, characterized in that: The CBAM attention mechanism module is introduced, which contains two independent sub-modules: the channel attention module and the spatial attention module, which perform channel and spatial attention respectively. This not only saves parameters and computing power, but also ensures that it can be integrated into the existing network framework as a plug-and-play module.

7. The image detection method for crack defects of a solar panel according to claim 1, characterized in that: The steps of constructing the adaptive angle module in step S5 are: First, the cracks are divided into three branches: transverse, longitudinal and diagonal. ; Secondly, for cracks at different angles, asymmetric convolution at a specific angle and high-frequency features of Haar wavelet transform are used for fusion; Secondly, a deep separable module is added to improve the network's ability to extract non-redundant features; Finally, a complete adaptive angle module is built.

8. The adaptive angle module according to claim 8, characterized in that: The Haar wavelet transform module is introduced. The horizontal component information decomposed by the Haar wavelet transform is used to enhance the transverse crack characteristics, the vertical direction information is used to enhance the longitudinal crack information, and the diagonal direction component is used to enhance the inclined crack information. The Haar wavelet transform can not only enhance the crack information, but also help reduce the influence of the background information of the feature map, thereby effectively improving the accuracy of network recognition.

9. The adaptive angle module according to claim 8, characterized in that: The depthwise separable module is introduced, and the depthwise separable convolution is divided into two parts: Depthwise Convolution and Pointwise Convolution. One convolution kernel of DepthwiseConvolution is only responsible for one channel, and one channel is only convolved by one convolution kernel. It is a special grouped convolution. The number of feature maps after completion is the same as the number of input layer channels, and the feature map cannot be expanded. And only relying on Depthwise Convolution to perform independent convolution operations on each input layer channel, it does not effectively utilize the feature information of different channels in the same space, so it needs to be used in conjunction with Pointwise Convolution. PointwiseConvolution uses a 1x1 convolution to realize information exchange between channels. 1x1 convolution performs weighted combination of feature maps in the depth direction to generate new feature maps.

10. The image detection method for crack defects of a solar panel according to claim 1, characterized in that: The steps of constructing a complete network structure in step S6 are: First, the data input, feature extraction and adaptive angle modules are connected; Secondly, the feature output is divided into three angle crack feature maps with a size of 40×40, corresponding to the detection of crack defect features at different angles; Finally, a complete crack defect detection network model is constructed.

11. The image detection method for crack defects of a solar panel according to claim 1, characterized in that: The steps of dividing the data set in step S7 are: First, the dataset is divided into two parts; Secondly, the training set accounts for the first 80% of the data set, and the test set accounts for the last 20% of the data set; Finally, the data set is divided, the training set is used for network model training, and the test set is used for recognition detection.

Citation Information

Cited By

  • Concrete defect image generation method based on mask guidance

    CN120931749A

  • Spacecraft circular flexible solar wing battery defect detection method and device

    CN121147588A