|
| 1 | +# QR Code Generator Using Python🔥 |
| 2 | + |
| 3 | +QR is short for Quick Response, and they are named so because they can be read quickly by a cell phone. They are used to take information from transitory media and put it on your cell phone. |
| 4 | + |
| 5 | +## 📌What is a QR code? |
| 6 | + |
| 7 | +- 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. |
| 8 | + |
| 9 | +- It contains a grid of black squares on a white background, which can be read by any imaging device such as a camera, and processed to extract the required data from the patterns that are present in the horizontal components of the image. |
| 10 | + |
| 11 | +## 📌QR Codes with Python |
| 12 | + |
| 13 | +- In this section, I will take you through a tutorial on how to generate QR codes with Python. To generate QR Codes with Python you need to install only one Python library for this task: |
| 14 | + |
| 15 | + pip install pyqrcode |
| 16 | + |
| 17 | +Now let’s see how to create a QR Code with Python programming language: |
| 18 | + |
| 19 | + import qrcode |
| 20 | + |
| 21 | + url='Coding Buddies' # String which represent the QR code |
| 22 | + |
| 23 | + code_image =qrcode.make(url) # Generate QR code |
| 24 | + |
| 25 | + code_image.save('Enter your Location') # Create and save the png file at given location |
| 26 | + |
| 27 | +Now we finally built it.👍 |
0 commit comments