Patent ID: 7899315

Claim:
A method of automatically adjusting a depth of field, suitable for adjusting parameters relevant to the depth of field when pre-shooting an image to be shot through using a digital camera, the method comprising: dividing the image to be shot into a plurality of detected blocks; performing a statistic means for an object distance on each of the detected blocks, and grouping the object distances into a plurality of object-distance intervals, each of which represents a range between an upper object-distance value and a lower object-distance value; generating an object-distance interval cumulative curve according to numbers of the detected blocks having the object distance in the same object-distance interval, and looking up a mode value of the object-distance interval cumulative curve and a corresponding detected block; performing a smoothing process on the object-distance interval cumulative curve, to eliminate a plurality of peaks in the object-distance interval cumulative curve; and adjusting the parameters of the depth of field according to the corresponding detected block, for shooting the image.