Vial bottle mouth defect detection based on machine vision

In order to achieve vial bottle mouth defect detection, this paper proposes a vial bottle mouth defect detection scheme based on machine vision. The scheme is mainly using machine vision software HALCON to study. Firstly, the noise in the bottle mouth image is removed by filtering. Secondly, separating target and background by threshold segmentation. Then, extracting the edges through the edge detection, and finally to the bottle mouth defect identification. Test results show that this method is rapid and efficient for vial bottle mouth defect detection, which has the advantages of high precision and stability.