Patent attributes
An automatic focusing system for an imaging-based bar code reader. The automatic focusing system employs a two step process for moving a lens of an imaging system along its path of travel such that a sharp image of a target bar code is projected or focused onto an imaging system pixel array. The first step is laser ranging which utilizes a laser beam for range finding. Laser ranging determines a distance between the imaging system pixel array and the target bar code. Given the determined distance, the automatic focusing system moves the lens to a suitable position for imaging the target bar code. If ambient conditions prevent laser ranging from properly working, the second step is focus analysis. Focus analysis involves moving the lens in accordance with a search routine and analyzing image frames of the target object to find a suitable focus position.