Skip to content

Commit 3319481

Browse files
committed
QR_Generator_And_Reader
1 parent 53242ab commit 3319481

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

QR_Generator_And_Reader

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import pyqrcode
2+
from pyzbar.pyzbar import decode
3+
from PIL import Image
4+
5+
qr = pyqrcode.create("Pratap's QR Project")
6+
qr.png("mycode.png", scale=8)
7+
8+
d = decode(Image.open("mycode.png"))
9+
print(d[0].data.decode("ascii"))

0 commit comments

Comments
 (0)