I'm working currently on a authentication project using a Raspberry Pi 3 a Fingerprint Scanner - TTL (GT-511C3) and python as a programming language. I managed to connect the scanner to the pi and make it work.
Since i'm still a beginner i don't know how i should compare two fingerprints to know if they're identical. Currently i'm saving the prints as png files and earlier i was saving them as pickle files.
My question now is : what is the best way to compare two fingerprints and what is the percentage that i should work with in my comparison to consider two fingerprints identical and how i could achieve that in python.
NOTE : I'm going to create a database to store the fingerprints of the users that they're allowed to enter the room for example. And everytime a fingerprint was taken it should go to the database and search if there is a similar one.
Thank you in advance.
Here is two png files of a fingerprint of the same person taken twice :