FPC (Flexible Printed Circuit) substrate reinforcing sheet re-pasting defect detection method based on 2D (Two-Dimensional) image
Through the improved YOLOV8 target detection network and low-angle high-brightness side lighting technology, the problem of low efficiency and insufficient accuracy in re-attachment detection of FPC substrate reinforcement sheets has been solved, and rapid and accurate detection of ultra-thin reinforcement sheets has been achieved. It reduces the detection cost and is suitable for industrial production.
Patent Information
- Application Number
- CN202410532129.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-08-23
AI Technical Summary
The existing FPC substrate reinforcement sheet re-attachment detection method is inefficient and insufficient in accuracy. Especially for ultra-thin reinforcement sheets with a thickness of less than 0.1 mm, manual inspection and traditional measurement methods have problems of inaccurate measurement and high cost.
Using a 2D image-based detection method, by constructing an improved YOLOV8 target detection network, combined with the Triplet attention mechanism and CARAFE upsampling operator, low-angle high-brightness side lighting is used to enhance shadow features to achieve single-chip and multi-chip compensation. Accurate detection of strong films.
It achieves fast and accurate detection of FPC substrate reinforcement sheets, reduces detection costs, avoids the loss of characteristic information, and is suitable for ultra-thin reinforcement sheets with a thickness of less than 0.1 mm to meet the needs of industrial production.
Smart Images

Figure CN118533839A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of flexible printed circuits (FPCs); specifically, it relates to a method for detecting re-attachment defects of FPC substrate reinforcement sheets based on 2D images. Background Art
[0002] With the rapid development of the electronics industry, all kinds of electronic equipment are constantly developing in the direction of light, thin and small. Flexible printed circuit boards (FPC) are widely used in electronic products due to their light weight, small size, thin thickness and high reliability. Due to its "soft" characteristics, in order to make FPC more stable and durable and to meet more process processing requirements and the production needs of related industries, rigid reinforcement sheets (such as steel sheets) need to be attached to certain specific positions or areas of the flexible circuit board to increase its thickness and rigidity.
[0003] Fully automatic placement machines can automatically complete the automatic placement of rigid reinforcement sheets and improve the placement yield. However, during the placement process, there is a certain degree of re-placement at the placement position, that is, multiple (typically two) reinforcement sheets are placed at the same position. Re-placed products are defective products and cannot enter the market. In order to prevent re-placed defective products from entering the market, FPC substrates need to be re-placed for testing.
[0004] At present, there are mainly the following methods for re-sticking inspection of ultra-thin reinforcement sheets with a thickness of less than 0.1 mm: manual inspection method, contact measurement method and laser measurement method. The manual inspection method is greatly affected by the level of the inspectors, and has low measurement efficiency and poor stability. The measurement efficiency of the contact measurement method is improved compared with the manual inspection method, but it has the disadvantage of not being able to accurately measure the exact position of each point. The laser measurement method has the advantages of high accuracy, fast measurement speed, long distance measurement and non-contact measurement, but it also has the disadvantages of high cost and high requirements for the environment and object surface.
[0005] Therefore, it is necessary to improve the existing FPC substrate reinforcement sheet re-attachment defect detection method. Summary of the invention
[0006] In view of the shortcomings of the existing FPC substrate reinforcing sheet re-attachment detection method, the present invention proposes a FPC substrate reinforcing sheet re-attachment defect detection method based on 2D images, comprising the following steps:
[0007] 1) Obtain image datasets of two categories: a single reinforcing sheet and multiple reinforcing sheets on an FPC substrate, and divide the datasets into a training set, a validation set, and a test set;
[0008] 2) constructing an improved YOLOV8 network model, inputting the images of the training set and the validation set into the YOLOV8 network model for model training, and obtaining the optimal weight of the YOLOV8 network model;
[0009] 3) Load the best weights obtained through training into the improved YOLOV8 network model, input the test set images, and output the target detection results.
[0010] Furthermore, in step 1), when acquiring the image of the FPC substrate reinforcement sheet, a line light source with an angle of 15° to 40° with the FPC substrate is used for illumination, so that the shadow features of the single reinforcement sheet and multiple reinforcement sheets on the FPC substrate are more obvious.
[0011] Further, step 2) comprises:
[0012] 2-1) Image preprocessing: perform one or more transformation operations including rotation, scaling, translation, cropping, and perspective on the input image;
[0013] 2-2) Feature extraction: The preprocessed image is input into the Backbone network to extract image features and obtain multiple feature maps of different sizes;
[0014] 2-3) Feature fusion: The multiple feature maps of different sizes obtained in step 2-2) are input into the Neck network for feature fusion to obtain multiple feature maps after feature fusion;
[0015] 2-4) Prediction output: After the features obtained in step 2-3 are fused, multiple feature maps are input into the Head output end to obtain multiple feature tensors, thereby obtaining the position, category and confidence of the prediction box.
[0016] Furthermore, in the step 2-2), the Backbone network adds a Triplet attention mechanism based on the original C2F module. The Triplet attention mechanism calculates the attention weight by capturing cross-dimensional interactions through a three-branch structure, and establishes inter-dimensional dependencies through rotation operations and residual transformations. It can effectively realize cross-dimensional fusion of feature information, so that the backbone network has stronger feature extraction and feature fusion capabilities.
[0017] Furthermore, in the step 2-3), the Neck network structure is a FPN+PAN structure, the feature pyramid FPN uses upsampling to transfer rich semantic information from the high layer to the low layer, and the path aggregation network PAN uses downsampling to transfer rich information from the bottom layer to the high layer.
[0018] Furthermore, in the step 2-3), the Neck network structure uses the CARAFE upsampling operator instead of the nearest neighbor interpolation upsampling in the YOLOV8 algorithm. The CARAFE upsampling operator can generate an adaptive upsampling kernel according to the FPC surface defect feature map, effectively avoiding the loss of feature information.
[0019] Furthermore, the Head output end of step 2-4) includes a Detect structure, and the multiple feature maps after feature fusion are input into the Detect structure to obtain the position, category and confidence of the prediction box;
[0020] Furthermore, the classification loss function and regression loss function at the head output end in step 2-4) are respectively in the form of VFL_Loss and CIOU_Loss+DFL, and the Anchor-Free method is adopted for sample matching, where the VFL_Loss formula is:
[0021]
[0022] Among them, α and γ are hyperparameters, q is the IOU (intersection-over-union ratio) of bbox (prediction box) and gt (true box). When q>0, it is used to measure the cross entropy loss between the true label and the prediction result of the reinforcement sheet re-pasting defect detection model; when q=0, it indicates the loss when the prediction box and the true box have no intersection.
[0023] Furthermore, the evaluation indicators of the model in step 2-4) include precision (P), recall (R) and F1 score, and the calculation formula is:
[0024] Accuracy:
[0025] Recall:
[0026] F1 score:
[0027] Among them, TP represents the number of samples that are correctly detected, FP represents the number of samples that are incorrectly detected, and FN represents the number of samples that are not detected.
[0028] Furthermore, in step 2), the Mosaic data augmentation operation is turned off during the last 10 epochs of training to prevent the model from overfitting the training data in the later stages of training and to improve the stability and generalization ability of the model on the test data set.
[0029] Furthermore, the target detection result in step 3) includes the target detection position and category.
[0030] Furthermore, the YOLOV8 network model is improved on the basis of the YOLOV8n model, the maximum number of iterations of the training data set is 100 times, the number of pictures input for each model training is 8, the initial learning rate of the model is 0.01, and the learning rate update method is a linear update method.
[0031] The technical solution of the present invention has the following beneficial effects:
[0032] The present invention uses the acquired single-piece reinforcement sheet and multiple-piece reinforcement sheet images as two types of targets, namely single-piece and multiple-piece, respectively, and converts the re-attachment detection problem into a 2D image target detection and recognition problem; builds an improved YOLOV8 target detection network, which adds a Triplet attention mechanism in the Backbone backbone network, so that the backbone network has stronger feature extraction and feature fusion capabilities; uses the CARAFE upsampling operator in the Neck network structure, and the operator can generate an adaptive upsampling kernel according to the FPC surface defect feature map, effectively avoiding the loss of feature information. The YOLOV8 target detection network built by training the single-piece reinforcement sheet and multiple-piece reinforcement sheet images as training data can detect two types of targets, namely single-piece reinforcement sheet and multiple-piece reinforcement sheet (re-attachment), and has the advantages of low cost, fast detection speed, and high accuracy.
[0033] Furthermore, the present invention uses the shadow area characteristics of the reinforcing sheet as a basis for judging whether the reinforcing sheet is a normal single sheet or a defect of re-attaching multiple reinforcing sheets, and makes the shadow characteristics of the single reinforcing sheet and the multiple reinforcing sheets on the FPC substrate more obvious through low-angle high-brightness side lighting, which is particularly suitable for re-attachment inspection of ultra-thin reinforcing sheets with a thickness of less than 0.1 mm.
[0034] In order to more clearly illustrate the purpose, technical solutions and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A flow chart of a method for detecting defects of reattaching a reinforcing sheet of an FPC substrate provided by an embodiment of the present invention;
[0036] Figure 2 A diagram of an optical imaging system provided by an embodiment of the present invention;
[0037] Figure 3 A structural diagram of a FPC substrate reinforcement sheet re-attachment defect detection network provided by an embodiment of the present invention;
[0038] Figure 4 A network structure diagram of a C2F-Triplet module provided in an embodiment of the present invention;
[0039] Figure 5 A diagram of a Triplet network structure provided by an embodiment of the present invention;
[0040] Figure 6 The CARAFE upsampling operator model structure provided by the embodiment of the present invention;
[0041] Figure 7 A graph showing the confidence and accuracy of the evaluation indicators provided by the embodiment of the present invention;
[0042] Figure 8 A graph showing the confidence and recall rate of the evaluation indicators provided in the embodiment of the present invention;
[0043] Fig. 9 A graph showing the confidence and F1 score of the evaluation indicators provided in the embodiment of the present invention;
[0044] Fig.10 This is a test result diagram provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In the following description, many specific details are explained in combination with the embodiments to facilitate a full understanding of the technical solution of the present invention, but the specific implementation methods described are only for the purpose of illustration and explanation and are not intended to limit the scope of protection of the present invention.
[0046] Combination Figure 1 As shown, the embodiment of the present invention discloses a method for detecting a reinforcing sheet reattachment defect of an FPC substrate based on a 2D image, comprising the following steps:
[0047] 1) Obtain image datasets of two categories: a single reinforcing sheet and multiple reinforcing sheets (typically two reinforcing sheets) on an FPC substrate, and divide the datasets into a training set, a validation set, and a test set;
[0048] 2) constructing an improved YOLOV8 network model, inputting the images of the training set and the validation set into the YOLOV8 network model for model training, and obtaining the optimal weight of the YOLOV8 network model;
[0049] 3) Load the best weights obtained through training into the improved YOLOV8 network model, input the test set images, and output the target detection results.
[0050] Preferably, in step 1), when acquiring the image of the FPC substrate reinforcement sheet, a high-brightness line light source is used to provide illumination, for example, Figure 2 The optical imaging system shown in the figure uses a low-angle high-brightness line light source to illuminate the FPC substrate reinforcement sheet. Preferably, the illumination angle of the line light source is 15° to 40° with the FPC substrate. In the embodiment, the image capture camera can use a Hikvision MV-CS200-10UC camera, and the captured image resolution is 5472*3648.
[0051] Specifically, step 1) can collect 200 images, including 100 images of a single-sheet reinforcement sheet and 100 images of a double-sheet reinforcement sheet, and label the acquired FPC substrate reinforcement sheet images using Labelme. The 200 image data sets are divided into a training set, a validation set, and a test set, and the ratio of the three is 7:2:1 respectively.
[0052] In the embodiment, in the training phase of step 2), the predicted box and the true box are matched to obtain positive and negative samples, and then the weight parameters are adjusted by calculating the loss function. In the verification phase, the predicted box is screened by weighted non-maximum suppression, and the model parameters are continuously optimized by calculating the accuracy, average precision, etc.
[0053] In the embodiment, the maximum number of iterations of the data set for training the YOLOV8 network model is 100 times, the number of images input for each model training is 8, the initial learning rate of the model is 0.01, and the learning rate update method is a linear update method. Preferably, the Mosaic data enhancement operation is turned off during the last 10 epochs of training to prevent the model from overfitting the training data in the later stages of training and to improve the stability and generalization ability of the model on the test data set.
[0054] Specifically, step 2) includes:
[0055] 2-1) Image preprocessing: Perform random rotation, scaling, translation, cropping, perspective transformation and other operations on the input image. The size of the image after preprocessing is 640×640×3.
[0056] 2-2) Feature extraction: The Backbone network extracts the features of the preprocessed image and obtains multiple feature maps of different sizes.
[0057] Specifically, the number of feature maps is three, and the sizes of the three feature maps extracted by the Backbone network in step 2-2) are: feature map P3 (size is 80×80), feature map P4 (size is 40×40), and feature map P5 (size is 20×20).
[0058] 2-3) Feature fusion: The Neck network performs feature fusion on the multiple feature maps of different sizes obtained in step 2-2) to obtain multiple feature maps after feature fusion.
[0059] Specifically, the three scale feature maps extracted in step 2-2) are subjected to feature fusion by the Neck network in step 2-3) to obtain three fused feature maps, whose sizes are: P3' is 80×80, P4' is 40×40, and P5' is 20×20.
[0060] 2-4) Prediction output: The feature maps of the three scales obtained after the feature fusion in step 2-3) are input into the output end of the Head to obtain three feature tensors, thereby obtaining the position, category and confidence of the prediction box;
[0061] Specifically, the Head output end of step 2-4) includes a Detect structure, and the feature maps P3', P4', and P5' after feature fusion are input into the Detect structure to obtain the position, category, and confidence of the prediction box.
[0062] In step 2-4), VFL_Loss is used for classification loss of YOLOV8, and CIOU_Loss and DFL are used for regression loss.
[0063] The VFL_Loss formula is:
[0064]
[0065] Among them, α and γ are hyperparameters, q is the IOU (intersection-over-union ratio) of bbox (prediction box) and gt (true box). When q>0, it is used to measure the cross entropy loss between the true label and the prediction result of the reinforcement sheet re-pasting defect detection model; when q=0, it indicates the loss when the prediction box and the true box have no intersection.
[0066] The formula of CIOU_Loss is: CIOU_Loss = 1-CIOU
[0067]
[0068] Among them, d o is the Euclidean distance between the center points of the target box and the predicted box, d c is the diagonal distance of the target box, w gt and h gt is the width and height of the real target box, w p and h p are the width and height of the prediction box.
[0069] The formula of DFL is: DFL(S i ,S i+1 )=-((y i+1 -y)log(S i )+(yy i )log(S i+1 ))
[0070] Among them, y is the theoretical label, y i and i+1 is a value near y, S i and S i+1 is the probability of points i and i+1.
[0071] Furthermore, in step 2-4), the evaluation indicators of the training quality of the improved YOLOV8 network model include precision (P), recall (R) and F1 score, and the calculation formula is:
[0072] Accuracy:
[0073] Recall:
[0074] F1 score:
[0075] Among them, TP represents the number of samples that are correctly detected, FP represents the number of samples that are incorrectly detected, and FN represents the number of samples that are not detected.
[0076] In the embodiment of the present invention, Figure 3 As shown in the figure, the improved YOLOV8 network model is improved on the basis of the YOLOV8n model, and its key parts include the backbone network (Backbone), the neck network (Neck) and the detection head (Head). Among them, the backbone network is used to extract features from the input image, the neck network is used for feature fusion, and the detection head is used to predict the bounding box and category of the object. Although the original YOLOV8 network model has a strong defect detection capability, it has certain false detections in the FPC substrate reinforcement sheet re-attachment detection (a single piece is identified as multiple pieces or multiple pieces are identified as a single piece), which is not allowed in industrial production. The improved YOLOV8 network model enables the backbone network to have stronger feature extraction and feature fusion capabilities, and enables the neck network to generate an adaptive upsampling kernel according to the FPC surface defect feature map, effectively avoiding the loss of feature information. The improved model has a stronger FPC substrate reinforcement sheet re-attachment detection capability, and the improved model does not have missed detection and false detection, which can well meet industrial needs.
[0077] Specifically, the improved YOLOV8 backbone network (Backbone) has 10 layers. The 1st, 2nd, 4th, 6th, and 8th layers are CBS modules, the 3rd, 5th, 7th, and 9th layers are improved C2f-Triplet modules, and the 10th layer is the SPPF module. The CBS module first performs a convolution operation on the input data to extract the features, and then uses the BN layer to normalize it to improve the stability and generalization ability of the network. Finally, the SILU activation function is used to perform nonlinear transformation on the output of the convolution layer to enhance the expression ability of the network. The improved C2f-Triplet module is as follows: Figure 4 As shown in the figure, the input data is first convolved to extract the features, and then the Split module is used to divide the features into two parts. One part is input into the Bottleneck+Triplet module, and the other part is concat-operated with the output of multiple Bottleneck+Triplet modules, and finally a convolution operation is performed. Triplet uses a three-branch structure to capture cross-dimensional interactions and calculate attention weights (such as Figure 5As shown in the figure): the first branch is the channel attention calculation branch; the second branch is the channel C and space W dimension interactive capture branch; the third branch is the channel C and space H dimension interactive capture branch, and finally the output features of the three branches are added and averaged. The Triplet attention mechanism enables the backbone network to have stronger feature extraction and feature fusion capabilities. The SPPF module first performs a convolution operation on the input feature image, then performs pooling operations of different scales on the features extracted by convolution, extracts feature information of different scales, uses the Concat operation to fuse feature information of different scales, and finally performs a convolution operation on it.
[0078] The improved YOLOV8 neck network (Neck) has 12 layers. Among them, the 11th and 14th layers of the network are improved CARAFE upsampling modules, the 12th, 15th, 18th and 21st layers are Concat modules, the 13th, 16th, 19th and 22nd layers are improved C2f-Triplet modules, and the 17th and 20th layers are CBS modules. The neck network first performs the CARAFE upsampling operation of the 11th layer on the output feature map of the backbone network, with a sampling rate of 2. The 12th layer concatenates the feature map output by the 11th layer with the output of the 6th layer to increase the number of channels of the feature map. The 13th layer uses the improved C2f-Triplet module to extract features from the feature map. The CARAFE upsampling module of the 14th layer doubles the length and width of the feature map output by the 13th layer. The Concat module of the 15th layer concatenates the feature map output by the 14th layer with the output of the 5th layer, integrating feature information of different scales. The 16th layer uses the improved C2f-Triplet module to extract features from the feature map. The 17th layer's CBS module performs convolution operations on the feature map, reducing the length and width of the feature map to half of the original. The 18th layer's Concat module concatenates the feature map output by the 17th layer with the output of the 13th layer to fuse feature information of different scales. The 19th layer uses the improved C2f-Triplet module to extract features from the feature map. The 20th layer's CBS module performs convolution operations on the feature map, reducing the length and width of the feature map to half of the original. The 21st layer's Concat module concatenates the feature map output by the 20th layer with the output of the 10th layer to fuse feature information of different scales. The 22nd layer uses the improved C2f-Triplet module to extract features from the feature map.
[0079] In the embodiment, the CARAFE upsampling structure is as follows Figure 6As shown in the figure, it includes two main modules: upsampling kernel prediction module and feature reorganization module. When sampling the input feature map with a given shape of H×W×C by σ times, CARAFE first uses the upsampling kernel prediction module to predict the upsampling kernel, and then uses the feature reorganization module to complete the upsampling, and obtains the output feature map with a shape of σH×σW×C. The CARAFE operator can generate an adaptive upsampling kernel based on the FPC surface defect feature map, effectively avoiding the loss of feature information.
[0080] The improved YOLOV8 detection head (Head) takes the output of the 16th, 19th, and 22nd layers as input into the same decoupled head structure. The decoupled head structure consists of two branches, both of which are composed of two CBS modules and a convolution module. One branch predicts the bounding box of the target, and the other branch predicts the category (single reinforcement patch and two reinforcement patches).
[0081] Figure 7 The figure shows the confidence and accuracy curve of the training model in the embodiment of the present invention. Figure 7 It can be seen that when the confidence level is above 0.2, the prediction accuracy of the training model is as high as over 90%.
[0082] Figure 8 The figure shows the confidence and recall curve of the training model in the embodiment of the present invention. Figure 8 It can be seen that when the confidence level is less than 0.9, the recall rate of the training model is 100%, and there is no missed detection.
[0083] Fig. 9 The figure shows the confidence and F1 score curve of the training model in the embodiment of the present invention. Fig. 9 It can be seen that when the confidence level is 0.893, the network model is trained best.
[0084] Fig.10 The test results provided by the embodiment of the present invention are shown in FIG. Fig.10 The figure shows 12 reinforcement patch detection results. The lower right corner of each picture shows the true category of the reinforcement patch. The box in the picture shows the location of the reinforcement patch detected by the network model, and the upper left corner of the box shows the detection result of the reinforcement patch category. Fig.10 It can be seen from the figure that the present invention can correctly detect the position and type of the reinforcing sheet.
[0085] In summary, the embodiment of the present invention transforms the re-attachment detection problem into a 2D image target detection and recognition problem, obtains the image of the reinforcement sheet on the FPC substrate by means of low-angle high-brightness side lighting, and uses the shadow area feature of the reinforcement sheet image as the basis for judging whether the reinforcement sheet is a single sheet or a double sheet. By building an improved YOLOV8 target detection network, using the images of the single-sheet reinforcement sheet and the double-sheet reinforcement sheet as training data, the target detection network is trained to enable it to detect two types of targets, the single-sheet reinforcement sheet and the double-sheet reinforcement sheet, thereby providing a new detection method for re-attachment detection.
[0086] Although the present invention is disclosed as above with specific embodiments, these specific embodiments are not intended to limit the scope of the present invention. Any person skilled in the art may make some changes / modifications without departing from the scope of the present invention, that is, any equivalent changes / modifications made according to the present invention should be covered by the protection scope of the present invention.
Claims
1. A method for detecting FPC substrate reinforcing sheet reattachment defects based on 2D images, characterized in that The following steps are involved: 1) Obtain image datasets of two categories: a single reinforcing sheet and multiple reinforcing sheets on an FPC substrate, and divide the datasets into a training set, a validation set, and a test set; 2) constructing an improved YOLOV8 network model, inputting the images of the training set and the validation set into the YOLOV8 network model for model training, and obtaining the optimal weight of the YOLOV8 network model; 3) Load the best weights obtained through training into the YOLOV8 network model, input the test set images, and output the target detection results.
2. The FPC substrate reinforcing sheet re-attachment defect detection method according to claim 1, characterized in that: When obtaining the image of the FPC substrate reinforcement sheet in step 1), a line light source with an angle of 15° to 40° with the FPC substrate is used for illumination.
3. The FPC substrate reinforcing sheet re-attachment defect detection method according to claim 1, characterized in that The step 2) comprises: 2-1) Image preprocessing: perform one or more transformation operations including rotation, scaling, translation, cropping, and perspective on the input image; 2-2) Feature extraction: The preprocessed image is input into the Backbone network to extract image features and obtain multiple feature maps of different sizes; 2-3) Feature fusion: The multiple feature maps of different sizes obtained in step 2-2) are input into the Neck network for feature fusion to obtain multiple feature maps after feature fusion; 2-4) Prediction output: After the features obtained in step 2-3 are fused, multiple feature maps are input into the Head output end to obtain multiple feature tensors, thereby obtaining the position, category and confidence of the prediction box.
4. The FPC substrate reinforcing sheet re-attachment defect detection method according to claim 3, characterized in that: In the step 2-2), the Backbone network adds a Triplet attention mechanism based on the original C2F module. The Triplet attention mechanism calculates the attention weight by capturing the cross-dimensional interaction through a three-branch structure, and establishes the dependency between dimensions through rotation operations and residual transformations.
5. The FPC substrate reinforcing sheet re-attachment defect detection method according to claim 3, characterized in that: In the step 2-3), the Neck network structure is a FPN+PAN structure. The feature pyramid FPN uses upsampling to transfer rich semantic information from the high layer to the low layer, and the path aggregation network PAN uses downsampling to transfer rich information from the bottom layer to the high layer.
6. The FPC substrate reinforcing sheet re-attachment defect detection method according to claim 3, characterized in that: In the step 2-3), the Neck network structure uses the CARAFE upsampling operator to replace the nearest neighbor interpolation upsampling in the YOLOV8 algorithm. The CARAFE upsampling operator can generate an adaptive upsampling kernel according to the FPC surface defect feature map.
7. The FPC substrate reinforcing sheet re-attachment defect detection method according to claim 3, characterized in that: The Head output end of step 2-4) includes a Detect structure, and the multiple feature maps after feature fusion are input into the Detect structure to obtain the position, category and confidence of the prediction box.
8. The FPC substrate reinforcing sheet re-attachment defect detection method according to claim 3, characterized in that: In step 2-4), the classification loss function and regression loss function at the head output end are respectively in the form of VFL_Loss and CIOU_Loss+DFL, and the Anchor-Free method is adopted for sample matching, where the VFL_Loss formula is: Among them, α and γ are hyperparameters, q is the IOU (intersection-over-union ratio) of bbox (prediction box) and gt (true box). When q>0, it is used to measure the cross entropy loss between the true label and the prediction result of the reinforcement sheet re-pasting defect detection model; when q=0, it indicates the loss when the prediction box and the true box have no intersection.
9. The FPC substrate reinforcing sheet re-attachment defect detection method according to claim 3, characterized in that: The evaluation indicators of the model in step 2-4) include precision (P), recall (R) and F1 score, and the calculation formula is: Accuracy: Recall: F1 score: Among them, TP represents the number of samples that are correctly detected, FP represents the number of samples that are incorrectly detected, and FN represents the number of samples that are not detected.
10. The FPC substrate reinforcing sheet re-attachment defect detection method according to claim 1, characterized in that: The target detection result in step 3) includes the target detection position and category.
Citation Information
Cited By
Method for measuring water leakage in construction process of large underground cave depot
CN119228749A
FPC board anti-re-lamination detection method based on target detection
CN119300248A
Driver dangerous driving behavior visual identification method and device, terminal and medium
CN120340003A
FPC patch defect real-time closed-loop correction method and system
CN122438275A
