Patent ID: 8106951

Claim:
A method for adjusting a shooting condition of a digital camera through motion detection, applied to determine a shooting parameter of a digital camera according to sloshing of the digital camera or a shot object when the digital camera shoots a digital image, the method comprising: capturing two consecutive frames of pre-capture images, and defining the two frames of pre-capture images as a first pre-capture image and a second pre-capture image respectively; dividing the first pre-capture image and the second pre-capture image into a plurality of selection blocks, each of the selection blocks corresponding to the same area in the first pre-capture image and the second pre-capture image; calculating a difference of each of the selection blocks in the first pre-capture image as compared with the second pre-capture image, so as to obtain a motion vector of the selection block; selecting the motion vectors reaching a first threshold value according to movement amounts of the motion vectors of the selection blocks, and defining the selected motion vectors as first dominant motion vectors; selecting the first dominant motion vectors reaching a second threshold value according to movement directions of the first dominant motion vectors, and defining the selected first dominant motion vectors as second dominant motion vectors; setting a foreground area at the same position in the first pre-capture image and in the second pre-capture image, setting other areas as a background area, defining the selection blocks located at the foreground area as foreground blocks, and defining the selection blocks located at the background area as background blocks; performing a statistic procedure on the second dominant motion vectors in all the background blocks to select a background dominant motion vector; calculating a corrected foreground motion vector by using the background dominant motion vector and the second dominant motion vectors in the foreground block; and looking up a condition look-up table according to the corrected foreground motion vector, so as to obtain the corresponding shooting parameter.