Patent ID: 8531588

Claim:
A method for adjusting an exposure condition of an optical sensor module, the optical sensor module applicable to a pointing device, comprising: (A) receiving reflected light reflected by a working surface; (B) generating an image signal by exposing the optical sensor module to the reflected light, wherein the image signal comprises a plurality of luminance signals and an image quality signal, wherein Step (B) comprises: dividing the image signals into a plurality of blocks corresponding to the plurality of luminance signals; and arranging the luminance signals in a sequence according to a luminance value; (C) setting an exposure condition of the optical sensor module according to part of the luminance signals, wherein Step (C) comprises: selecting part of the luminance signals according to a sequence of the luminance signals; averaging out the luminance signals; and setting the exposure condition of the optical sensor module according to an average of the luminance signals; (D) repeating Step (B) and Step (C) under different exposure conditions so that the optical sensor module generates a plurality of image quality signals, wherein Step (D) comprises: setting the different exposure conditions by selecting different parts of the luminance signals each time according to the sequence of the luminance signals; and generating correspondingly the different image quality signals under the different exposure conditions; and (E) setting an optimal exposure condition corresponding to the working surface according to the image quality signals under different exposure conditions.