Zxing and Zbar are both open-source to scan barcodes or 2-D "graphical barcodes" and retrieve the data encoded.