Abstract:For the current rising labor costs and low detection efficiency of eye fatigue, this paper presents a method for detecting socket quality based on machine vision. The main research contents are as follows: 1) Socket positioning method based on template matching with machine vision. 2) The machine vision detection method for screws defects based on the mean of gray value. 3) The detection method of jack defect based on grayscale standard deviation. In the production line testing, screws and jack defect recognition rate have reached 100%. And the average per-frame image processing only takes 100ms, which shows that this method has high accuracy, fast speed advantages.