bastianraschke / pyfingerprint

Python library for ZhianTec fingerprint sensors (e.g. ZFM-20, ZFM-60)
Other
190 stars 115 forks source link

uploadCharacteristics issue- unable to match finger with uploaded data. #120

Closed asifmp closed 2 years ago

asifmp commented 2 years ago

i want store data in computer and use it in multiple sensors.

to download i used below code: f.loadTemplate(0, 0x01) characters = f.downloadCharacteristics(0x01) w = open('/home/pi/id/id01', 'w') w.write((str(characters))) w.close()

to upload: r = open('/home/pi/id/id01', 'r') b = bytearray(r.read(), 'utf-8') f.uploadCharacteristics(0x01, b) f.storeTemplate(0, 0x01)

the upload and download goes fine but when i try to match finger with newly uploaded finger data it says no match found. i found in a thread https://github.com/bastianraschke/pyfingerprint/issues/59 @ardawan @philippmeisberger @bastianraschke i dont know how to convert data in this .please do help

asifmp commented 2 years ago

issue cleared as the data imported was in tuple so converted it to list then upload went fine