Aiming at the low efficiency of traditional artificial detection of food packaging bag defects,a food packaging bag defect detection method with improved YOLOv5 model was proposed.SE attention mechanism was added to improve the detection ability of the model for small defects.The CARAFE upsampling operator is introduced to improve the quality of reconstruction by using the content information of feature graph.Replace the activation function with a Mish activation function to enhance the accuracy and generalization of the network.On the self-made cookie bag data set,the average accuracy of the improved network is 88.4%,the mAP of the final detection model is increased by 21.76%,and the number of parameters is decreased by 9.36%compared with the original model.
关键词
深度学习/YOLOv5/缺陷检测/食品包装袋
Key words
deep learning/YOLOv5/defect detection/food packaging bag