scan the qrcode by ourselves class