[fprint] conversin of fprint data to store in database
Alexander Eichert
loeghaire at googlemail.com
Sun Jan 18 23:10:04 GMT 2009
2009/1/14 Jason Gerfen <jason.gerfen at scl.utah.edu>
>
> Enroll stores the written file in a binary field within the MySQL db.
> Upon authentication simply query the binary field within the MySQL db to do
> comparisons which would then write a local copy of the enrolled fingerprint
> file?
>
> I think that would be a better solution then trying to stream the
> fp_print_data_from_data() to a db field.
>
> Daniel, have you not included some optional compile options for database
> support?
> IE ./configure --enable-mysql OR ./configure --enable-ldap
>
>
Sorry for answering so late. I had to learn for school :(
Yes, the enroll-program stores one fingerprint in a blob-field within the
mysql db after the fingerprint is converted by "fp_print_data_get_data".
The verify-program retrieves all fingerprints stored in the database,
reconverts them to an fp_print_data-struct with "fp_print_data_from_data"
and then searchs a match in these fingerprints for a new scanned
fingerprint.
But, at the moment, reconversion with "fp_print_data_from_data" fails.
I have tested to convert and reconvert the fingerprint-data in the
enroll-program as Daniel mentioned. That works.
After that I changed the verify-program that it only retrieves one
fingerprint from database and stores it in a "unsigned char buffer-array"
for one fingerprint instead a two-dimensional-array before. So it uses the
same variables and arrays as the enroll-program. The reconversion still
fails. A print of the retrieved fingerprint-data as chars (bufferlength =
2414 byte) will show the same as enroll-program and a query from database
with db-client. I will compare this again and try printing the data as
binary or hex to ensure that the data are allways the same.
If you want, I can post the sources.
Are these compile-options implemented? Then I will reinstall libfrint in the
next days and try it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.reactivated.net/pipermail/fprint/attachments/20090119/c0b7ce15/attachment.html
More information about the fprint
mailing list