merging multiple finger"s into single template

General information about Neurotechnology and its software

merging multiple finger"s into single template

Postby srinivasaraob » Feb 20, 2018 05:31

hi,

I"m trying to merge three different finger into a single template using neurotec but it"s not working in my code and i"m getting error like-Invalid Ntemplate identifier.
here is my code.

string indexfinger = "464D52002032300000000180000000FB016200C500C501000000563B40A00042876080690151FD5E804B009C475C404D013B005C80BF004F9F5B801500C0525A4042010BF95A4086013D0E5A80BC001F875980AF010B935980B300A4395880C400B72D58805000B6F75740290121E857406800D77155803B012F6A54801800F5605480A9005C935380D4003393534082006315524086004E935140B90060BB5080BC010F1A4F40C1002F854D40BA007F394C8057008E334C8028009F434C40B1004D904C804600682A4B808A008AAE49407E004B094240CA003D89428062009E2E42407700419341405B01300041804A0046A84080AA006DC0408076003C9340406000B26540808800B2924080C0012C144080A0007DBD3E408E00A0AF3D40BC00A6B03A408200B4233A407C00A52739800200854D368051003FAA36403400411C3500550046A934000200814B33000E00C554320056006DB730004D003B0E30005D003C8B2F008800A0312E006500A42D2E000400A2552C00080067B2290000";


var arrc2 = Enumerable.Range(0, indexfinger.Length)
.Where(x => x % 2 == 0)
.Select(x => Convert.ToByte(indexfinger.Substring(x, 2), 16))
.ToArray();
Java.Nio.ByteBuffer nB = Java.Nio.ByteBuffer.Wrap(arrc2);

NTemplate template = new NTemplate(nB);

when i assigned nB to NTemplate, i"m getting below error----

Invalid NTemplate format identifier ---> Java.IO.IOException: Invalid NTemplate format identifier
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00089] in <e499a5498b1b48379b88fe5ed629079f>
srinivasaraob
 
Posts: 1
Joined: Feb 20, 2018 05:16

Re: merging multiple finger"s into single template

Postby MartynasV » Feb 20, 2018 11:01

srinivasaraob wrote:hi,

I"m trying to merge three different finger into a single template using neurotec but it"s not working in my code and i"m getting error like-Invalid Ntemplate identifier.
here is my code.

string indexfinger = "464D52002032300000000180000000FB016200C500C501000000563B40A00042876080690151FD5E804B009C475C404D013B005C80BF004F9F5B801500C0525A4042010BF95A4086013D0E5A80BC001F875980AF010B935980B300A4395880C400B72D58805000B6F75740290121E857406800D77155803B012F6A54801800F5605480A9005C935380D4003393534082006315524086004E935140B90060BB5080BC010F1A4F40C1002F854D40BA007F394C8057008E334C8028009F434C40B1004D904C804600682A4B808A008AAE49407E004B094240CA003D89428062009E2E42407700419341405B01300041804A0046A84080AA006DC0408076003C9340406000B26540808800B2924080C0012C144080A0007DBD3E408E00A0AF3D40BC00A6B03A408200B4233A407C00A52739800200854D368051003FAA36403400411C3500550046A934000200814B33000E00C554320056006DB730004D003B0E30005D003C8B2F008800A0312E006500A42D2E000400A2552C00080067B2290000";


var arrc2 = Enumerable.Range(0, indexfinger.Length)
.Where(x => x % 2 == 0)
.Select(x => Convert.ToByte(indexfinger.Substring(x, 2), 16))
.ToArray();
Java.Nio.ByteBuffer nB = Java.Nio.ByteBuffer.Wrap(arrc2);

NTemplate template = new NTemplate(nB);

when i assigned nB to NTemplate, i"m getting below error----

Invalid NTemplate format identifier ---> Java.IO.IOException: Invalid NTemplate format identifier
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <896ad1d315ca4ba7b117efb8dacaedcf>:0
at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMethod (Java.Interop.JniObjectReference instance, Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x00089] in <e499a5498b1b48379b88fe5ed629079f>

Hello,

Use this tutorial: "SDK\Tutorials\Biometrics\Java\create-multifinger-template".
Martynas V
Neurotechnology
MartynasV
Neurotechnology
 
Posts: 344
Joined: Feb 27, 2015 11:24
Location: Vilnius, Lithuania


Return to Public

Who is online

Users browsing this forum: Bing [Bot] and 3 guests

cron