import qrcode
qr = qrcode.QRCode(version=1
, error_correction=qrcode.constants.ERROR_CORRECT_L
, box_size=2
,border=0
,)
vCard = '''BEGIN:VCARD
N:César Martín
TEL:+34610518383
EMAIL:cesar.martin@amerinode.es
END:VCARD'''
qr.add_data(vCard)
qr.make(fit=True)
image = qr.make_image(fill_color="black", back_color="white")
image.save('QRCesarMartin.jpeg')
#image.save('qr_code.bmp')
#image.save('qr_code.jpeg')
print("Imagen QR grabada")