View Project
This is the code for the project
#To create text to qr code
import qrcode
data= input("Enter your data: ")
qr= qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,
box_size=100,
border=4,
)
qr.add_data(data)
qr.make(fit=True)
img= qr.make_image(fill_color="black",back_color="white")
img.save(input("Enter your img path: "))
print("Sucessfully created qrcode")
Built with