What is 1D and 2D barcode?
A 1D barcode (also known as a linear code) is a visual black and white pattern, using variable-width lines and spaces for encoding information.
A 2D (two-dimensional) barcode is a graphical image that stores information horizontally as one-dimensional barcodes do, as well as vertically.