×

Method and apparatus for automatically focusing an image-acquisition device

  • US 5,040,228 A
  • Filed: 08/28/1989
  • Issued: 08/13/1991
  • Est. Priority Date: 08/28/1989
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for adjusting the focus of an image-acquisition device so that the image-acquisition device captures the image of an article in sharp focus, comprising the steps of:

  • (a) establishing a current focus index value as having an initial value of zero;

    (b) capturing the image of at least a portion of an article with an image-acquisition device having adjustable focus;

    (c) processing the image captured by the image-acquisition device to determine an intensity gradient for all of the small areas within the image;

    (d) establishing a histogram of the gradient intensities of all the pixels in the image;

    (e) establishing a new focus index value from the histogram of the pixel intensity gradients;

    (f) comparing the current focus index value to the new focus index value to determine in which direction the focus of the image-acquisition device should be adjusted so that the captured image is more sharply focused, thereby increasing the focus-index value;

    (g) substituting the new focus index value for the current focus index value;

    (h) incrementally stepping the focus of the image-acquisition device in the direction expected to increase the focus index value;

    (i) repeating the steps of (b)-(h) until the new focus index value no longer exceeds the current focus index value;

    (j) adjusting the focus of the image-acquisition device in the opposite direction by a step amount established in accordance with the difference between the new and current focus index values so that the captured image is sharply focused.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×