It is a combination of contrast marks that scanner can read and decode. For 1D barcode it is black and white vertical lines of different thickness. For 2D it is usually a pattern of square dots. Scanner uses some algorithms to decode those patterns into a form suitable for user.