We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 817ebb8 commit e3a1344Copy full SHA for e3a1344
qrcode.py
@@ -1,7 +1,15 @@
1
-# importing Required Modules
+
2
import qrcode
3
+import cv2
4
5
+qr= qrcode.QRCode(version=1, box_size=10, border=5)
6
-# QR Code Generator
-query = input("Enter Content: ") # Enter Content
-code = qrcode.make(query) # Making the QR code
7
-code.save("qrcode.png") # Saving the QR code file
+data = input()
8
+qr.add_data(data)
9
+qr.make(fit=True)
10
+img = qr.make_image(fill_color="blue", back_color="white")
11
+path=data+".png"
12
+img.save(path)
13
+cv2.imshow("QRCode",img)
14
+cv2.waitKey(0)
15
+cv2.destroyAllWindows()
0 commit comments