anarsoul / libfprint

libfprint with my WiP drivers
GNU Lesser General Public License v2.1
27 stars 10 forks source link

Saving enrolled fingerprint data to PC #4

Closed didasy closed 8 years ago

didasy commented 9 years ago

Hello, how could I save the enrolled fingerprint data to PC? There don't seems to be a way to save it into a file. Is there any other way I could do this?

And if I do fp_print_data_save after enroll where does the data go?

If I could not save the data, does this means the only way is to do fingerprint matching based on the saved images only?

Thank you.

anarsoul commented 9 years ago

By default, it saves it to ~/.fprint/prints, if you want to save it to alternate location in your application, see fp_print_data_get_data() and fp_print_data_from_data(). You can compare only a freshly scanned fingerprint to a gallery. It's not possible to compare two saved fingerprints.

didasy commented 9 years ago

Could I compare a freshly scanned fingerprint to a saved fingerprint using verify_finger?

anarsoul commented 9 years ago

Yep, and you can use fp_identify_finger to compare a scanned fingerprint to a gallery

ShinNics commented 4 years ago

can you please show me the code to save the data from fp_print_data_get_data() to file and retrieve it to be used onfp_print_data_from_data()..? when I save it to file using fwrite, the file contains only FP2 and one box with 0, 0, 0, 2 on it.. when i read the file and put it in gallery then identify, it cannot match the fingerprint.. Thank you..