matching the template with fingerprint scanner and returning the ID

Hello everyone I am new at arduino development.My query is that how to match the biometric template taken from fingerprint sensor with its database and return the ID.Please put on the code if someone can help .

Thanks in advance.

Check adafruit or sparkfun, they sell such sensors and often have sample code.