Abstract:
A method and apparatus for setting the amount of exposure for the photodetector array in a barcode scanner. An image is captured with the photodetector array. The type for each sub-region in the multiple sub-regions in the image captured is determined. Each sub-region in the multiple sub-regions is assigned a weight based on the type of the sub-region. The amount of exposure for the photodetector array in the barcode scanner is set automatically based on the weight for each sub-region in the multiple sub-regions. In some embodiments, the predetermined image area are repartitioned into new multiple sub-regions based on the image captured, and the amount of exposure for the photodetector array in the barcode scanner is set automatically based on the weight for each sub-region in the new multiple sub-regions.