How do phone barcodes work? Do you scan the barcode or snap a picture of it using your phone?

Hi just wondering there are phone barcodes (2D barcodes) everywhere these days...How do they work? You scan it with your mobile phone or take a picture of it..And what comes up after doing so.
6 answers 6