I went to subway this evening and I saw an advertisement says: "scan the QR code to receive a subway card".
so I did the following:
1- took a picture for the code.
2- because my mobile camera has very high resolution, I had to reduce the size to 100x100. so I can see it.
3- reducing the image size made it a bit foggy.
4- I wrote the following simple program:
SetDisplayAspect( 320.0/480.0 )
setclearcolor(125,25,76)
sp = createsprite(loadimage("img.png",0))
setspritepositionbyoffset(sp,50,50)
QRcode$ = decodeQRcode(sp)
rem A Wizard Did It!
do
Print(QRcode$)
Sync()
loop
end
amazing, it worked!!!!.... even though the image got a bit corrupted.