adafruit_fingerprint

This library will let you use an Adafruit Fingerprint sensor on any UART to get, store, retreive and query fingerprints! Great for adding bio-sensing security to your next build.

  • Author(s): ladyada

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_fingerprint.Adafruit_Fingerprint(uart, passwd=(0, 0, 0, 0))[source]

UART based fingerprint sensor.

count_templates()[source]

Requests the sensor to count the number of templates and stores it in self.template_count. Returns the packet error code or OK success

create_model()[source]

Requests the sensor take the template data and turn it into a model returns the packet error code or OK success

delete_model(location)[source]

Requests the sensor delete a model from flash memory given by the argument location. Returns the packet error code or OK success

Asks the sensor to search for a matching fingerprint template to the last model generated. Stores the location and confidence in self.finger_id and self.confidence. Returns the packet error code or OK success

get_image()[source]

Requests the sensor to take an image and store it memory, returns the packet error code or OK success

image_2_tz(slot)[source]

Requests the sensor convert the image to a template, returns the packet error code or OK success

read_templates()[source]

Requests the sensor to list of all template locations in use and stores them in self.templates. Returns the packet error code or OK success

store_model(location)[source]

Requests the sensor store the model into flash memory and assign a location. Returns the packet error code or OK success

verify_password()[source]

Checks if the password/connection is correct, returns True/False