摘要:Roll packaging is the last step in the emulsion explosives production line. Due to various reasons, explosives may have defects in the packaging process. How to sort defective drug coils efficiently and accurately is a major problem. In this paper, an online detection system for drug package which based on machine vision is developed for the defect of emulsion explosive drug packaging. This paper mainly discusses the image preprocessing, image segmentation and feature extraction. The test and application show that the system can detect the defect drug coil better and has the advantages of fast and accurate, which can meet the needs of the production site.