Photovoltaic printing screen defect detection method and system
Through the combination of upper and lower light sources and blob analysis, the grid lines of the photovoltaic printing screen are independently extracted, and detection algorithms for different defects are designed, which solves the problems of low detection accuracy and efficiency in the existing technology and achieves more efficient defect detection.
Patent Information
- Application Number
- CN202210545208.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-19
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing photovoltaic printing screen defect detection methods have low accuracy and efficiency. They rely on manual detection and the machine vision detection method is limited by the positioning algorithm of Gerber files, which affects detection accuracy and speed.
Using the method of combining upper and lower light sources, we independently extract grating lines through Blob analysis and image processing algorithms, and design pinhole, blockage, dirt and broken wire detection algorithms to improve detection accuracy and efficiency.
It improves the accuracy and efficiency of surface defect detection of photovoltaic printing screens, solves the problem of low detection efficiency of human eyes and slow detection speed of Gerber file reading, and achieves more efficient defect detection.
Smart Images

Figure CN114937013B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of printing screen defect detection, and more specifically, relates to a photovoltaic printing screen defect detection method and system. Background Art
[0002] With the development of society, photovoltaics have flourished due to its clean, pollution-free, safe, reliable and easy maintenance characteristics, and have become an important direction for the development of new energy. The mass production of photovoltaic cells mostly uses photovoltaic printing screens as molds for printing. Therefore, the production process of photovoltaic panels is highly dependent on the quality of the printing screen. Common screen surface defects include blockage, broken wires, dirt, pinholes, etc. These defects will affect the printing quality of photovoltaic panels, and then affect the normal use of photovoltaic panels. Therefore, it is necessary to perform surface defect detection before the photovoltaic printing screen is put into photovoltaic cell production.
[0003] Common surface defects detected for photovoltaic printing screens include pinholes, screen blockage, dirt, thin glue and broken wires. Pinholes are bright spot defects that appear in the latex area of the screen, indicating that the screen film has been broken or perforated; screen blockage is a defect that blocks the grid line area of the screen; dirt is a defect that blocks the latex and has a relatively large shape; thin glue is a transparent glue covering the silk screen in the screen, which cannot be detected in ordinary backlight light sources; broken wires are defects caused by the breakage of the steel wires that make up the screen, destroying the grid structure.
[0004] At present, defect detection of photovoltaic cell screens still relies on manual inspection. The cost of human eye inspection is high, the detection accuracy is limited, and the human eye is easily fatigued, which is not conducive to long-term work.
[0005] In line with the trend of artificial intelligence, machine vision technology is now used to combine industrial cameras and computer programs to detect surface defects of photovoltaic cell screens. This overcomes the shortcomings of manual detection to a certain extent, but the current machine vision detection method is based on reading the Gerber file when designing the printing screen to locate the grid line for surface defect detection. This method is limited by the accuracy of the positioning algorithm, and the Gerber file is usually large and needs to be cut and matched after reading, which will limit the accuracy and detection speed of the subsequent defect detection algorithm to a certain extent.
[0006] Therefore, it is necessary to improve the existing machine vision inspection methods to improve the accuracy and work efficiency of photovoltaic cell screen defect detection, so as to ensure the production quality of photovoltaic printing screens and cells. Summary of the invention
[0007] In view of the defects of the prior art, the purpose of the present invention is to provide a photovoltaic printing screen defect detection method and system, aiming to solve the problem of low accuracy and efficiency of the existing photovoltaic printing screen defect detection.
[0008] To achieve the above object, in a first aspect, the present invention provides a photovoltaic printing screen defect detection method, comprising the following steps:
[0009] Determine the image of the photovoltaic printing screen under two light sources; the two light sources are: an upper light source located directly above the photovoltaic printing screen and a lower light source located directly below the photovoltaic printing screen; the image under the upper light source is a reflective illumination image, and the image under the lower light source is a transmissive illumination image; the photovoltaic printing screen may have defects, and the defects include: pinholes, mesh blockage, dirt and broken wires; the mesh blockage occurs in the grid line area; the broken wire refers to the disconnection of the steel wire of the printing screen;
[0010] Measuring the dynamic parameters of the photovoltaic printing screen based on the lower light source image, wherein the dynamic parameters include: mesh width, steel wire width and steel wire inclination; the mesh width refers to the pixel width of a single grid in the photovoltaic printing screen;
[0011] Perform Blob analysis on the lower light source image, extract the continuous area with the highest gray value in the lower light source image, and use it as the grid line of the photovoltaic printing screen;
[0012] Removing the grid lines in the lower light source image based on the extracted grid lines, and analyzing the highlight area information on the lower light source image after the grid lines are removed to perform pinhole detection; wherein, when the area of a certain highlight area exceeds a preset area, it is considered that the area corresponds to a pinhole;
[0013] The lower light source image is cropped by using the extracted grid lines to generate a first grayscale image containing only the grid lines, and the blocking network in the first grayscale image containing only the grid lines is extracted by using Blob analysis, and the two grayscale images corresponding to the upper light source image and the lower light source image are subtracted to obtain the subtracted grayscale image, and the subtracted grayscale image is cropped by using the extracted grid lines to generate a second grayscale image containing only the grid lines, and the second grayscale image containing only the grid lines is subjected to Blob analysis to further extract the blocking network that may be missed in the two images; the grayscale image containing only the grid lines is a grayscale image in which the pixel values of other areas of the image except the grid line area are 0;
[0014] Removing the grid lines in the lower light source image and the upper light source image based on the extracted grid lines, and performing Blob analysis on the two images after the grid lines are removed based on the mesh width to detect dirt on the screen;
[0015] The grid lines in the lower light source image are removed based on the extracted grid lines, and the steel wires in the lower light source image after the grid lines are removed are detected according to the steel wire width and the steel wire inclination, and the broken wire detection is performed on the steel wire edge using Blob analysis.
[0016] Optionally, both the lower light source image and the upper light source image are grayscale images.
[0017] In an optional example, blob analysis is used to extract blocked networks in an image, specifically:
[0018] Extracting a region in the image where the grayscale value is less than a first preset value;
[0019] If the height of the extracted area is greater than the preset pixel and the area is greater than the mesh width, the area is considered to be a blocked mesh where the grid line and the steel line meet;
[0020] If the area of the extracted region is larger than the mesh width and the radius of the inscribed circle is larger than the preset radius, the region is considered to be a blocked mesh inside the grid line;
[0021] If the width of the extracted area is between the preset widths, the height is between the first preset heights, and the compactness is less than the threshold, the area is considered to be a grid-line edge blocking network.
[0022] In an optional example, blob analysis is performed on the image to detect dirt on the screen, specifically:
[0023] After the grid lines in the image are determined, according to the position information of the grid lines in the image, the area in the image whose distance from the grid lines is less than a preset distance is set as a near-grid area, and the area whose distance from the grid lines is greater than the preset distance is set as a far-grid area;
[0024] After removing the steel wires in the near-grid region according to the steel wire width and the steel wire inclination, a first steel wire-removed image is obtained, and grayscale threshold segmentation is used to extract a first suspected dirty region with a grayscale value less than a second preset value from the first steel wire-removed image;
[0025] If the height of the first suspected dirty area is between the second preset height and the area is larger than the mesh width, it is regarded as the dirt in the near-grid area;
[0026] After removing the steel wires in the far grid area according to the steel wire width and the steel wire inclination, a second steel wire-removed image is obtained, and grayscale threshold segmentation is used to extract a second suspected dirty area whose grayscale value is less than a third preset value from the second steel wire-removed image; wherein the third preset value is the grayscale value corresponding to the trough after grayscale histogram statistics are performed on the second steel wire-removed image;
[0027] If the area of the second suspected dirty region is larger than twice the mesh width, it will be regarded as dirt in the far grid area.
[0028] In an optional example, blob analysis is used to detect wire breakage at the edge of the steel wire, specifically:
[0029] If the edge of the steel wire is located inside the image, the edge area is considered to be a broken wire; the inside of the image refers to an area that is a preset pixel away from the wide side and the narrow side of the image.
[0030] In an optional example, a Blob analysis is performed on the lower light source image to extract the continuous area with the highest grayscale value in the lower light source image and use it as the grid line of the photovoltaic printing screen, specifically:
[0031] A grayscale value closing operation is performed on the lower light source image using a rectangular structure element, and then a grayscale threshold segmentation is performed to extract a region where the grayscale value is greater than a preset value, to obtain a first coarse grid region; a grayscale value closing operation is performed on the lower light source image using a hexagonal structure element, and then a grayscale threshold segmentation is performed to extract a region where the grayscale value is greater than a preset value, to obtain a second coarse grid region; and a grayscale threshold segmentation is performed on the lower light source image to obtain a third coarse grid region; wherein the coarse grid region refers to a rough grid line region;
[0032] Performing grayscale value closing operation, grayscale threshold segmentation, closing operation and opening operation on the first coarse gate area in sequence to obtain a vertical gate line;
[0033] Using the third coarse grid area to perform grayscale value difference on the vertical grid lines to preliminarily obtain wavy grid lines, and reshaping the preliminarily obtained wavy grid lines by skeleton extraction to obtain final wavy grid lines;
[0034] Using the second rough gate region, grayscale value difference is performed on the vertical gate line and the final wavy gate line to obtain patterned gate lines; the patterned gate lines refer to gate lines other than the vertical gate lines and the wavy gate lines;
[0035] The vertical grid lines, the wavy grid lines and the patterned grid lines are combined to obtain a combined grid line area; and the grayscale features of the combined grid line area are extracted to obtain the grid lines of the photovoltaic printing screen.
[0036] In an optional example, grayscale value closing operation, grayscale threshold segmentation, closing operation and opening operation are performed on the first coarse gate region to obtain vertical gate lines, specifically:
[0037] A grayscale value closing operation of a preset structural element is performed on the first coarse grid area, and then grayscale threshold segmentation, closing operation and opening operation are performed in sequence to finally obtain the vertical grid line; the photovoltaic printed screen includes grid lines and steel wires, the grid lines are white, and the steel wires are black. The purpose of the grayscale value closing operation is to make the white grid lines cross the black steel wires and connect completely, the purpose of the grayscale threshold segmentation is to extract the coarse grid area, the purpose of the closing operation is to adapt to the black blocking defects that exceed the preset area to avoid the black blocking defects affecting the extraction of the vertical grid lines, and the purpose of the opening operation is to extract the vertical grid lines.
[0038] In an optional example, the grayscale value difference of the vertical gate line is performed by using the third coarse gate region to preliminarily obtain the wavy gate line, specifically:
[0039] The vertical gate lines are first expanded, and then the grayscale values of the expanded vertical gate lines are differentiated using the third coarse gate region to preliminarily obtain wavy gate lines.
[0040] In an optional example, the grayscale threshold segmentation adopted to obtain the third coarse grid area is a grayscale histogram threshold segmentation method or an Otsu threshold segmentation method; the purpose of the grayscale threshold segmentation is to extract the grid line part with the highest grayscale value in the image.
[0041] In an optional example, the wavy grid lines initially obtained are shaped by skeleton extraction to obtain the final wavy grid lines, specifically:
[0042] Performing grayscale value threshold extraction of a first preset grayscale value range on the initially obtained wavy grating lines to remove the influence of the background on the wavy grating line extraction;
[0043] Then, the wavy grid lines after removing the background influence are subjected to skeleton extraction to obtain a wavy skeleton;
[0044] The wavy skeleton is expanded to complete the shaping of the initially extracted wavy grid lines to obtain the final wavy grid lines.
[0045] In an optional example, the grayscale features of the merged grid line region are extracted to obtain the grid lines of the photovoltaic printing screen, specifically:
[0046] Extracting an area within the merged gate line area where the grayscale value is within a second preset grayscale value range by using a grayscale value threshold segmentation as an extraction area;
[0047] Removing the extraction area from the merged gate line area by grayscale difference operation to obtain a remaining area;
[0048] The remaining area is filled with regional holes to obtain grid lines of the photovoltaic printing screen.
[0049] In a second aspect, the present invention provides a photovoltaic printing screen defect detection system, comprising:
[0050] An image determination unit is used to determine the image of the photovoltaic printing screen under two light sources; the two light sources are: an upper light source located directly above the photovoltaic printing screen and a lower light source located directly below the photovoltaic printing screen; the image under the upper light source is a reflective illumination image, and the image under the lower light source is a transmissive illumination image; the photovoltaic printing screen may have defects, and the defects include: pinholes, mesh blockage, dirt and broken wires; the mesh blockage occurs in the grid line area; the broken wire refers to the disconnection of the steel wire of the printing screen;
[0051] A dynamic parameter measurement unit, used to measure the dynamic parameters of the photovoltaic printing screen based on the lower light source image, the dynamic parameters including: mesh width, steel wire width and steel wire inclination; the mesh width refers to the pixel width of a single grid in the photovoltaic printing screen;
[0052] A grid line extraction unit is used to perform Blob analysis on the lower light source image, extract the continuous area with the highest grayscale value in the lower light source image, and use it as the grid line of the photovoltaic printing screen;
[0053] A pinhole detection unit, used to remove the grid lines in the lower light source image based on the extracted grid lines, and analyze the highlight area information on the lower light source image after the grid lines are removed to perform pinhole detection; wherein, when the area of a certain highlight area exceeds a preset area, it is considered that the area corresponds to a pinhole;
[0054] A network blocking detection unit is used to use the extracted grid lines to crop the lower light source image to generate a first grayscale image containing only the grid lines, and use Blob analysis to extract the network blocking in the first grayscale image containing only the grid lines, and subtract the two grayscale images corresponding to the upper light source image and the lower light source image to obtain the subtracted grayscale image, and use the extracted grid lines to crop the subtracted grayscale image to generate a second grayscale image containing only the grid lines, and perform Blob analysis on the second grayscale image containing only the grid lines to further extract the network blocking that may be missed in the two images; the grayscale image containing only the grid lines is a grayscale image in which the pixel values of other areas of the image except the grid line area are 0;
[0055] A dirt detection unit, used for removing the grid lines in the lower light source image and the upper light source image based on the extracted grid lines, and performing Blob analysis on the two images after the grid lines are removed based on the mesh width to detect dirt on the screen;
[0056] The broken wire detection unit is used to remove the grid lines in the lower light source image based on the extracted grid lines, detect the steel wires in the lower light source image after removing the grid lines according to the steel wire width and the steel wire inclination, and perform broken wire detection on the steel wire edge using Blob analysis.
[0057] In an optional example, the blocking network detection unit extracts an area in the image whose grayscale value is less than a first preset value; if the height of the extracted area is greater than the preset pixel and the area is greater than the mesh width, the area is considered to be a blocking network at the junction of the grid line and the steel wire; if the area of the extracted area is greater than the mesh width and the radius of the inscribed circle is greater than the preset radius, the area is considered to be a blocking network inside the grid line; and if the width of the extracted area is between the preset widths, the height is between the first preset height, and the compactness is less than a threshold, the area is considered to be a blocking network at the edge of the grid line.
[0058] In an optional example, after the dirt detection unit determines the grid lines in the image, the area in the image that is less than a preset distance from the grid lines is set as a near-grid area, and the area that is greater than the preset distance is set as a far-grid area according to the position information of the grid lines in the image; after removing the steel wires in the near-grid area according to the steel wire width and the steel wire inclination, a first steel wire-removed image is obtained, and grayscale threshold segmentation is used to extract a first suspected dirt area with a grayscale value less than a second preset value from the first steel wire-removed image; if the height of the first suspected dirt area is between the second preset height and the area is larger than the eye width, it is regarded as dirt in the near-grid area; after removing the steel wires in the far-grid area according to the steel wire width and the steel wire inclination, a second steel wire-removed image is obtained, and grayscale threshold segmentation is used to extract a second suspected dirt area with a grayscale value less than a third preset value from the second steel wire-removed image; wherein the third preset value is the grayscale value corresponding to the trough after grayscale histogram statistics are performed on the second steel wire-removed image; and if the area of the second suspected dirt area is larger than twice the eye width, it is regarded as dirt in the far-grid area.
[0059] In an optional example, the broken wire detection unit uses Blob analysis to detect broken wires on the edge of the steel wire. Specifically, if the edge of the steel wire is located inside the image, the edge area is considered to be a broken wire; the inside of the image refers to an area that is a preset pixel away from the wide side and the narrow side of the image.
[0060] In an optional example, the grid line extraction unit extracts the continuous area with the highest grayscale value in the lower light source image and uses it as the grid line of the photovoltaic printing screen, specifically: using a rectangular structure element to perform a grayscale value closing operation on the lower light source image, and then performing grayscale threshold segmentation to extract the area with a grayscale value greater than a preset value to obtain a first coarse grid area; using a hexagonal structure element to perform a grayscale value closing operation on the lower light source image, and then performing grayscale threshold segmentation to extract the area with a grayscale value greater than a preset value to obtain a second coarse grid area; performing grayscale threshold segmentation on the lower light source image to obtain a third coarse grid area; wherein the coarse grid area refers to a rough grid line area; the first coarse grid area is sequentially segmented Gray value closing operation, gray threshold segmentation, closing operation and opening operation are performed to obtain vertical gate lines; gray value difference is performed on the vertical gate lines using the third coarse gate area to preliminarily obtain wavy gate lines, and the preliminarily obtained wavy gate lines are shaped by skeleton extraction to obtain final wavy gate lines; gray value difference is performed on the vertical gate lines and the final wavy gate lines using the second coarse gate area to obtain patterned gate lines; the patterned gate lines refer to gate lines other than vertical gate lines and wavy gate lines; and the vertical gate lines, wavy gate lines and patterned gate lines are merged to obtain a merged gate line area; and the grayscale features of the merged gate line area are extracted to obtain gate lines of the photovoltaic printing screen.
[0061] In general, the above technical solution conceived by the present invention has the following beneficial effects compared with the prior art:
[0062] The present invention provides a photovoltaic printing screen defect detection method and system, which can solve the problems of low efficiency of human eye detection and slow detection speed due to the need to read Gerber by autonomously extracting grid lines, auxiliary lighting with upper and lower light sources, and designing image processing algorithms according to different defect characteristics to perform surface defect detection on photovoltaic printing screens, and further improve the accuracy of surface defect detection on photovoltaic printing screens. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 is a flow chart of a photovoltaic printing screen defect detection method provided by an embodiment of the present invention;
[0064] Figure 2 It is a flow chart of a method for detecting surface defects of a photovoltaic printing screen without Gerber provided by an embodiment of the present invention;
[0065] Figure 3 is a schematic diagram of a surface defect detection system for a Gerber-free photovoltaic printing screen provided by an embodiment of the present invention;
[0066] Figure 4 It is a partial enlarged picture of a picture taken from the lower light source of a typical photovoltaic printing screen provided by an embodiment of the present invention;
[0067] Figure 5 This is a diagram of common blocking defects of photovoltaic printing screens provided by an embodiment of the present invention;
[0068] Figure 6 This is a diagram of common contamination defects of photovoltaic printing screens provided by an embodiment of the present invention;
[0069] Figure 7 This is a diagram of common broken wire defects of photovoltaic printing screens provided by an embodiment of the present invention;
[0070] Figure 8 is an architecture diagram of a photovoltaic printing screen defect detection system provided by an embodiment of the present invention;
[0071] In all the drawings, the same reference numerals are used to represent the same elements or structures, wherein: 1 is an upper light source, 2 is a CCD camera, 3 is a lower light source, 4 is a three-dimensional moving platform, 5 is a screen clamping fixture, 6 is a control console, and 7 is a display screen. DETAILED DESCRIPTION
[0072] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0073] In order to solve the existing technical problems, the present invention provides a Gerber-free photovoltaic printing screen detection method and system to solve the problems of low efficiency of human eye detection and the need to read Gerber to slow down the detection speed of machine vision detection methods, and further improves the accuracy of photovoltaic printing screen surface defect detection by adopting upper and lower light sources.
[0074] Figure 1 is a flow chart of a photovoltaic printing screen defect detection method provided by an embodiment of the present invention; Figure 1 As shown, the following steps are included:
[0075] S101, determining the images of the photovoltaic printing screen under two light sources; the two light sources are: an upper light source located directly above the photovoltaic printing screen and a lower light source located directly below the photovoltaic printing screen; the image under the upper light source is a reflective illumination image, and the image under the lower light source is a transmissive illumination image; the photovoltaic printing screen may have defects, the defects including: pinholes, mesh blockage, dirt and wire breakage; the mesh blockage occurs in the grid line area; the wire breakage refers to the disconnection of the steel wire of the printing screen;
[0076] S102, measuring dynamic parameters of the photovoltaic printing screen based on the lower light source image, wherein the dynamic parameters include: mesh width, steel wire width, and steel wire inclination; the mesh width refers to the pixel width of a single grid in the photovoltaic printing screen;
[0077] S103, performing Blob analysis on the lower light source image, extracting the continuous area with the highest grayscale value in the lower light source image, and using it as the grid line of the photovoltaic printing screen;
[0078] S104, removing the grid lines in the lower light source image based on the extracted grid lines, and analyzing the highlight area information on the lower light source image after the grid lines are removed to perform pinhole detection; wherein, when the area of a certain highlight area exceeds a preset area, it is considered that the area corresponds to a pinhole;
[0079] S105, using the extracted grid lines, cutting the lower light source image to generate a first grayscale image containing only the grid lines, and using Blob analysis to extract the blocking network in the first grayscale image containing only the grid lines, and subtracting the two grayscale images corresponding to the upper light source image and the lower light source image to obtain the subtracted grayscale image, and cutting the subtracted grayscale image using the extracted grid lines to generate a second grayscale image containing only the grid lines, and performing Blob analysis on the second grayscale image containing only the grid lines to further extract the blocking network that may be missed in the two images; the grayscale image containing only the grid lines is a grayscale image in which the pixel values of other areas of the image except the grid line area are 0;
[0080] S106, removing the grid lines in the lower light source image and the upper light source image based on the extracted grid lines, and performing Blob analysis on the two images after the grid lines are removed to detect dirt on the screen based on the mesh width;
[0081] S107, removing the grid lines in the lower light source image based on the extracted grid lines, detecting the steel wires in the lower light source image after removing the grid lines according to the steel wire width and the steel wire inclination, and performing wire breakage detection on the steel wire edge using Blob analysis.
[0082] In some more specific embodiments, on the one hand, Figure 2 As shown, the present invention provides an online detection method for surface defects of a Gerber-free photovoltaic printing screen, comprising the following steps:
[0083] S1. Collect images. Use a CCD industrial camera clamped on the gantry platform to capture regional images of the photovoltaic printing screen to be tested, and capture the upper light source image and the lower light source image of the same area in turn each time.
[0084] S2. Image preprocessing. Measure some dynamic parameters of the screen, such as mesh width, steel wire width, steel wire inclination, etc.
[0085] S3, extracting the grid lines in the screen. Using the lower light source image taken in S1, perform Blob analysis to extract the grid lines.
[0086] S31: Perform grayscale value closing operation on the lower light source image.
[0087] A grayscale closing operation is performed on the lower light source image using a rectangular structure element, and then grayscale threshold segmentation is performed to obtain a coarse grid area 1; a grayscale closing operation is performed on the lower light source image using a hexagonal structure element, and then grayscale threshold segmentation is performed to obtain a coarse grid area 2;
[0088] In this embodiment, the size of the rectangular structure element is 15*15, and the subsequent grayscale threshold is 200-255. The size of the hexagonal structure element is 11*11, and the subsequent grayscale value threshold is 200-255.
[0089] S32: vertical grid line extraction.
[0090] The grayscale value closing operation, grayscale threshold segmentation, closing operation and opening operation are performed on the rough gate area 1 to obtain a vertical gate line, specifically:
[0091] A grayscale value closing operation of a preset structural element is performed on the coarse grid area 1, and then grayscale threshold segmentation, closing operation and opening operation are performed in sequence to finally obtain the vertical grid line; the photovoltaic printing screen includes grid lines and steel wires, the grid lines are white, and the steel wires are black. The purpose of the grayscale value closing operation is to make the white grid lines cross the black steel wires and connect completely, the purpose of the grayscale threshold segmentation is to extract the coarse grid area, the purpose of the closing operation is to adapt to the black blocking defects that exceed the preset area, and avoid the black blocking defects affecting the extraction of the vertical grid lines, and the purpose of the opening operation is to extract the vertical grid lines.
[0092] An accurate vertical gate line 1 is obtained by performing an opening operation of a square with a structural element of 1*50 on the coarse gate area 1 .
[0093] In order to adapt to the influence of large black blocking defects on the extraction of white grid lines, before the opening operation, the coarse grid area 1 is closed with a structural element of 1*50 and then the opening operation is performed.
[0094] S33: Extraction of wavy grid lines.
[0095] The collected original image is processed by using threshold segmentation to obtain a rough grid area 3, and the vertical grid lines 1 extracted in step 3 are expanded by using the rough grid area 3 and then differentially extracted to preliminarily extract the wavy grid lines 1.
[0096] In order to improve the accuracy of raster line extraction, the threshold segmentation here can use grayscale histogram threshold segmentation method, Otsu threshold segmentation method and other methods. The main purpose is to extract the raster line part with the highest grayscale value in the silk screen.
[0097] The above-mentioned wavy grating line 1 area is subjected to grayscale value threshold extraction with a parameter of 100-160 to remove the influence of the background on the wavy grating line extraction, and then the skeleton of the wavy grating line 1 is extracted to obtain the wavy skeleton 1, and the wavy grating line is expanded on the basis of the extracted wavy skeleton 1 to achieve the shaping of the wavy grating line to obtain the wavy grating line 2. The expansion parameter can be 3.5 to improve the extraction accuracy of the wavy grating line.
[0098] S34: extracting pattern lines.
[0099] The vertical grid lines 1 and the wavy grid lines 2 are differentially operated using the rough grid area 2 to accurately extract the pattern grid lines 1 .
[0100] S35: combining the grid lines extracted by blocks, merging the vertical grid line 1, the wavy grid line 2, and the pattern grid line 1, and processing the merged grid lines by grayscale feature extraction and other means to obtain the grid line area of the screen.
[0101] The specific steps for processing the merged grid lines should be: 1. Use threshold segmentation to extract the grayscale area between 120-170 in the merged area. 2. Remove these areas from the merged area through differential operation. 3. Finally, use regional hole filling and shaping to obtain the accurate grid line area.
[0102] S4, defect detection and classification. Analyze, extract and locate different surface defects using the grid lines extracted in S3 and the upper and lower light source images in S1.
[0103] S5. Different defect information is marked with different symbols in the human-computer interaction interface to facilitate staff to check the inspection status.
[0104] S6. After the local surface defect detection is completed, the CCD industrial camera and the upper light source move to the position of the next printing screen and repeat S2-S5 until the detection of one printing screen is completed.
[0105] The further step 1 is specifically as follows:
[0106] S11, installing the screen to be tested on the platform to be tested, initializing the shooting platform, and moving the camera to the initial position.
[0107] S12. Place a surface light source below the area to be inspected, and install a ring light source on the fixture that holds the CCD industrial camera. When shooting, the CCD industrial camera alternately takes pictures of the upper light source and the lower light source at the same position, that is, only one light source is turned on each time the CCD industrial camera works.
[0108] Furthermore, when the upper light source is irradiated, the image is a reflection-type illumination image, highlighting the depth information in the screen. When the lower light source is irradiated, the image is a transmission-type illumination image, highlighting the transparency change information in the screen.
[0109] The CCD camera can be an area array black and white camera or a linear array black and white camera.
[0110] The specific steps of step 4 are as follows:
[0111] S41, edge pinhole detection of the grid line. Considering the good light transmittance of the pinhole, the display effect in the lower light source image is consistent with the grid line. The grid line in step 2 is used to remove the grid line in the screen image, and the edge pinhole detection is performed based on the image without the grid line.
[0112] Whether a pinhole defect exists is determined by determining whether the area of a highlight region of the screen image with the grid lines removed exceeds a set threshold, and the pinhole defect is located by locating the position of the highlight region.
[0113] The acquisition of the highlight area can adopt various threshold segmentation methods: histogram threshold segmentation method, gray value threshold segmentation method, Ostu threshold segmentation method, etc.
[0114] S42, grid blocking defect detection. For different grid blocking defects, the grid lines in the upper and lower light source images in step 1 are located using the grid lines in step 3, and the grid blocking defects are used to reduce the light transmittance of the grid lines and change the height information of the grid lines for grid blocking defect detection.
[0115] By performing Blob analysis on the lower light source image, the area with a grayscale value <240 in the grid line area is extracted, and then the area, height, width, compactness and other features are used to determine whether it is a network blocking defect.
[0116] At the same time, the algorithm uses the subtraction of the upper and lower light source images to expand the coverage of defects. After the subtraction of the upper and lower light sources, some blocking defects will be more obvious than the grayscale features of the upper and lower light sources alone. Designing a Blob analysis method for the subtracted images can realize the detection of related blocking defects.
[0117] Specifically, for different blocking defects, after Blob analysis: setting the feature threshold to: height>6 pixels, area>mesh width can extract blocking defects that are connected to the steel wire and cannot be visually separated; setting the feature threshold to: area>mesh width, inscribed circle radius>1. Blocking defects inside the grid line can be extracted; setting the feature threshold to: 2<width<10, 2<height10, compactness<1.5 can extract defects with a smaller area at the edge of the grid line.
[0118] S43, dirt defect detection. After removing the grid lines in the upper and lower light source images using the grid lines in step 3, the dirt features are extracted using Blob analysis.
[0119] Specifically, the gate lines in the image are removed using the previously acquired gate line region, and then the near-gate region close to the gate lines and the far-gate region far from the gate lines are segmented.
[0120] After removing the steel wire in the near-grid area, the steel wire removal is obtained. Figure 1 , use grayscale threshold segmentation to extract the suspected dirty area 1 with a grayscale value less than 80 for the steel wire removal image 1, set the feature threshold to be greater than 3 and less than 20, and the area>mesh width to extract the dirt in the near-grid area from the suspected dirty area 1.
[0121] Remove the steel wires from the far grid area to obtain the steel wire-free Figure 2 , and use threshold segmentation to extract suspected dirty areas between 0 and threshold 1, where threshold 1 is the Figure 2After the grayscale histogram is counted, the grayscale value corresponding to the trough is obtained. The threshold is set to area > mesh width * 2 to extract the far-grid dirty area from the suspected dirty area 2.
[0122] S44, broken wire defect detection. The edge of the broken wire steel wire will never exist on the edge of the picture. The steel wire is detected by using the picture after removing the grid line, and then the edge of the steel wire is extracted to determine whether the edge of the steel wire is on the edge of the picture. If not, it is determined to be a broken wire. If on the edge of the picture, it is not a broken wire.
[0123] On the other hand, the present invention also provides a surface defect detection system for a Gerber-free photovoltaic printing screen: a detection platform and an image acquisition unit, an image preprocessing unit, a grid line extraction unit, a defect detection unit, and a defect display unit.
[0124] ①Detection platform and image acquisition unit: such as Figure 3 As shown, the upper light source 1 and the lower light source 3 provide lighting, the CCD camera 2 captures images, the three-dimensional mobile platform 4 can drive the camera and the fixture to move in the three coordinate axes of XYZ, the screen clamping fixture 5 fixes the screen, the console 6 controls the three-dimensional mobile platform and the display, and the display 7 displays the captured images of the screen and the defect detection results. The console 6 is connected to the mobile platform 4 and the CCD camera 2, the CCD camera 2 and the upper light source 1 are clamped together on the Z axis, and the lower light source 3 is placed below the screen clamping fixture 5.
[0125] The light source can be a white light source, or different monochromatic LED light sources can be used for different color screens.
[0126] Industrial cameras can be CCD area scan cameras and CCD line scan cameras.
[0127] ② Image preprocessing unit: used to process the image of the photovoltaic printing screen to be tested obtained by the image acquisition unit, and measure dynamic parameters including opening width, mesh width and steel wire inclination.
[0128] ③ Grid line extraction unit: The grid lines of common photovoltaic printing screens are divided into vertical grid lines, wavy grid lines and patterned grid lines, and are extracted separately using Blob analysis and finally combined together.
[0129] ④ Defect detection unit: Based on several common surface defects, Blob analysis is performed and feature screening is performed to extract different defects. During the extraction process, the number, type, area and other features of the defects are counted.
[0130] ⑤ Defect display unit: The control console displays the test results and analysis and statistical results on the display screen, making it easier for staff to handle or repair the defects.
[0131] To facilitate understanding of the technical solution of the present invention, specific embodiments are given below to introduce the technical solution of the present invention in detail:
[0132] like Figure 4 This is a partial enlargement of a typical silk screen screen photo taken under a lower light source, which consists of grid lines, steel wires, and latex layers.
[0133] The grid line is Figure 4 The medium white area is light-transmissive, so the biggest feature of this area in the image is its high grayscale value, which visually appears bright white.
[0134] Steel wire Figure 4 The medium black grid is called steel wire, which is opaque, so the characteristic of this area in the image is that it has a low grayscale value and appears pure black visually.
[0135] The latex layer is Figure 4 The middle gray area is the latex layer, and its light transmittance is between the two.
[0136] Common defects of photovoltaic printing screens are:
[0137] 1. Network blocking: This defect is the most common and most important, and will directly affect the conductivity of printed solar cells. Figure 5 The part in the frame shown is a blocking defect. The non-steel wire part of the white grid line is called blocking.
[0138] 2. Dirty; Figure 6 As shown in the framed areas in the two small pictures (a) and (b), the defect is not in the grid line area and affects the grayscale value of the latex layer.
[0139] 3. Broken wire means the steel wire is disconnected. Figure 7 Shown in the framed area.
[0140] 4. Pinholes are when the latex layer breaks, allowing light to pass through, causing non-gridline areas to have particularly high grayscale values.
[0141] In a specific embodiment, measuring some dynamic parameters of the screen specifically includes:
[0142] Measured parameters:
[0143] The average grayscale value of the collected image: used to determine whether the lighting conditions of the image meet the measurement requirements. If the average grayscale value of the upper light source image is between 60-160, the upper light source image meets the measurement requirements. If the average grayscale value of the lower light source image is between 30-140, the lower light source image meets the measurement requirements. Images that do not meet the measurement requirements need to be recollected.
[0144] Mesh width: defined as the pixel width of a single grid in the screen.
[0145] Wire width.
[0146] Among them, mesh width and wire width are widely used as parameters in the subsequent morphological operations of defect detection. For example, mesh width is often used as a parameter of morphological operations in the detection of dirt and mesh blocking defects.
[0147] Specifically, the specific steps of extracting the steel wire are: screening all black areas according to the gray value 0-100, and then using a rectangular mask of size (length, width) to perform an opening operation on the target area. Among them, the opening operation is a common technical means in Blob analysis.
[0148] To extract horizontal steel wires, a rectangular mask (steel wire width*2, 1) whose length is greater than its width can be used. To extract vertical steel wires, a rectangular mask (1, steel wire width*2) whose width is greater than its length can be used.
[0149] More specifically, the steel wire inclination parameter is used in the steel wire extraction process. Because in the broken wire detection, the steel wires in a single direction are extracted separately for endpoint detection. For example, all the horizontal steel wires are extracted at one time for endpoint detection to determine whether there are broken wires in the horizontal direction, and then the vertical steel wires are detected in the same steps. Some types of screens are not 90 degrees horizontal and vertical, but have a certain angle. This is not convenient for extracting steel wires in a single direction using the above method. For example, after measuring the angle of the steel wire, the image can be rotated by the same angle to make the steel wire horizontal and vertical. The above method can be used to extract steel wires in a single direction.
[0150] Figure 8 : is a schematic diagram of a photovoltaic printing screen defect detection system provided by an embodiment of the present invention. Figure 8 As shown, including:
[0151] The image determination unit 810 is used to determine the image of the photovoltaic printing screen under two light sources; the two light sources are: an upper light source located directly above the photovoltaic printing screen and a lower light source located directly below the photovoltaic printing screen; the image under the upper light source is a reflective illumination image, and the image under the lower light source is a transmissive illumination image; the photovoltaic printing screen may have defects, and the defects include: pinholes, mesh blockage, dirt and broken wires; the mesh blockage occurs in the grid line area; the broken wire refers to the disconnection of the steel wire of the printing screen;
[0152] A dynamic parameter measuring unit 820 is used to measure the dynamic parameters of the photovoltaic printing screen based on the lower light source image, wherein the dynamic parameters include: mesh width, steel wire width and steel wire inclination; the mesh width refers to the pixel width of a single grid in the photovoltaic printing screen;
[0153] The grid line extraction unit 830 is used to perform Blob analysis on the lower light source image, extract the continuous area with the highest gray value in the lower light source image, and use it as the grid line of the photovoltaic printing screen;
[0154] The pinhole detection unit 840 is used to remove the grid lines in the lower light source image based on the extracted grid lines, and analyze the highlight area information on the lower light source image after the grid lines are removed to perform pinhole detection; wherein, when the area of a certain highlight area exceeds a preset area, it is considered that the area corresponds to a pinhole;
[0155] The blocking network detection unit 850 is used to use the extracted grid lines to crop the lower light source image to generate a first grayscale image containing only the grid lines, and use Blob analysis to extract the blocking network in the first grayscale image containing only the grid lines, and subtract the two grayscale images corresponding to the upper light source image and the lower light source image to obtain the subtracted grayscale image, and crop the subtracted grayscale image using the extracted grid lines to generate a second grayscale image containing only the grid lines, and perform Blob analysis on the second grayscale image containing only the grid lines to further extract the blocking network that may be missed in the two images; the grayscale image containing only the grid lines is a grayscale image in which the pixel values of other areas of the image except the grid line area are 0;
[0156] A dirt detection unit 860 is used to remove the grid lines in the lower light source image and the upper light source image based on the extracted grid lines, and to perform Blob analysis on the two images after the grid lines are removed to detect dirt on the screen based on the mesh width;
[0157] The broken wire detection unit 870 is used to remove the grid lines in the lower light source image based on the extracted grid lines, detect the steel wires in the lower light source image after removing the grid lines according to the steel wire width and the steel wire inclination, and use Blob analysis to detect broken wires on the edges of the steel wires.
[0158] Understandably, Figure 8 The detailed functional implementation of each unit in the method can be found in the introduction of the aforementioned method embodiment, which will not be repeated here.
[0159] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A photovoltaic printing screen defect detection method, characterized in that: The steps include: Determine the image of the photovoltaic printing screen under two light sources; the two light sources are: an upper light source located directly above the photovoltaic printing screen and a lower light source located directly below the photovoltaic printing screen; the image under the upper light source is a reflective illumination image, and the image under the lower light source is a transmissive illumination image; The photovoltaic printing screen may have defects, including pinholes, screen blockage, dirt and wire breakage; the screen blockage occurs in the grid line area; the wire breakage refers to the disconnection of the steel wire of the printing screen; Measuring the dynamic parameters of the photovoltaic printing screen based on the lower light source image, wherein the dynamic parameters include: mesh width, steel wire width and steel wire inclination; the mesh width refers to the pixel width of a single grid in the photovoltaic printing screen; Perform Blob analysis on the lower light source image, extract the continuous area with the highest gray value in the lower light source image, and use it as the grid line of the photovoltaic printing screen; Removing the grid lines in the lower light source image based on the extracted grid lines, and analyzing the highlight area information on the lower light source image after the grid lines are removed to perform pinhole detection; wherein, when the area of a certain highlight area exceeds a preset area, it is considered that the area corresponds to a pinhole; The lower light source image is cropped by using the extracted grid lines to generate a first grayscale image containing only the grid lines, and the blocking network in the first grayscale image containing only the grid lines is extracted by using Blob analysis, and the two grayscale images corresponding to the upper light source image and the lower light source image are subtracted to obtain the subtracted grayscale image, and the subtracted grayscale image is cropped by using the extracted grid lines to generate a second grayscale image containing only the grid lines, and the second grayscale image containing only the grid lines is subjected to Blob analysis to further extract the blocking network that may be missed in the two images; the grayscale image containing only the grid lines is a grayscale image in which the pixel values of other areas of the image except the grid line area are 0; Removing the grid lines in the lower light source image and the upper light source image based on the extracted grid lines, and performing Blob analysis on the two images after the grid lines are removed based on the mesh width to detect dirt on the screen; The grid lines in the lower light source image are removed based on the extracted grid lines, and the steel wires in the lower light source image after the grid lines are removed are detected according to the steel wire width and the steel wire inclination, and the broken wire detection is performed on the steel wire edge using Blob analysis.
2. The method according to claim 1, characterized in that Use Blob analysis to extract blocked networks in images, specifically: Extracting a region in the image where the grayscale value is less than a first preset value; If the height of the extracted area is greater than the preset pixel and the area is greater than the mesh width, the area is considered to be a blocked mesh where the grid line and the steel line meet; If the area of the extracted region is larger than the mesh width and the radius of the inscribed circle is larger than the preset radius, the region is considered to be a blocked mesh inside the grid line; If the width of the extracted area is between the preset widths, the height is between the first preset heights, and the compactness is less than the threshold, the area is considered to be a grid-line edge blocking network.
3. The method according to claim 1, characterized in that Perform Blob analysis on the image to detect screen dirtiness, specifically: After the grid lines in the image are determined, according to the position information of the grid lines in the image, the area in the image whose distance from the grid lines is less than a preset distance is set as a near-grid area, and the area whose distance from the grid lines is greater than the preset distance is set as a far-grid area; After removing the steel wires in the near-grid region according to the steel wire width and the steel wire inclination, a first steel wire-removed image is obtained, and grayscale threshold segmentation is used to extract a first suspected dirty region with a grayscale value less than a second preset value from the first steel wire-removed image; If the height of the first suspected dirty area is between the second preset height and the area is larger than the mesh width, it is regarded as the dirt in the near-grid area; After removing the steel wires in the far grid area according to the steel wire width and the steel wire inclination, a second steel wire-removed image is obtained, and grayscale threshold segmentation is used to extract a second suspected dirty area whose grayscale value is less than a third preset value from the second steel wire-removed image; wherein the third preset value is the grayscale value corresponding to the trough after grayscale histogram statistics are performed on the second steel wire-removed image; If the area of the second suspected dirty region is larger than twice the mesh width, it will be regarded as dirt in the far grid area.
4. The method according to claim 1, characterized in that: Blob analysis is used to detect broken wires at the edge of the steel wire, specifically: If the edge of the steel wire is located inside the image, the edge area is considered to be a broken wire; the inside of the image refers to an area that is a preset pixel away from the wide side and the narrow side of the image.
5. The method according to claim 1, characterized in that Perform Blob analysis on the lower light source image, extract the continuous area with the highest gray value in the lower light source image, and use it as the grid line of the photovoltaic printing screen. Specifically: A grayscale value closing operation is performed on the lower light source image using a rectangular structure element, and then a grayscale threshold segmentation is performed to extract a region where the grayscale value is greater than a preset value, to obtain a first coarse grid region; a grayscale value closing operation is performed on the lower light source image using a hexagonal structure element, and then a grayscale threshold segmentation is performed to extract a region where the grayscale value is greater than a preset value, to obtain a second coarse grid region; and a grayscale threshold segmentation is performed on the lower light source image to obtain a third coarse grid region; wherein the coarse grid region refers to a rough grid line region; Performing grayscale value closing operation, grayscale threshold segmentation, closing operation and opening operation on the first coarse gate area in sequence to obtain a vertical gate line; Using the third coarse grid area to perform grayscale value difference on the vertical grid lines to preliminarily obtain wavy grid lines, and reshaping the preliminarily obtained wavy grid lines by skeleton extraction to obtain final wavy grid lines; Using the second rough gate region, grayscale value difference is performed on the vertical gate line and the final wavy gate line to obtain patterned gate lines; the patterned gate lines refer to gate lines other than the vertical gate lines and the wavy gate lines; The vertical grid lines, the wavy grid lines and the patterned grid lines are combined to obtain a combined grid line area; and the grayscale features of the combined grid line area are extracted to obtain the grid lines of the photovoltaic printing screen.
6. A photovoltaic printing screen defect detection system, characterized in that: include: An image determination unit is used to determine the image of the photovoltaic printing screen under two light sources; the two light sources are: an upper light source located directly above the photovoltaic printing screen and a lower light source located directly below the photovoltaic printing screen; the image under the upper light source is a reflective illumination image, and the image under the lower light source is a transmissive illumination image; The photovoltaic printing screen may have defects, including pinholes, screen blockage, dirt and wire breakage; the screen blockage occurs in the grid line area; the wire breakage refers to the disconnection of the steel wire of the printing screen; A dynamic parameter measurement unit, used to measure the dynamic parameters of the photovoltaic printing screen based on the lower light source image, the dynamic parameters including: mesh width, steel wire width and steel wire inclination; the mesh width refers to the pixel width of a single grid in the photovoltaic printing screen; A grid line extraction unit is used to perform Blob analysis on the lower light source image, extract the continuous area with the highest grayscale value in the lower light source image, and use it as the grid line of the photovoltaic printing screen; A pinhole detection unit, used to remove the grid lines in the lower light source image based on the extracted grid lines, and analyze the highlight area information on the lower light source image after the grid lines are removed to perform pinhole detection; wherein, when the area of a certain highlight area exceeds a preset area, it is considered that the area corresponds to a pinhole; A network blocking detection unit is used to use the extracted grid lines to crop the lower light source image to generate a first grayscale image containing only the grid lines, and use Blob analysis to extract the network blocking in the first grayscale image containing only the grid lines, and subtract the two grayscale images corresponding to the upper light source image and the lower light source image to obtain the subtracted grayscale image, and use the extracted grid lines to crop the subtracted grayscale image to generate a second grayscale image containing only the grid lines, and perform Blob analysis on the second grayscale image containing only the grid lines to further extract the network blocking that may be missed in the two images; the grayscale image containing only the grid lines is a grayscale image in which the pixel values of other areas of the image except the grid line area are 0; A dirt detection unit, used for removing the grid lines in the lower light source image and the upper light source image based on the extracted grid lines, and performing Blob analysis on the two images after the grid lines are removed based on the mesh width to detect dirt on the screen; The broken wire detection unit is used to remove the grid lines in the lower light source image based on the extracted grid lines, detect the steel wires in the lower light source image after removing the grid lines according to the steel wire width and the steel wire inclination, and perform broken wire detection on the steel wire edge using Blob analysis.
7. The system according to claim 6, characterized in that The blocking network detection unit extracts the area in the image whose grayscale value is less than a first preset value; if the height of the extracted area is greater than the preset pixel and the area is greater than the mesh width, the area is considered to be a blocking network at the junction of the grid line and the steel wire; if the area of the extracted area is greater than the mesh width and the radius of the inscribed circle is greater than the preset radius, the area is considered to be a blocking network inside the grid line; and if the width of the extracted area is between the preset widths, the height is between the first preset height, and the compactness is less than a threshold, the area is considered to be a blocking network at the edge of the grid line.
8. The system according to claim 6, characterized in that After the dirt detection unit determines the grid lines in the image, the area in the image that is less than a preset distance from the grid lines is set as a near-grid area, and the area that is greater than the preset distance is set as a far-grid area according to the position information of the grid lines in the image; after removing the steel wires in the near-grid area according to the steel wire width and the steel wire inclination, a first steel wire-removed image is obtained, and a first suspected dirt area with a grayscale value less than a second preset value is extracted from the first steel wire-removed image; if the height of the first suspected dirt area is between the second preset height and the area is larger than the eye width, it is regarded as dirt in the near-grid area; after removing the steel wires in the far-grid area according to the steel wire width and the steel wire inclination, a second steel wire-removed image is obtained, and a second suspected dirt area with a grayscale value less than a third preset value is extracted from the second steel wire-removed image using grayscale threshold segmentation; wherein the third preset value is the grayscale value corresponding to the trough after grayscale histogram statistics are performed on the second steel wire-removed image; and if the area of the second suspected dirt area is larger than twice the eye width, it is regarded as dirt in the far-grid area.
9. The system according to claim 6, characterized in that The broken wire detection unit uses Blob analysis to detect broken wires on the edge of the steel wire. Specifically, if the edge of the steel wire is located inside the image, the edge area is considered to be a broken wire; the inside of the image refers to an area that is a preset pixel away from the wide side and the narrow side of the image.
10. The system according to claim 6, characterized in that The grid line extraction unit extracts the continuous area with the highest grayscale value in the lower light source image and uses it as the grid line of the photovoltaic printing screen, specifically: using a rectangular structure element to perform a grayscale value closing operation on the lower light source image, and then performing grayscale threshold segmentation to extract the area with a grayscale value greater than a preset value to obtain a first coarse grid area; using a hexagonal structure element to perform a grayscale value closing operation on the lower light source image, and then performing grayscale threshold segmentation to extract the area with a grayscale value greater than a preset value to obtain a second coarse grid area; performing grayscale threshold segmentation on the lower light source image to obtain a third coarse grid area; wherein the coarse grid area refers to a rough grid line area; grayscale value closing operations are performed on the first coarse grid area in sequence The invention relates to a method for obtaining a vertical gate line by performing grayscale value difference on the vertical gate line using a third coarse gate area to preliminarily obtain a wavy gate line, and reshaping the preliminarily obtained wavy gate line by skeleton extraction to obtain a final wavy gate line; the vertical gate line and the final wavy gate line are subjected to grayscale value difference on the second coarse gate area to obtain a patterned gate line; the patterned gate line refers to a gate line other than the vertical gate line and the wavy gate line; and the vertical gate line, the wavy gate line and the patterned gate line are merged to obtain a merged gate line area; and the grayscale features of the merged gate line area are extracted to obtain the gate lines of the photovoltaic printing screen.
