In industrial quality inspection, large amounts of data on the desired product appearance are available at the time of training, while significantly few defective samples are available. In this study, we proposed new memory-augmented adversarial autoencoders to detect and localize defects in real-time using defect-free samples alone for model training. This research was conducted by reconstructing images using an adversarial autoencoder and detection results from the Fréchet Markov distance (FMD). A threshold was determined based on the statistical characteristics of defect-free samples in the training set. Innovatively, we introduced a memory module and redesigned the reconstruction loss function to avoid the situation where the reconstruction ability is too strong or too poor, which lead to missing detection of defects. Then we proposed FMD, which can accurately measure the distance between the distribution of test samples and positive samples. Moreover, the statistics-based threshold determination method is used to meet different industrial needs. The accuracy, robustness, and computational overhead of the proposed MAA were evaluated using three datasets obtained from the production line and two benchmark datasets. The results indicated the effectiveness and ability of the proposed method to adapt to the real-time nature of industrial production.
Surface defect detection based on computer vision remains a challenging task due to the uneven illumination, low contrast and miscellaneous patterns of defects. Current methods usually present undesirable detection accuracy and lack adaptability for the various scenes. In the paper, the novel uneven illumination surface defects inspection (UISDI) method is proposed to address these issues. First, the multi-scale saliency detection (MSSD) method is proposed to construct a coarse defect map and obtain the corresponding background regions. Second, a novel background similarity prior-based intrinsic image decomposition model (BSIID) is applied to divide the defect image into a non-defective shading layer and a defective reflectance layer. An accelerated optimization solution is proposed to solve the minimization problem of the intrinsic image decomposition model. Last, the enhanced defect image is obtained by filtering the reflectance image and is then utilized to accurately segment the defect region from the coarse defect map. The experiments conducted using four real-world defect datasets demonstrate that the proposed method outperforms state-of-the-art methods.
Images in real surface defect detection scenes often suffer from uneven illumination. Retinex-based image enhancement methods can effectively eliminate the interference caused by uneven illumination and improve the visual quality of such images. However, these methods suffer from the loss of defect-discriminative information and a high computational burden. To address the above issues, we propose a joint-prior-based uneven illumination enhancement (JPUIE) method. Specifically, a semi-coupled retinex model is first constructed to accurately and effectively eliminate uneven illumination. Furthermore, a multiscale Gaussian-difference-based background prior is proposed to reweight the data consistency term, thereby avoiding the loss of defect information in the enhanced image. Last, by using the powerful nonlinear fitting ability of deep neural networks, a deep denoised prior is proposed to replace existing physics priors, effectively reducing the time consumption. Various experiments are carried out on public and private datasets, which are used to compare the defect images and enhanced results in a symmetric way. The experimental results demonstrate that our method is more conducive to downstream visual inspection tasks than other methods.