Photovoltaic cell module defect detection method, system and photovoltaic cell module production line

Through the EL image segmentation and target recognition model, the defect types and locations of photovoltaic cell components are identified, which solves the problems of low detection efficiency and low accuracy in the existing technology, and achieves efficient and accurate photovoltaic cell component defect detection.

CN113962929BActive Publication Date: 2024-10-22HUNAN UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111043149.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-07
Publication Date
2024-10-22
Estimated Expiration
2041-09-07

AI Technical Summary

Technical Problem

Existing photovoltaic cell module inspection methods have low detection efficiency and low accuracy, making it difficult to identify internal and tiny defects, and unable to determine the location and type of defects.

Method used

By obtaining the EL image of the photovoltaic cell module, segment it into photovoltaic cell sheet images, use labeling tools to mark defect types and locations, build a sample set and train the target recognition model, use the YOLO v5s model for defect detection, and identify the defect type, location and confidence Spend.

Benefits of technology

It achieves efficient and accurate identification of internal and minor defects in photovoltaic cell components, can identify multiple defects, reduces detection costs, improves accuracy and speed, and adapts to harsh environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113962929B_ABST
    Figure CN113962929B_ABST
Patent Text Reader

Abstract

The present invention discloses a photovoltaic cell module defect detection method, system and photovoltaic cell module production line, comprising: segmenting a photovoltaic cell module EL image into photovoltaic cell slice images; using a labeling tool to mark defect types and defect positions on defective images; building a sample set; building a target recognition model, and using the sample set to train, verify and test the target recognition model; using the trained target recognition model to perform defect detection on the photovoltaic cell module to obtain defect label information of each photovoltaic cell slice; performing defect recognition on the photovoltaic cell slice image, capable of identifying internal defects and minor defects, and capable of identifying defect positions; performing model training before using the target recognition model for recognition, and using an artificial intelligence method for defect recognition, with high recognition efficiency and high recognition accuracy, and capable of identifying multiple defects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of solar cell detection, and in particular relates to a photovoltaic cell component defect detection method, system and photovoltaic cell component production line. Background Art

[0002] At present, the methods for detecting defects in photovoltaic cell modules on the production line are:

[0003] 1. Manual visual inspection method: The defects of photovoltaic cell modules on the production line are detected by manual vision, so as to control the quality of photovoltaic cell modules. This method has low detection efficiency, high detection cost, and low detection accuracy due to visual fatigue.

[0004] 2. Visible light imaging method: Use a visible light camera to obtain visible light images of photovoltaic cell modules, and then analyze and process the visible light images to achieve defect detection. This method can only detect obvious appearance defects on the surface of photovoltaic cell modules and is not suitable for the detection of minor defects and internal defects of photovoltaic cell modules.

[0005] 3. Near-infrared detection method: Use a near-infrared camera to perform EL imaging on photovoltaic cell modules, and combine it with the V-I characteristic curve of the photovoltaic cell modules to perform defect detection. This method is difficult to determine the defect location and detects fewer types of defects, and the effect on appearance defect detection is not obvious.

[0006] 4. Laser diode array method: Photoluminescence imaging is performed using laser diode arrays for laser scanning or direct irradiation with ultraviolet light-emitting diodes to achieve defect detection of photovoltaic cell modules. Since photovoltaic cells have light attenuation and the imaging resolution is limited by wavelength, this method will have potential negative effects on defect detection. Summary of the invention

[0007] The purpose of the present invention is to provide a photovoltaic cell module defect detection method, system and photovoltaic cell module production line to solve the problems of low detection efficiency, low detection accuracy, few types of defects to be detected, difficulty in determining the defect location, and inability to detect internal defects and minor defects in traditional technologies.

[0008] The present invention solves the above technical problems through the following technical solutions: A photovoltaic cell assembly defect detection method comprises the following steps:

[0009] Step 1: Acquire an EL image of a photovoltaic cell assembly, and segment the EL image of the photovoltaic cell assembly into photovoltaic cell sheet images;

[0010] Step 2: Screen out images with defects in the photovoltaic cell images, and use a labeling tool to mark the defect type and defect position on the defective images, where the defect position refers to the position of the marking box;

[0011] Step 3: Use the annotated image as input and the defect type and defect location corresponding to the image as output to construct a sample set;

[0012] Step 4: construct a target recognition model, and use the sample set to train, verify and test the target recognition model to obtain a trained target recognition model;

[0013] Step 5: Use the trained target recognition model to perform defect detection on the photovoltaic cell assembly to obtain defect label information of each photovoltaic cell, wherein the defect label information includes defect type, defect location and defect confidence.

[0014] In the present invention, the EL image is segmented to obtain the photovoltaic cell image, and defect recognition on the photovoltaic cell can identify internal defects and tiny defects, and can identify the defect location; before using the target recognition model for recognition, the model is trained first, and the artificial intelligence method is used for defect recognition, which has high recognition efficiency and high recognition accuracy, and can identify a variety of defects; compared with the manual visual inspection method, this method has the advantages of low detection cost, higher accuracy, faster speed, etc., and can adapt to various harsh working environments.

[0015] Furthermore, in step 1, the EL image of the photovoltaic cell assembly is segmented into photovoltaic cell images using a template matching method, and the specific implementation process is as follows:

[0016] Step 1.1: Crop out the information at the edge of the EL image;

[0017] Step 1.2: Perform SURF feature extraction on the cropped EL image to obtain feature point information;

[0018] Step 1.3: Select a point in the feature point information that matches the coordinates of the expected point as the template center to generate a template;

[0019] Step 1.4: using the template in step 1.3 to identify a non-luminescent black diamond-shaped area in the EL image;

[0020] Step 1.5: Calculate the center point of the black rhombus-shaped area, where the center point is a vertex of the photovoltaic cell;

[0021] Step 1.6: Connect the four adjacent center points to form a quadrilateral, and the circumscribed rectangle of the quadrilateral is a photovoltaic cell image.

[0022] Furthermore, the target recognition model adopts the YOLO v5s model.

[0023] Furthermore, in step 2, the defect types include broken grid, scratches, hidden cracks, black spots, cold solder joints, pollution, cracks, chipped corners, failure and over-soldering.

[0024] Furthermore, the detection method further comprises:

[0025] Step 6: Classify the defect level of each photovoltaic cell according to the defect label information of the photovoltaic cell to obtain the defect level of the photovoltaic cell;

[0026] Step 7: Determine the defect level of the entire photovoltaic cell assembly based on the defect level of each photovoltaic cell.

[0027] The defect level of a photovoltaic cell module is determined by the defect levels of all photovoltaic cells on a single photovoltaic cell module, so that quality control can be performed based on the defect level of the photovoltaic cell module.

[0028] Furthermore, in step 6, the defect levels of the photovoltaic cell include level a, level b, level c and level d;

[0029] When there is only a scratch on a single photovoltaic cell, and 0≤l2≤L / 5, 0≤n2≤2; or there is no defect type; then the defect level of the photovoltaic cell is level a; where L is the side length of the photovoltaic cell, l2 is the scratch length, n2 is the number of scratches on the photovoltaic cell, and n2 is an integer;

[0030] When there is a broken grid on a single photovoltaic cell, and 0<∑s1≤5%S; or there is a scratch, and L / 5<l2≤2L / 3, 2<n2≤4; or there is a hidden crack, and 0<l3≤L / 12, 0<n3≤1; or there is a black spot, and 0<l4≤L / 4, 0<∑s4≤5%S; or there is pollution, and 0<∑s6≤5%S; then the defect level of the photovoltaic cell is b; where S is the area of ​​the photovoltaic cell, s1 is the area of ​​a single broken grid, l3 is the length of the hidden crack, n3 is the number of hidden cracks on the photovoltaic cell, l4 is the length of the black spot, s4 is the area of ​​a single black spot, and s6 is the area of ​​a single pollution;

[0031] When there is a broken grid on a single photovoltaic cell, and 5%S<∑s1≤10%S; or there is a scratch, and L / 5<l2≤2L / 3; or there is a hidden crack, and L / 12<l3≤L / 5, 1<n3≤2; or there is a black spot, and 5%S<∑s4≤10%S; or there is a cold solder joint, and 0<l5≤L / 4; or there is pollution, and 0<∑s6≤10%S; or there is a crack, and 0<l7≤L / 5, 0 <n7≤1; or there is a chipping angle, and 0<s8≤4%S, 0<n8≤1; or there is a failure, and 0<s9≤10%S, 0<n9≤1; then the defect level of the photovoltaic cell is C; where s7 is the area of ​​a single crack, l7 is the crack length, n8 is the number of chipping angles on the photovoltaic cell, s8 is the area of ​​a single chipping angle, n9 is the number of failures on the photovoltaic cell, s9 is the area of ​​a single failure, l 10 is the over-welding length;

[0032] When there is a broken grid on a single photovoltaic cell, and 10%S<∑s1; or there is a scratch, and 2L / 3<l2; or there is a hidden crack, and L / 5<l3, 2<n3; or there is a black spot, and 10%S<∑s4; or there is a cold solder joint, and L / 4<l5; or there is pollution, and 10%S<∑s6; or there is a crack, and L / 5<l7, 1<n7; or there is a chipping angle, and 4%S<s8, 1<n8; or there is a failure, and 10%S<s9, 1<n9; or there is an over-soldering, and 1≤n 10 , then the defect level of the photovoltaic cell is d; where n 10 The number of over-welding on the photovoltaic cell.

[0033] Further, in step 7, the defect levels of the photovoltaic cell assembly include level A, level B, level C and level D;

[0034] When, in a single photovoltaic cell module, 94.4% ≤ the proportion of photovoltaic cells with defect level a, 0<the proportion of photovoltaic cells with defect level b<5.6%, and the proportion of photovoltaic cells with defect levels c and d are both 0%, the defect level of the photovoltaic cell module is A;

[0035] When, in a single photovoltaic cell module, the number of photovoltaic cells with defect level a of 88.9% ≤ accounts for less than 94.4%, the number of photovoltaic cells with defect level b of 5.6% ≤ accounts for less than 11.1%, the number of photovoltaic cells with defect level c of 0 ≤ accounts for less than 5.6%, and the number of photovoltaic cells with defect level d accounts for 0%, the defect level of the photovoltaic cell module is B;

[0036] When, in a single photovoltaic cell module, the number of photovoltaic cells with defect level a of 83.3% ≤ accounts for less than 88.9%, the number of photovoltaic cells with defect level b of 11.1% ≤ accounts for less than 16.7%, the number of photovoltaic cells with defect level c of 5.6% ≤ accounts for less than 16.7%, and the number of photovoltaic cells with defect level d accounts for 0%, then the defect level of the photovoltaic cell module is C;

[0037] When in a single photovoltaic cell module, the proportion of photovoltaic cells with defect grade A is less than 83.3%, the proportion of photovoltaic cells with defect grade B is less than 16.7%, the proportion of photovoltaic cells with defect grade C is less than 16.7%, and the proportion of photovoltaic cells with defect grade D is greater than 0%, the defect grade of the photovoltaic cell module is D.

[0038] The present invention also provides a photovoltaic cell assembly defect detection system, comprising:

[0039] An image acquisition and segmentation unit, used for acquiring an EL image of a photovoltaic cell assembly and segmenting the EL image of the photovoltaic cell assembly into photovoltaic cell sheet images;

[0040] A labeling unit, used for screening out images with defects in the photovoltaic cell images, and labeling the defect type and defect position on the defective images using a labeling tool, wherein the defect position refers to the position of the labeling box;

[0041] A sample construction unit, used to construct a sample set by taking the annotated image as input and taking the defect type and defect position corresponding to the image as output;

[0042] A model building and training unit is used to build a target recognition model, and use the sample set to train, verify and test the target recognition model to obtain a trained target recognition model;

[0043] The defect detection unit is used to perform defect detection on the photovoltaic cell assembly using the trained target recognition model to obtain defect label information of each photovoltaic cell, wherein the defect label information includes defect type, defect location and defect confidence.

[0044] Furthermore, the system further comprises:

[0045] A first level confirmation unit is used to classify the defect level of each photovoltaic cell according to the defect label information of the photovoltaic cell to obtain the defect level of the photovoltaic cell;

[0046] The second level confirmation unit is used to determine the defect level of the entire photovoltaic cell assembly according to the defect level of each photovoltaic cell piece.

[0047] The present invention also provides a photovoltaic cell assembly production line, comprising the photovoltaic cell assembly defect detection system as described above.

[0048] Beneficial Effects

[0049] Compared with the prior art, the advantages of the present invention are:

[0050] The present invention provides a photovoltaic cell module defect detection method and system, which segments EL images to obtain photovoltaic cell images, and can identify internal defects and tiny defects and the defect locations on photovoltaic cells; the model is trained before using the target recognition model for recognition, and artificial intelligence methods are used for defect recognition, which has high recognition efficiency and high recognition accuracy, and can identify a variety of defects; compared with manual visual inspection methods, this method has the advantages of low detection cost, higher accuracy, faster speed, etc., and can adapt to various harsh working environments. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0052] Figure 1 is a flow chart of a photovoltaic cell assembly defect detection method according to an embodiment of the present invention;

[0053] Figure 2 is a schematic diagram of an EL image of a photovoltaic cell assembly in an embodiment of the present invention;

[0054] Figure 3 is a schematic diagram of dividing the EL image of a photovoltaic cell assembly into photovoltaic cell sheets in an embodiment of the present invention;

[0055] Figure 4 It is a black diamond-shaped area diagram in an embodiment of the present invention;

[0056] Figure 5 is a schematic diagram of converting defect label information into defect levels in an embodiment of the present invention;

[0057] Figure 6 is a schematic diagram of defect levels of the entire photovoltaic cell assembly in an embodiment of the present invention;

[0058] Figure 7 Schematic diagram of different defects of photovoltaic cells in an embodiment of the present invention;

[0059] Figure 8 Schematic diagram of different defects of photovoltaic cell components in an embodiment of the present invention.

[0060] Among them, 1-photovoltaic cell module, 2-photovoltaic cell. DETAILED DESCRIPTION

[0061] The following is a clear and complete description of the technical solution in the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0062] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0063] like Figure 1 As shown, a photovoltaic cell assembly defect detection method provided in this embodiment includes the following steps:

[0064] Step 1: Acquire an EL image of a photovoltaic cell module, and segment the EL image of the photovoltaic cell module into photovoltaic cell sheet images.

[0065] A near-infrared camera is used to collect and obtain the EL image of the photovoltaic cell assembly. In this embodiment, the number of near-infrared cameras is 3. The three near-infrared cameras are stacked, and the lenses of the near-infrared cameras are aimed at the photovoltaic cell assembly to perform EL imaging in a scanning shooting manner, such as Figure 2 The EL images of the photovoltaic cell assembly shown in the figure have a pixel of 1360*1024 for each near-infrared camera, and a total of 13756 EL images are obtained, with a resolution of 5400×2700 for each image.

[0066] In order to improve the detection accuracy of internal defects and minor defects, the EL image is segmented into photovoltaic cell images, such as Figure 3 As shown in the figure, the specific segmentation process is:

[0067] Step 1.1: Crop the information at the edge of the EL image to eliminate the influence of edge information on feature point extraction.

[0068] Step 1.2: Perform SURF feature extraction on the cropped EL image to obtain feature point information; the SURF feature extraction method has the advantages of high accuracy and scale invariance, can filter out unstable or uninteresting points, and can accurately extract a sufficient number of feature points.

[0069] Step 1.3: Select the point in the feature point information that matches the coordinates of the expected point as the template center to generate the template.

[0070] Step 1.4: Use the template in step 1.3 to identify the non-luminous black diamond-shaped area in the EL image, such as Figure 4 shown.

[0071] Step 1.5: Calculate the center point of each black diamond-shaped area. Each center point is a vertex of a photovoltaic cell.

[0072] Step 1.6: Connect four adjacent center points to form a quadrilateral, the circumscribed rectangle of which is a photovoltaic cell image.

[0073] For each black diamond-like region, a template is first constructed. As with conventional template matching, the constructed template is an area identical to the black diamond-like region. Since the template matching method is an existing technology, the specific process will not be described in detail here.

[0074] Step 2: Filter out defective images from the photovoltaic cell images, and use labeling tools to mark the defect type and defect location on the defective images, where the defect location refers to the location of the marking box.

[0075] In order to obtain photovoltaic cell images with known defect types and defect locations, and to prepare for the construction of a sample set, images with defects in photovoltaic cell images are manually screened out, and the defect types and defect locations are marked on the defective images using a labeling tool. In this embodiment, the labeling tool is Labelimg, which is a visual image calibration tool. By directly framing the defects with a labeling box on the photovoltaic cell image, an xml file of the defect location corresponding to the defect type can be generated. The defect location refers to the location of the labeling box. In this embodiment, the location of the labeling box includes the coordinates of the upper left corner and the lower right corner, the width and the height of the labeling box. The length or area of ​​the defect framed by the labeling box can be calculated based on the coordinates of the upper left corner and the lower right corner, the width and the height. The defect length is the diagonal length of the labeling box, and the defect area is the area of ​​the labeling box. The coordinates of the upper left corner coordinates and the lower right corner coordinates in the coordinate system where the labeling box is located, the coordinate system takes the upper left corner as the coordinate origin, the horizontal direction as the x-axis, and the vertical direction as the y-axis.

[0076] In this embodiment, the defect types include but are not limited to broken grid, scratches, hidden cracks, black spots, cold solder joints, pollution, cracks, chipped corners, failures and over-soldering. The method of the present invention can detect at least ten types of defects, and can detect many types of defects.

[0077] Step 3: Use the labeled image as input and the defect type and defect location corresponding to the image as output to construct a sample set.

[0078] In this embodiment, there are 30,304 labeled photovoltaic cell images, of which 16,224 are for training, 4,048 are for validation, and 10,032 are for testing.

[0079] Step 4: Build a target recognition model, use the sample set to train, verify and test the target recognition model, and obtain a trained target recognition model.

[0080] In this embodiment, the target recognition model adopts the YOLO v5s model, which can converge quickly on multiple data sets and is highly customizable. The YOLO v5s model is an existing model, and its construction process will not be described in detail here.

[0081] Step 5: Use the trained target recognition model to perform defect detection on the photovoltaic cell assembly to obtain defect label information of each photovoltaic cell, wherein the defect label information includes defect type, defect location and defect confidence.

[0082] Similar to the sample set acquisition process, using the target recognition model to perform defect detection on photovoltaic cell modules actually includes obtaining the EL image of the photovoltaic cell module collected by a near-infrared camera in real time, segmenting the EL image of the photovoltaic cell module into photovoltaic cell images; and then inputting the photovoltaic cell images into the target recognition model to obtain the defect label information of the photovoltaic cell images.

[0083] The richer the sample set, the higher the recognition accuracy of the target recognition model. Using the target recognition model to continuously identify the defect label information of each photovoltaic cell in real time is actually a training process. When using the trained target recognition model to perform real-time detection of photovoltaic cell defects, no human participation is required, and the recognition efficiency and accuracy are high.

[0084] Step 6: Classify the defect level of each photovoltaic cell according to its defect label information to obtain the defect level of the photovoltaic cell.

[0085] The defect label information includes the defect type and defect location in the photovoltaic cell. The defect area and / or defect length can be calculated based on the defect location. The defect type, defect area and / or defect length are the main factors affecting the output power of the photovoltaic cell. Therefore, the defect level of the photovoltaic cell is divided according to the defect type, defect area and / or defect length, and the defect level of a single photovoltaic cell module is determined based on the defect level of the photovoltaic cell to facilitate quality control.

[0086] Defect label information includes defect type, defect location and defect confidence. The defect location refers to the position of the annotation box. The position of the annotation box includes the coordinates of the upper left corner and the lower right corner, the width and the height of the annotation box. The defect length and the defect area can be calculated based on the coordinates of the upper left corner and the lower right corner, the width and the height. For a single photovoltaic cell, the defect levels corresponding to different defect types, defect lengths and / or defect areas and the number of defects are divided. The defect levels of photovoltaic cells include a, b, c and d. The specific division rules are shown in Table 1.

[0087] Table 1 Rules for classifying defects of individual photovoltaic cells

[0088]

[0089] In Table 1, the horizontal header indicates the defect type, the vertical header indicates the defect grade, × indicates that this type of defect is not allowed, L is the side length of the photovoltaic cell, l2 is the scratch length, n2 is the number of scratches on the photovoltaic cell, and n2 is an integer, S is the area of ​​the photovoltaic cell, s1 is the area of ​​a single broken grid, l3 is the length of the hidden crack, n3 is the number of hidden cracks on the photovoltaic cell, l4 is the length of the black spot, s4 is the area of ​​a single black spot, s6 is the area of ​​a single contamination, s7 is the area of ​​a single crack, l7 is the crack length, n8 is the number of chipped corners on the photovoltaic cell, s8 is the area of ​​a single chipped corner, n9 is the number of failures on the photovoltaic cell, s9 is the area of ​​a single failure, l 10 is the over-welding length, n 10 is the number of over-welding on the photovoltaic cell. In this embodiment, the defect length is the diagonal length of the marked frame.

[0090] like Figure 5 As shown, a schematic diagram of converting defect label information into defect level labels is shown. Figure 6 is the defect level information of each photovoltaic cell on a single photovoltaic cell module, Figure 6 In the figure, for a single photovoltaic cell, such as the first photovoltaic cell, the box with a in the upper left corner represents the grading result of manual inspection, the box with a in the upper right corner represents the result of detection using the target recognition model of this embodiment and converted into a defect level label, and the box below represents the grading result and confidence of the classification network DenseNet121.

[0091] Figure 7Figure 1 shows different defects of the battery cell. In Figure (a), the side length of the battery cell is L = 602 (indicated by the number of pixels), and the length of the scratch defect is l2 = 61.5. According to Table 1, it can be judged that the defect level of the battery cell is a level; in Figure (b), the side length of the battery cell is L = 602 (indicated by the number of pixels), and the length of the hidden crack defect is l3 = 40.45. According to Table 1, it can be judged that the defect level of the battery cell is b level; in Figure (c), the area of ​​the battery cell is S = 204744, the side length is L = 456 (indicated by the number of pixels), the contamination area and ∑s6 are 528, and the black The spot area and ∑s4 are 645, and the diagonal lengths of the two black spot marking boxes are l4=29 and l4=29.15 respectively. According to Table 1, it can be judged that the defect of the cell belongs to level b; in Figure (d), the side length of the cell is L=602 (in pixels), and the length of the hidden crack defect is l3=63.65. According to Table 1, it can be judged that the defect of the cell belongs to level c; in Figure (e), the side length of the cell is L=456 (in pixels), and the length of the crack defect is l7=195.3. According to Table 1, it can be judged that the defect of the cell belongs to level d. Step 7: Determine the defect level of the entire photovoltaic cell assembly according to the defect level of each photovoltaic cell.

[0092] The defect level of a single photovoltaic cell cannot reflect the defects of the entire photovoltaic cell module, and quality control cannot be performed. Therefore, the defect level of the entire photovoltaic cell module needs to be determined based on the defect level of each photovoltaic cell. The defect levels of a single photovoltaic cell module include A, B, C and D. The specific classification rules are shown in Table 2.

[0093] Table 2 Rules for determining defect levels of photovoltaic cell modules

[0094]

[0095] In Table 2, the horizontal header indicates the defect level of the photovoltaic cell module, the vertical header indicates the defect level of the photovoltaic cell, and the percentage in the table indicates the proportion of photovoltaic cells with the corresponding defect level. For example, if there are 72 photovoltaic cells on a photovoltaic cell module, the 94.4% in the second row and second column indicates the proportion of photovoltaic cells with defect level a. a The percentage of photovoltaic cells with defect level A is greater than or equal to 94.4%. a It is equal to the number of photovoltaic cells with defect level a divided by the total number of photovoltaic cells in the photovoltaic cell module, that is, 68 / 72. The 11.1% in the third row and the third column indicates that the proportion of photovoltaic cells with defect level b is p b The proportion of photovoltaic cells with defect level b is less than 11.1%. b It is equal to the number of photovoltaic cells with defect level b divided by the total number of photovoltaic cells in the photovoltaic cell module, that is, 8 / 72.

[0096] Figure 8 The photovoltaic cell modules with different defect levels are shown in Figure (a). In Figure (a), the number of cells in the module is 72, the number of A-level cells is 69, the number of B-level cells is 3, the number of C-level cells is 0, and the number of D-level cells is 0. According to Table 2, the module belongs to the A-level module. In Figure (b), the number of cells in the module is 72, the number of A-level cells is 68, the number of B-level cells is 3, the number of C-level cells is 1, and the number of D-level cells is 0. According to Table 2, the module belongs to the A-level module. The component belongs to the B-level component; in Figure (c), the number of cells contained in the component is 72, the number of cells in the a-level: 62, the number of cells in the b-level: 10, the number of cells in the c-level: 0, and the number of cells in the d-level: 0; according to Table 2, it is judged that the component belongs to the C-level component; in Figure (d), the number of cells contained in the component is 72, the number of cells in the a-level: 69, the number of cells in the b-level: 1, the number of cells in the c-level: 0, and the number of cells in the d-level: 2; according to Table 2, it is judged that the component belongs to the D-level component. When the defect level of the photovoltaic cell component is level A, the photovoltaic cell component is judged to be a normal component; when the defect level of the photovoltaic cell component is level B, the photovoltaic cell component is judged to be a defective product; when the defect level of the photovoltaic cell component is level C, the photovoltaic cell component is judged to be a controlled product; when the defect level of the photovoltaic cell component is level D, the photovoltaic cell component is judged to be a scrap product.

[0097] The accuracy and reliability of the target recognition model are used to evaluate the effect of defect detection on photovoltaic cells. For the target recognition model, AP (IoU = 0.5) is used as the parameter for evaluating the target recognition model. Table 3 lists the AP of various defects in the order of training set, validation set and test set. The defect label information is converted into defect level labels, the confusion matrix of each model is calculated, and the accuracy, F1, missed detection rate and false positive are used as evaluation indicators, as shown in Table 4.

[0098] Table 3 AP and mAP of various defects

[0099]

[0100]

[0101] In Table 3, the horizontal headers represent different defect types of photovoltaic cells, and the vertical headers represent different target recognition models. The data in the table represent the AP of defects corresponding to the training set, the AP of defects corresponding to the validation set, and the AP of defects corresponding to the test set. For example, 96|88|100 in the second row and the second column represent that the AP of the failure defects identified by inputting the training set into the YOLO v5s model is 96%, the AP of the failure defects identified by inputting the validation set into the YOLO v5s model is 88%, and the AP of the failure defects identified by inputting the test set into the YOLO v5s model is 100%. AP refers to the average precision, which is an evaluation indicator of the accuracy of the target recognition model. The last column mAP is the average of the AP values ​​of all defect types. For example, 84.55|77.26|62.07 respectively indicate that the average AP value of the ten defects identified by the training set input into the YOLO v5s model is 84.55%, the average AP value of the ten defects identified by the validation set input into the YOLO v5s model is 77.26%, and the average AP value of the ten defects identified by the test set input into the YOLO v5s model is 62.07%. As shown in Table 3, the YOLO v5 model has a high accuracy in judging various defects.

[0102] Table 4 Accuracy and inference time of target recognition model

[0103] Metrics(%) YOLO v5s DenseNet121 Manual visual inspection Accuracy 90.45 87.27 - F1 score 94.71 89.09 - Miss rate 2.55 10.91 - False positive 7.88 2.97 - Single sheet detection time 9.06ms 15.37ms 18s

[0104] In Table 4, Accuracy represents accuracy, F1 score represents the harmonic mean of PR (Precision-Recall), Miss rate represents the false alarm rate, False positive represents the FP false positive rate, that is, the probability of misjudging a negative example as a positive example, and the single detection time refers to the time required to use the model to identify the target in an image, reflecting the real-time performance.

[0105] According to the data analysis in Table 4, the target recognition model YOLO v5s performs best, with an accuracy of 90.45% and a detection speed of 9.06ms for each photovoltaic cell. Therefore, YOLO v5s is selected to perform defect detection on photovoltaic cell modules on the production line. Figure 2 For untested photovoltaic cell modules, such as Figure 6The results of manual inspection and defect detection and grading using the target recognition model and classification network are shown. Each photovoltaic cell is graded using these three methods. The box in the upper left corner of each photovoltaic cell represents the grading result of manual inspection, and the box in the upper right corner represents the grading result after defect detection and defect grade conversion using the target recognition model YOLO v5s. The box below represents the grading result and confidence using the classification network DenseNet121.

[0106] The rules in Table 1 and Table 2 can be updated according to the actual quality control requirements of the production line to ensure that the produced components meet the actual quality requirements.

[0107] The detection method described in the present invention is suitable for quality control of photovoltaic cell modules on a production line. It is improved on the basis of electroluminescence detection and can ensure non-contact real-time high-precision defect detection of photovoltaic cell modules under uninterrupted production, thereby realizing intelligent quality control of photovoltaic cell modules on the production line. Compared with the current manual visual quality control of photovoltaic cell modules, it has the advantages of lower cost, higher accuracy and faster speed, and can adapt to various harsh working environments.

[0108] The present embodiment also provides a photovoltaic cell assembly defect detection system, including an image acquisition and segmentation unit, a labeling unit, a sample construction unit, a model construction and training unit, a defect detection unit, a first level confirmation unit, and a second level confirmation unit.

[0109] The image acquisition and segmentation unit is used to acquire the EL image of the photovoltaic cell assembly and segment the EL image of the photovoltaic cell assembly into photovoltaic cell sheet images.

[0110] A near-infrared camera is used to collect and obtain the EL image of the photovoltaic cell assembly. In this embodiment, the number of near-infrared cameras is 3. The three near-infrared cameras are stacked, and the lenses of the near-infrared cameras are aimed at the photovoltaic cell assembly to perform EL imaging in a scanning shooting manner, such as Figure 2 The EL images of the photovoltaic cell assembly shown in the figure have a pixel of 1360*1024 for each near-infrared camera, and a total of 13756 EL images are obtained, with a resolution of 5400×2700 for each image.

[0111] In order to improve the detection accuracy of internal defects and minor defects, the EL image is segmented into photovoltaic cell images, such as Figure 3 As shown, the image acquisition and segmentation unit is also used for:

[0112] The information at the edge of the EL image is cropped to eliminate the influence of the edge information on the feature point extraction; the SURF feature extraction is performed on the cropped EL image to obtain the feature point information; the point in the feature point information that meets the coordinates of the expected point is selected as the template center to generate a template; the template is used to identify the non-luminous black diamond-shaped area in the EL image, such as Figure 4 As shown; calculate the center point of each black rhombus-shaped area, each center point is a vertex of a photovoltaic cell; connect four adjacent center points to form a quadrilateral, and the circumscribed rectangle of the quadrilateral is a photovoltaic cell image.

[0113] The marking unit is used to screen out images with defects in the photovoltaic cell images, and use a labeling tool to mark the defect type and defect position on the defective images, where the defect position refers to the position of the marking box.

[0114] In order to obtain photovoltaic cell images with known defect types and defect locations and prepare for the construction of a sample set, images with defects in photovoltaic cell images are manually screened out, and the defect types and defect locations are marked on the defective images using a labeling tool. In this embodiment, the labeling tool is Labelimg, which is a visual image calibration tool. By directly framing the defects with a labeling box on the photovoltaic cell image, an xml file of the defect location corresponding to the defect type can be generated. The defect location refers to the location of the labeling box. In this embodiment, the location of the labeling box includes the upper left corner coordinates and the lower right corner coordinates, width and height of the labeling box. The length or area of ​​the defect framed by the labeling box can be calculated based on the upper left corner coordinates and the lower right corner coordinates, width and height. The defect length is the diagonal length of the labeling box, and the defect area is the area of ​​the labeling box.

[0115] In this embodiment, the defect types include but are not limited to broken grid, scratches, hidden cracks, black spots, cold solder joints, pollution, cracks, chipped corners, failures and over-soldering. The method of the present invention can detect at least ten types of defects, and can detect many types of defects.

[0116] The sample construction unit is used to construct a sample set by taking the annotated image as input and the defect type and defect position corresponding to the image as output.

[0117] In this embodiment, there are 30,304 labeled photovoltaic cell images, of which 16,224 are for training, 4,048 are for validation, and 10,032 are for testing.

[0118] The model building and training unit is used to build a target recognition model, and use the sample set to train, verify and test the target recognition model to obtain a trained target recognition model.

[0119] In this embodiment, the target recognition model adopts the YOLO v5s model, which can converge quickly on multiple data sets and is highly customizable. The YOLO v5s model is an existing model, and its construction process will not be described in detail here.

[0120] The defect detection unit is used to perform defect detection on the photovoltaic cell assembly using the trained target recognition model to obtain defect label information of each photovoltaic cell, wherein the defect label information includes defect type, defect location and defect confidence.

[0121] Similar to the sample set acquisition process, using the target recognition model to perform defect detection on photovoltaic cell modules actually includes obtaining the EL image of the photovoltaic cell module collected by a near-infrared camera in real time, segmenting the EL image of the photovoltaic cell module into photovoltaic cell images; and then inputting the photovoltaic cell images into the target recognition model to obtain the defect label information of the photovoltaic cell images.

[0122] The first level confirmation unit is used to classify the defect level of each photovoltaic cell according to the defect label information of the photovoltaic cell to obtain the defect level of the photovoltaic cell.

[0123] The defect label information includes the defect type and defect location in the photovoltaic cell. The defect area and / or defect length can be calculated based on the defect location. The defect type, defect area and / or defect length are the main factors affecting the output power of the photovoltaic cell. Therefore, the defect level of the photovoltaic cell is divided according to the defect type, defect area and / or defect length, and the defect level of a single photovoltaic cell module is determined based on the defect level of the photovoltaic cell to facilitate quality control.

[0124] Defect label information includes defect type, defect location and defect confidence. The defect location refers to the position of the annotation box. The position of the annotation box includes the coordinates of the upper left corner and the lower right corner, the width and the height of the annotation box. The defect length and the defect area can be calculated based on the coordinates of the upper left corner and the lower right corner, the width and the height. For a single photovoltaic cell, the defect levels corresponding to different defect types, defect lengths and / or defect areas and the number of defects are divided. The defect levels of photovoltaic cells include a, b, c and d. The specific division rules are shown in Table 1.

[0125] The second level confirmation unit is used to determine the defect level of the entire photovoltaic cell assembly according to the defect level of each photovoltaic cell piece.

[0126] The defect level of a single photovoltaic cell cannot reflect the defects of the entire photovoltaic cell module, and quality control cannot be performed. Therefore, the defect level of the entire photovoltaic cell module needs to be determined based on the defect level of each photovoltaic cell. The defect levels of a single photovoltaic cell module include A, B, C and D. The specific classification rules are shown in Table 2.

[0127] When the defect level of the photovoltaic cell module is A, the photovoltaic cell module is judged to be a normal module; when the defect level of the photovoltaic cell module is B, the photovoltaic cell module is judged to be a defective product; when the defect level of the photovoltaic cell module is C, the photovoltaic cell module is judged to be a controlled product; when the defect level of the photovoltaic cell module is D, the photovoltaic cell module is judged to be a scrap product.

[0128] What is disclosed above is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or modifications within the technical scope disclosed in the present invention, which should be covered within the protection scope of the present invention.

Claims

1. A photovoltaic cell assembly defect detection method, characterized in that: The steps include: Step 1: Acquire an EL image of a photovoltaic cell assembly, and segment the EL image of the photovoltaic cell assembly into photovoltaic cell sheet images; Step 2: Screen out images with defects in the photovoltaic cell images, and use a labeling tool to mark the defect type and defect position on the defective images, where the defect position refers to the position of the marking box; Step 3: Use the annotated image as input and the defect type and defect location corresponding to the image as output to construct a sample set; Step 4: construct a target recognition model, and use the sample set to train, verify and test the target recognition model to obtain a trained target recognition model; Step 5: Use the trained target recognition model to perform defect detection on the photovoltaic cell assembly to obtain defect label information of each photovoltaic cell, wherein the defect label information includes defect type, defect location, and defect confidence; Wherein, in the step 1, the EL image of the photovoltaic cell assembly is segmented into photovoltaic cell images by using a template matching method, and the specific implementation process is as follows: Step 1.1: Crop out the information at the edge of the EL image; Step 1.2: Perform SURF feature extraction on the cropped EL image to obtain feature point information; Step 1.3: Select a point in the feature point information that matches the coordinates of the expected point as the template center to generate a template; Step 1.4: using the template in step 1.3 to identify a non-luminescent black diamond-shaped area in the EL image; Step 1.5: Calculate the center point of the black rhombus-shaped area, where the center point is a vertex of the photovoltaic cell; Step 1.6: Connect the four adjacent center points to form a quadrilateral, and the circumscribed rectangle of the quadrilateral is a photovoltaic cell image.

2. The photovoltaic cell assembly defect detection method according to claim 1, characterized in that: The target recognition model adopts the YOLO v5s model.

3. The photovoltaic cell assembly defect detection method according to claim 1, characterized in that: In step 2, the defect types include broken grid, scratch, hidden crack, black spot, cold solder joint, pollution, crack, chipping, failure and over solder joint.

4. The photovoltaic cell assembly defect detection method according to any one of claims 1 to 3, characterized in that: Also includes: Step 6: Classify the defect level of each photovoltaic cell according to the defect label information of the photovoltaic cell to obtain the defect level of the photovoltaic cell; Step 7: Determine the defect level of the entire photovoltaic cell assembly based on the defect level of each photovoltaic cell.

5. The photovoltaic cell assembly defect detection method according to claim 4, characterized in that: In step 6, the defect levels of the photovoltaic cell include level a, level b, level c and level d; When there is only a scratch on a single photovoltaic cell, and 0≤l2≤L / 5, 0≤n2≤2; or there is no defect type; then the defect level of the photovoltaic cell is level a; where L is the side length of the photovoltaic cell, l2 is the scratch length, n2 is the number of scratches on the photovoltaic cell, and n2 is an integer; When there is a broken grid on a single photovoltaic cell, and 0<∑s1≤5%S; or there is a scratch, and L / 5<l2≤2L / 3, 2<n2≤4; or there is a hidden crack, and 0<l3≤L / 12, 0<n3≤1; or there is a black spot, and 0<l4≤L / 4, 0<∑s4≤5%S; or there is pollution, and 0<∑s6≤5%S; then the defect level of the photovoltaic cell is b; where S is the area of ​​the photovoltaic cell, s1 is the area of ​​a single broken grid, l3 is the length of the hidden crack, n3 is the number of hidden cracks on the photovoltaic cell, l4 is the length of the black spot, s4 is the area of ​​a single black spot, and s6 is the area of ​​a single pollution; When there is a broken grid on a single photovoltaic cell, and 5%S<∑s1≤10%S; or there is a scratch, and L / 5<l2≤2L / 3; or there is a hidden crack, and L / 12<l3≤L / 5, 1<n3≤2; or there is a black spot, and 5%S<∑s4≤10%S; or there is a cold solder joint, and 0<l5≤L / 4; or there is pollution, and 0<∑s6≤10%S; or there is a crack, and 0<l7≤L / 5, 0 <n7≤1; or there is a chipping angle, and 0<s8≤4%S, 0<n8≤1; or there is a failure, and 0<s9≤10%S, 0<n9≤1; then the defect level of the photovoltaic cell is C; where s7 is the area of ​​a single crack, l7 is the crack length, n8 is the number of chipping angles on the photovoltaic cell, s8 is the area of ​​a single chipping angle, n9 is the number of failures on the photovoltaic cell, s9 is the area of ​​a single failure, l 10 is the over-welding length; When there is a broken grid on a single photovoltaic cell, and 10%S<∑s1; or there is a scratch, and 2L / 3<l2; or there is a hidden crack, and L / 5<l3, 2<n3; or there is a black spot, and 10%S<∑s4; or there is a cold solder joint, and L / 4<l5; or there is pollution, and 10%S<∑s6; or there is a crack, and L / 5<l7, 1<n7; or there is a chipping angle, and 4%S<s8, 1<n8; or there is a failure, and 10%S<s9, 1<n9; or there is an over-soldering, and 1≤n 10 , then the defect level of the photovoltaic cell is d; where n 10 The number of over-soldering on the photovoltaic cell.

6. The photovoltaic cell assembly defect detection method according to claim 4, characterized in that: In step 7, the defect levels of the photovoltaic cell assembly include level A, level B, level C and level D; When, in a single photovoltaic cell module, 94.4% ≤ the proportion of photovoltaic cells with defect level a, 0<the proportion of photovoltaic cells with defect level b<5.6%, and the proportion of photovoltaic cells with defect levels c and d are both 0%, the defect level of the photovoltaic cell module is A; When, in a single photovoltaic cell module, the number of photovoltaic cells with defect level a of 88.9% ≤ accounts for less than 94.4%, the number of photovoltaic cells with defect level b of 5.6% ≤ accounts for less than 11.1%, the number of photovoltaic cells with defect level c of 0 ≤ accounts for less than 5.6%, and the number of photovoltaic cells with defect level d accounts for 0%, the defect level of the photovoltaic cell module is B; When, in a single photovoltaic cell module, the number of photovoltaic cells with defect level a of 83.3% ≤ accounts for less than 88.9%, the number of photovoltaic cells with defect level b of 11.1% ≤ accounts for less than 16.7%, the number of photovoltaic cells with defect level c of 5.6% ≤ accounts for less than 16.7%, and the number of photovoltaic cells with defect level d accounts for 0%, then the defect level of the photovoltaic cell module is C; When in a single photovoltaic cell module, the proportion of photovoltaic cells with defect grade A is less than 83.3%, the proportion of photovoltaic cells with defect grade B is less than 16.7%, the proportion of photovoltaic cells with defect grade C is less than 16.7%, and the proportion of photovoltaic cells with defect grade D is greater than 0%, the defect grade of the photovoltaic cell module is D.

7. A photovoltaic cell assembly defect detection system, characterized in that: include: An image acquisition and segmentation unit, used for acquiring an EL image of a photovoltaic cell assembly and segmenting the EL image of the photovoltaic cell assembly into photovoltaic cell sheet images; A labeling unit, used for screening out images with defects in the photovoltaic cell images, and labeling the defect type and defect position on the defective images using a labeling tool, wherein the defect position refers to the position of the labeling box; A sample construction unit, used to construct a sample set by taking the annotated image as input and taking the defect type and defect position corresponding to the image as output; A model building and training unit is used to build a target recognition model, and use the sample set to train, verify and test the target recognition model to obtain a trained target recognition model; A defect detection unit, used to perform defect detection of photovoltaic cell modules using a trained target recognition model to obtain defect label information of each photovoltaic cell, wherein the defect label information includes defect type, defect location, and defect confidence; The template matching method is used to segment the EL image of the photovoltaic cell assembly into photovoltaic cell images, which specifically includes: The information at the edge of the EL image is cropped; SURF feature extraction is performed on the cropped EL image to obtain feature point information; a point in the feature point information that meets the coordinates of the expected point is selected as the template center to generate a template; the template is used to identify a non-luminous black diamond-shaped area in the EL image; the center point of the black diamond-shaped area is calculated, and the center point is a vertex of a photovoltaic cell; four adjacent center points are connected to form a quadrilateral, and the circumscribed rectangle of the quadrilateral is a photovoltaic cell image.

8. The photovoltaic cell assembly defect detection system according to claim 7, characterized in that: Also includes: A first level confirmation unit is used to classify the defect level of each photovoltaic cell according to the defect label information of the photovoltaic cell to obtain the defect level of the photovoltaic cell; The second level confirmation unit is used to determine the defect level of the entire photovoltaic cell assembly according to the defect level of each photovoltaic cell piece.

9. A photovoltaic cell assembly production line, characterized in that: Comprising a photovoltaic cell assembly defect detection system as described in claim 7 or 8.