The invention discloses a SobelConv and CoordGate-based flaw
feature extraction method, and the method comprises the following steps: obtaining an original feature map, and constructing a flaw
feature extraction method of double-
branch parallel and left and right
branch information interaction; in a left
branch of the defect
feature extraction method, an improved deformable
convolution DConv and a designed calculation space
convolution CoordGate block are used for carrying out adaptive
reinforcement learning on defect features of SobeConv; in a right branch of the flaw feature extraction method, a designed calculation space variation
convolution CoordGate block stack is used for learning flaw
local space features; fusing defect features through multiple times of double-branch information interaction and feature splicing, and then constructing a residual connection layer to fuse with originally input defect features; jointly constructing a new flaw detection model by using the flaw feature extraction method and the RT-DETR; and constructing a flaw image
data set, training and testing the flaw image
data set by using the new flaw detection model, and observing a flaw detection result. The objective of the invention is to reduce the
model parameter quantity, improve the calculation efficiency, reduce the calculation
resource consumption, and improve the recognition rate of the defect detection model under the complex background.