The imaging scanner emits a focused aiming line 20 that is aimed by the user at the particular barcode 15 that is presently being read. The aiming pattern can be activated by a trigger 33, followed by full-scale illumination of the target area. Alternatively, the aiming pattern can be active at all times in which case the trigger 33 activates full-scale illumination of the target. In addition, the aiming pattern can be activated upon the detection of motion in a sequence of images. The light emitted from the imaging scanner exits the scanner through a window 37 and light reflected back from the target surface passes through the window to imaging components within the scanner.
Many imaging scanners employ barcode detection techniques that process full frame pixel information prior to decoding to determine whether a barcode is present within the image stored in the pixels. As discussed above U.S. Pat. No. 6,405,925, which describes a number of techniques that can be used to detect one-dimensional, two-dimensional, and MaxiCode type barcodes. During decoding, statistical information about pixels or groups of pixels is compiled, such as local levels of contrast and the presence of relatively sharp image edges. In the case of one or two dimensional barcodes, an angle of skew between a horizontal axis of the optical components of the scanner with respect to the barcode elements is also determined to aid in the decoding process.
An output port or display 41 provides the results of decoding to a peripheral device (not shown) or displays them to the user. The scanner 10 also includes an illumination source 23 that is capable, within a prescribed scanner range, of illuminating a portion of the target surface sufficient to fill the entire two-dimensional array of sensors with data.
As discussed in the background, some imagers attempt to decode data from a subset of sensors in the array. Often, several attempts are made to decode data without resorting to analyzing data from the entire array. The transfer time and processing time for examining the data from the subset of sensors becomes burdensome when many attempts are made prior to moving on the full frame processing, especially when conditions are such that a successful decode is not possible. Accordingly, the decoding technique described herein tests for two conditions that indicate that decoding is not possible using the present amount of cropped frame data, namely the presence of a one dimensional or a two dimensional barcode that is not wholly present within the cropped frame.
At 135, the quantity of pixel data is checked to determine if it corresponds to a cropped frame and not a preselected enlarged frame of data such as a full frame. If the data is from a cropped frame, the typical barcode detection techniques such as those described above are performed on the cropped frame of pixel data at 140. If no barcode is detected, another cropped frame is acquired at 120. If a barcode is detected, the skew angle between the barcode elements and the imaging components, which was calculated as part of the barcode detection processing, is compared to a threshold (in this case 20 degrees) at 145. If the skew is excessive, at 150 the array is set to output the enlarged frame of data, such as a full frame, of pixel data and the method loops back to attempt to decode with the enlarged frame. If the skew is not excessive, at 160 the cropped frame is checked to see if a two-dimensional barcode is present but is clipped by the frame, for example because edge lines are not detected, and if so the array is set to obtain the enlarged frame of pixel data prior to the next decode attempt.
In this way, an imaging scanner can quickly determine, on the first pass of analysis using the cropped frame of data, that the cropped data is insufficient for decoding purposes. The imaging scanner can immediately switch to processing of the enlarged frame to save operating time that would be spent on subsequent processing of cropped frame data.
It can be seen from the foregoing description that an imaging scanner that can process a subset of sensors in the array to determine whether a variety of image conditions are met that would require full or enlarged frame processing. If any of the conditions is met, the imager acquires a full frame for subsequent processing to increase operating speed. Although the invention has been described with a certain degree of particularity, it should be understood that various changes can be made by those skilled in the art without departing from the spirit or scope of the invention as hereinafter claimed.