Machine vision has already became one of important branches in nondestructive detection.Getting image of magnetic cores by mechine vision system and through image pretreatment,image segmentation,character extracting and image analysis,then export the results of detection and resort PLC to controlling machine,reach the purpose of classificating the magnetic cores in line finally.