The invention relates to the technical field of industrial
visual inspection, in particular to a cigarette packet surface defect detection method and
system and a storage medium, and the method comprises the following steps: optimizing a
light field by adopting a multi-mode
light field regulation and control model; a distributed
camera array is arranged, and a multi-angle image, a multi-mode image and a multi-polarization-angle multi-
spectral image of the surface of a to-be-detected cigarette packet are obtained; according to the multi-angle image and the multi-
modal image, obtaining a three-dimensional reconstruction
depth map by adopting a depth
estimation model; based on the multi-polarization-angle
multispectral image, defect detection is carried out, and a defect edge is extracted; constructing a defect classification model based on self-
supervised learning; carrying out joint training on the multi-
modal light field regulation and control model, the depth
estimation model and the defect detection and defect classification model to obtain a joint detection model; and performing defect detection on a to-be-detected cigarette packet by adopting the trained joint detection model. According to the embodiment of the invention, by fusing the dynamic adjustment light field, the
deep learning algorithm and the multi-angle imaging, the defect
detection performance in the high-reflection environment is optimized.