Let's see what is barcode and QR code
Barcode : it's basically a machine-readable code in the form of numbers and a pattern of parallel lines of varying widths, printed on and identifying a product.
QR Code : It is machine-readable code consisting of an array of black and white squares, typically used for storing URLs or other information for reading by the camera on a smartphone.