Abstract: To reduce the errors caused by traditional human visual inspection and improve the efficiency of spark plug defect detection, a spark plug defect detection system was designed based on discharge detection technology and machine vision technology. The spark plug defect detection system was composed of industrial computer, NI DAQ data acquisition card, IGBT driver board, IGBT module, ignition coil, voltage dividing module and industrial camera. Pulse width modulation technology and electromagnetic induction principle were used to apply high voltage to spark plug. The location information of spark discharged by spark plug under high voltage output of the ignition coil was captured to detect the defect in ceramic parts. The experimental results show that the high voltage output of the spark plug defect detection system is safe and measurable, and the detection accuracy is as high as 95%, which meets the actual application requirements of spark plug defect detection.