A method, device, storage medium and product for online defect detection of copper clad laminate production line
Through polarization differential imaging technology and deep learning models, combined with Mask-RCNN and SSD algorithms, efficient detection of surface defects in copper clad laminates is achieved, which solves the problem of high false detection rate of traditional detection methods and improves the efficiency and productivity of the production line.
Patent Information
- Application Number
- CN202410276386.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-12
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-03-12
AI Technical Summary
The traditional copper-clad laminate detection method has a high false detection rate, which leads to the addition of manual re-inspection processes in the later stage, resulting in low efficiency and insufficient production capacity.
Using polarization differential imaging technology combined with a deep learning model, the Mask-RCNN algorithm is used to identify copper-clad areas, the SSD algorithm is used to identify defects, and high-speed image acquisition and moving average filtering algorithms are used for image processing to achieve real-time detection of surface defects in copper-clad boards.
It effectively reduces the false detection rate, improves detection efficiency, reduces the need for manual re-inspection, and increases the production capacity of the production line.
Smart Images

Figure CN117974629B
Abstract
Description
Technical Field
[0001] The present invention relates to an online detection method for a copper clad laminate production line, and in particular to an online defect detection method, device, storage medium and product for a copper clad laminate production line. Background Art
[0002] Copper clad laminate is the upstream core material of PCB manufacturing. It is a plate-shaped material made by impregnating electronic glass fiber cloth or other reinforcing materials with resin, covering one or both sides with copper foil and hot pressing. It accounts for about 20% to 40% of the production cost of PCB and has a strong interdependence with PCB.
[0003] During the production process of copper clad laminates, the base material (prepreg) will have impurities, fish eyes, stripes, convex particles, and the board will have bright concave, scratches, wrinkles, bulges and other defects. Currently, CCD technology is used for initial testing, and then re-inspected by on-site inspectors. Machine vision detection technology is currently widely used. Through machine vision, the false detection rate is high, which seriously affects the production capacity of the workshop. Summary of the invention
[0004] In order to solve the problem that the above-mentioned traditional camera detection of copper clad laminates will produce a large false detection rate, resulting in the addition of manual re-inspection procedures in the later stage, low efficiency and insufficient production capacity, the present invention provides an online defect detection method for a copper clad laminate production line, and the specific technical solution is as follows:
[0005] A method for online defect detection of a copper clad laminate production line comprises the following steps:
[0006] Step 1: High-speed image acquisition: install several polarizers and linear array camera modules with different angles at the inspection station. The linear array camera module combines with the production line encoder to perform high-frequency image acquisition on the copper-clad laminate transferred to the inspection station.
[0007] Step 2: image fusion and processing: images are fused by position information. Moving average filtering algorithm of previous and next frame images is used to filter noise during fusion. All frames are averaged to obtain an average image, and the average image is re-labeled with data.
[0008] Step 3: Use the Mask-RCNN algorithm model to identify the copper-clad area;
[0009] Step 4: Use the SSD algorithm model to identify defects;
[0010] Step 5: Mark defect information and location;
[0011] Step 6: Whether it exceeds the threshold, if so, go to step 7, otherwise return to step 4;
[0012] Step 7: Record defect information and location;
[0013] Step 8: Check if the test is complete. If so, go to step 9; otherwise, return to step 4.
[0014] Step 9: Leveling assessment.
[0015] Preferably, the image acquisition rate in step 1 is more than 10 times greater than the running speed of the copper clad laminate.
[0016] Preferably, the moving average filtering algorithm in step 2 is:
[0017] ;
[0018] In the formula, It is the pixel value at the t-frame time obtained by moving average filtering of the T-frame images before and after the t-frame time;
[0019] is the pixel value at time t';
[0020] T represents the number of frames taken by the moving average filter.
[0021] Preferably, in step 3, the size of the copper clad laminate is obtained by the production line controller to obtain the copper clad laminate template to be tested, and the data set of the copper clad laminate edge image is trained to obtain the Mask-RCNN algorithm model, including the following steps:
[0022] Step 3.1, collect the edge pictures of copper clad laminates, use the LabelImage image annotation tool to manually annotate the copper clad laminate area, and manually anchor points along the edge contour area, expand the data set by image rotation, translation, cropping, and blurring, and divide the data set into a test set and a training set;
[0023] 3.2. Build a Mask-RCNN convolutional neural network, use the FPN structure to obtain multi-scale feature maps as the input of the region generation network, generate anchor boxes, perform classification and rectangular box positioning, and finally obtain the binary mask of the target instance. The backbone network uses the Resnet-101 network structure;
[0024] 3.3. Set the initial hyperparameters and number of iterations of the model. Set the number of iterations to 5000~10000 times, and the parameter update method is the small batch gradient descent method. Each time the model iterates, it calculates the batch of images once, and updates the hyperparameters of the model by feeding back the loss value of the loss function and calculating the hyperparameter difference.
[0025] The loss function is:
[0026]
[0027] In the formula: mask is the template;
[0028] MAE is the mean absolute error between the calculated template and the sampled copper clad laminate image, and the constraint term is the smoothing of the offset map;
[0029] Tv(offset) is a constraint term, which uses the TV algorithm with denoising and smoothing;
[0030] offset is the offset set in the loss function.
[0031] 3.4. Use the labeled copper clad plate area dataset and input it into the Mask-RCNN algorithm model for training, and adjust the learning rate during the training process;
[0032] 3.5 Save the Mask-RCNN model when the number of iterations reaches 5000, 10000, and 15000 respectively, and obtain the trained Mask-RCNN algorithm model based on the accuracy and loss indicators.
[0033] Furthermore, the use of the Mask-RCNN algorithm model to identify the copper-clad area includes the following steps:
[0034] 3.6. The image obtained in step 2 is input into the backbone network Resnet-101 of the Mask-RCNN algorithm model to generate Feature Maps of different sizes;
[0035] 3.7. Generate an RPN network in the candidate area, generate the copper clad laminate candidate area Roi on all feature maps of different sizes, generate the confidence of the candidate area, perform non-maximum suppression NMS operation on the confidence, and obtain the final copper clad laminate candidate area;
[0036] 3.8. Any candidate area of the copper clad board is mapped to the corresponding position of the Feature Map through the Roi pooling layer, and the Roi area is RoiAligned to obtain a feature map of a fixed size. Then, a feature vector of a fixed dimension is extracted from each input feature map through the fully connected layer;
[0037] 3.9. First, input the Feaure Map into the Softmax classification layer to determine whether the target is the copper clad laminate area, then input it into the boundary regression layer to realize the prediction function of the Roi coordinates, and finally input it into the Mask generation layer to perform the FCN full convolutional neural network operation on each Roi feature map to obtain the segmented copper clad laminate contour area.
[0038] Preferably, the step 4 includes the following steps when using the SSD algorithm model to identify defects:
[0039] 4.1. Collect surface defect images, manually annotate them using the LabelImage software, and use image translation, rotation, mirroring, cropping, and blurring to expand the data set, and divide the data set into a training set and a test set;
[0040] 4.2. Build the SSD algorithm model. SSD uses the anchor mechanism candidate box to detect Softmax classification and position classification on multiple feature maps at the same time;
[0041] 4.3. Use the labeled defect data set to input into the constructed SSD algorithm model for training, and adjust the learning rate during the training process;
[0042] 4.4. Save the SSD model when the number of iterations reaches 10,000, 20,000, 30,000, and 40,000 respectively, and obtain the trained SSD algorithm model based on the accuracy, precision, and recall rate;
[0043] 4.5. Use the trained SSD algorithm model to detect defective elements and obtain the position coordinates of the defects. The image stream defect detection results are clustered according to the four-tuple of x, y, w, and h. The detection confidence of similar results is added and the detection box is averaged.
[0044] 4.6. The detection results are processed using the non-maximum suppression algorithm. The defects whose intersection-over-union ratio exceeds the threshold are merged, the detection frames are taken as the union, and the defects whose confidence is less than the threshold are eliminated. The remaining defects are the final detection results.
[0045] Preferably, in step 5, when all the copper-clad boards move out of the detection area, the number and area of defects of the board are counted, the quality of the board is evaluated, and the weighing abnormality information is recorded in the database.
[0046] A device for an online defect detection method for a copper clad laminate production line comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the above-mentioned online defect detection method for a copper clad laminate production line.
[0047] A computer-readable storage medium stores a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned method for online defect detection of a copper clad laminate production line.
[0048] A computer program product includes a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned method for online defect detection of a copper clad laminate production line.
[0049] Compared with the prior art, the present invention has the following beneficial effects:
[0050] An online defect detection method for a copper clad laminate production line provided by the present invention utilizes the principle of polarization differential imaging, applies a deep learning model, identifies copper clad laminates based on a Mask-RCNN algorithm model, and adopts an SSD algorithm model to obtain high-quality detection results, thereby ensuring that all surface defects of the copper clad laminates that should be inspected are inspected. The surface defects of the copper clad laminates on the production line can be analyzed in real time, and surface quality defects such as bright concave, scratches, wrinkles, and protrusions can be detected. Defects can be effectively identified, the efficiency of the detection section of the production line and production capacity can be increased, and the manpower burden caused by manual re-inspection can be greatly reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a flow chart of this application. DETAILED DESCRIPTION
[0052] The present invention will be further described with reference to the accompanying drawings.
[0053] A method for online defect detection of copper clad laminate production line uses a linear array camera module with a multi-angle polarized lens installed at the finished product detection position to collect high-speed continuous images of copper clad laminates, generate pictures in time series, extract the pictures frame by frame, align the frames, and then fuse the pictures; use Mask-RCNN to detect and segment the collected copper clad laminates, and save the segmentation results as pictures; use the SSD algorithm model to identify the location information of the defects, predict the defects through characteristic discrimination, and avoid the errors of multiple inspections, missed inspections and false inspections randomly generated by time series prediction through spatiotemporal aggregation; when the confidence is greater than the system set threshold, the system automatically records and evaluates the quality of the copper clad laminates, and stores the detection abnormality information in the database. This method can analyze the surface defects of the copper clad laminates on the production line in real time, detect surface quality defects such as bright concave, scratches, wrinkles, and bulges, can effectively identify defects, increase the efficiency and production capacity of the production line inspection section, and greatly reduce the manpower load caused by manual re-inspection.
[0054] like Figure 1 As shown, a method for online defect detection of a copper clad laminate production line comprises the following steps:
[0055] Step 1: Install three polarizers and linear array camera modules with different angles at the inspection station. The linear array camera module combines with the production line encoder to perform high-frequency image acquisition on the copper-clad laminate that flows to the inspection station. The acquisition rate is more than 10 times the running speed of the copper-clad laminate to ensure that each point is acquired multiple times. Each image is represented by a three-element array e= (x, p, t). x represents the encoder position when the image is taken; p represents the camera module position; t represents the timestamp when the image is taken;
[0056] Step 2: image fusion and processing: images are fused by position information. Moving average filtering algorithm of previous and next frame images is used to filter noise during fusion. All frames are averaged to obtain an average image, and the average image is re-labeled with data.
[0057] Moving average filtering algorithm described in step 2:
[0058] ;
[0059] In the formula, It is the pixel value at the t-frame time obtained by moving average filtering of the T-frame images before and after the t-frame time;
[0060] is the pixel value at time t';
[0061] T represents the number of frames taken by the moving average filter.
[0062] Step 3: Use the Mask-RCNN algorithm model to identify the copper-clad area;
[0063] The size of the copper clad laminate is obtained through the production line controller to obtain the copper clad laminate template to be tested, and the data set of copper clad laminate edge images is trained to obtain the Mask-RCNN algorithm model. The specific steps are as follows:
[0064] Step 3.1, collect the edge pictures of copper clad laminates, use the LabelImage image annotation tool to manually annotate the copper clad laminate area, and manually anchor points along the edge contour area, expand the data set by image rotation, translation, cropping, and blurring, and divide the data set into a test set and a training set at a ratio of 9:1;
[0065] 3.2. Build a Mask-RCNN convolutional neural network, use the FPN structure to obtain multi-scale feature maps as the input of the region generation network, generate anchor boxes, perform classification and rectangular box positioning, and finally obtain the binary mask of the target instance. The backbone network uses the Resnet-101 network structure;
[0066] 3.3. Set the initial hyperparameters of the model, the number of iterations, set the number of iterations to 5000~10000, the parameter update method is the small batch gradient descent method (MBGD), and the batch size (batch size) is 16; each iteration model calculates the batch of images once, and updates the hyperparameters of the model by feeding back the loss value of the loss function and calculating the hyperparameter difference;
[0067] The loss function is:
[0068]
[0069] In the formula: mask is the template;
[0070] MAE is the mean absolute error between the calculated template and the sampled copper clad laminate image, and the constraint term is the smoothing of the offset map;
[0071] Tv(offset) is a constraint term, which uses the TV algorithm with denoising and smoothing;
[0072] offset is the offset set in the loss function.
[0073] 3.4. Use the labeled copper clad plate area dataset and input it into the Mask-RCNN algorithm model for training, and adjust the learning rate during the training process;
[0074] 3.5 Save the Mask-RCNN model when the number of iterations reaches 5000, 10000, and 15000 respectively. According to the accuracy and loss indicators, the trained Mask-RCNN algorithm model is obtained, and the training results are shown in Table 1.
[0075] Table 1 Mask-RCNN model training results
[0076]
[0077] Table 1 shows that the accuracy is higher when the training times is 10,000, so the model saved when the training times is 10,000 is used to extract the contour of the copper clad board area.
[0078] The trained Mask-RCNN algorithm model is used to detect the copper clad board area, which is divided into four steps:
[0079] 3.6. The image obtained in step 2 is input into the backbone network Resnet-101 of the Mask-RCNN algorithm model to generate Feature Maps of different sizes;
[0080] 3.7. Generate an RPN network in the candidate area, generate the copper clad laminate candidate area Roi on all feature maps of different sizes, generate the confidence of the candidate area, perform non-maximum suppression NMS operation on the confidence, and obtain the final copper clad laminate candidate area;
[0081] 3.8. RoiAlign uses bilinear interpolation to eliminate the errors generated during the pooling operation. Any candidate area of the copper clad board is mapped to the corresponding position of the Feature Map through the Roi pooling layer. The Roi area is subjected to the RoiAlign operation to obtain a feature map of a fixed size. Then, a feature vector of a fixed dimension is extracted from each input feature map through the fully connected layer.
[0082] 3.9. First, input the Feaure Map into the Softmax classification layer to determine whether the target is the copper clad laminate area, then input it into the boundary regression layer to realize the prediction function of the Roi coordinates, and finally input it into the Mask generation layer to perform the FCN full convolutional neural network operation on each Roi feature map to obtain the segmented copper clad laminate contour area.
[0083] Step 4: Use the SSD algorithm model to identify defects;
[0084] The SSD convolutional neural network is used to identify surface quality defect information and locations, including the following steps:
[0085] 4.1. Collect surface defect images, manually annotate them using the LabelImage software, and use image translation, rotation, mirroring, cropping, and blurring to expand the dataset. The dataset is divided into a training set and a test set according to a 16:2 ratio.
[0086] 4.2. Build the SSD algorithm model. SSD uses the anchor mechanism candidate box to detect Softmax classification and position classification on multiple feature maps at the same time;
[0087] 4.3. Use the labeled defect data set to input into the constructed SSD algorithm model for training, and adjust the learning rate during the training process;
[0088] 4.4. Save the SSD model when the number of iterations reaches 10,000, 20,000, 30,000, and 40,000 respectively, and obtain the trained SSD algorithm model based on the accuracy, precision, and recall rate;
[0089] 4.5. Use the trained SSD algorithm model to detect defective elements and obtain the position coordinates of the defects. The image stream defect detection results are clustered according to the four-tuple of x, y, w, and h. The detection confidence of similar results is added and the detection box is averaged.
[0090] 4.6. The detection results are processed using the non-maximum suppression algorithm. The defects whose intersection-over-union ratio exceeds the threshold are merged, the detection frames are taken as the union, and the defects whose confidence is less than the threshold are eliminated. The remaining defects are the final detection results.
[0091] Step 5: Mark defect information and location;
[0092] When all copper-clad laminates move out of the inspection area, the number and area of defects on the board are counted, the quality of the board is evaluated, and the weighing abnormality information is recorded in the database.
[0093] Step 6: Whether it exceeds the threshold, if so, go to step 7, otherwise return to step 4;
[0094] Step 7: Record defect information and location; insert time series-based inspection logs into the BDB database for future query;
[0095] Step 8: Check if the test is complete. If so, go to step 9; otherwise, return to step 4.
[0096] Step 9: Leveling assessment.
[0097] Compared with the prior art, this method has the following significant advantages:
[0098] (1) The Mask-RCNN algorithm model is used to detect the surface of copper clad laminates. Compared with traditional images, it is not affected by changes in light intensity and can accurately identify the contours of copper clad laminates of different sizes.
[0099] (2) The SSD algorithm model is used to identify surface quality defects. The image processing time is in milliseconds, which is more in line with real-time requirements than traditional image processing.
[0100] (3) Based on the recognition results of the SSD algorithm model, the defect threshold is set to obtain evaluation results of different qualities and guide the sorting system to perform sorting.
[0101] (4) Compared with traditional visual inspection, it reduces the design cost of manual analysis of defect characteristics and the maintenance cost of new defects.
[0102] A device for an online defect detection method for a copper clad laminate production line comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the above-mentioned online defect detection method for a copper clad laminate production line.
[0103] A computer-readable storage medium stores a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned method for online defect detection of a copper clad laminate production line.
[0104] A computer program product includes a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned method for online defect detection of a copper clad laminate production line.
[0105] The memory and the processor are electrically connected directly or indirectly to achieve data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines, such as through a bus connection. The memory stores computer-executable instructions for implementing the data access control method, including at least one software function module that can be stored in the memory in the form of software or firmware. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory.
[0106] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory is used to store programs, and the processor executes the programs after receiving the execution instruction.
[0107] The processor may be an integrated circuit chip having the ability to process signals. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0108] The embodiments of the present invention are described with reference to flowcharts of methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate means for implementing the functions specified in the flowchart and / or.
[0109] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in the flowchart.
[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operation steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, whereby the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in the flowchart.
[0111] The technical principle of the present invention is described above in conjunction with specific embodiments. These descriptions are only for explaining the principle of the present invention and cannot be interpreted as limiting the protection scope of the present invention in any way. Based on the explanations herein, those skilled in the art can associate other specific implementations of the present invention without paying creative labor, and these methods will fall within the protection scope of the claims of the present invention.
Claims
1. A method for online defect detection of a copper clad laminate production line, characterized in that: The following steps are involved: Step 1: High-speed image acquisition: install several polarizers and linear array camera modules with different angles at the inspection station. The linear array camera module combines with the production line encoder to perform high-frequency image acquisition on the copper-clad board transferred to the inspection station. Generate pictures in time series, extract the pictures frame by frame and align them between frames. Each image is represented by a three-element array e=(x,p,t); x represents the encoder position when the image is taken; p represents the camera module position; and t represents the timestamp when the image is taken. Step 2: image fusion and processing: images are fused by position information. Moving average filtering algorithm of previous and next frame images is used to filter noise during fusion. All frames are averaged to obtain an average image, and the average image is re-labeled with data. Step 3: Identify the copper-clad area; Step 4: Identify defects; Step 5: Mark defect information and location; Step 6: Whether it exceeds the threshold, if so, go to step 7, otherwise return to step 4; Step 7: Record defect information and location; Step 8: Check if the test is complete. If so, go to step 9; otherwise, return to step 4. Step 9: Leveling assessment; In step 3, the size of the copper clad laminate is obtained through the production line controller to obtain the copper clad laminate template to be tested, and the data set of the copper clad laminate edge image is trained to obtain the Mask-RCNN algorithm model, including the following steps: Step 3.1, collect the edge pictures of copper clad laminates, use the LabelImage image annotation tool to manually annotate the copper clad laminate area, and manually anchor points along the edge contour area, expand the data set by image rotation, translation, cropping, and blurring, and divide the data set into a test set and a training set; 3.
2. Build a Mask-RCNN convolutional neural network, use the FPN structure to obtain multi-scale feature maps as the input of the region generation network, generate anchor boxes, perform classification and rectangular box positioning, and finally obtain the binary mask of the target instance. The backbone network uses the Resnet-101 network structure; 3.
3. Set the initial hyperparameters and number of iterations of the model. Set the number of iterations to 5000~10000 times, and the parameter update method is the small batch gradient descent method. Each time the model iterates, it calculates the batch of images once, and updates the hyperparameters of the model by feeding back the loss value of the loss function and calculating the hyperparameter difference. The loss function is: ; In the formula: mask is the template; MAE is the mean absolute error between the calculated template and the sampled copper clad laminate image, and the constraint term is the smoothing of the offset map; Tv(offset) is a constraint term, which uses the TV algorithm with denoising and smoothing; offset is the offset set in the loss function; 3.
4. Use the labeled copper clad plate area dataset and input it into the Mask-RCNN algorithm model for training, and adjust the learning rate during the training process; 3.5 Save the Mask-RCNN model when the number of iterations reaches 5000, 10000, and 15000 respectively, and obtain the trained Mask-RCNN algorithm model based on the accuracy and loss indicators; In step 3, the Mask-RCNN algorithm model is used to identify the copper-clad area, including the following steps: 3.
6. The image obtained in step 2 is input into the backbone network Resnet-101 of the Mask-RCNN algorithm model to generate Feature Maps of different sizes; 3.
7. Generate an RPN network in the candidate area, generate the copper clad laminate candidate area Roi on all feature maps of different sizes, generate the confidence of the candidate area, perform non-maximum suppression NMS operation on the confidence, and obtain the final copper clad laminate candidate area; 3.
8. Any candidate area of the copper clad board is mapped to the corresponding position of the Feature Map through the Roi pooling layer, and the Roi area is RoiAligned to obtain a feature map of a fixed size. Then, a feature vector of a fixed dimension is extracted from each input feature map through the fully connected layer; 3.
9. First, input the Feaure Map into the Softmax classification layer to determine whether the target is the copper clad laminate area, then input it into the boundary regression layer to realize the prediction function of Roi coordinates, and finally input it into the Mask generation layer to perform FCN full convolutional neural network operation on each Roi feature map to obtain the segmented copper clad laminate contour area; In step 4, using the SSD algorithm model to identify defects includes the following steps: 4.
1. Collect surface defect images, manually annotate them using the LabelImage software, and use image translation, rotation, mirroring, cropping, and blurring to expand the data set, and divide the data set into a training set and a test set; 4.
2. Build the SSD algorithm model. SSD uses the anchor mechanism candidate box to detect Softmax classification and position classification on multiple feature maps at the same time; 4.
3. Use the labeled defect data set to input into the constructed SSD algorithm model for training, and adjust the learning rate during the training process; 4.
4. Save the SSD model when the number of iterations reaches 10,000, 20,000, 30,000, and 40,000 respectively, and obtain the trained SSD algorithm model based on the accuracy, precision, and recall rate; 4.
5. Use the trained SSD algorithm model to detect defective elements and obtain the position coordinates of the defects. The image stream defect detection results are clustered according to the four-tuple of x, y, w, and h. The detection confidence of similar results is added and the detection box is averaged. 4.
6. The detection results are processed using the non-maximum suppression algorithm. The defects whose intersection-over-union ratio exceeds the threshold are merged, the detection frames are taken as the union, and the defects whose confidence is less than the threshold are eliminated. The remaining defects are the final detection results.
2. The method for online defect detection of a copper clad laminate production line according to claim 1, characterized in that: The image acquisition rate in step 1 is more than 10 times greater than the running speed of the copper clad laminate.
3. The method for online defect detection of a copper clad laminate production line according to claim 1, characterized in that: The moving average filtering algorithm described in step 2: ; In the formula, It is the pixel value at the t-frame time obtained by moving average filtering of the T-frame images before and after the t-frame time; is the pixel value at time t'; T represents the number of frames taken by the moving average filter.
4. The method for online defect detection of a copper clad laminate production line according to claim 1, characterized in that: In step 5, when all the copper clad laminates move out of the detection area, the number and area of defects of the copper clad laminates are counted, the quality of the copper clad laminates is evaluated, and the weighing abnormality information is recorded in the database.
5. A device for online defect detection of a copper clad laminate production line, comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the online defect detection method for a copper clad laminate production line as described in claim 1.
6. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method for online defect detection of a copper clad laminate production line described in claim 1 are implemented.
7. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method for online defect detection of a copper clad laminate production line described in claim 1 are implemented.
