Lightweight multi-scale feature fusion defect detection method
Through the multi-view imaging system and lightweight multi-scale feature fusion method, the problems of low detection accuracy and poor robustness of traditional industrial vision systems are solved, and efficient, fast and accurate defect detection in industrial defect detection is achieved.
Patent Information
- Application Number
- CN202311840928.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-12-28
AI Technical Summary
Traditional industrial vision systems can only capture images from one angle, resulting in low detection accuracy and poor robustness. It is difficult to accurately identify small defects, resulting in low detection efficiency and slow speed.
A multi-view imaging system is used combined with a lightweight multi-scale feature fusion defect detection method. Images are collected through the multi-view imaging system and input into the preset detection model. The backbone feature extraction network, neck feature extraction network and feature detection head are used for feature extraction. and fusion to improve detection accuracy and speed.
Under the premise of small calculation amount, the detection accuracy and robustness are improved, the weight of the area of interest is enhanced, and the weight of the uninteresting area is reduced, achieving lightweight, fast, and high-precision defect detection, which is suitable for Industrial defect detection.
Smart Images

Figure CN117764969B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial defect detection, and in particular to a multi-view imaging system and a lightweight multi-scale feature fusion defect detection method. Background Art
[0002] Industrial defect detection methods mainly include two types: manual detection and optical detection. There are many disadvantages of manual detection methods. The detection process is inefficient, and for some tiny, weak, and imperceptible defects, the human eye may not be able to accurately identify them, causing the defects to be ignored. Due to the above disadvantages, industrial defect detection has gradually turned to automated and semi-automated detection methods, such as machine vision, sensor technology, etc., to improve detection efficiency and accuracy.
[0003] Automatic optical inspection technology is an inspection method based on optical principles and machine vision technology. The core is to use optical imaging technology to capture images of objects, and then use computers to process, analyze and identify these images to achieve automatic inspection. Due to the limitations of traditional imaging systems, detection algorithms and computing power, current automatic optical inspection methods often encounter limitations such as poor 360-degree image acquisition, low detection accuracy and slow detection speed. Therefore, the development of a lightweight target detection algorithm with small computational complexity, fast detection speed and high accuracy is of great significance for industrial defect detection. Summary of the invention
[0004] The purpose of the present invention is to provide a multi-view imaging system and a lightweight multi-scale feature fusion defect detection method for the problems that traditional industrial vision systems can only capture images at one angle, and existing tiny defect detection algorithms have low detection accuracy and poor robustness. The multi-view imaging system has a simple structure and can perform multi-directional imaging of the inspected object. It is combined with a lightweight multi-scale feature fusion defect detection algorithm to improve detection accuracy and speed, and is expected to be widely used in the field of industrial defect detection.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] A multi-view imaging system includes: an imaging unit, an illumination device, a vertical support rod and a conveyor belt, each imaging unit is equipped with an illumination device, and the imaging unit and the illumination device are arranged on the vertical support rod, the vertical support rod is arranged according to the vertices of a rectangle to form an intermediate rectangular area, and the conveyor belt is arranged in the rectangular area for placing the target to be detected.
[0007] To further achieve the above objectives, the present invention also provides a lightweight multi-scale feature fusion defect detection method, comprising:
[0008] Acquiring an image of a target to be detected, wherein the image of the target to be detected is obtained by the multi-view imaging system;
[0009] The image is input into a preset detection model, and the defect detection result of the target to be detected is output, wherein the detection model is obtained based on training of a training set, the training set includes images containing defects and labels identifying the defects, and the detection model is constructed using a feature extraction network and a lightweight multi-scale feature fusion network.
[0010] Optionally, the detection model includes: a backbone feature extraction network, a neck feature extraction network, and a feature detection head. The backbone feature extraction network is used to perform feature extraction and feature fusion on the image to obtain a first feature map; the neck feature extraction network is used to perform feature extraction and feature fusion on the first feature map to obtain a second feature map; the feature detection head is used to detect the second feature map to obtain a defect detection result.
[0011] Optionally, the backbone feature extraction network includes: a convolution layer, a C2f layer, a lightweight fusion module, a high-level lightweight fusion module and an SPPF layer; the image is input into the backbone feature extraction network, passes through the convolution layer and the C2f layer, and obtains feature map B1 and feature map B2; the feature map B1 and feature map B2 pass through the lightweight fusion module, the convolution layer and the C2f layer to obtain feature map B3; the feature map B1, feature map B2 and feature map B3 pass through the high-level lightweight fusion module, the convolution layer, the C2f layer and the SPPF layer to obtain feature map B4.
[0012] Optionally, the neck feature extraction network includes: an upsampling layer, a splicing layer, a convolutional layer, a C2f layer, a lightweight fusion module and a high-level lightweight fusion module. The feature map B4 is input into the neck feature extraction network, passes through the upsampling layer, the splicing layer and the C2f layer, and obtains the feature map D1; the feature map D1 passes through the convolutional layer, the splicing layer and the C2f layer to obtain the feature map D2; the feature map D1 and the feature map D2 pass through the lightweight fusion module, the convolutional layer, the splicing layer and the C2f layer to obtain the feature map D3; the feature map D1, the feature map D2 and the feature map D3 pass through the high-level lightweight fusion module, the convolutional layer, the splicing layer and the C2f layer to obtain the feature map D4.
[0013] Optionally, the lightweight fusion module includes: a first branch and a second branch. After the first branch and the second branch are subjected to convolution, normalization, and downsampling operations respectively, feature information of the first branch and the second branch is obtained, and the feature information of the first branch and the second branch is processed by a Sigmoid activation function and added, and then a triple attention mechanism is introduced to further extract the fused feature information of the first branch and the second branch.
[0014] Optionally, the high-level lightweight fusion module includes: a third branch, a fourth branch and a fifth branch. The third branch and the fourth branch are respectively subjected to downsampling and convolution operations to obtain feature information of the third branch and the fourth branch. The feature information of the third branch and the fourth branch is processed and added with the fifth branch through a Sigmoid activation function, and then a triple attention mechanism is introduced to further extract the fused feature information of the third branch, the fourth branch and the fifth branch.
[0015] Optionally, the triple attention mechanism includes: three identical sixth branches, the three identical sixth branches respectively perform Z-pooling, convolution and the Sigmoid activation function operation, obtain the outputs of the three identical sixth branches, and average the outputs to obtain the output of the triple attention mechanism.
[0016] Optionally, the feature detection head is used to detect the second feature map, including:
[0017] The feature detection head detects the feature map D1, feature map D2, feature map D3, and feature map D4 respectively, and outputs a prediction box and a category probability, wherein the prediction box is represented by a coordinate value, and the category probability is obtained by mapping the coordinate value to a range of 0-1.
[0018] Optionally, obtaining the defect detection result includes:
[0019] Whether the target to be detected has defects is determined based on whether the feature detection head outputs the prediction box. If the prediction box is output, it means that the target to be detected has defects; if the prediction box is not output, it means that the target to be detected does not have defects.
[0020] The beneficial effects of the present invention are:
[0021] The present invention constructs a multi-view imaging system and proposes two lightweight multi-scale feature fusion modules. Under the premise of small amount of calculation, it effectively connects the feature information of the context, selectively selects features, increases the weight of the detection area of interest, and reduces the weight of the uninterested area, which not only improves the accuracy and robustness of the detection, but also does not affect the detection speed. The method has the advantages of lightweight, fast speed and high accuracy, and has broad application prospects in the field of industrial defect detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] 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 will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0023] Figure 1 A schematic diagram of the front view structure of a multi-view imaging system according to an embodiment of the present invention;
[0024] Figure 2 It is a schematic front view of a multi-view imaging system according to an embodiment of the present invention;
[0025] Figure 3 A schematic diagram of the imaging principle of a multi-view imaging system according to an embodiment of the present invention;
[0026] Figure 4 A schematic diagram of the structure of a detection model according to an embodiment of the present invention;
[0027] Figure 5 This is a schematic diagram of the structure of a lightweight fusion module according to an embodiment of the present invention;
[0028] Figure 6 This is a schematic diagram of the structure of the TripletAttention mechanism of an embodiment of the present invention;
[0029] Figure 7 This is a schematic diagram of the structure of a high-level lightweight fusion module according to an embodiment of the present invention;
[0030] Among them, 101-computer, 102-imaging unit, 103-illumination device, 104-vertical support rod, 105-inspected object, CB-conveyor belt, C1-first imaging unit, C2-second imaging unit, C3-third imaging unit, C4-fourth imaging unit. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0033] This embodiment provides a multi-view imaging system and a lightweight multi-scale feature fusion defect detection method, including:
[0034] Step 1. Build a multi-view imaging system;
[0035] like Figure 1 As shown, the multi-view imaging system includes an imaging unit 102, an illuminating device 103, a vertical support rod 104, and a conveyor belt CB; the imaging unit 102 includes a first imaging unit C1, a second imaging unit C2, a third imaging unit C3, and a fourth imaging unit C4, each imaging unit is equipped with an illuminating device 103, and each group of imaging units and illuminating devices 103 is installed on the vertical support rod 104, forming a structure as shown in FIG. Figure 2 In the rectangular area shown, the conveyor belt CB is arranged in the middle of the rectangular area, and the inspected object 105 is placed on the conveyor belt CB. As the conveyor belt moves, the multi-view imaging system can capture the image of the surface of the inspected object 105 with a 360-degree viewing angle.
[0036] Imaging key Figure 3 As shown, the light source LS of the lighting device 103 illuminates the object to be inspected 105 , and the lens L and the sensor C of the imaging unit 102 acquire an image of the surface of the object to be inspected 105 .
[0037] Step 2: Use a multi-view imaging system to capture an image of the inspected object 105, and input the image into a computer 101 in real time. The computer 101 stores a preset detection model, and performs real-time defect detection on the inspected object 105 through the detection model, specifically including:
[0038] Step 2.1. Use feature detection head and lightweight multi-scale feature fusion to build a detection model;
[0039] like Figure 4 As shown, the detection model includes: a backbone feature extraction network, a neck feature extraction network, and a feature detection head. The backbone feature extraction network is used to perform feature extraction and feature fusion on the image to obtain a first feature map; the neck feature extraction network is used to perform feature extraction and feature fusion on the first feature map to obtain a second feature map; the feature detection head is used to detect the second feature map to obtain defect detection results.
[0040] The backbone feature extraction network includes: convolution layer, C2f layer, lightweight fusion module, high-level lightweight fusion module, SPPF layer;
[0041] The neck feature extraction network includes: upsampling layer, splicing layer, C2f layer, convolution layer, lightweight fusion module, and high-level lightweight fusion module;
[0042] An RGB image of size n×h×w (n is the number of channels, h is the image height, and w is the image width) is input into the backbone feature extraction network. Two feature maps B1 and B2 of different scales are obtained through convolution and C2f layers. The feature maps of these two scales are respectively obtained through lightweight fusion modules, convolution and C2f layers to obtain feature map B3. Feature maps B1, B2 and B3 are input into high-level lightweight fusion modules and SPPF layers to obtain feature map B4. Thus, four feature maps B1, B2, B3 and B4 of different scales are obtained in the backbone. The scales are n B1 ×h / 4×w / 4,n B2 ×h / 8×w / 8,n B3 ×h / 16×w / 16,n B4 ×h / 32×w / 32. The number of C2f layers is 1. Feature maps B1 and B2 are passed through the lightweight fusion module to realize feature transfer, and then further obtain context information connection through the high-level lightweight fusion module to enhance feature information. Among them, the feature scales of the input and output of the lightweight fusion module and the high-level lightweight fusion module are consistent.
[0043] Specifically, in this embodiment, an RGB image with a size of 3×640×640 is input into the backbone feature extraction network to obtain four feature maps B1, B2, B3, and B4 with scales of 128×160×160, 256×80×80, 512×40×40, and 1024×20×20, respectively.
[0044] In the neck feature extraction network, the feature map B4 obtained in the backbone feature extraction network is processed by upsampling, splicing, C2f layer, lightweight fusion module and high-level lightweight fusion module. Four feature maps of different scales D1, D2, D3, and D4 are obtained. The scales are n D1 ×h / 4×w / 4,n D2 ×h / 8×w / 8,n D3 ×h / 16×w / 16,n D3 ×h / 32×w / 32. At the same time, the designed lightweight fusion module and the high-level lightweight fusion module are used to fuse the output detection head feature map to achieve the fusion of feature information and context at different scales, thereby improving the performance of the network.
[0045] Specifically, in this embodiment, the feature map B4 is input into the neck feature extraction network to obtain four feature maps D1, D2, D3, and D4 of different scales, with scales of 128×160×160, 256×80×80, 512×40×40, and 1024×20×20, respectively.
[0046] The feature detection heads are divided into four detection heads of different sizes, which can realize accurate detection of large and small targets, thereby improving the defect detection performance.
[0047] Lightweight fusion modules such as Figure 5 As shown in the figure, it includes two branches, including convolution layer, normalization layer, downsampling layer, triplet attention mechanism (TripletAttention, TA) and Sigmoid activation function;
[0048] Assume that the scales of the input feature maps are n1×h / 4×w / 4 and n2×h / 8×w / 8, respectively. In this implementation, they are specifically 128×160×160 and 256×80×80. The feature information of the two branches of different scales is interactively enhanced. First, a lateral connection technology is introduced, which can improve the transmission ability of feature information of different scales. This module will selectively learn useful feature information from another branch, thereby increasing the weight of detecting the area of interest. A lightweight attention mechanism is also introduced, which can not only further enhance the feature extraction capability, but also will not increase the amount of calculation and affect the speed of target detection. In this module, the corresponding vectors of the feature maps of the two branches of n1×h / 4×w / 4 and n2×h / 8×w / 8, i.e., 128×160×160 and 256×80×80, are defined as and Then the image output of the Sigmoid(.) function can be expressed as:
[0049]
[0050] Among them, σ represents the similarity parameter of the feature information of the two branches. If σ is higher, the feature information of the branch is richer and more accurate, and vice versa. Therefore, the output after adding the Sigmoid(.) function can be written as:
[0051]
[0052] Here, a lightweight triplet attention mechanism (TA) is used to further extract feature information. This is a method of calculating attention weights by capturing cross-dimensional interactions using a three-branch structure. The structure of the triplet attention mechanism is as follows: Figure 6 As shown, it includes three identical branches, and each branch structure includes a Z-Pool pooling layer, a convolutional layer, and a Sigmoid activation function;
[0053] TA establishes inter-dimensional dependencies through rotation operations and residual transformations, and encodes inter-channel and spatial information with negligible computational overhead. It realizes information interaction between different dimensions. The final output can be expressed as:
[0054]
[0055] Among them, δ represents the Sigmoid(.) function, T1, T2, T3 represent the input of the three branches, * represents the dimension interaction and Z-Pool pooling layer, α1, α2 and α3 represent the standard two-dimensional convolutional layers defined by the convolution kernel size K in these three branches. The formula can be simplified as:
[0056]
[0057] In the above formula, ρ1, ρ2 and ρ3 are the attention weights of the three interaction dimensions calculated in the attention mechanism. Represents the parameter The dimension of is restored to the dimension of input T1, Represents the parameter The dimension of is restored to the dimension of input T2.
[0058] The Z-Pool pooling layer above is responsible for reducing the 0th dimension of the tensor to 2 by concatenating the average pooled and maximum pooled features of the tensor. This allows the layer to retain the rich representation of the actual tensor while shrinking its depth, making further computations lightweight. It can be expressed as:
[0059] Z-Pool(x)=Concat 1d [MaxPool 0d (x),AvgPool 0d (x)]
[0060] Among them, 0 d Represents the maximum pooling operation and the average pooling operation in the 0th dimension, Concat 1d It represents the concatenation of two pooling operations in the first dimension.
[0061] High-level lightweight fusion modules such as Figure 7 As shown in the figure, it includes three branches, including downsampling layer, convolution layer, normalization layer, and triplet attention mechanism (TripletAttention, TA) and Sigmoid activation function;
[0062] Assume that the input feature map scales are n1×h / 4×w / 4, n2×h / 8×w / 8, n3×h / 16×w / 16, which are 128×160×160, 256×80×80, 512×40×40 in this implementation, respectively, represented by t1, t2, t3. First, t1 and t2 are downsampled and convolved. Then, they are added to t3 and passed through the Sigmoid(.) function to obtain the output α, which can be expressed as:
[0063] α=Sigmoid(f(t1)+f(t2)+t3)
[0064] The three features of different scales are fused before the Sigmoid(.) function to enhance the contextual connection. Then the obtained α is multiplied with the other two branches. In this way, it can selectively select feature information, increase the weight of the area of interest, and suppress the weight of the area of no interest. This can not only improve the detection performance, but also reduce the amount of calculation and will not affect the detection speed. The output after addition can be expressed as:
[0065] add = αf(t1) + (1-α)f(t2)
[0066] Here, f represents downsampling and convolution layer operations. Similarly, the introduction of TA module and residual network further extracts feature information while preventing gradient vanishing and overfitting, enhancing the robustness of the network and enabling the network to extract features with minimal computation even in complex feature information. The final output can be expressed as:
[0067] Out=Sc(T(C b (add))+C b (add))
[0068] Among them, Sc represents the convolution, normalization, and activation function operations, T is the TA attention mechanism function, and C b It is a convolution and normalization operation.
[0069] Step 2.2. Train the detection model;
[0070] Collect images of objects containing defects and construct a data set I = [I1, I2, ..., I K ]. The total number of elements in the dataset I is K, and the image size is n×h×w, where n is the image channel, h is the image height, and w is the image width. Specifically, the total number of elements in the dataset constructed in this embodiment is 4730, and the image size is 3×640×640.
[0071] The image is labeled using the open source tool labelImg. The labeled content is the defect category and the coordinates of the upper left and lower right corners of the defect target. The format of the labeled information file is xml.
[0072] The labeled defect image dataset is divided into training set, validation set and test set in proportion.
[0073] The training is carried out in a way that the learning rate gradually increases. The final learning rate will increase to lr, and the loss function is L, which is consistent with YOLOv8.
[0074] The training parameters are set as follows: learning rate lr is 0.001, batch size is 16, the ratio of training set, validation set, and test set is 8:1:1, the optimizer is SGD, and the total training cycle is 500.
[0075] Step 2.3. Perform defect detection based on the trained detection model;
[0076] The imaging unit 102 captures an image of the inspected object 105 and inputs the image into the computer 101 in real time. The trained detection model performs real-time detection on the image and outputs a target image and a target defect prediction frame.
[0077] First, the image to be tested Img is input into the detection model. The image size is n×h×w. After network processing, the output prediction boxes of the four detection heads are obtained. The output feature map scales are h / 4×w / 4, h / 8×w / 8, h / 16×w / 16, and h / 32×w / 32, respectively.
[0078] Specifically, in this implementation, the size of the image is 3×640×640, and the scales of the output feature maps are 160×160, 80×80, 40×40, and 20×20, respectively.
[0079] Each predicted box is represented by four coordinate values, which are processed by convolutional layers and activation functions, usually linear activation functions or Sigmoid (.) functions, to map the coordinates to the range of 0 to 1. At the same time, for each predicted box, the model also predicts the probability distribution of all possible categories. This process is completed through convolutional layers and Softmax (.) functions to ensure that each category score is between 0 and 1, and their sum is equal to 1. The output of the detection head is a tensor containing the bounding box coordinates and category probabilities of all predicted boxes. In the post-processing stage, non-maximum suppression (NMS) is used to remove redundant bounding boxes and finally retain the target box with the highest confidence.
[0080] The coordinates of the prediction box are usually expressed as (x, y, w, h), where (x, y) is the coordinate of the upper left corner of the box, and (w, h) is the width and height of the box. The normalized position coordinates (X, Y, W, H) normalize these values to the range of the image, usually between 0 and 1. If the object to be inspected outputs a prediction box, it means that the object to be inspected has defects, otherwise, it means that the object has no defects.
[0081] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.
Claims
1. Lightweight multi-scale feature fusion defect detection method, It is characterized in that include: Collecting images of the target to be detected; Inputting the image into a preset detection model, and outputting a defect detection result of the target to be detected, wherein the detection model is obtained based on training of a training set, and the training set includes an image containing a defect and a label identifying the defect; The detection model includes: a backbone feature extraction network, a neck feature extraction network, and a feature detection head. The backbone feature extraction network is used to perform feature extraction and feature fusion on the image to obtain a first feature map; the neck feature extraction network is used to perform feature extraction and feature fusion on the first feature map to obtain a second feature map; the feature detection head is used to detect the second feature map to obtain a defect detection result; The backbone feature extraction network includes: a convolution layer, a C2f layer, a lightweight fusion module, a high-level lightweight fusion module and an SPPF layer; the image is input into the backbone feature extraction network, passes through the convolution layer and the C2f layer, and obtains a feature map , feature map The characteristic diagram , feature map After the lightweight fusion module, convolution layer and C2f layer, the feature map is obtained. The characteristic diagram , feature map , feature map After the high-level lightweight fusion module, convolution layer, C2f layer and SPPF layer, the feature map is obtained. ; The neck feature extraction network includes: an upsampling layer, a splicing layer, a convolution layer, a C2f layer, a lightweight fusion module and a high-level lightweight fusion module. Input into the neck feature extraction network, pass through the upsampling layer, splicing layer and C2f layer, and obtain the feature map The characteristic diagram After the convolution layer, concatenation layer and C2f layer, the feature map is obtained. The characteristic diagram , feature map After the lightweight fusion module, convolution layer, concatenation layer and C2f layer, the feature map is obtained. The characteristic diagram , feature map , feature map After the high-level lightweight fusion module, convolution layer, concatenation layer and C2f layer, the feature map is obtained. ; The lightweight fusion module includes: a first branch and a second branch, wherein the first branch and the second branch are respectively subjected to convolution, normalization, and downsampling operations to obtain feature information of the first branch and the second branch, and the feature information of the first branch and the second branch are processed by a Sigmoid activation function and added, and then a triple attention mechanism is introduced to further extract fusion feature information of the first branch and the second branch; The high-level lightweight fusion module includes: a third branch, a fourth branch and a fifth branch. The third branch and the fourth branch are respectively subjected to downsampling and convolution operations to obtain feature information of the third branch and the fourth branch. The feature information of the third branch and the fourth branch is processed and added with the fifth branch through a Sigmoid activation function, and then a triple attention mechanism is introduced to further extract the fused feature information of the third branch, the fourth branch and the fifth branch.
2. The lightweight multi-scale feature fusion defect detection method according to claim 1, It is characterized in that A multi-view imaging system is used to collect images of the target to be detected. The multi-view imaging system includes: an imaging unit, a lighting device, a vertical support rod and a conveyor belt. Each imaging unit is equipped with a lighting device, and the imaging unit and the lighting device are arranged on the vertical support rod. The vertical support rods are arranged according to rectangular vertices to form an intermediate rectangular area. The conveyor belt is arranged in the rectangular area for placing the target to be detected.
3. The lightweight multi-scale feature fusion defect detection method according to claim 1, It is characterized in that The triple attention mechanism includes: three identical sixth branches, the three identical sixth branches respectively perform Z-pooling, convolution and the Sigmoid activation function operation, obtain the outputs of the three identical sixth branches, and average the outputs to obtain the output of the triple attention mechanism.
4. The lightweight multi-scale feature fusion defect detection method according to claim 1, It is characterized in that The feature detection head is used to detect the second feature map, including: The feature detection head respectively detects the feature map , feature map , feature map , feature map Perform detection and output a prediction box and a category probability, wherein the prediction box is represented by a coordinate value and the category probability is obtained by mapping the coordinate value to a range of 0-1.
5. The lightweight multi-scale feature fusion defect detection method according to claim 4, It is characterized in that Obtaining the defect detection result includes: Whether the target to be detected has defects is determined based on whether the feature detection head outputs the prediction box. If the prediction box is output, it means that the target to be detected has defects; if the prediction box is not output, it means that the target to be detected does not have defects.
Citation Information
Patent Citations
Method and system for detecting defect of patterned substrate
CN101819165A
Unmanned aerial vehicle video multi-target tracking method based on attention feature fusion
CN113807187A
Workpiece defect detection method and device fusing multi-attention mechanism
CN113822885A
Traffic flow detection method and system
CN114241792A
Visual detection method and system for micro surface defects based on multi-scale feature fusion
CN115775236A
