System and method for auto-focusing a vision system camera on barcodes
Abstract
This invention provides a system and method for detecting and acquiring one or more in-focus images of one or more barcodes within the field of view of an imaging device. A measurement process measures depth-of-field of barcode detection. A plurality of nominal coarse focus settings of a variable lens allow sampling, in steps, of a lens adjustment range corresponding to allowable distances between the one or more barcodes and the image sensor, so that a step size of the sampling is less than a fraction of the depth-of-field of barcode detection. An acquisition process acquires a nominal coarse focus image for each nominal coarse focus setting. A barcode detection process detects one or more barcode-like regions and respective likelihoods. A fine focus process fine-adjusts, for each high-likelihood barcode, the variable lens near a location of the barcode-like regions. The process acquires an image for decoding using the fine adjusted setting.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 29 · Forward citations: 0.
Claims (21 — 3 Independent, 18 Dependent)
- Claim 1Independent Claim
A method for focusing on a symbol with an imaging sensor, comprising: acquiring coarse focus images for each of a plurality of coarse focus settings, the coarse focus settings corresponding to a range of distances between the symbol and the imaging sensor; determining symbol-like regions within the coarse focus images and estimating a respective likelihood that each of the symbol-like regions contain an actual symbol; and for each of the symbol-like regions having the respective likelihood, using a fine focus procedure to increase a sharpness measurement around the respective symbol-like regions by acquiring images at adjusted focus settings that define values in a range respectively around each of the coarse focus settings associated with each of the respective symbol-like regions, wherein increasing the sharpness measurement adjusts the focus to acquire an image to enable successful decoding of the symbol at the respective symbol-like regions.
- Claim 2Depends on #1
The method as set forth in claim 1, wherein the step of using the fine focus procedure occurs for each of the symbol-like regions in order of highest to lowest likelihood.
- Claim 3Depends on #1
The method as set forth in claim 1, further comprising communicating with an electronically controlled variable focus lens assembly configured to produce selected focal lengths for the coarse focus images.
- Claim 4Depends on #3
The method as set forth in claim 3, further comprising, controlling a high speed liquid lens in which the focal length thereof is set based upon a diopter value.
- Claim 5Depends on #3
The method as set forth in claim 3, further comprising, adjusting the variable focus lens assembly based upon an iterative, numerical-step-based search technique over the coarse focus settings.
- Claim 6Depends on #1
The method as set forth in claim 1, wherein the steps of acquiring, determining, and using are performed according to a plurality of priority levels.
- Claim 7Depends on #1
The method as set forth in claim 1, wherein the symbol is characterized by a maximum focus error in which the symbol can be reliably detected, and further comprising, measuring an effective depth-of-field based upon the maximum focus error.
- Claim 8Depends on #1
The method as set forth in claim 1, wherein the symbol comprises at least one of a 1D barcode or a 2D barcode.
- Claim 9Depends on #1
The method as set forth in claim 1, wherein the coarse focus settings are based upon a distance measurement provided by a distance sensor relative to the imaging sensor.
- Claim 10Depends on #9
The method as set forth in claim 9, wherein the distance measurement is provided by at least one of a time-of-flight-sensor, a LIDAR, a radar, an ultrasonic sensor, a stereoscopic sensor, or a sonar sensor.
- Claim 11Independent Claim
A vision system for focusing on a symbol on a surface containing symbol-like regions within a field of view of an imaging device having an image sensor and a processor comprising: a variable lens configured to receive focus adjustment information and direct light to the image sensor; coarse focus settings of the variable lens corresponding to samples of a lens adjustment range, in sampling steps, over a range of distances between the symbol and the image sensor, wherein the image sensor is arranged to acquire a coarse focus image for a coarse focus setting of the variable lens; and a fine focus process that, for at least one of the symbol-like regions within the coarse focus image, fine-adjusts the variable lens from the coarse focus setting to adjust a focus of the variable lens near a location of the symbol-like regions, and acquires an image via the image sensor using a fine-adjusted focus setting of the variable lens.
- Claim 12Depends on #11
The vison system as set forth in claim 11, further comprising a measurement process that measures an effective depth-of-field of symbol detection as the maximum focus error for which the symbols can be reliably detected, and wherein a step size of the sampling steps is less than a fraction of the effective depth-of-field of barcode detection.
- Claim 13Depends on #11
The vision system as set forth in claim 11, further comprising a symbol detector arranged to measure a respective likelihood of the symbol-like regions, and wherein the at least one of the symbol-like regions defines a likelihood above a predetermined level.
- Claim 14Depends on #11
The vision system as set forth in claim 11, wherein the symbol detector operates at a substantially maximum frame rate of reliably locating the symbol-like regions within an image acquired by the image sensor.
- Claim 15Depends on #11
The vision system as set forth in claim 11, wherein at least one of, (a) the variable lens comprises a high-speed liquid lens, or (b) the depth-of-field is measured in diopters and the focus adjustment information defines diopters.
- Claim 16Depends on #11
The vision system as set forth in claim 11, wherein the fine focus process is arranged to select an adjusted focus setting that maximizes an image sharpness score in a local region around the symbol-like regions.
- Claim 17Independent Claim
A vision system for focusing on a symbol, the vision system comprising: an imaging device having a field of view and comprising an image sensor and a variable lens; at least one processor in communication with the imaging device and configured to: acquire coarse focus images for each of a plurality of coarse focus settings, the coarse focus settings corresponding to a range of distances between the symbol and the image sensor; determine symbol-like regions within the coarse focus images and estimate a respective likelihood that each of the symbol-like regions contain an actual symbol; for each of the symbol-like regions having the respective likelihood, use a fine focus procedure to increase a sharpness measurement around the respective symbol-like regions by acquiring images at adjusted focus settings that define values in a range respectively around each of the coarse focus settings associated with each of the respective symbol-like regions, wherein increasing the sharpness measurement adjusts the focus to enable successful decoding of the symbol at the respective symbol-like regions.
- Claim 18Depends on #17
The vision system as set forth in claim 17, wherein the at least one processor is further configured to receive a distance measurement provided by a distance sensor relative to the imaging sensor, wherein the coarse focus settings are based upon the distance measurement.
- Claim 19Depends on #17
The vision system as set forth in claim 17, wherein the fine focus procedure is arranged to select an adjusted focus setting that maximizes an image sharpness score in a local region around the symbol-like regions.
- Claim 20Depends on #17
The vision system as set forth in claim 17, the at least one processor is configured to receive the acquired coarse focus images and operate a symbol decoder.
- Claim 21Depends on #20
The vision system as set forth in claim 20, wherein the at least one processor is at least one of a GPU or an FPGA.
Technical Overview & Description
RELATED APPLICATION This application is a continuation of co-pending U.S. patent application Ser. No. 17/567,832, entitled SYSTEM AND METHOD FOR AUTO-FOCUSING A VISION SYSTEM CAMERA ON BARCODES, filed Jan. 3, 2022, which is a continuation of co-pending U.S. patent application Ser. No. 16/896,164, entitled SYSTEM AND METHOD FOR AUTO-FOCUSING A VISION SYSTEM CAMERA ON BARCODES, filed Jun. 8, 2020, now U.S. Pat. No. 11,216,630, issued Jan. 4, 2022, which is a continuation of co-pending U.S. patent application Ser. No. 16/043,716, entitled SYSTEM AND METHOD FOR AUTO-FOCUSING A VISION SYSTEM CAMERA ON BARCODES, filed Jul. 24, 2018, now U.S. Pat. No. 10,679,024, issued Jun. 9, 2020, the teachings of each of which applications are incorporated herein by reference. FIELD OF THE INVENTION This invention relates to machine vision systems for finding and decoding 1D and 2D barcodes and other forms of symbology or ID codes, and more particularly to camera focusing systems for use in reading barcodes and/or other ID codes. BACKGROUND OF THE INVENTION Vision systems that perform measurement, inspection, and/or alignment of objects and/or decoding of symbology in the form of machine-readable symbols (also termed “ barcodes ” , “ ID codes ” , “ codes ” and/or simply, “ IDs ” ). Often, these machine-readable symbols take the form of well-known 1-dimensional (1D) and two-dimensional (2D) barcodes, such as a 2D DataMatrix codes, QR codes, DPM codes, etc. More generally, a barcode can be defined as an optical, machine-readable, representation of data; the data often describing something about the object that carries the barcode. Traditional barcodes systematically represent data by varying the widths and spacings of parallel lines, and may be referred to as linear or one-dimensional (1D). Later, two-dimensional (2D) variants were developed, using rectangles, dots, hexagons and other geometric patterns, called matrix codes or 2D barcodes, although they do not use bars as such, including
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (29)
Non-Patent Literature (10)
- Batten, Christopher F.
- “
- Autofocusing and astigmatism correction in the scanning electron microscope.
- ”
- Mphill thesis, University of Cambridge (2000) (89 pages).
- Bodn
- á
- r, P
- é
- ter, and L