Abstract:Abstract:A new method is proposed to achieve largescale cigarette filters detection under a wide field of view. It is expected to obtain accurate detection under the situation of overlapping, sheltering, distortion and low contrast. Firstly, by adding the spatially aware based the selfattention argument module and a Focal Loss function, an improved Unet model named as SAAUnet is proposed, which can achieve highly accurate semantic segmentation. After receiving a correct segmentation mask, the circle center of the cigarette filters is determined by object detection. Based on the circle theorem, the structural element matching is used to detect the circle centers. Hidden Markov model (HMM) is employed for direction searching. Experiments performed in simulation and industry application environments (with 5000 boxes) verify that the accuracy of the proposed approach can achieve 9995%. Results also show that the proposed method has strong robustness to adapt different challenging environments.