I´m trying to compare two fingerprint in java using DigitalPersona SDK v 3.0.0, but I geeting FMD is Invalid Error or sometimes I get One or more parameters passed to the API call are invalid.
I have a png image obtained from Javascript API and I tried to create a FID then a FDM like in this post example
But I don´t know how to get the method params: inDpi, fingerPosition, cbeffId, outDpi and rotate180 to get de Fid
Fid fid = UareUGlobal.getImporter().ImportRaw(rawPixels, width, height, inDpi, fingerPosition, cbeffId, Fid.Format.ANSI_381_2004, outDpi, rotate180);
also I had tried ImportFmd using intermediate format without success
Any help will be apreciated
Something like this is how you obtain those values, BUT Im getting the same error PID IS INVALID,so good luck and WHETHER you have the answer I hope you share it, regards.
This code worked for me as on digital persona 4500 model.
-
Code working in digital persona 4500
#
Well, I currently working on that one too. UareU SDK V3.0.0,
But I have problem with Verify and Compare feature.
However, to answer your question, In case you have a fingerprint image,
You can import image into
Fmd
directly. I meant this (I use ISO standard):Fmd fmd = UareUGlobal.GetEngine().CreateFmd(bInput, 500, 550, 700, 0, 0, Fmd.Format.ISO_19794_2_2005)
Then, you can do
compare
orverify
directly with thisfmd
.Note: with, height, resolution must be changed according to your image and reader.
cbeffid
parameter, I have tried 0 and 1.If any one found the right answer for this parameter, please suggest me as well.
CBEFF
error
Mostly, I found the resolution, fingerprint format and finger position param is in correct. fingerprint param, I usually set to 0 (first finger or first view)
Update
If you are using
javascript
. I would recommend you to convert base64 string from javascript tobufferedImage
first.The
image
I got it from javascript (var finger
)sdk.onSamplesAcquired = function (s)
like below