Research on machine vision based detection method for stamping defects in packaging boxes
Aiming at the plastic deformation defects occurred during the stamping process of health product packaging boxes,a machine vision-based defect detection method for metal packaging boxes is developed.To address the issue of small-scale highlights generated in the edge regions of the box body,a correction algorithm based on linear fitting is proposed.For the stamping defects of the packaging box,a shape template matching algorithm is used for preliminary verification and localization.The inner and outer ring regions within the frame are then cropped,and indicators such as the standard deviation and mean of the grayscale values in this region are verified.The results show that the accuracy of this method reaches over 95%,with an average detection time of less than 100ms,meeting the requirements for online detection in practical applications.