CPC G06K 7/10722 (2013.01) [G06K 7/1413 (2013.01)] | 20 Claims |
1. A system for processing an image of a barcode positioned on a distribution item, the system comprising:
a memory storing instructions; and
a processor in data communication with the memory and configured to execute the instructions to:
obtain a scanned image of the barcode including a plurality of bars and a plurality of spaces alternately disposed with respect to the plurality of bars;
convert the scanned image into binary data including a plurality of ones (1s) and a plurality of zeros (0s), wherein one (1) represents a pixel having a first characteristic and a zero (0) represents a pixel having a second characteristic;
calculate numbers of ones (1s) disposed between zeros (0s) in the binary data;
determine relative widths of one of i) each of the plurality of bars and ii) each of the plurality of spaces based on the calculated numbers of ones (1s);
calculate numbers of zeros (0s) disposed between ones (1s) in the binary data;
determine relative widths of the other one of i) each of the plurality of bars and ii) each of the plurality of spaces based on the calculated numbers of zeros (0s); and
determine adjusted width values of the bars and spaces based at least in part on a bar width scaling factor and a space width scaling factor applied to the relative widths of the bars and spaces.
|