ABSTRACT Defects, such as scratches, frequently arise during the manufacturing of near-mirror workpieces, adversely affecting both their longevity and aesthetic appeal. The identification of these near-mirror defects through machine vision is fraught with challenges, including the scarcity of comprehensive datasets, variability in surface curvature, and the diminutive size of the defects. In response to these challenges, this study integrates Visual Parser and deep learning methodologies for the visual detection of near-mirror defects. A dataset conducive to deep learning was developed utilising a sliding window approach. The proposed model incorporates an Adaptive Weighted Convolution Structure (AWCS) and Convolutional Block Attention Module (CBAM) within the ResNet18 architecture. Additionally, we introduce an efficient and precise technique termed Visual Parser, which facilitates the detection and localisation of defect areas in near-mirror workpieces. When combined with a classification model, the Visual Parser allows for the online inference and detection of extensive near-mirror images. Experimental findings indicate that the performance metrics of the proposed ResNet18-AWCS-CBAM (ResNet18-ASCM) model significantly exceed those of established networks. The defect detection and localisation method based on Visual Parser is capable of fulfilling the online inspection requirements pertinent to the production of near-mirror workpieces.
Read full abstract