encode/decode a QRCode and its recognition