Patent ID: 8304705

Claim:
A computer-implemented method for adjusting light intensity of light sources of an image measuring machine, the method comprising steps of: obtaining a surface image of an object that is positioned on the image measuring machine; setting one light source to be adjusted, and adjusting a light intensity of the light source according to an adjusting mode; computing an optimum light intensity level of the light source by steps (a) to (g) upon the condition that the adjusting mode is set as a definition mode for adjusting a definition of the surface image: (a) setting the light source to an original light intensity level to obtain a first surface image and computing a first average definition corresponding to the first surface image, wherein the light source comprises 101 intensity levels ranging from level 0-level 100 to reflect the light intensity, and wherein the original light intensity level is in the range from level 0-level 100; (b) increasing the original light intensity level to a second intensity level by adding ten levels to the original light intensity level, obtaining a second surface image and computing a second average definition of the second surface image; (c) determining whether the second average definition is greater than the first average definition if the second intensity level is not greater than 100; (d) in response to the second average definition being greater than the first average definition, returning to step (b), or decreasing the original light intensity level to a third intensity level by subtracting five levels from the original light intensity level, and computing a third average definition corresponding to the third intensity level, if the second average definition is not greater than the first average definition or if the second intensity level is greater than 100; (e) increasing the third intensity level to a forth intensity level by adding two levels to the third intensity level, and computing a forth average definition corresponding to the forth intensity level; (f) determining whether the forth average definition is greater than the third average definition; and (g) in response to the forth average definition being greater than the third average definition, returning to step (e), or determining that the forth intensity level is the optimum light intensity level, if the forth average definition is not greater than the third average definition and the forth intensity level is not equal to 100; obtaining an optimum surface image of the object by adjusting a light intensity level of the light source to the optimum light intensity level; and storing the optimum surface image and the optimum light intensity level into a storage system.