From Reflected Light to a Number
The scanner’s detector does not see “black” and “white” as labels. It receives a changing amount of light and turns that change into an electrical signal: strong reflections produce one level, weak reflections another. As the beam crosses the symbol, the signal rises and falls at each edge between a bar and a space.
The scanner’s electronics then measure the widths of those rises and falls. In common retail barcodes, widths are built from small, repeated units called modules. Groups of modules form patterns assigned to digits, while special edge patterns help the reader find where the code begins and ends. The device converts the measured pattern into digits and checks that the result fits the barcode’s format.
Why the Pattern Can Survive a Rough Scan
A label need not be perfectly printed or held at exactly the right angle. The reader is looking for a sequence of relative widths, not a pristine picture of every stripe. Many scanners also try again from another direction or use a camera to capture the whole symbol rather than sweep a single beam across it.
Retail codes commonly include a check digit—a final digit calculated from the others. It does not repair a damaged reading, but it can reveal that the decoded sequence is inconsistent, prompting another scan instead of sending a wrong number to the checkout system. That small safeguard helps turn a flicker of reflected light into a dependable product lookup.






