US 11,790,195 B2
System and method for reading a barcode independently of image resolution or scale
Ryan J. Simpson, Vienna, VA (US)
Assigned to United States Postal Service, Washington, DC (US)
Filed by United States Postal Service, Washington, DC (US)
Filed on Jul. 27, 2022, as Appl. No. 17/815,533.
Application 17/815,533 is a continuation of application No. 17/174,736, filed on Feb. 12, 2021, granted, now 11,461,571.
Claims priority of provisional application 62/976,188, filed on Feb. 13, 2020.
Prior Publication US 2022/0366163 A1, Nov. 17, 2022
This patent is subject to a terminal disclaimer.
Int. Cl. G06K 7/10 (2006.01); G06K 7/14 (2006.01)
CPC G06K 7/10722 (2013.01) [G06K 7/1413 (2013.01)] 20 Claims
OG exemplary drawing
 
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.