Barcode reader based on zbar library