Patent ID: 7339147
Filing Date: 2008-03-04
Classification: G02B

Abstract:
1. A system for automatic focusing of images, the system comprising a measure machine and a computer, wherein: the measure machine comprises a moveable part that moves along a Z axis of the measure machine, the moveable part being installed with a Charge Coupled Device (CCD) and a motor, the computer being connected with the CCD by an image acquisition card and connected with the motor by a controlling card; and the computer comprises: an inputting/outputting module for retrieving consecutive images of objects on the measure machine from the CCD, outputting instructions to the motor for controlling the moveable part to move within a predetermined focusing area, and outputting a focus location of the consecutive images; a parameter setting module for setting particular parameters required for focusing images, and setting a start location and an end location for the moveable part of the measure machine according to an approximate focus location and the predetermined focusing area, wherein the end location is a final position of movement of the moveable part; a determining module for determining whether the moveable part has arrived at the end location, and determining whether it is a second time to focus the images when the moveable part has arrived at the end location; and a calculating module for calculating definition values of the consecutive images according to image pixel values and by utilizing a predetermined calculating transform function for evaluating a sum of the absolute value of the difference between pixel values in four-square matrix pixels, and for calculating a corresponding focus location of the consecutive images according to the calculated definition values if it is the second time to focus the images.