finger print scanner (get finger's code)

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
TiMuzeic
 
Posts: 6
Joined: Tue Aug 26, 2014 11:31 pm

finger print scanner (get finger's code)

Post by TiMuzeic »

Hello, i purchased a fingerprint scanner for my attendance monitoring system project. I would want to make a program similar to the SFGDemoV2.0 and i want to use visual basic 2010.

As a start, i would want to get the code of the finger being scanned and then output it in the serial monitor. So if i'm going to scan my index finger, the code that represents that finger should appear in the serial monitor, and of course another code would represent my thumb. I'm not talking about the index but the code representing the finger which is registered in the index, that's what i need.

Is there a way for me to do that???

thank you for your support. I really hope you can help

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: finger print scanner (get finger's code)

Post by adafruit_support_rick »

You mean you want to get the actual fingerprint template?
"Template" is what they call the actual set of extracted fingerprint features that are used for matching. We have no idea what the format of this data is, so I'm not sure what use you could make of it.

You can download the template data. The User Manual has the details, but it involves issuing the LoadChar command to load the template into one of the sensor's 'character buffers', and then issuing the DownChar command to download the template from the character buffer.

User avatar
TiMuzeic
 
Posts: 6
Joined: Tue Aug 26, 2014 11:31 pm

Re: finger print scanner (get finger's code)

Post by TiMuzeic »

Hello, thank you for your reply. Yep, i think the Template is what i need.

um...could you please be so kind to provide a c/c++ code (which will be uploaded to Arduino UNO) that would display the fingerprint template in the serial monitor? (I don't really know how to use the LoadChar and DownChar functions) I'm sorry if its too much to ask, i'm desperate.

Thanks thanks a lot

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: finger print scanner (get finger's code)

Post by adafruit_support_rick »

I'll see what I can do.

User avatar
TiMuzeic
 
Posts: 6
Joined: Tue Aug 26, 2014 11:31 pm

Re: finger print scanner (get finger's code)

Post by TiMuzeic »

Thank you so much

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: finger print scanner (get finger's code)

Post by adafruit_support_rick »

OK. Get the latest version of the library. Run the "show_fingerprint_templates" example sketch
https://github.com/adafruit/Adafruit-Fi ... or-Library

User avatar
TiMuzeic
 
Posts: 6
Joined: Tue Aug 26, 2014 11:31 pm

Re: finger print scanner (get finger's code)

Post by TiMuzeic »

Thank you for the quick resolution.

Question: What if the fingerprint is not yet registered in an id, would the template still be shown?

the goal is to show the fingerprint template of anyone who places their finger in the device weather they are registered or not.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: finger print scanner (get finger's code)

Post by adafruit_support_rick »

The example code I gave you won't do that, but you can get there, I think

Modify the regular fingerprint sketch. Instead of calling fingerFastSearch, make a call to getModel after the call to image2tz. See what you get from that.

User avatar
TiMuzeic
 
Posts: 6
Joined: Tue Aug 26, 2014 11:31 pm

Re: finger print scanner (get finger's code)

Post by TiMuzeic »

Thanks again. I'll see if i can manage to do it. Thanks for the support.

User avatar
wbohannan
 
Posts: 4
Joined: Tue Oct 21, 2014 8:34 am

Re: finger print scanner (get finger's code)

Post by wbohannan »

Hi Rick
Any change of getting a similar function added however this time to upload a template rather than enrol?

Kind Regards
William

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: finger print scanner (get finger's code)

Post by adafruit_support_rick »

I'll have a look...

User avatar
iza
 
Posts: 2
Joined: Wed Nov 26, 2014 4:44 am

Re: finger print scanner (get finger's code)

Post by iza »

Hi Rick,

before that i thank to adafruit for product the cool stuff like adafruit finger print scanner, i like it because of its embedded programming atmosphere :) but i have some Question, hope you could help me

if i'm not wrong the proccess of enroll.ino (example code) are like this :
(1) the device get the original image Grayscale using "GenImage "
(2) orginal image is converted to a character file using "Img2Tz"
(3) character file is converted to a template using "RegModel"
(4) template is stored to flash memory. using "Store"

And the template will be used on the searching proccess. i do experiment to discard the proccess number (3), strangely my finger still recognized, how could it be ? is the RegModel is useless ? wheter the character file is used to matching the finger or the template ?

Kind Regards,
Iza

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: finger print scanner (get finger's code)

Post by adafruit_support_rick »

I have no explanation. Calling RegModel is required to generate a template.

User avatar
iza
 
Posts: 2
Joined: Wed Nov 26, 2014 4:44 am

Re: finger print scanner (get finger's code)

Post by iza »

Ok then, not helping but thank you for the reply :)

i have another Question, i have planed to make a program for getting real finger image like SFGdemo doing, i have already read the datasheet so i use "UpImage" command, and i read the serial directly (like show_fingerprint_templates doing) and the result just random data i don't know what data is that, any idea how to get real image from this adafruit finger print sensor ?

thanks a lot, hope you could help

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: finger print scanner (get finger's code)

Post by adafruit_support_rick »

Have a look at section 4.2.1 of the user manual. It tells you what the data format is:
ImageBuffer serves for image storage and the image format is 256*288 pixels.
When transferring through UART, to quicken speed, only the upper 4 bits of the pixel is transferred
(that is 16 grey degrees). And two adjacent pixels of the same row will form a byte before the
transferring.
So you have to unpack each byte into two 16-bit pixels. You get 256 pixels per row and 288 rows.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”