You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QR codes are used to encode and decode the data into a machine-readable form. The use of camera phones to read two-dimensional barcodes for various purposes is currently a popular topic in both types of research and practical applications. #
6
+
7
+
### Steps:
8
+
9
+
1. To generate QR Codes with Python you need to install only one Python library for this task:
10
+
11
+
> pip install pyqrcode
12
+
13
+
2. Now let’s see how to create a QR Code with Python programming language
14
+
15
+
```{python3}
16
+
import pyqrcode
17
+
from pyqrcode import QRCode
18
+
19
+
# String which represent the QR code
20
+
21
+
s = "https://github.com/laxmanbalaraman/"
22
+
23
+
# Generate QR code
24
+
25
+
url = pyqrcode.create(s)
26
+
27
+
# Create and save the png file naming "myqr.png"
28
+
29
+
url.svg("myQr.svg", scale = 8)
30
+
```
31
+
32
+
3. View the Qr file that must be save in your current directory
0 commit comments