Abstract:Focusing on the surface defect of the cylindrical electronic components,an automatic defect inspection system based on machine vision was designed. On the platform of Visual C++, a series of methods were presented to achieve the purpose of efficient part defect detection, including image pre-processing, image binary-conversion, position and angle correction,difference image method and so on. Experiments prove that this system is safe and reliable, full of economic benefits and broad prospects.