The invention belongs to the field of
machine vision and industrial detection, and aims to solve the problems that CNN global features are weak, Transform calculation is complex and traditional Mamba local features are incomplete so as to realize high-precision and high-efficiency detection of a
hot rolled steel strip. The method comprises the steps that 1, a steel surface image is received, a balanced
data set is constructed through DDIM data enhancement, and data scarcity is relieved; 2, inputting a pre-trained SpDCH-Mama model (based on SparX-Mama improvement, including a backbone, a CVSS, a
Hybrid Enhancement and a detection head), wherein the backbone alternately extracts multi-scale features by a'DPE-DMCA-VSS '
ganglion layer and a'DPE-VSS' common layer; the CVSS is fused with DWConv, Star Block and the like to strengthen local-global feature
collaboration; the
Hybrid Enhancement initializes the CNN sub-
branch of the
convolution kernel through Sobel to extract the edge, the VSS sub-
branch complements the global, and the dynamic weight and the three-dimensional regularization suppression are subjected to over-fitting; the detection head fuses the features to predict the defect category probability and the bounding box offset; and 3, generating a detection result containing defect types and positions. According to the method, on an NEU-DET
data set, the mAP at 0.5 reaches 82.4%, the mAP at 95 reaches 0.464, the method is superior to YOLO series and the like, and the method is suitable for industrial real-time quality inspection.