How Barcodes Work
this is barcodes in one lesson barcodes are found on virtually, all products that you see in any store when a laser from a computer scans a barcode, it's actually scanning through a series of 95 evenly spaced columns, and checking to see if each one of those columns is reflecting a lot of laser light or virtually none computers, only understand ones and zeros, so any of the columns that reflect virtually no light are considered a one and any of the columns.
that reflect a lot of light are considered zero probably the reverse of what you might expect so in this example the computer begins reading the columns from left to right, the first column reflects virtually no light so it considers that a 1, the next column reflects a lot of light, so it considers that a 0 the third column is like the first it reflects virtually no light so it also considers that a 1 the fourth fifth and sixth columns all reflect a lot of light so, they are all considered zeros the computer continues reading the columns all the way across the barcode and comes up with a number that is 95 digits long full of ones and zeros these and zeros are then grouped into 15 different sections 12 of these sections are used for the numbers that you see at the bottom of the barcode.
the other three are used as guards these guards let the computer know where the barcode begins and ends and also where the six numbers on each side begin and end ,this is important because the numbers on the left are identified based upon one set of codes and the numbers on the right are identified based upon another set of codes these codes are different because the computer needs to know whether it's reading the barcode from left to right or whether the barcode is being read upside down it figures that out based upon how many ones there are in the code for each digit the codes on the left always have an odd number of ones and the codes on the right always have an even number of so if the computer reads an even number of ones on the left hand side it knows that the barcode is flipped upside down and once it reads it, it can just flip the numbers around before processing them also as an additional error check all the codes on the left side begin with a 0 and end with a 1 and all the codes on the right side begin with a 1 and end with a 0, so in this case we'll plug in the numbers above and you'll see that those numbers are the exact same as the numbers below but what do these numbers actually mean well the first number on the left hand side the 0 which is outside of the actual barcode tells us, what type of barcode this is 0 is a standard barcode a 2 is a weight item like fruit or meat a 3 is a pharmacy item and a 5 is a coupon the next set of five numbers tells us,