A method for automatically identifying internal defects of solar cells

By generating a saliency map and based on global structural information and multi-scale local analysis, the problem of slow speed and low accuracy in the detection of internal defects in solar cells is solved, and fast and accurate detection results are achieved, which is suitable for complex scenes and online detection. .

CN114529515BActive Publication Date: 2024-09-13SOUTH CHINA UNIV OF TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210047604.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-17
Publication Date
2024-09-13
Estimated Expiration
2042-01-17

AI Technical Summary

Technical Problem

Existing technologies have problems with slow speed, low accuracy, and poor robustness in detecting internal defects in solar cells. Especially in complex scenarios and lack of data, it is difficult to achieve fast, accurate, and real-time detection.

Method used

By generating saliency maps and performing rough detection based on global structural information, combined with multi-scale local analysis for precise defect detection from coarse to fine, and using Fourier transform and singular value decomposition to remove background texture, an automatic identification system for the interior of solar cells is designed. defective method.

Benefits of technology

It achieves fast and accurate detection under uneven backgrounds, adapts to the needs of different scenarios, and is suitable for online detection through acceleration strategies, improving the speed and accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114529515B
    Figure CN114529515B
Patent Text Reader

Abstract

The present invention discloses a method for automatically identifying internal defects of solar cells. The method first generates a saliency map to obtain salient targets of different sizes in a background with uneven texture and uneven brightness. On this basis, a coarse detection method based on global structural information is proposed to distinguish possible defects in the saliency map. Finally, multi-scale local analysis is used for fine segmentation to accurately segment possible defects at the pixel level. The method is based on coarse-to-fine precision defect detection based on global structural information and multi-scale local analysis, which can detect defects without supervision and is suitable for quantitative analysis. The method designs a saliency map to highlight the internal defects of solar cells embedded in a background with heterogeneous texture and uneven brightness, and realizes the measurement of internal defects of solar cells with different production processes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of machine vision detection, and in particular to a method for automatically identifying internal defects of a solar cell. Background Art

[0002] Automatic defect detection of optoelectronic semiconductor products based on machine vision is a major demand in the industry. In particular, the production process of solar cells consists of several complex technologies and is affected by thousands of process parameters. Once errors occur, these harmful effects will appear as defects on the outside or inside of the solar cell.

[0003] Local defect detection technology can be roughly divided into template matching-based, low-rank representation-based and model-based methods. The effectiveness of the template matching-based method depends on the accurate alignment of the detection sample and the template, similar local brightness changes and a sufficiently representative template, which is not suitable for the complex scenes faced by the present invention; the core of the low-rank representation-based method is to construct a dictionary matrix based on texture prior knowledge, but the larger the dictionary matrix, the longer the calculation time, and it is difficult to ensure real-time performance; and the method based on deep learning models will lead to overfitting and poor generalization ability when data is scarce. In addition, labeling images for large-scale data sets is time-consuming and labor-intensive, and is not suitable for high-speed production lines. Therefore, designing a more general internal defect detection algorithm for solar cells faces the challenges of fast speed, high accuracy, strong robustness and good compatibility. Summary of the invention

[0004] The purpose of the present invention is to solve the above defects in the prior art and provide a method for automatically identifying internal defects of solar cells.

[0005] The purpose of the present invention can be achieved by adopting the following technical solutions:

[0006] A method for automatically identifying internal defects of a solar cell, the method comprising the following steps:

[0007] S1. Select a solar cell sample image as the input image, generate a saliency map of the input image, and obtain salient objects of different sizes in an unsupervised manner under an uneven background;

[0008] S2, perform coarse detection based on global structural information, distinguish the foreground and background of possible defects in the saliency map, and protect the defect shape information to the maximum extent;

[0009] S3. Based on multi-scale local analysis, the internal defects of the solar cell are finely segmented according to the results obtained from the rough detection, and the areas where defects may exist are accurately segmented at the pixel level.

[0010] Furthermore, the process of generating the saliency map of the input image in step S1 is as follows:

[0011] S1.1. Select a bitmap of size M×N from the data set as the input image i(x, y), and use Fourier transform FT to obtain the frequency domain image I(u, v), where M is the height of the image and N is the width of the image:

[0012]

[0013] Among them, x,u∈[0,M-1], y,v∈[0,N-1], Re(u, v) and Im(u, v) are the real and imaginary parts of the frequency domain image, respectively. After converting the image into a frequency domain image, the frequency components representing uniform repetitive patterns are usually set to zero, which is beneficial for local defect detection on periodic texture surfaces.

[0014] S1.2. Perform singular value decomposition on the frequency domain image I(u, v) in the complex domain to obtain r singular values. Because the background texture can be removed after this simple difference processing by setting the smaller singular values ​​to zero and retaining the larger singular values ​​to reconstruct the image, the anomalies in the restored image are significantly enhanced. Therefore, the first k1 larger singular values ​​are retained to reconstruct a new frequency domain image I′(u, v)=Re′(u, v)+j·Im′(u, v):

[0015]

[0016] Among them, the matrix U and the matrix V are respectively composed of II T and I T I consists of orthogonal eigenvectors, U k and V k are the k-th column elements of the matrices U and V, respectively. The symbol T represents transpose. I represents the abbreviation of I(u, v). Re′(u, v) and Im′(u, v) represent the real and imaginary parts of the frequency domain image I′(u, v). k is composed of the singular values ​​λ1,λ2,...,λ r The kth element of the diagonal matrix composed of;

[0017] S1.3. Compare the real part and imaginary part of the frequency domain image I′(u, v) with the real part and imaginary part of the frequency domain image I(u, v) to obtain the reconstructed real part Re * (u, v) and the imaginary part Im * (u, v) is:

[0018]

[0019] Among them, min(·) means calculating the minimum value of the two images pixel by pixel, and |·| means finding the absolute value of the image;

[0020] S1.4. Using the reconstructed real part Re * (u, v) and the imaginary part Im * (u, v) to get the new frequency domain image I * (u, v), at the same time, the reconstructed image i in the spatial domain is obtained according to the inverse Fourier transform IFT * (x, y):

[0021]

[0022] In the reconstructed image i * In (x, y), brighter anomalies become darker and darker anomalies become brighter, that is, the foreground intensity tends to the background intensity, which is more conducive to the generation of saliency maps;

[0023] S1.5. Generate saliency map s(x, y):

[0024] s(x, y) = α·D + β·B

[0025] in, It indicates dark defects. Indicates a bright defect. represents a matrix of size M×N with all elements equal to 0, α and β are set to 0 or 1, max(·) represents the calculation of the maximum value, and the subtraction of B and D ensures that the different grayscale ranges of different images are converted into a unified benchmark.

[0026] Furthermore, the implementation process of the rough detection in step S2 is as follows:

[0027] S2.1. Perform binary threshold processing on the saliency map s(x, y):

[0028]

[0029] Among them, 1 represents a defective pixel, 0 represents a non-defective pixel, the threshold T∈[0,255], and the grayscale values ​​of all pixels in the image b(x,y) after binarization are composed of 0 and 1;

[0030] S2.2. Since there is no hump in the grayscale histogram of the saliency map s(x, y), it is difficult to adaptively obtain the size of the threshold T. Therefore, using the global structural information in the image, two convolution kernels Δ1 and Δ2 are designed to perform convolution operations on b(x, y) to obtain convolution images b6(x, y) and b7(x, y). The form of the convolution kernel is as follows;

[0031]

[0032] S2.3. In order to obtain the threshold T, the histograms of the convolution images b6(x, y) and b7(x, y) are normalized to obtain the probability distribution histogram p(g):

[0033]

[0034] Among them, the number of pixels with gray value g is determined by h g Indicates that the number of all pixels is expressed as

[0035] S2.4, Shannon entropy is introduced to measure the average uncertainty of global structural information as H(g):

[0036]

[0037] Among them, log() represents the logarithm operation;

[0038] S2.5. The entropy of b6(x, y) and b7(x, y) is calculated to be H b6 and H b7 , set a metric δ:

[0039] δ=8·H b6 -7·H b7 ;

[0040] In order to make the coarse detection based on the global structural information threshold maintain the complete shape of the defect, the coefficients are set to 8 and 7;

[0041] S2.6. Traverse all thresholds T to obtain the corresponding metric δ T , and according to the maximum metric The threshold value T is obtained * , using the threshold method to obtain the region of interest b * The image of (x, y):

[0042]

[0043] Region of interest b * (x, y) retains the defect information in the image to the maximum extent;

[0044] Furthermore, the process of finely segmenting the internal defects of the solar cell based on the result obtained by the rough detection based on the multi-scale local analysis in step S3 is as follows:

[0045] S3.1. For image b * (x, y) performs a connected domain operation so that b * (x, y) consists of multiple different connected domains. Find the longest edge L in all connected domains. max, given a multi-scale Z, adaptively calculate the step size q and the width w of the sliding mask z :

[0046]

[0047] Among them, int(·) represents the rounding operation, floor(·) represents the rounding down operation, here, Z=5;

[0048] S3.2. In order to detect defects with different contrasts, the local statistical information is used to derive the local average image μ z (x, y) and the local standard deviation image σ z (x, y):

[0049]

[0050] in, Represented as a convolution operator, The size of all elements is 1 is w z × z Mask;

[0051] S3.3. Since the local contrast is related to σ(x, y) and R, a tolerance map ε is defined z (x, y):

[0052]

[0053] Among them, max * (·) means calculating the maximum value of the two images pixel by pixel, represents the scale factor, Indicates that all elements are relative to the threshold R, a matrix of size M×N;

[0054] S3.4. Generate candidate image c z (x, y):

[0055]

[0056] Among them, and and or represent the AND operation and OR operation respectively. z (x, y) = μ z (x,y)+ε z (x,y),m z (x, y) = μ z (x, y)-ε z (x, y);

[0057] S3.5. Combine all outputs in the multi-scale detection mask through a union operation to generate the final image:

[0058]

[0059] Among them, ∪(·) represents a combinatorial operation.

[0060] Compared with the prior art, the present invention has the following advantages and effects:

[0061] (1) The present invention designs a saliency map that highlights the internal defects of solar cells embedded in a background with heterogeneous texture and uneven brightness;

[0062] (2) The present invention proposes a coarse-to-fine precision defect detection method based on global structural information and multi-scale local analysis, which does not have high requirements on the form and sample volume of defect samples to be detected and can adapt to the needs of different scenarios;

[0063] (3) Since an acceleration strategy is given, the method proposed in the present invention can be applied to online detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0065] Figure 1 It is a flow chart of a method for automatically identifying internal defects of a solar cell disclosed in the present invention;

[0066] Figure 2 is an input sample image selected in the embodiment of the present invention;

[0067] Figure 3 is a saliency map generated according to a sample image in an embodiment of the present invention;

[0068] Figure 4 is a grayscale histogram in an embodiment of the present invention;

[0069] Figure 5 is a schematic diagram of the result of rough detection in an embodiment of the present invention;

[0070] Figure 6 It is a schematic diagram of the result of precise detection in an embodiment of the present invention. DETAILED DESCRIPTION

[0071] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0072] Example 1

[0073] This embodiment mainly proposes an automated detection technology for internal defects of solar cells, which obtains salient objects of different sizes without supervision under uneven background, and performs rough detection based on global structural information, distinguishes the foreground and background of possible defects in the saliency map, and protects the defect shape information as much as possible. On this basis, the internal defects of solar cells are finely segmented based on the results obtained from the rough detection based on multi-scale local analysis, and the areas where defects may exist are accurately segmented at the pixel level.

[0074] Figure 1 This is a framework diagram of a method for automatically identifying internal defects of a solar cell disclosed in this embodiment, which is described below through a specific embodiment. A method for automatically identifying internal defects of a solar cell, the specific steps are as follows:

[0075] S1. Select a solar cell sample image as the input image, use Fourier transform and inverse transform as well as singular value decomposition to generate a saliency map of the input image, and obtain salient objects of different sizes in an unsupervised manner under an uneven background;

[0076] S2. Since there is no peak in the grayscale histogram, it is difficult to determine the ideal threshold when using the threshold method to distinguish the foreground and background. Therefore, the convolution kernel is used to make full use of the global structural information for coarse detection, distinguish the foreground and background with possible defects in the saliency map, and protect the defect shape information as much as possible.

[0077] S3. There will be many false detections in the results obtained from the previous step of rough detection, so the internal defects of the solar cell are further finely segmented based on the results obtained from the rough detection based on multi-scale local analysis, and the areas where defects may exist are accurately segmented at the pixel level.

[0078] The method for automatically identifying internal defects of solar cells proposed by the present invention is further implemented by the following technical solutions:

[0079] In this embodiment, the specific process of generating the saliency map of the input image in step S1 is as follows:

[0080] S1.1. Select an 8-bit image of size M×N from the data set as the input image i(x, y), and use Fourier transform FT to obtain the frequency domain image I(u, v), where M is the height of the image and N is the width of the image:

[0081]

[0082] Among them, x,u∈[0,M-1], y,v∈[0,N-1], Re(u, v) and Im(u, v) are the real and imaginary parts of the frequency domain image, respectively;

[0083] S1.2. Perform singular value decomposition on the frequency domain image I(u, v) in the complex domain to obtain r singular values, retain the first k1 larger singular values ​​to reconstruct a new frequency domain image I′(u, v)=Re′(u, v)+j·Im′(u, v):

[0084]

[0085] Among them, the matrix U and matrix V are respectively composed of II T and I T I consists of orthogonal eigenvectors, U k and V k are the k-th column elements of the matrices U and V, respectively. The symbol T represents transpose. I represents the abbreviation of I(u, v). Re′(u, v) and Im′(u, v) represent the real and imaginary parts of the frequency domain image I′(u, v). k is composed of the singular values ​​λ1,λ2,...,λ r The kth element of the diagonal matrix composed of;

[0086] S1.3. Compare the real part and imaginary part of the frequency domain image I′(u, v) with the real part and imaginary part of the frequency domain image I(u, v) to obtain the reconstructed real part Re * (u, v) and the imaginary part Im * (u, v) is:

[0087]

[0088] Among them, min(·) means calculating the minimum value of the two images pixel by pixel, and |·| means finding the absolute value of the image;

[0089] S1.4. Using the reconstructed real part Re * (u, v) and the imaginary part Im * (u, v) to get the new frequency domain image I * (u, v), at the same time, the reconstructed image i in the spatial domain is obtained according to the inverse Fourier transform IFT * (x, y):

[0090]

[0091] S1.5. Generate saliency map s(x, y):

[0092] s(x, y) = α·D + β·B

[0093] in, It indicates dark defects. Indicates a bright defect. represents a matrix of size M×N with all elements being 0, α and β are set to 0 or 1, and max(·) indicates calculating the maximum value. When α or β is set to 1, the corresponding detection part is triggered.

[0094] In this embodiment, the specific process of performing rough detection on image defects in step S2 is as follows:

[0095] S2.1. Perform binary threshold processing on the saliency map s(x, y):

[0096]

[0097] S2.2. Design two convolution kernels Δ1 and Δ2 to perform convolution operation on b(x, y) to obtain convolution images b6(x, y) and b7(x, y). The form of the convolution kernel is as follows:

[0098]

[0099] S2.3. Normalize the histograms of the convolution images b6(x, y) and b7(x, y) to obtain the probability distribution histogram p(g):

[0100]

[0101] Among them, the number of pixels with gray value g is determined by h g Indicates that the number of all pixels is expressed as

[0102] S2.4, Shannon entropy is introduced to measure the average uncertainty of global structural information as H(g):

[0103]

[0104] Among them, log() represents the logarithm operation;

[0105] S2.5. The entropy of b6(x, y) and b7(x, y) is calculated to be H b6 and H b7 , set a metric δ:

[0106] δ=8·H b6 -7·H b7

[0107] S2.6. Traverse all thresholds T to obtain the corresponding metric δ T , and according to the maximum metric The threshold value T is obtained * The region of interest b is obtained by using the threshold method* The image of (x, y):

[0108]

[0109] In this embodiment, the specific process of step S3 is:

[0110] S3.1. For image b * (x, y) performs a connected domain operation so that b * (x, y) consists of multiple different connected domains. Find the longest edge L in all connected domains. max , given a multi-scale Z, adaptively calculate the step size q and the width w of the sliding mask z :

[0111]

[0112] Among them, int(·) represents the rounding operation, and floor(·) represents the rounding down operation;

[0113] S3.2. Using local statistical information, derive the local average image μ z (x, y) and the local standard deviation image σ z (x, y):

[0114]

[0115] in, Represented as a convolution operator, The size of all elements is 1 is w z × z Mask;

[0116] S3.3. Define a tolerance map ε z (x, y):

[0117]

[0118] Among them, max * (·) means calculating the maximum value of the two images pixel by pixel, represents the scale factor, Indicates that all elements are relative to the threshold R, a matrix of size M×N;

[0119] S3.4. Generate candidate image c Z (x, y):

[0120]

[0121] Among them, and and or represent the AND operation and OR operation respectively. z (x, y) = μ z(x,y)+ε z (x,y),m z (x, y) = μ z (x, y)-ε z (x, y);

[0122] S3.5. Combine all outputs in the multi-scale detection mask through a union operation to generate the final image:

[0123]

[0124] Among them, U(·) represents a combinatorial operation.

[0125] Example 2

[0126] In this embodiment, the method (PM) proposed in the present invention is compared with two classic algorithms, Fourier transform (FT) and singular value decomposition (SVD), and the performance of each algorithm is evaluated using the false positive rate (FPR), false negative rate (FNR) and mean absolute error (MAE), which are defined as follows:

[0127]

[0128] FP represents the pixel-level pseudo defect area, TN represents the pixel-level true background area, FN represents the pixel-level undetected defect area, and TP represents the pixel-level true defect area. That is, FPR is defined as the proportion of intact pixels that are mistakenly detected as defects, FNR represents the proportion of defective pixels that are mistakenly predicted as background, and MAE represents the proportion of pixels that are mistakenly distinguished as background or defects. It can be seen that the smaller the value of the indicators (FPR, FNR and MAE), the better the result detected by the algorithm.

[0129] Table 1. Detection results of different algorithms

[0130] method FPR FNR MAE PM 0.00019 0.29900 0.00302 FT 0.00388 0.49453 0.00568 SVD 0.00498 0.24407 0.00862

[0131] Experimental results show that the method proposed in the present invention, which first generates a saliency map and then performs a coarse-to-fine precision defect detection based on global structural information and multi-scale local analysis, achieves the best detection result.

[0132] In summary, the above embodiment discloses a method for automatically identifying internal defects of solar cells, and proposes a general coarse-to-fine method based on a saliency map, which can be used for automatic detection of internal defects of solar cells under different production processes.

[0133] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A method for automatically identifying internal defects of a solar cell, characterized in that: The method comprises the following steps: S1. Select a solar cell sample image as the input image, generate a saliency map of the input image, and obtain salient objects of different sizes in an unsupervised manner under an uneven background; S2, perform coarse detection based on global structural information, distinguish the foreground and background of possible defects in the saliency map, and protect the defect shape information to the maximum extent; S3, based on multi-scale local analysis, finely segment the internal defects of the solar cell according to the results obtained from the rough detection, and accurately segment the areas where defects may exist at the pixel level; The process of generating the saliency map of the input image in step S1 is as follows: S1.

1. Select an 8-bit image of size M×N from the data set as the input image i(x,y), and use Fourier transform FT to obtain the frequency domain image I(u,v), where M is the height of the image and N is the width of the image: Among them, x,u∈[0,M-1], y,v∈[0,N-1], Re(u,v) and Im(u,v) are the real and imaginary parts of the frequency domain image respectively; S1.

2. Perform singular value decomposition on the frequency domain image I(u,v) in the complex domain to obtain r singular values, retain the first k1 larger singular values ​​to reconstruct a new frequency domain image I′(u,v)=Re′(u,v)+j·Im′(u,v): Among them, the matrix U and the matrix V are respectively composed of II T and I T I consists of orthogonal eigenvectors, U k and V k are the k-th column elements of the matrices U and V, respectively. The symbol T represents transpose, I represents the abbreviation of I(u,v), Re′(u,v) and Im′(u,v) represent the real and imaginary parts of the frequency domain image I′(u,v), and λ k is composed of the singular values ​​λ1,λ2,…,λ r The kth element of the diagonal matrix composed of; S1.

3. Compare the real part and imaginary part of the frequency domain image I′(u,v) with the real part and imaginary part of the frequency domain image I(u,v) to obtain the reconstructed real part Re * (u,v) and the imaginary part Im * (u,v) is: Among them, min(·) means calculating the minimum value of the two images pixel by pixel, and |·| means finding the absolute value of the image; S1.

4. Using the reconstructed real part Re * (u,v) and the imaginary part Im * (u,v) to get the new frequency domain image I * (u,v), at the same time, the reconstructed image i in the spatial domain is obtained according to the inverse Fourier transform IFT * (x,y): S1.

5. Generate saliency map s(x, y): s(x,y)=α·D+β·B in, Indicates dark defects, Indicates bright defects, represents a matrix of size M×N with all elements set to 0, α and β are set to 0 or 1, and max(·) indicates calculating the maximum value; The implementation process of the rough detection in step S2 is as follows: S2.

1. Perform binary threshold processing on the saliency map s(x, y): Among them, 1 represents a defective pixel, 0 represents a non-defective pixel, and the threshold T∈[0,255]; S2.

2. Design two convolution kernels Δ1 and Δ2 to perform convolution operation on b(x, y) to obtain convolution images b6(x, y) and b7(x, y). The form of the convolution kernel is as follows; S2.

3. Normalize the histograms of the convolution images b6(x,y) and b7(x,y) to obtain the probability distribution histogram p(g): Among them, the number of pixels with gray value g is determined by h g Indicates that the number of all pixels is expressed as S2.4, Shannon entropy is introduced to measure the average uncertainty of global structural information as H(g): Among them, log() represents the logarithm operation; S2.

5. The entropy of b6(x,y) and b7(x,y) is calculated to be H b6 and H b7 , set a metric δ: δ=8·H b6 -7·H b7 S2.

6. Traverse all thresholds T to obtain the corresponding metric δT, and calculate the maximum metric δ T* The threshold value T is obtained * , using the threshold method to obtain the region of interest b * Image of (x,y): The process of finely segmenting the internal defects of the solar cell based on the results of the rough detection based on the multi-scale local analysis in step S3 is as follows: S3.

1. For image b * (x, y) performs a connected domain operation so that b * (x,y) consists of multiple connected domains. Find the longest edge L in all connected domains. max , given a multi-scale Z, adaptively calculate the step size q and the width w of the sliding mask z : Among them, int(·) represents the rounding operation, and floor(·) represents the rounding down operation; S3.

2. Using local statistical information, derive the local average image μ z (x,y) and the local standard deviation image σ z (x,y): in, Represented as a convolution operator, The size of all elements is 1 is w z × z Mask; S3.

3. Define a tolerance map ε z (x,y): Among them, max * (·) means calculating the maximum value of the two images pixel by pixel, represents the scale factor, Indicates that all elements are relative to the threshold R, a matrix of size M×N; S3.

4. Generate candidate image c z (x, y), the candidate image c z The (x,y) expression is as follows: Among them, and and or represent the AND operation and OR operation respectively. z (x,y)=μ z (x,y)+ε z (x,y),m z (x,y)=μ z (x,y)-ε z (x,y); S3.

5. Combine all outputs in the multi-scale detection mask through a union operation to generate the final image: Among them, ∪(·) represents a combinatorial operation.