Abstract:Aiming at the problems of slow workpiece recognition and low precision in industrial production lines, a workpiece recognition method based on improved YOLOv5 is proposed, called YOLO_Meta. The original network architecture of YOLOv5 has been adjusted in multiple stages, including the use of two-way attention mechanism modules and depth-separable convolutions to improve the backbone feature extraction network, which can extract features more comprehensively; introduce a new type of decoupling The head enhances the model"s ability to utilize feature maps at each level; the KMeans algorithm is used to calculate the similarity of random anchor frames to filter the prior frames and add label smoothing algorithms, etc. This paper conducts experiments based on MS COCO and self-made workpiece datasets, and divides the models into three models: large, medium and small according to the depth and width of the model. The experimental results show that the AP of the large, medium, and small models on the MS COCO dataset has increased by 3.4%, 1.8%, and 6.9%, respectively, compared with the original model. Compared with the original model, the mAP of the large model on the self-made artifact dataset has increased by 19.1%, and the F1 score has increased by 15.2%. Compared with the original model, the YOLO_Meta model proposed in this paper has greatly improved both in terms of stability and accuracy. This method can provide a reference for artifact detection tasks.