Abstract
Mini Double Gears Frame is critical part of PDP and also produces couple hundred thousand every month. In the process of mass production, product inspection is very important process. Double Gear, one of the part of machine, was inspected by human eyes which caused mistakes and slow progress. To achieve the speed and accuracy the system was compensated by vision system which is inspecting automatically. The focus value is measured based on the fact that high contrast images have much high frequency edge information. High frequency term of the image is extracted using the high-pass filter and the sum of the high frequency term is used as the focus value. We used a Gaussian smoothing filter to reduce the noise and then measures the focus value using the modified Laplacian filter called a Sum modified Laplacian Focus values for the various lens positions are calculated and the position with the maximum focus value is decided as the focused position. The focus values calculated in various lens position showed the Gaussian distribution. We proposed a method to estimate the best focus position using the Gaussian curve fitting. Focus values of the uniform interval lens positions are calculated and the values are used to estimate the Gaussian distribution parameters to find the best focus position.