usnistgov / NFIQ2

Optical live-scan and ink fingerprint image quality assessment tool
https://www.nist.gov/services-resources/software/development-nfiq-20
Other
129 stars 57 forks source link

NFIQ2::FingerprintImageData from bmp or wsq #352

Closed letisoft closed 1 year ago

letisoft commented 1 year ago

Hello,

How can I get FingerprintImageData from bmp or wsq?

Any sample will help.

Thanks!

gfiumara commented 1 year ago

The NFIQ2 CLI makes use of Biometric Evaluation framework for this. Code is included in this repo.

letisoft commented 1 year ago

Hello,

Can you please point me to any src to check?

Thanks in advance! V

gfiumara commented 1 year ago

NFIQ2/NFIQ2Algorithm/src/tool/nfiq2_ui_image.cpp

letisoft commented 1 year ago

Thank you very much!

sorry I had a look, but still cannot get it how to use bmp to get FingerprintImageData. I have the raw data from the sensor, I can get it in bmp. I know the image dimensions (W x H and DPI) but not sure what's next!

In short I have android device with a cross match sensor and I want to make sure images are good enough!

I do really appreciate you help & patience with non experts!

V

gfiumara commented 1 year ago

On Android, if you have a BMP, seems like you can use getPixels to decompress it into raw bytes. Then pass the buffer to this FingerprintImageData constructor. You're going to need to convert the int[] to uint8_t[] (i.e., unsigned char) though. Sorry, I can't be much further help there.