Xia Baizhan, Luo Hao, Shi Shiguang
School of Computer, Zhongshan Institute, University of Electronic Science and Technology of China, Zhongshan 528402, China.
Comput Intell Neurosci. 2022 May 17;2022:3248722. doi: 10.1155/2022/3248722. eCollection 2022.
Defect recognition plays an important part of panel inspection, and most of the current manual inspection methods are used, but the recognition efficiency and recognition accuracy are low. The Fast-Convolutional Neural Network (Faster R-CNN) algorithm is improved, and a surface defect detection algorithm based on the improved Faster R-CNN is proposed. Firstly, the algorithm improves the bilateral filtering algorithm to smooth the image texture background. Subsequently, a feature pyramid network with a shape-variable convolutional ResNet50 network can be applied to acquire defect semantic feature maps to improve the network's ability to express the features of multiscale defects while solving the difficulty problem of many types of defects and variable shapes. To obtain more accurate defect localization information, the algorithm in this paper uses the Region of Interest Align (ROI Align) algorithm instead of the crude Region of Interest Pooling (ROI Pooling) algorithm. Then, an improved attention region recommendation network is used to improve the focus of the model on plate defects and suppress the features of complex background. Finally, a K-means algorithm is added to cluster the defect data to derive anchor frames that are better adapted to the plate defects. In this paper, a dataset containing 3216 images of surface defects of plate metal is made by acquiring surface defect images from the production site of the plate metal factory, which mainly include various defect types. This dataset is used to train and test the algorithm model of this paper, and the results of detection accuracy and detection speed are compared with those of other algorithms, which prove that the algorithm of this paper can achieve real-time detection of plate defects with high detection accuracy.
缺陷识别是板材检测的重要环节,目前大多采用人工检测方法,但识别效率和准确率较低。对快速卷积神经网络(Faster R-CNN)算法进行改进,提出一种基于改进Faster R-CNN的表面缺陷检测算法。首先,该算法改进双边滤波算法以平滑图像纹理背景。随后,应用具有形状可变卷积ResNet50网络的特征金字塔网络来获取缺陷语义特征图,以提高网络表达多尺度缺陷特征的能力,同时解决多种类型缺陷和形状多变的难题。为获得更准确的缺陷定位信息,本文算法使用感兴趣区域对齐(ROI Align)算法而非粗糙的感兴趣区域池化(ROI Pooling)算法。然后,使用改进的注意力区域推荐网络来提高模型对板材缺陷的关注程度并抑制复杂背景的特征。最后,添加K均值算法对缺陷数据进行聚类,以得出更适合板材缺陷的锚框。本文通过从板材金属厂生产现场采集表面缺陷图像,制作了一个包含3216张板材金属表面缺陷图像的数据集,这些图像主要包括各种缺陷类型。该数据集用于训练和测试本文的算法模型,并将检测精度和检测速度的结果与其他算法进行比较,结果表明本文算法能够实现对板材缺陷的高精度实时检测。