PCB splitting quality detection and control method and device based on computer vision
Using computer vision technology to perform super-resolution processing and defect detection in the depaneling process of printed circuit boards, and adjusting parameters combined with the relationship model, the problems of low detection accuracy and low efficiency in the existing technology are solved, and efficient depaneling quality control is achieved. .
Patent Information
- Application Number
- CN202411317139.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-09-20
AI Technical Summary
Existing quality inspection of printed circuit board sub-boards relies on manual visual inspection or offline sampling, which has low detection accuracy and inefficiency, and cannot meet the needs of mass production.
Using a method based on computer vision, the inspection image of the printed circuit board is obtained for super-resolution processing to generate a high-resolution image, and a defect detection model is used for defect detection. Combined with the pre-established relationship model between board splitting parameters and defects, the system adjusts Splitting parameters to improve quality.
It improves the accuracy and efficiency of de-boarding detection results, reduces manual intervention, realizes real-time monitoring and automatic adjustment, and significantly improves the de-boarding quality of printed circuit boards.
Smart Images

Figure CN118837366A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the field of image processing technology, and more particularly to a method and device for detecting and controlling PCB panel quality based on computer vision. Background Art
[0002] Printed Circuit Board (PCB) is an insulating substrate with conductive paths that is used to connect and support electronic components. It is widely used in the manufacture of electronic products such as computers, mobile phones, and televisions.
[0003] At present, in the process of printed circuit board processing, the printed circuit board is usually designed as a large board. In the final product, the printed circuit board needs to be cut into different individual printed circuit boards by cutting equipment, that is, the printed circuit board needs to be depaneled. As a key process in the electronics manufacturing industry, the quality of depaneling directly affects the reliability and performance of the product, so it is necessary to test the quality of the printed circuit boards formed by depaneling.
[0004] However, existing quality inspections mainly rely on manual visual inspection or offline sampling inspections, which have low detection accuracy and low efficiency. Summary of the invention
[0005] In view of this, the embodiments of this specification provide a PCB panel quality detection and control method and device based on computer vision, which can improve the detection accuracy and improve the detection efficiency.
[0006] The embodiment of this specification provides a PCB sub-board quality detection and control method based on computer vision, including: Acquire a detection image of a printed circuit board in a process of depaneling; Performing super-resolution processing on the detection image to generate a high-resolution image corresponding to the detection image; Inputting the high-resolution image into a defect detection model to obtain a panel separation detection result of the printed circuit board, wherein the panel separation detection result includes: defect type, defect location, and defect confidence; Based on a pre-established relationship model between panel separation parameters and defects, the panel separation parameters of the printed circuit board are adjusted according to the panel separation detection result.
[0007] Optionally, performing super-resolution processing on the detection image to generate a high-resolution image corresponding to the detection image includes: Based on the pre-trained GaussianSR network, super-resolution processing is performed on the detection image to generate a high-resolution image corresponding to the detection image, including: Representing each pixel in the detection image as a continuous Gaussian field, and assigning multiple Gaussian fields to each pixel to form a multi-layer Gaussian field structure; Based on the feature pyramid network in the GaussianSR network, image feature sampling is performed on multiple layers of Gaussian field structures in a bottom-to-top manner, and image features corresponding to each layer of Gaussian field structures are fused to generate a fused feature image; Setting a multi-resolution decoder at each level of the feature pyramid network, and decoding the fused feature image by the multi-resolution decoder to generate Gaussian field parameters; The high-resolution image is generated according to the Gaussian field parameters and the rendering layer in the GaussianSR network, including: determining the contribution value of each Gaussian field corresponding to each pixel point on the rendering layer grid, and superimposing the contribution value of each Gaussian field on the rendering layer grid to generate the high-resolution image.
[0008] Optionally, the performing super-resolution processing on the detection image to generate a high-resolution image corresponding to the detection image further includes: When it is determined that the size of the detection image is larger than the set size, the detection image is divided into a plurality of sub-detection images with overlapping parts by using a sliding window technique; Super-resolution processing is performed on each sub-detection image to obtain a plurality of sub-high-resolution images, and the plurality of sub-high-resolution images are spliced to form the high-resolution image.
[0009] Optionally, the defect detection model is obtained in the following manner: Selecting a target detection model adapted to the high-resolution image, the target detection model comprising: a YOLOv5 network; Defining defect types and assigning corresponding identifiers to each defect in a configuration file of the target detection model; Generating a training data image set includes: collecting historical printed circuit board splitting images, and after marking each historical printed circuit board splitting image, dividing the historical printed circuit board splitting images into a training image set, a verification image set, and a test image set, and configuring transmission paths of the training image set, the verification image set, and the test image set; The training data image set is input into the target detection model, the target detection model is trained, and the defect detection model is generated, including: performing data enhancement processing on the training data image set, setting training parameters, and using cross-validation to verify the prediction performance of the defect detection model, wherein the data enhancement processing includes: affine transformation, and Mosaic data enhancement and MixUp data enhancement; the training parameters include: the type of optimizer and the initial learning rate, the type of loss function, hyperparameters, and callback function.
[0010] Optionally, the affine transformation includes: rotation transformation, translation transformation, scaling transformation and spectral brightness transformation; The computer vision-based PCB panel quality detection and control method further includes: evaluating the invariance of the affine transformation to the training data image, and adjusting the defect detection model, including: Selecting a portion of images from the training data image set as first target images; Performing rotation transformation, translation transformation, scaling transformation and spectral brightness transformation on each first target image respectively to generate a second target image; Inputting the first target image and the second target image into the defect detection model respectively, obtaining an average precision, a recall rate, and a defect detection result corresponding to the first target image, and an average precision, a recall rate, and a defect detection result corresponding to the second target image; According to a difference between an average precision corresponding to the first target image and an average precision corresponding to the second target image, and a difference between a recall rate corresponding to the first target image and a recall rate corresponding to the second target image, adjusting the defect detection model includes: using one or more of adaptive data enhancement processing, built-in multi-scale testing in the defect detection model, or data enhancement during testing; And, based on the defect detection result corresponding to the first target image and the defect detection result corresponding to the second target image, the invariance of the affine transformation to the training data image is determined.
[0011] Optionally, inputting the high-resolution image into a defect detection model to obtain a detection result includes: Adjusting the high-resolution image to a size allowed by the defect detection model, and merging overlapping detection results of the high-resolution image using a sliding window mechanism; Based on the overlap detection results and the set confidence level, the defect type, quantity, and defect location are determined.
[0012] Optionally, the process of establishing the relationship model between panel separation parameters and defects includes: obtaining panel separation parameters of the printed circuit board in the panel separation process, and defect parameters under the panel separation parameters, wherein the panel separation parameters include: cutting speed, tool feed rate, tool rotation speed, pressure, coolant flow, and material, thickness, and number of layers of the printed circuit board; establishing a mapping relationship between the panel separation parameters and defects through multivariate regression or neural network to generate the relationship model; The method of adjusting the panel separation parameters of the printed circuit board according to the panel separation detection result based on the pre-established relationship model between the panel separation parameters and the defects includes: Based on the panel splitting detection result and the relationship model, determining a panel splitting parameter corresponding to the panel splitting detection result; and analyzing the correlation between the defect type in the panel splitting detection result and the control parameter, and mapping the defect type in the panel splitting detection result to the parameter adjustment strategy based on a preset decision tree or rule base; Based on the parameter adjustment strategy, a panel separation parameter corresponding to the panel separation detection result is adjusted.
[0013] Optionally, the computer vision-based PCB sub-board quality detection and control method further includes: annotating the acquired detection image, including: Designing a graph neural network model for the detection image, including: designing a node feature extractor to obtain parameter information of the detection image, the parameter information including: texture features, edge features and color features; designing a multi-layer convolution network connected to the node feature extractor to perform multi-layer convolution operations on the detection image; adding a classification head or a regression head to the multi-layer convolution network; A heterogeneity perception mechanism is set in the graph neural network model to form a heterogeneous graph neural network model, including: identifying the node type and edge type in the detection image, and creating a mapping relationship between the node type and the edge type; configuring a rotation matrix for each node type, and configuring an information transfer function for the edge type, and using a multi-head attention mechanism and perception message aggregation to transform and aggregate features; Constructing distribution consistency damage, including: determining the aggregation characteristics of images of the same category in the feature space, and increasing the separation loss of images of different categories in the feature space, and determining the consistency loss of the detection image; Training the heterogeneous graph neural network model includes: initializing the heterogeneous graph neural network model using an image with annotation information; adding pseudo-annotation information to the detection image using the heterogeneous graph neural network model; updating the heterogeneous graph neural network model based on the image with annotation information and the detection image with pseudo-annotation information, and the consistency loss of the detection image; using the updated heterogeneous graph neural network model, adding pseudo-annotation information to the detection image again, through multiple rounds of iterations, until the iteration limit is reached; Annotating the detection image using the updated heterogeneous graph neural network model to determine true annotation information of the detection image; The super-resolution processing of the detection image to generate a high-resolution image corresponding to the detection image further includes: After the detection image is annotated, super-resolution processing is performed on the detection image with the annotated information.
[0014] Optionally, the computer vision-based PCB panel quality detection and control method further includes: evaluating the invariance of the depth image quality index to the affine transformation, including: Constructing an evaluation data set includes: selecting an image database, the image database including a plurality of images related to printed circuit boards; obtaining the original score corresponding to each image in the image database, performing normalization processing, generating a standardized score, and creating a directory structure for each image; generating a metadata file with a set format including the directory structure, the original score and the standardized score; traversing each image in the metadata file, performing multiple different affine transformations on each image, and adding a corresponding transformation identifier to the image after the affine transformation; updating the metadata entry corresponding to the transformation identifier in the metadata file; wherein the affine transformation includes: at least one of a rotation transformation, a translation transformation, a scaling transformation and a translation transformation; Allocating an invisibility threshold to each data in the evaluation data set includes: designing a distance conversion algorithm to convert any indicator measurement of each data into a universal distance representation, including: defining a normalization function, and using a distance calculation function and a transformation function to generate a standardized universal distance representation; determining an invisibility threshold of each data based on the evaluation data, including: analyzing the distribution of subjective scores and defining an invisibility standard; determining the correlation between the objective indicator and the subjective score, and applying a ROC curve to select an optimal operating point as an initial invisibility threshold; Evaluating a depth image quality indicator, including: selecting a depth image quality indicator to be evaluated; applying the quality indicator to each image in the image database and each image after affine transformation, including: selecting each image and each corresponding affine transformed image, and determining a calculation result based on the selected depth image quality indicator, and storing it in a structured data format; Comparing the output results of each image and its corresponding affine transformed image on the depth image quality index, including: for any image pair, determining the score difference, average difference and standard deviation of each image and its corresponding affine transformed image, and performing visualization operations, and determining the correlation coefficient matrix between different depth image quality indicators; The invariance of quality indicators to affine transformations is judged according to the invisibility threshold, including: applying the invisibility threshold to each indicator transformation pair and calculating the invariance score; sorting the quality indicators according to the invariance score, adjusting the invisibility threshold, and observing the changes in the sorting and rating; summarizing the performance of each indicator, including the overall invariance score and sensitivity to transformation.
[0015] The embodiment of this specification also provides a PCB sub-board quality detection and control device based on computer vision, including: An acquisition unit, adapted to acquire an inspection image of a printed circuit board in a process of depaneling; a generating unit, adapted to perform super-resolution processing on the detection image to generate a high-resolution image corresponding to the detection image; A processing unit has a defect detection model, is suitable for performing defect detection on the high-resolution image, and obtaining a panel separation detection result of the printed circuit board, wherein the panel separation detection result includes: defect type, defect location, and defect confidence; and, based on a pre-established relationship model between panel separation parameters and defects, adjusting the panel separation parameters of the printed circuit board according to the panel separation detection result.
[0016] By using the computer vision-based PCB panel separation quality detection and control method provided in the embodiments of this specification, it is possible to perform super-resolution processing on the detection image of the printed circuit board in the panel separation process, and generate a high-resolution image corresponding to the detection image, thereby improving the resolution and clarity of the detection image. Furthermore, when the defect detection model is used to perform defect detection on the high-resolution image, the accuracy of the panel separation detection result can be improved. Based on the pre-established relationship model between panel separation parameters and defects, the panel separation parameters of the printed circuit board can be adjusted according to the panel separation detection result to further improve the panel separation quality. The entire process does not require manual operation, thereby improving the detection accuracy and improving the detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0018] Figure 1 A flowchart of a PCB sub-board quality detection and control method based on computer vision in an embodiment of this specification is shown; Figure 2 A flow chart of a detection image super-resolution process in an embodiment of this specification is shown; Figure 3 The present invention shows a structural schematic diagram of a PCB panel quality detection and control device based on computer vision. DETAILED DESCRIPTION
[0019] As described in the background art, existing quality inspection mainly relies on manual visual inspection or offline sampling inspection, which has low inspection accuracy and low efficiency, which seriously restricts the printed circuit board processing and production process and cannot meet the large-scale production and manufacturing requirements.
[0020] In order to solve the above technical problems, the embodiments of this specification provide a PCB panel separation quality detection and control method based on computer vision, which can perform super-resolution processing on the detection image of the printed circuit board in the panel separation process, and generate a high-resolution image corresponding to the detection image, thereby improving the resolution and clarity of the detection image, and then when the defect detection model is used to perform defect detection on the high-resolution image, the accuracy of the panel separation detection result can be improved, and based on the pre-established relationship model between panel separation parameters and defects, according to the panel separation detection result, the panel separation parameters of the printed circuit board can be adjusted to further improve the panel separation quality, and the whole process does not require manual operation, thereby improving the detection accuracy and improving the detection efficiency.
[0021] In order to enable those skilled in the art to better understand the inventive concept, working principle and advantages of the embodiments of this specification, the voltage regulation scheme in the embodiments of this specification is described in detail below.
[0022] See also Figure 1 Flow chart of a PCB sub-board quality detection and control method based on computer vision in an embodiment of this specification shown in FIG. In some embodiments of this specification, such as Figure 1 As shown, the detection and control operations can be performed according to the following steps: S11, acquiring a detection image of a printed circuit board in a process of being separated.
[0023] Specifically, the detection image can reflect in real time the quality of the printed circuit board formed under the current panel separation operation. By acquiring the detection image including the printed circuit board in the panel separation process, the current production and processing quality can be monitored in real time.
[0024] In this embodiment, a variety of methods may be used to obtain the inspection image of the printed circuit board during the board separation process.
[0025] For example, a high-speed camera can be used to capture images of printed circuit boards in the process of depaneling in real time. The resolution and frame rate of the high-speed camera must meet the detection requirements.
[0026] In this embodiment, when using a high-speed camera to obtain the detection image, it is also necessary to optimize the installation position and angle of the high-speed camera to ensure that a clear image of the edge of the split board is captured; and configure an adaptive light source system to improve the quality and contrast of the detection image.
[0027] In some other embodiments, the detection image may also be acquired through other devices or equipment with image acquisition function.
[0028] It should be noted that when the detection image is obtained, the detection image can be pre-processed, for example, denoising (for example, using Gaussian filtering or median filtering), image enhancement (for example, contrast adjustment and sharpening), and image segmentation to obtain a region of interest (ROI), etc.
[0029] S12, performing super-resolution processing on the detection image to generate a high-resolution image corresponding to the detection image.
[0030] Specifically, considering the multiple uncertain factors in the printed circuit board depaneling process (such as light brightness, depaneling time), the image quality information of the acquired inspection image may be low, or the image quality information of the inspection image is difficult to meet the inspection requirements. Therefore, the inspection image can be super-resolution processed so that the details of the image can be captured and reconstructed more clearly, thereby generating a smoother and more realistic high-resolution image, which can improve the accuracy of subsequent defect detection.
[0031] It should be noted that the “high-resolution image” in this embodiment is relative to the low-resolution of the original detection image, and is only a relative concept. As long as the resolution of the “high-resolution image” is greater than the resolution of the original detection image, it will be sufficient.
[0032] For example, the resolution of the original detection image is 256*256, and the resolution of the high-resolution image is 1024*1024.
[0033] S13, inputting the high-resolution image into a defect detection model to obtain a panel separation detection result of the printed circuit board.
[0034] Specifically, the defect detection model has better generalization ability and versatility, and the high-resolution image can better reflect the details of the printed circuit board after the panel separation process. Therefore, when the panel separation detection results of the printed circuit board are determined by the defect detection model, the accuracy of the panel separation detection results of the printed circuit board can be improved, and the introduction of errors caused by human calculations can be avoided, thereby further improving the stability of the panel separation detection results.
[0035] In this embodiment, the panel detection results include: defect type, defect location and defect confidence, wherein the defect type may include: edge chipping (i.e., irregular or notched edge of printed circuit board), crack (crack on the surface or inside of printed circuit), burr (i.e., protruding small debris on the edge of printed circuit board), overcut (i.e., cutting depth is too large), undercut (i.e., cutting depth is insufficient), pad damage (i.e., scratches or missing pad area), and copper foil peeling (i.e., separation of the copper foil layer from the substrate).
[0036] Defect location refers to the location of the defect on the printed circuit board.
[0037] Defect confidence refers to the credibility of the defect.
[0038] S14, based on a pre-established relationship model between panel separation parameters and defects, adjusting the panel separation parameters of the printed circuit board according to the panel separation detection result.
[0039] Specifically, by adopting steps S11 to S13, the quality of the printed circuit board formed in the current panel separation process can be obtained, so that according to the pre-established relationship model between panel separation parameters and defects, the panel separation parameters of the printed circuit board can be adjusted in real time to improve the panel separation quality.
[0040] In other words, by using high-speed cameras and advanced computer vision technology, the printed circuit board depaneling process can be monitored in real time, depaneling defects can be automatically identified, and depaneling parameters can be adjusted in real time based on the detection results.
[0041] In some embodiments of the present specification, in order to adapt to the image detection process in different panel separation scenarios, when a detection image including a printed circuit board in the panel separation process is obtained, super-resolution processing can be performed on the detection image. For example, super-resolution processing can be performed on the detection image based on a pre-trained GaussianSR network to generate a high-resolution image corresponding to the detection image.
[0042] Since the GaussianSR network can represent the inspection image as a continuous Gaussian field, it can better capture and reconstruct the details of the image, which is particularly suitable for super-resolution processing of printed circuit boards. The continuity of the Gaussian field enables the GaussianSR network to generate smoother and more realistic high-resolution images, which helps to improve the accuracy of subsequent defect detection.
[0043] In this embodiment, the GaussianSR network may include: an encoder network, a multi-resolution decoder connected to the encoder network, and a rendering layer connected to the multi-resolution decoder, wherein the encoder network includes a feature pyramid network.
[0044] In this case, see Figure 2 A flowchart of a detection image super-resolution process in an embodiment of this specification is shown in FIG. Figure 2 As shown, the following forming steps can be performed: S21, representing each pixel point in the detection image as a continuous Gaussian field, and respectively allocating multiple Gaussian fields to each pixel point to form a multi-layer Gaussian field structure.
[0045] Specifically, the detection image is composed of multiple pixels, and the Gaussian field can better capture the details and textures in the image. Therefore, by representing each pixel in the detection image as a continuous Gaussian field, the quality and clarity of the image can be improved.
[0046] Moreover, by assigning multiple Gaussian fields to each pixel to form a multi-layer Gaussian field structure, image features of different scales can be captured.
[0047] In some embodiments, step S21 specifically includes: S211, define Gaussian field representation, that is, for any pixel point (x, y) in the detection image, it can be represented by a 2D Gaussian distribution G(μ, Σ), where μ represents the mean of the Gaussian distribution, corresponding to the position of the pixel point, and Σ is a 2x2 covariance matrix, which determines the shape and direction of the Gaussian distribution.
[0048] S212, designing a multi-layer Gaussian field structure, that is, assigning K Gaussian fields to each pixel point to form a multi-layer structure, wherein each layer of Gaussian fields can capture image features of different scales.
[0049] In this embodiment, in order to better use the Gaussian field to represent the pixel points, step S21 may further include: S213, construct a mathematical representation of the Gaussian field, including: using a probability density function (PDF) to represent the Gaussian field, where f(x, y) = 1 / (2π|Σ|^(1 / 2))*exp(-1 / 2*(x-μ)^TΣ^(-1)(x-μ)); S214, define parameters of the Gaussian field, such as the mean and covariance matrix.
[0050] Among them: parameterized mean μ, where μx=x+Δx, μy=y+Δy, Δx and Δy are learnable offsets that allow the center of the Gaussian field to slightly deviate from the pixel grid; parameterized covariance matrix Σ, Σ=[σx^2, ρσxσy; ρσxσy, σy^2], σx, σy are standard deviations that control the spread of the Gaussian distribution in the x and y directions; ρ is the correlation coefficient that controls the rotation of the Gaussian distribution.
[0051] And S215, design parameter constraints. For example, use the softplus function to ensure that σx and σy are positive values, and use the tanh function to limit ρ to the range of [-1, 1] to ensure the positive definiteness of the covariance matrix.
[0052] Therefore, through step S21 , 2D Gaussian segmentation (2DGS) can be realized.
[0053] S22, based on the feature pyramid network in the GaussianSR network, image feature sampling is performed on multiple layers of Gaussian field structures in a manner from bottom to top, and image features corresponding to each layer of Gaussian field structures are fused to generate a fused feature image.
[0054] Specifically, through the feature pyramid network in the GaussianSR network, each layer of the Gaussian field structure can be traversed, so that image feature sampling can be performed, and then through the fusion operation, a fused feature image can be generated.
[0055] In this embodiment, the specific implementation of step S22 may include: designing an encoder network to extract image features, that is, selecting a basic network architecture (for example, selecting ResNet-50 as the backbone network, removing the last fully connected layer, and retaining the feature maps of the first four stages for multi-scale feature extraction); setting a feature pyramid network FPN in the basic network architecture, and adopting a top-down path, using a 1x1 convolution layer to adjust the number of channels, and then upsampling, using lateral connections, adding the adjusted high-level features to the low-level features, and applying 3x3 convolution to each merged feature map; and optionally, adding an attention module to the feature pyramid network FPN, such as a SE (Squeeze-and-Excitation) block, to apply the attention module at each level of the FPN to enhance key features.
[0056] S23, setting a multi-resolution decoder at each level of the feature pyramid network, and decoding the fused feature image through the multi-resolution decoder to generate Gaussian field parameters.
[0057] Specifically, by adopting steps S21 and S22, a fused feature image can be generated, and by decoding the fused feature image, Gaussian field parameters can be generated, so as to obtain parameter information related to the image.
[0058] In this embodiment, step S23 includes: designing a decoder branch for each level of FPN, and each decoder branch includes multiple transposed convolutional layers, and each Gaussian layer has multiple independent prediction heads, wherein each prediction head can output 5 parameters: Δx, Δy, σx, σy and ρ, and parameter prediction is achieved through 1x1 convolution to ensure that the number of output channels is 5K (where K is the number of Gaussian layers), and then applying an activation function, for example, using tanh activation for Δx and Δy, limiting the offset range, using softplus activation for σx and σy to ensure non-negative, and using tanh activation for ρ, limiting it to the range of [-1, 1], so that the fused feature image can be decoded.
[0059] S24, generating the high-resolution image according to the Gaussian field parameters and the rendering layer in the GaussianSR network.
[0060] Specifically, it includes: determining the contribution value of each Gaussian field corresponding to each pixel point on the rendering layer grid, and performing a superposition operation on the contribution value of each Gaussian field on the rendering layer grid to generate the high-resolution image.
[0061] As an optional example, it includes: A1) defining a rendering grid, for example, creating a uniform grid of the size of a target high-resolution image, and using the meshgrid function of pytorch to generate a coordinate matrix; A2) for each pixel point, the K Gaussian fields are calculated, for example, using vectorized operations; A3) adding the contributions of the K Gaussian layers to obtain the final high-resolution image. For example, weighted summation is used, and the weights of each weight item can be fixed or adjustable.
[0062] and optionally, A4) assigning a color transformation matrix to each Gaussian field to apply color transformation during aggregation to achieve richer color reconstruction; A5) employing differentiable rendering.
[0063] Through the above detailed steps, a GaussianSR network based on 2D Gaussian layering was established. Through the GaussianSR network, the inspection image can be represented as a continuous Gaussian field, so that the details of the inspection image can be better captured and reconstructed, and smoother and more realistic high-resolution images can be generated, which helps to improve the accuracy of subsequent defect detection.
[0064] In this embodiment, the training process of the GaussianSR network is as follows: 1) Prepare a training dataset, which includes low-resolution and high-resolution image pairs.
[0065] Specifically, PCB images are collected so that the training data set contains various PCB types, layouts and defects; downsampling is applied to high-resolution images (for example, downsampling is performed using methods such as bicubic interpolation) to simulate the actual low-resolution imaging process and generate low-resolution images; basic enhancement methods such as random cropping, rotation, and flipping are used, degradation operations such as noise, blurring, and JPEG compression are added, and color jitter is used to simulate different lighting conditions to process low-resolution and high-resolution image pairs.
[0066] 2) Define loss functions such as mean squared error (MSE) and perceptual loss.
[0067] Specifically, calculate the L1 loss: L1=|y_pred-y_true| and calculate the MSE loss: MSE=(y_pred-y_true)^2, Charbonnier loss: Charbonnier=√(x^2+ε^2), and use the VGG19 network to extract features, predict the feature differences between the image and the real image at multiple VGG layers, and implement the style loss. And, optionally, design a discriminator network to distinguish between generated images and real images, and implement adversarial loss.
[0068] Combine multiple loss functions, where total loss = α*pixel loss + β*perceptual loss + γ*adversarial loss, and an adaptive weight adjustment mechanism can be used to dynamically balance the loss terms during training.
[0069] 4) Train the network using optimization algorithms such as gradient descent, including using the Adam optimizer and setting an initial learning rate (e.g. 1e-4).
[0070] 5) Iterate the training data set, forward propagate to calculate the loss, and back propagate to calculate the gradient, update the network parameters, and implement the training cycle.
[0071] 6) Regularly evaluate model performance on the validation set.
[0072] 7) Regularly save model checkpoints, including network parameters and optimizer status.
[0073] And optionally, use PyTorch's DistributedDataParallel for distributed training on multiple GPUs.
[0074] In this embodiment, the trained GaussianSR network can be used to perform super-resolution processing on the PCB panel images.
[0075] Specifically, the preprocessed (for example, scaling pixel values to the range of [-1, 1] or [0, 1], or edge padding to ensure that the image size meets the network requirements) detection image is input into the GaussianSR network; use model.eval() to switch to evaluation mode, disable training-specific operations such as Dropout, and use torch.no_grad() to turn off gradient calculation to increase the inference speed; convert the output of the GaussianSR network to the original pixel value range, and use objective indicators such as PSNR, SSIM, LPIPS, etc. to generate super-resolution results, and perform visual display and comparison, for example, compare the original low-resolution image, super-resolution results, and true high-resolution images (if any).
[0076] And optionally, the GaussianSR network is integrated into the PCB inspection process to achieve parallel processing, that is, super-resolution processing is performed while defect detection is performed.
[0077] Through these detailed steps, the training process of the GaussianSR network can be completed, and the practical application of the GaussianSR network in the super-resolution processing of PCB sub-panel images can be realized. This method can significantly improve the resolution and clarity of PCB images, provide higher quality input for subsequent defect detection, and thus improve the performance of the entire PCB quality control system. Especially when dealing with tiny defects, super-resolution processing can magnify details that were originally difficult to identify, greatly improving the accuracy and reliability of detection.
[0078] In this embodiment, some printed circuit boards are relatively large in size, and if super-resolution processing is performed directly, it may not be possible to generate a high-resolution image that meets the detection requirements.
[0079] Based on this, super-resolution processing is performed on the detection image to generate a high-resolution image corresponding to the detection image, and further includes: When it is determined that the size of the detection image is larger than the set size, the detection image is divided into a plurality of sub-detection images with overlapping parts by using a sliding window technique; Super-resolution processing is performed on each sub-detection image to obtain a plurality of sub-high-resolution images, and the plurality of sub-high-resolution images are spliced to form the high-resolution image.
[0080] Therefore, by cutting the detection image, multiple sub-detection images can be obtained, and each sub-detection image can be super-resolution processed, so that the super-resolution processing can be applied to detection images with different sizes, thereby improving the universality of super-resolution processing.
[0081] In this embodiment, after obtaining a high-resolution image that can display the details of the detection image, a defect detection operation can be performed through a defect detection model.
[0082] In this embodiment, the defect detection model is obtained in the following manner: B1) Selecting a target detection model that is compatible with the high-resolution image, wherein the target detection model includes: a YOLOv5 network.
[0083] Specifically, selecting a target detection model that is compatible with high-resolution images can improve the accuracy of subsequent defect detection.
[0084] Among them, the YOLOv5 network includes: a backbone network for feature extraction (such as CSPDarknet53), a neck network for feature fusion (such as PANet), and a head network for target detection and prediction.
[0085] In this embodiment, different types of YOLOv5 networks can be selected according to actual needs.
[0086] For example, the lightweight model YOLOv5s suitable for real-time detection; another example is the medium-sized model YOLOv5m that balances speed and accuracy; another example is the high-precision large model YOLOv5l or YOLOv5x.
[0087] In this embodiment, the parameters of the YOLOv5 network can be modified to adapt to PCB defect detection.
[0088] For example, one or more of adjusting the input resolution, modifying the number of convolutional layers (to enhance the detection capability of small objects), and adding an attention mechanism (e.g., SE block or CBAM).
[0089] B2) Defining defect types and assigning corresponding identifiers to each defect type in a configuration file of the target detection model.
[0090] Among them, the types of defects include: edge collapse, cracks, burrs, overcutting, undercutting, pad damage, and copper foil peeling.
[0091] Specifically, a unique category ID is assigned to each defect, and a mapping dictionary from category name to ID is created, as well as a YOLOv5 configuration file. The number and name of categories are updated in the YOLOv5 configuration file, and the anchor box size can be adjusted to adapt to the size distribution of PCB defects.
[0092] B3) Generate a set of training data images.
[0093] Specifically, historical printed circuit board panel images are collected (for example, PCB images under multiple angles and multiple lighting conditions are collected from a production line), and after each historical printed circuit board panel image is labeled (for example, bounding box annotation is performed using tools such as LabelImg, and the YOLO format is adopted: category ID, x_center, y_center, width and height), the historical printed circuit board panel images are divided into a training image set, a verification image set and a test image set (wherein, the ratio of the number of training image sets, verification image sets and test image sets can be 8:1:1, and the training image set, verification image set and test image set all include images of the type of defects), and the transmission paths of the training image set, the verification image set and the test image set are configured (for example, by writing a dataset.yaml file to specify the paths of the training image set, the verification image set and the test image set).
[0094] B4) Inputting the training data image set into the target detection model, training the target detection model, and generating the defect detection model.
[0095] Specifically, data enhancement processing is performed on the training data image set, and training parameters are set, and cross-validation is used to verify the prediction performance of the defect detection model, wherein the data enhancement processing includes: affine transformation, Mosaic data enhancement and MixUp data enhancement; the training parameters include: the type of optimizer and the initial learning rate, the type of loss function, hyperparameters, and callback function.
[0096] Among them, affine transformation includes: rotation transformation, translation transformation, scaling transformation and spectral brightness transformation.
[0097] In a specific embodiment, the generation process of the defect detection model includes: The training data image set is randomly flipped horizontally and vertically, randomly rotated (e.g., 0°, 90°, 180°, and 270°, etc.), randomly scaled (e.g., 0.8-1.2 times), simulated different lighting conditions: brightness and contrast, added Gaussian noise, simulated image sensor noise, simulated motion blur; and four images are stitched into one, or two images and their labels are mixed.
[0098] Set training parameters, including: select optimizer (such as AdamW optimizer), and initialize learning rate (such as 0.01); configure loss function, including target loss: BCE (Binary Cross Entropy), bounding box regression loss: CIoU loss, and category prediction loss: CrossEntropy loss; set hyperparameters, including: batch size (can be set according to GPU memory, such as 16 or 32), training rounds (such as 300 rounds), weight decay (such as 0.0005); set callback functions, such as EarlyStopping, ModelCheckpoint; use cross-validation to optimize model performance, such as implementing K-fold cross-validation (specifically, divide the training data set into 5 parts and perform 5-fold cross-validation); hyperparameter optimization, for example, use libraries such as Optuna for automatic hyperparameter search, optimize learning rate, batch size, data enhancement probability, etc.
[0099] Model integration, including: training multiple YOLOv5 models and integrating them.
[0100] Accordingly, the defect detection process may include: adjusting the high-resolution image to a size allowed by the defect detection model, and using a sliding window mechanism to merge the overlapping detection results of the high-resolution image; based on the overlapping detection results and setting the confidence level, determining the defect type, quantity, and defect location.
[0101] Specifically, the high-resolution image size is adjusted to the input size of the defect detection model (for example, 640x640), a sliding window mechanism is used to batch process the high-resolution images, and non-maximum suppression (NMS) is used to merge overlapping detection results. Based on the overlapping detection results, the defect type, quantity, and defect location are determined.
[0102] In some optional examples, a GPU can be used for acceleration optimization to increase the inference speed; bounding boxes and labels can be drawn on high-resolution images, and different colors can be used to distinguish defect types; and the defect detection model can be integrated into the production system to provide real-time feedback on the detection results, and set alarm thresholds to trigger alarms when serious defects are detected.
[0103] Through these detailed steps, a PCB panel defect detection model based on YOLOv5 was implemented. This system can efficiently and accurately identify various PCB defects, providing strong support for production quality control. And combined with the previous super-resolution processing, the defect detection model can detect smaller and more detailed defects, significantly improving the quality level of PCB production.
[0104] At the same time, real-time detection and feedback mechanisms can help production lines respond and adjust quickly, reduce the production of defective products, and improve overall production efficiency.
[0105] In this embodiment, in order to further improve the defect detection accuracy, the defect detection model may be adjusted, and the invariance of the training data image may be verified.
[0106] Specifically, the affine transformation may include: rotation transformation, translation transformation, scaling transformation and spectral brightness transformation.
[0107] Accordingly, the specific execution steps are as follows: A portion of images are selected from the training data image set as first target images.
[0108] Rotation transformation, translation transformation, scaling transformation and spectral brightness transformation are respectively performed on each first target image to generate a second target image.
[0109] The first target image and the second target image are respectively input into the defect detection model to obtain the average precision, recall rate and defect detection result corresponding to the first target image, and the average precision, recall rate and defect detection result corresponding to the second target image.
[0110] The defect detection model is adjusted according to a difference between an average precision corresponding to the first target image and an average precision corresponding to the second target image, and a difference between a recall rate corresponding to the first target image and a recall rate corresponding to the second target image.
[0111] Among them, the manner of adjusting the defect detection model includes: using one or more of adaptive data enhancement processing, embedding multi-scale testing in the defect detection model, or data enhancement during testing.
[0112] And, based on the defect detection result corresponding to the first target image and the defect detection result corresponding to the second target image, the invariance of the affine transformation to the training data image is determined.
[0113] Specifically, if the defect detection result corresponding to the first target image and the defect detection result corresponding to the second target image are the same or tend to be the same, it means that after performing an affine transformation on the training data image, the parameter information of the affine training data image will not be changed or affected, and the training data image still has the original parameter information. This ensures that in actual applications, even in the face of various shooting conditions and image transformations, stable and accurate quality assessment can be maintained.
[0114] In this embodiment, when determining the panel separation test result, the panel separation parameters of the printed circuit board may be adjusted based on a pre-established relationship model between the panel separation parameters and defects.
[0115] In some embodiments, the process of establishing a relationship model between panel separation parameters and defects includes: obtaining the panel separation parameters of the printed circuit board in the panel separation process, and the defect parameters under the panel separation parameters, the panel separation parameters including: cutting speed, tool feed rate, tool speed, pressure, coolant flow, and the material, thickness, and number of layers of the printed circuit board; establishing a mapping relationship between the panel separation parameters and defects through multivariate regression or neural network to generate the relationship model.
[0116] In some optional embodiments, methods such as cross-validation can be used to evaluate the model, verify the model accuracy, and regularly update the model to adapt to equipment wear and environmental changes.
[0117] Accordingly, the adjustment of the printed circuit board sub-board parameters includes: C1) Based on the panel separation detection result and the relationship model, determining a panel separation parameter corresponding to the panel separation detection result.
[0118] Specifically, the relational model has a mapping relationship between the panel separation parameters and the defects. When the panel separation detection result is obtained, the panel separation parameters corresponding to the panel separation detection result can be determined through the mapping relationship.
[0119] C2) analyzing the correlation between the defect type in the panel separation detection result and the control parameter, and mapping the defect type in the panel separation detection result to the parameter adjustment strategy based on a preset decision tree or rule base.
[0120] Specifically, in the process of panel splitting, the panel splitting operation is realized by issuing control commands to the panel splitting tool, so the control command directly determines the defect type, that is, the defect type is associated with the control parameter. By analyzing this correlation, the defect type generated under the current control parameters can be determined, and then based on the pre-set decision tree or rule base, the parameter adjustment strategy corresponding to the defect type can be selected.
[0121] C3) adjusting the panel separation parameters corresponding to the panel separation detection result based on the parameter adjustment strategy.
[0122] In some optional examples, other measures may be added to improve the accuracy of the panel separation parameter adjustment process.
[0123] For example, the model predictive control (MPC) algorithm is used, including: defining control objectives, such as minimizing defect rate or maximizing production efficiency; designing a prediction model to predict the system state in the next few time steps; rolling optimization to solve the optimal control sequence in each control cycle; setting system constraints; and real-time feedback to correct prediction errors using actual measurements.
[0124] Design parameter self-optimization strategies, including: gradient-based optimization methods, such as stochastic gradient descent; evolutionary algorithms, such as genetic algorithms or particle swarm optimization; multi-objective optimization, balancing factors such as quality, efficiency, and cost; adaptive learning rate mechanism, adjusting the step size according to the optimization process; early stopping mechanism to prevent overfitting caused by over-optimization.
[0125] Online learning mechanism, including: designing incremental learning algorithms to update model parameters in real time; implementing concept drift detection to identify changes in system performance; using sliding window technology to keep the model sensitive to the latest data; model ensemble to combine the prediction results of multiple models; designing anomaly detection mechanisms to identify and process abnormal data.
[0126] Real-time parameter adjustment mechanism, including: minimizing the delay in detecting adjustments; implementing a progressive adjustment strategy to avoid sudden changes in parameters; a predictive adjustment mechanism to adjust parameters in advance based on trend analysis; a multi-level adjustment strategy to distinguish between fast fine-tuning and deep optimization; and parameter inheritance between batches.
[0127] Safety constraints ensure that parameter adjustments are within a reasonable range, including: defining the safe operating range of each parameter; implementing hard constraint mechanisms to prevent adjustments beyond the safe range; designing soft constraint strategies to impose penalties on adjustments close to the boundary; implementing progressive constraint relaxation to allow temporary expansion of the range under special circumstances; designing parameter linkage constraints based on the mutual influence between parameters; and abnormal adjustment detection and rollback mechanisms.
[0128] Through these detailed steps, a complex adaptive control process was designed and implemented for the optimization of the PCB depaneling process, which can: First, accurately model the PCB depaneling process and capture the relationship between key parameters and depaneling quality.
[0129] Second, use advanced control algorithms, such as MPC, to achieve predictive and adaptive control.
[0130] Third, through online learning mechanisms, the control model is continuously optimized to adapt to changes in equipment and environment.
[0131] Fourth, the defect detection results are directly fed back to the control system to achieve rapid response and adjustment.
[0132] Fifth, maximize the quality of panel separation and production efficiency while ensuring system safety.
[0133] In this way, by adopting adaptive control methods, not only can the quality and consistency of PCB depaneling be significantly improved, but also human intervention can be reduced, production efficiency can be improved, and valuable insights for process optimization can be provided. Through continuous learning and optimization, the system can adapt to different types of PCB products and changing production conditions, providing a powerful intelligent manufacturing solution for the PCB manufacturing industry.
[0134] In this embodiment, in order to improve the accuracy of each defect detection, the acquired detection image may also be annotated, so that the defect information in the detection image can be better identified.
[0135] In some embodiments, the annotation process may include: D1) Design a graph neural network model for the detection image.
[0136] Specifically, a node feature extractor is designed to obtain parameter information of the detection image, wherein the parameter information includes: texture features, edge features and color features; a multi-layer convolutional network connected to the node feature extractor is designed to perform multi-layer convolution operations on the detection image; and a classification head or a regression head is added to the multi-layer convolutional network.
[0137] In a specific embodiment, when designing a node feature extractor, input features can be defined. For example, for a PCB image, local features such as texture, edge, and color statistics can be extracted. Then, a multi-layer structure is designed, and each layer contains a linear transformation, an activation function (such as ReLU), and batch normalization. This allows the initial features to be further processed and converted to achieve multi-layer perceptron feature extraction. Finally, a self-attention mechanism is introduced to enhance feature extraction capabilities.
[0138] The generation of a multi-layer convolutional network includes: defining graph convolution operations to implement basic message passing functions; then, stacking multiple graph convolution layers to increase the depth of the model, and adding nonlinear activation functions and dropout between graph convolution layers to improve the expressiveness and generalization capabilities of the model; finally, adding residual connections and using feature fusion techniques such as concat operations or weighted sums.
[0139] When adding a classification head or regression head, average pooling or maximum pooling can be used to aggregate the features of all nodes, or attention pooling can be implemented to learn the importance weights of different nodes; and for the PCB defect classification task, a multi-layer MLP is used as a classifier, and the last layer uses the Softmax activation function to output the probability of each category; and for the quality score prediction task, an MLP is used to output a single value. You can consider using multi-task learning to predict multiple quality indicators at the same time.
[0140] D2) Setting a heterogeneity perception mechanism in the graph neural network model to form a heterogeneous graph neural network model.
[0141] Specifically, the node types and edge types in the detection image are identified, and a mapping relationship between the node types and the edge types is created; a rotation matrix is configured for each node type, and an information transfer function is configured for the edge type, and a multi-head attention mechanism and perceptual message aggregation are used to transform and aggregate features.
[0142] In a specific embodiment, the node types may include component nodes, solder joint nodes, line nodes, defect nodes, etc.; the edge types k may include spatial adjacency relationships, functional association relationships, defect impact relationships, etc.
[0143] Next, a separate transformation matrix is created for each node type to allow the model to perform specific feature transformations on different types of nodes. A separate message passing function is designed for each edge type: this enables the model to use different information passing methods based on the edge type, as well as to implement parameter sharing for type combinations, for example, using matrix decomposition techniques to reduce the number of parameters, or implementing conditional calculations to dynamically select parameters based on type.
[0144] Finally, a multi-head attention mechanism is designed, and specific attention calculation methods are designed for different types of nodes and edges to capture complex heterogeneous relationships; specific aggregation functions are designed for different types of edges, and the attention mechanism is used to dynamically adjust the importance of different types of edges; and node type embedding is used to enhance node representation and realize type-aware feature transformation and aggregation.
[0145] Using steps D1) and D2), a heterogeneous graph neural network model suitable for PCB image analysis and defect detection is constructed, which can effectively handle different types of elements and their complex relationships in PCB, and improve the accuracy and interpretability of detection. The heterogeneity perception mechanism of the heterogeneous graph neural network model enables it to distinguish and appropriately process different types of nodes and edges, thereby more accurately capturing PCB structures and potential defects. This provides a powerful and flexible tool for PCB quality control and defect detection.
[0146] D3) Constructing distribution-consistent damage.
[0147] Specifically, the aggregation characteristics of images of the same category in the feature space are determined, and the separation loss of images of different categories in the feature space is increased to determine the consistency loss of the detection image.
[0148] In a specific embodiment, it includes: D31) Design an intra-class consistency loss, that is, to ensure that images of the same category are closely clustered in the feature space, including: calculating the center point (center of mass) of each category, calculating the distance from each image to the center of its category, and minimizing (e.g., cosine similarity or Euclidean distance) the average or sum of these distances.
[0149] D32) Design inter-class separation loss to increase the distance between images of different categories and improve category discrimination, including: calculating the distances between center points of different categories and maximizing these distances, or minimizing their inverses, for example, using contrastive loss or triplet loss.
[0150] D33) Supervision loss and consistency loss, determine the consistency loss of the detection image.
[0151] Among them, the total loss function is: L_total=α*L_supervised+β*L_intra_class+γ*L_inter_class, where α, β and γ are weight coefficients.
[0152] D4) Training the heterogeneous graph neural network model.
[0153] Specifically, it includes: D41) using an image with labeled information to initialize the heterogeneous graph neural network model.
[0154] Among them, images with annotation information refer to a small number of images that are manually annotated.
[0155] In some optional embodiments, data augmentation technology is used to expand limited labeled data, or transfer learning is used to accelerate the convergence of heterogeneous graph neural network models, or cross-validation is performed to ensure the generalization ability of the initial heterogeneous graph neural network model.
[0156] D42) Using the heterogeneous graph neural network model, adding pseudo-annotation information to the detection image.
[0157] In some optional examples, a dynamic confidence threshold may be used to select a target detection image from a plurality of detection images having pseudo-annotation information.
[0158] D43) Based on the image with labeled information and the detection image with pseudo-labeled information, and the consistency loss of the detection image, the heterogeneous graph neural network model is updated.
[0159] Specifically, the model is trained by combining supervision loss (based on real labels and pseudo labels) and consistency loss, and real labels and pseudo labels are treated differently and given different weights.
[0160] More specifically, a mixed batch strategy is used, where each batch contains both real label and pseudo label samples, or pseudo label weight decay is implemented to reduce the reliance on pseudo labels over time, or pseudo labels are re-evaluated and updated regularly.
[0161] D44) Using the updated heterogeneous graph neural network model, pseudo-annotation information is again added to the detection image, through multiple rounds of iterations, until an iteration limit is reached.
[0162] That is: through multiple rounds of self-training, the performance of the heterogeneous graph neural network model is continuously improved.
[0163] Through the above steps, we have built a powerful self-training framework, which is particularly suitable for scenarios such as PCB defect detection, where labeled data is usually scarce but unlabeled data is abundant. The advantages of this method are: 1. Make full use of limited labeled data and a large amount of unlabeled data.
[0164] 2. Through distribution consistency loss, the model’s understanding of data distribution is improved.
[0165] 3. The self-training process allows the model to continuously learn and improve, adapting to different types of PCBs and potential new defect types.
[0166] 4. Reduced reliance on large amounts of manual annotation, saving time and costs.
[0167] 5. Through iterative optimization, the model can gradually improve its performance and eventually achieve an effect close to that of fully supervised learning.
[0168] D5) Using the updated heterogeneous graph neural network model to annotate the detection image to determine the true annotation information of the detection image.
[0169] In this case, the step of performing super-resolution processing on the detection image to generate a high-resolution image corresponding to the detection image may also include: after the detection image is labeled, super-resolution processing is performed on the detection image with the labeled information, thereby further improving the accuracy of subsequent defect detection.
[0170] In this embodiment, when performing defect detection, it is also possible to determine the existing quality indicators that are most stable and reliable when facing various image transformations.
[0171] Specifically, the computer vision-based PCB panel quality detection and control method also includes: evaluating the invariance of the depth image quality index to the affine transformation.
[0172] In a specific embodiment, the following steps may be used: Constructing an evaluation data set includes: selecting an image database, the image database containing multiple images related to printed circuit boards; obtaining the original score corresponding to each image in the image database, performing normalization processing, generating a standardized score, and creating a directory structure for each image; generating a metadata file with a set format containing the directory structure, the original score and the standardized score; traversing each image in the metadata file, and performing multiple different affine transformations on each image, adding a corresponding transformation identifier to the image after the affine transformation; updating the metadata entry corresponding to the transformation identifier in the metadata file; wherein the affine transformation includes: at least one of a rotation transformation, a translation transformation, a scaling transformation and a transformation.
[0173] An invisibility threshold is assigned to each data in the evaluation data set, including: designing a distance conversion algorithm to convert any indicator measurement of each data into a universal distance representation, including: defining a normalization function, and using a distance calculation function and an indicator-specific transformation function to generate a standardized universal distance representation; based on the evaluation data, an invisibility threshold of each data is determined, including: analyzing the distribution of subjective scores and defining an invisibility standard; determining the correlation between the objective indicator and the subjective score, and applying a ROC curve to select an optimal operating point as an initial invisibility threshold.
[0174] Evaluating a depth image quality index includes: selecting a depth image quality index to be evaluated; applying the quality index to each image in an image database and each image after affine transformation, including: selecting each image and each corresponding affine transformed image, and determining a calculation result based on the selected depth image quality index, and storing it in a structured data format.
[0175] Compare the output results of each image and its corresponding affine transformed image on the depth image quality index, including: for any image pair, determine the score difference, average difference and standard deviation of each image and its corresponding affine transformed image, perform visualization operations, and determine the correlation coefficient matrix between different depth image quality indicators.
[0176] The invariance of quality indicators to affine transformations is judged according to the invisibility threshold, including: applying the invisibility threshold to each indicator-transformation pair and calculating the invariance score; sorting the quality indicators according to the invariance score, adjusting the invisibility threshold, and observing the changes in the sorting and rating; summarizing the performance of each indicator, including the overall invariance score and sensitivity to specific transformations.
[0177] In this embodiment, the evaluation of the invariance of the depth image quality index to the affine transformation and the defect detection can be implemented simultaneously, thus, the detection accuracy can be improved.
[0178] In this embodiment, after executing the above steps, system integration, testing and verification steps may also be performed.
[0179] For example, hardware system integration and software system development, among which hardware system integration includes: selecting a suitable industrial computing platform, integrating image acquisition, processing and control modules, and realizing high-speed data transmission and storage systems; software system development includes: designing modular software architecture, operating system, and human-computer interaction interface.
[0180] Another example is system performance optimization, including: algorithm acceleration, data flow processing optimization, latency reduction, and distributed computing.
[0181] Another example is redundant backup mechanisms, fault detection and recovery strategies, as well as data encryption and access control.
[0182] The system testing and verification steps include: verifying the correctness of each module's functions and its performance under different working conditions; testing the system's detection accuracy, evaluating the system's real-time performance and stability under high load; and deploying the system in an actual production environment, collecting operating data and user feedback in real time, and optimizing and adjusting the system.
[0183] To facilitate understanding, detailed explanation is given with examples.
[0184] Example 1: Use GaussianSR to perform super-resolution processing on PCB images.
[0185] Construct a GaussianSR network, including encoder, decoder and Gaussian field rendering layer. The encoder uses ResNet-50 as the backbone network, and the decoder consists of several transposed convolutional layers.
[0186] Prepare a training dataset consisting of low-resolution (256x256) and high-resolution (1024x1024) PCB image pairs. Use data augmentation techniques such as random cropping, rotation, and flipping to expand the dataset.
[0187] Define loss functions, including pixel-level L1 loss, perceptual loss (using features from a pre-trained VGG network), and adversarial loss (using the PatchGAN discriminator).
[0188] Train the GaussianSR network using the Adam optimizer with a learning rate of 1e-4 and a batch size of 16 for 200 epochs.
[0189] The model performance was evaluated on the test set, and the results of GaussianSR were compared with other super-resolution methods (such as SRCNN and ESRGAN). GaussianSR achieved 32.1dB and 0.956 in PSNR and SSIM indicators respectively, which is better than other methods.
[0190] The trained GaussianSR model is integrated into the PCB panel detection system. For the input 256x256 low-resolution image, GaussianSR can generate a 1024x1024 high-resolution image within 20ms, meeting the real-time processing requirements.
[0191] By comparing with the original detection system, it is found that the images processed by GaussianSR can significantly improve the accuracy of defect detection, especially for the detection of tiny defects, the accuracy has increased from the original 85% to 93%.
[0192] In practical applications, the GaussianSR method also demonstrates good generalization capabilities. Even when faced with unseen PCB types, it can generate clear, high-resolution images, providing reliable input for subsequent defect detection.
[0193] To further optimize performance, the GaussianSR model can be quantized and pruned to enable it to run on embedded devices. The optimized model size is reduced by 60%, the inference speed is increased by 40%, while maintaining more than 95% of the performance.
[0194] Example 2: PCB panel defect detection and affine transformation invariance evaluation based on deep learning.
[0195] Defect detection model design, including: selecting YOLOv5 as the basic network architecture; modifying the backbone of YOLOv5 and using EfficientNet-B4 to improve feature extraction capabilities; adding a feature pyramid network (FPN) to better handle multi-scale targets, and designing an attention module to improve the model's perception of key areas.
[0196] Dataset preparation and training include collecting 5,000 high-resolution PCB panel images and annotating six common defects: chipping, cracks, burrs, pad damage, overcutting and undercutting, as well as expanding the dataset using data augmentation techniques, including random rotation, translation, scaling and lighting adjustment.
[0197] Model training, including: setting training parameters: batch size 32, learning rate 0.001, weight decay 0.0005; using cosine annealing learning rate scheduling strategy; training for 300 epochs, using early stopping to avoid overfitting.
[0198] Affine transformation invariance evaluation includes: constructing an evaluation dataset, for example, selecting 1,000 images from the test set and applying four affine transformations to each image: rotation (0°~360°), translation (±20%), scaling (0.8~1.2 times), and brightness adjustment (±30%).
[0199] Defect detection was performed on the original image and the transformed image, and the mean average precision (mAP) and recall were calculated. The detection results of the original image and the transformed image were compared to evaluate the invariance. Results On the original test set, the model achieved 95.2% mAP@0.5 and 93.7% recall. For rotation transformation, the model performance remained stable, with the mAP decreasing by no more than 2%. Translation and scaling transformation had little effect on the model, with the mAP decreasing within 3%. Brightness adjustment had the greatest impact on the model, but within the range of ±20%, the mAP decreased by no more than 5%.
[0200] The improvements include: introducing an adaptive data augmentation strategy to dynamically generate more challenging training samples; integrating multi-scale testing to improve the model’s adaptability to targets of different scales; and implementing test-time augmentation (TTA) to improve detection stability by performing multiple transformations and predictions on test images.
[0201] Through these improvements, the performance of the model has been significantly improved when facing affine transformations, and the decrease in mAP is controlled within 2%, showing good invariance.
[0202] Example 3: Adaptive optimization of PCB panelization parameters based on heterogeneity-aware distribution consistency.
[0203] Problem modeling includes: modeling the PCB depaneling process as a heterogeneous graph, such as defining node types: PCB materials, depaneling parameters, environmental factors, quality indicators; defining edge types: influence relationships, correlations, and timing dependencies.
[0204] Designing graph neural networks, including: building a heterogeneous graph neural network (HGNN), for example, designing a node feature extractor, using a multi-layer perceptron (MLP), implementing a heterogeneous graph attention layer to capture interactions between different types of nodes, and designing a prediction head to output optimal panelization parameters.
[0205] The self-training process includes: initialization training, for example, using historical production data to initialize the model and generate pseudo labels (initial partition parameters) for unlabeled data; iterative optimization, for example, predicting partition parameters based on the current model, applying the predicted parameters for actual production, collecting actual production results, updating the graph structure and node features, calculating the distribution consistency loss, and updating the model in combination with the supervision loss.
[0206] Heterogeneity-aware mechanisms include: implementing type-specific parameter matrices, for example, defining independent transformation matrices for each node and edge type and designing attention mechanisms to dynamically adjust the importance of different types of information.
[0207] Constructing distribution consistency loss includes: using contrastive learning method to maximize the similarity of representations of nodes of the same type, minimizing the similarity of representations of nodes of different types, and introducing temporal consistency constraints to maintain the smoothness of parameter adjustment.
[0208] System implementation and evaluation, including: integrating the HGNN model into the existing PCB sub-panel control system, implementing real-time data acquisition and model update mechanism and designing a visual interface to display the parameter optimization process and effect.
[0209] Performance evaluation, including: comparing the performance of the adaptive system with that of a traditional fixed-parameter system; analyzing the system’s adaptability to different PCB types and production conditions; and evaluating the system’s long-term learning and optimization effects.
[0210] The results analysis included: compared with traditional methods, the adaptive optimization system increased the yield rate of PCB paneling by 3.5%; the system was able to quickly adapt to new PCB materials, shortening the parameter optimization time from the original 2-3 days to 4-6 hours. Long-term operation data showed that the system had a strong continuous learning ability, and the yield rate increased by another 1.2% after 3 months; and the heterogeneity perception mechanism effectively improved the model's understanding of complex production environments, and the prediction accuracy increased by 15%.
[0211] In short, the embodiments of this specification utilize high-speed cameras and advanced computer vision technology to monitor the PCB depaneling process in real time, automatically identify depaneling defects such as broken edges and cracks, and adjust depaneling parameters in real time according to the detection results. In addition, the present invention integrates an adaptive control algorithm that can automatically optimize depaneling parameters according to different PCB materials and thicknesses. In addition, the present invention also introduces the GaussianSR method for image super-resolution processing, proposes a method for evaluating the invariance of deep image quality indicators to affine transformations, and a graph self-training technology based on heterogeneity-aware distribution consistency to improve detection accuracy and system adaptability.
[0212] The embodiment of this specification also provides a device corresponding to the PCB sub-board quality detection and control method based on computer vision, such as Figure 3 The structure diagram of a PCB sub-board quality detection and control device based on computer vision in the embodiment of this specification is shown in FIG. Figure 3 As shown, the PCB sub-board quality detection and control device 100 based on computer vision may include: An acquisition unit 110 is adapted to acquire an inspection image of a printed circuit board in a process of depaneling; A generating unit 120, adapted to perform super-resolution processing on the detection image to generate a high-resolution image corresponding to the detection image; The processing unit 130 has a defect detection model (not shown in the figure), which is suitable for performing defect detection on the high-resolution image to obtain a panel separation detection result of the printed circuit board, wherein the panel separation detection result includes: defect type, defect location and defect confidence; and based on a pre-established relationship model between panel separation parameters and defects, adjusting the panel separation parameters of the printed circuit board according to the panel separation detection result.
[0213] The specific working process and principle of the acquisition unit 110, the generation unit 120 and the processing unit 130 can refer to the relevant description of the aforementioned example.
[0214] It is understandable that the division of the above units is only a division of logical functions, and in actual implementation, they can be fully or partially integrated into one physical entity, or physically separated. In addition, the above units can be implemented in the form of a processor calling software.
[0215] The present invention also provides a computer system suitable for implementing a computer vision-based PCB sub-board quality detection and control method, wherein the computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage part to a random access memory (RAM), such as executing the method described in the above embodiment. Various programs and data required for system operation are also stored in the RAM. The CPU, ROM and RAM are connected to each other through a bus. The input / output (I / O) interface is also connected to the bus.
[0216] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. The drive 310 is also connected to the I / O interface as needed. Removable media, such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, etc., are installed on the drive as needed so that the computer program read therefrom can be installed into the storage part as needed.
[0217] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit (CPU), various functions defined in the system of the present application are executed.
[0218] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0219] In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0220] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0221] The units involved in the embodiments of the present invention may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, limit the units themselves.
[0222] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.
[0223] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0224] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0225] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation method of the present application.
[0226] Although the embodiments of this specification are disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, so the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims
1. A PCB sub-board quality detection and control method based on computer vision, characterized in that: include: Acquire a detection image of a printed circuit board in a process of depaneling; Performing super-resolution processing on the detection image to generate a high-resolution image corresponding to the detection image; Inputting the high-resolution image into a defect detection model to obtain a panel separation detection result of the printed circuit board, wherein the panel separation detection result includes: defect type, defect location, and defect confidence; Based on a pre-established relationship model between panel separation parameters and defects, the panel separation parameters of the printed circuit board are adjusted according to the panel separation detection result.
2. The computer vision-based PCB sub-board quality detection and control method according to claim 1 is characterized in that: The super-resolution processing of the detection image to generate a high-resolution image corresponding to the detection image includes: Based on the pre-trained GaussianSR network, super-resolution processing is performed on the detection image to generate a high-resolution image corresponding to the detection image, including: Representing each pixel in the detection image as a continuous Gaussian field, and assigning multiple Gaussian fields to each pixel to form a multi-layer Gaussian field structure; Based on the feature pyramid network in the GaussianSR network, image feature sampling is performed on multiple layers of Gaussian field structures in a bottom-to-top manner, and image features corresponding to each layer of Gaussian field structures are fused to generate a fused feature image; Setting a multi-resolution decoder at each level of the feature pyramid network, and decoding the fused feature image by the multi-resolution decoder to generate Gaussian field parameters; The high-resolution image is generated according to the Gaussian field parameters and the rendering layer in the GaussianSR network, including: determining the contribution value of each Gaussian field corresponding to each pixel point on the rendering layer grid, and superimposing the contribution value of each Gaussian field on the rendering layer grid to generate the high-resolution image.
3. The computer vision-based PCB sub-board quality detection and control method according to claim 1 or 2, characterized in that: The super-resolution processing of the detection image to generate a high-resolution image corresponding to the detection image further includes: When it is determined that the size of the detection image is larger than the set size, the detection image is divided into a plurality of sub-detection images with overlapping parts by using a sliding window technique; Super-resolution processing is performed on each sub-detection image to obtain a plurality of sub-high-resolution images, and the plurality of sub-high-resolution images are spliced to form the high-resolution image.
4. The computer vision-based PCB sub-board quality detection and control method according to claim 1 is characterized in that: The defect detection model is obtained in the following manner: Selecting a target detection model adapted to the high-resolution image, the target detection model comprising: a YOLOv5 network; Defining defect types and assigning corresponding identifiers to each defect in a configuration file of the target detection model; Generating a training data image set includes: collecting historical printed circuit board splitting images, and after marking each historical printed circuit board splitting image, dividing the historical printed circuit board splitting images into a training image set, a verification image set, and a test image set, and configuring transmission paths of the training image set, the verification image set, and the test image set; The training data image set is input into the target detection model, the target detection model is trained, and the defect detection model is generated, including: performing data enhancement processing on the training data image set, setting training parameters, and using cross-validation to verify the prediction performance of the defect detection model, wherein the data enhancement processing includes: affine transformation, and Mosaic data enhancement and MixUp data enhancement; the training parameters include: the type of optimizer and the initial learning rate, the type of loss function, hyperparameters, and callback function.
5. The computer vision-based PCB sub-board quality detection and control method according to claim 4 is characterized in that: The affine transformation includes: rotation transformation, translation transformation, scaling transformation and spectral brightness transformation; The computer vision-based PCB panel quality detection and control method further includes: evaluating the invariance of the affine transformation to the training data image, and adjusting the defect detection model, including: Selecting a portion of images from the training data image set as first target images; Performing rotation transformation, translation transformation, scaling transformation and spectral brightness transformation on each first target image respectively to generate a second target image; Inputting the first target image and the second target image into the defect detection model respectively, obtaining an average precision, a recall rate, and a defect detection result corresponding to the first target image, and an average precision, a recall rate, and a defect detection result corresponding to the second target image; According to a difference between an average precision corresponding to the first target image and an average precision corresponding to the second target image, and a difference between a recall rate corresponding to the first target image and a recall rate corresponding to the second target image, adjusting the defect detection model includes: using one or more of adaptive data enhancement processing, built-in multi-scale testing in the defect detection model, or data enhancement during testing; And, based on the defect detection result corresponding to the first target image and the defect detection result corresponding to the second target image, the invariance of the affine transformation to the training data image is determined.
6. The computer vision-based PCB sub-board quality detection and control method according to claim 1 is characterized in that: The step of inputting the high-resolution image into a defect detection model to obtain a detection result includes: Adjusting the high-resolution image to a size allowed by the defect detection model, and merging overlapping detection results of the high-resolution image using a sliding window mechanism; Based on the overlap detection results and the set confidence level, the defect type, quantity, and defect location are determined.
7. The computer vision-based PCB sub-board quality detection and control method according to claim 1 is characterized in that: The process of establishing the relationship model between panel separation parameters and defects includes: obtaining the panel separation parameters of the printed circuit board in the panel separation process and the defect parameters under the panel separation parameters, wherein the panel separation parameters include: cutting speed, tool feed rate, tool rotation speed, pressure, coolant flow, and the material, thickness, and number of layers of the printed circuit board; establishing a mapping relationship between the panel separation parameters and defects through multivariate regression or neural network to generate the relationship model; The method of adjusting the panel separation parameters of the printed circuit board according to the panel separation detection result based on the pre-established relationship model between the panel separation parameters and the defects includes: Based on the panel splitting detection result and the relationship model, determining a panel splitting parameter corresponding to the panel splitting detection result; and analyzing the correlation between the defect type in the panel splitting detection result and the control parameter, and mapping the defect type in the panel splitting detection result to the parameter adjustment strategy based on a preset decision tree or rule base; Based on the parameter adjustment strategy, a panel separation parameter corresponding to the panel separation detection result is adjusted.
8. The computer vision-based PCB sub-board quality detection and control method according to claim 1 is characterized in that: Also includes: Annotating the acquired detection image includes: Designing a graph neural network model for the detection image, including: designing a node feature extractor to obtain parameter information of the detection image, the parameter information including: texture features, edge features and color features; designing a multi-layer convolution network connected to the node feature extractor to perform multi-layer convolution operations on the detection image; adding a classification head or a regression head to the multi-layer convolution network; A heterogeneity perception mechanism is set in the graph neural network model to form a heterogeneous graph neural network model, including: identifying the node type and edge type in the detection image, and creating a mapping relationship between the node type and the edge type; configuring a rotation matrix for each node type, and configuring an information transfer function for the edge type, and using a multi-head attention mechanism and perception message aggregation to transform and aggregate features; Constructing distribution consistency damage, including: determining the aggregation characteristics of images of the same category in the feature space, and increasing the separation loss of images of different categories in the feature space, and determining the consistency loss of the detection image; Training the heterogeneous graph neural network model includes: initializing the heterogeneous graph neural network model using an image with annotation information; adding pseudo-annotation information to the detection image using the heterogeneous graph neural network model; updating the heterogeneous graph neural network model based on the image with annotation information and the detection image with pseudo-annotation information, and the consistency loss of the detection image; using the updated heterogeneous graph neural network model, adding pseudo-annotation information to the detection image again, through multiple rounds of iterations, until the iteration limit is reached; Annotating the detection image using the updated heterogeneous graph neural network model to determine true annotation information of the detection image; The super-resolution processing of the detection image to generate a high-resolution image corresponding to the detection image further includes: After the detection image is annotated, super-resolution processing is performed on the detection image with the annotated information.
9. The computer vision-based PCB sub-board quality detection and control method according to claim 1, characterized in that: Also includes: Evaluate the invariance of deep image quality metrics to affine transformations, including: Constructing an evaluation data set includes: selecting an image database, the image database including a plurality of images related to printed circuit boards; obtaining the original score corresponding to each image in the image database, performing normalization processing, generating a standardized score, and creating a directory structure for each image; generating a metadata file with a set format including the directory structure, the original score and the standardized score; traversing each image in the metadata file, performing multiple different affine transformations on each image, and adding a corresponding transformation identifier to the image after the affine transformation; updating the metadata entry corresponding to the transformation identifier in the metadata file; wherein the affine transformation includes: at least one of a rotation transformation, a translation transformation, a scaling transformation and a translation transformation; Allocating an invisibility threshold to each data in the evaluation data set includes: designing a distance conversion algorithm to convert any indicator measurement of each data into a universal distance representation, including: defining a normalization function, and using a distance calculation function and a transformation function to generate a standardized universal distance representation; determining an invisibility threshold of each data based on the evaluation data, including: analyzing the distribution of subjective scores and defining an invisibility standard; determining the correlation between the objective indicator and the subjective score, and applying a ROC curve to select an optimal operating point as an initial invisibility threshold; Evaluating a depth image quality indicator, including: selecting a depth image quality indicator to be evaluated; applying the quality indicator to each image in the image database and each image after affine transformation, including: selecting each image and each corresponding affine transformed image, and determining a calculation result based on the selected depth image quality indicator, and storing it in a structured data format; Comparing the output results of each image and its corresponding affine transformed image on the depth image quality index, including: for any image pair, determining the score difference, average difference and standard deviation of each image and its corresponding affine transformed image, and performing visualization operations, and determining the correlation coefficient matrix between different depth image quality indicators; The invariance of quality indicators to affine transformations is judged according to the invisibility threshold, including: applying the invisibility threshold to each indicator transformation pair and calculating the invariance score; sorting the quality indicators according to the invariance score, adjusting the invisibility threshold, and observing the changes in the sorting and rating; summarizing the performance of each indicator, including the overall invariance score and sensitivity to transformation.
10. A PCB sub-board quality detection and control device based on computer vision, characterized in that: include: An acquisition unit, adapted to acquire an inspection image of a printed circuit board in a process of depaneling; a generating unit, adapted to perform super-resolution processing on the detection image to generate a high-resolution image corresponding to the detection image; A processing unit having a defect detection model, adapted to perform defect detection on the high-resolution image, and obtain a panel separation detection result of the printed circuit board, wherein the panel separation detection result includes: defect type, defect location, and defect confidence; And, based on a pre-established relationship model between panel separation parameters and defects, the panel separation parameters of the printed circuit board are adjusted according to the panel separation detection result.
Citation Information
Patent Citations
Image enhancement-based power transmission line fine hardware defect detection method and system
CN111524135A
Intelligent control method and system for PCB (Printed Circuit Board) splitting machine
CN116001000A
Casting DR image defect identification method
CN117218121A
Detection apparatus for PCB circuit board cut edge
CN208012594U
KR20240103084A
Cited By
Solder paste printing quality abnormity prediction method, system and equipment and storage medium
CN119066597A
Visual health assessment method, system and equipment for university campus landscape
CN119151157A
Intelligent detection and classification system applied to PCBA manufacturing defects
CN119313665A
Intelligent detection and classification system for PCBA manufacturing defects
CN119313665B
Detection device and method for XR glasses
CN119323745A
