CESARBR / GT521F52

ADH-Tech GT521F52 fingerprint scanner
Apache License 2.0
5 stars 4 forks source link

how to use setTemplate? #7

Closed cgarcia55 closed 4 years ago

cgarcia55 commented 4 years ago

hello, first of all congratulations for the great work with the library. I am developing a project using this library. And it is necessary to be able to download the templates, save them in a cloud database, and then upload them to the sensor. With the function of makeTemplate or also that of getTemplate, it been possible to extract the information from the template, is the detail now how set that data in the function of setTemplate? Could someone guide me?

As a comment, in examples.py if someone like me is finding that the first fingerprint is bone id = 0 does not recognize it, but the other footprints saved if, this is the detail, in line # 18 if (pos): the position to be = 0 detects it as false, and does not enter the condition of the if, just change if(str(pos).isnumeric()): , and you should solve the detail with the first fingerprint.

I hope someone can help me. Thanks in advance.