Griaule Biometrics

Home » Forums » FINGERPRINT SDK » Java Specifc » com.griaule.grfingerjava.GrFingerJavaException: Unknown erro
1 reply [Last post]
francis22
Offline
Joined: 2008-09-29
Rate this post:
0
No votes yet
com.griaule.grfingerjava.GrFingerJavaException: Unknown erro

Hi, I'm making a Java Applet that uses GrFinger to authenticate users, but I'm getting an "Unknown error" when using the MatchingContext.verify:

Quote:
com.griaule.grfingerjava.GrFingerJavaException: Unknown error
at com.griaule.grfingerjava.MatchingContext.verify(MatchingContext.java:195)
at com.cinq.afis.Compare.CompareManager.compare(CompareManager.java:84)
at com.cinq.afis.Compare.CompareManager.onImageAcquired(CompareManager.java:70)
at com.griaule.grfingerjava.GrFingerJavaNative.callbackImage(GrFingerJavaNative.java:148)

the code I'm using is:

public void onImageAcquired(String idSensor, FingerprintImage img){
		try{
			Finger = Matcher.extract(img);
			Template bdFinger = new Template();
			bdFinger = getData();
			compare(Finger,bdFinger);
		}catch(Exception e){
			e.printStackTrace();
		}
}

private void compare(Template a, Template b){
try{
if (a != null && b != null){
if (Matcher.verify(a,b)){
ui.setState("autenticação ok!");
}else{
ui.setState("impressoes diferentes!");
}
}else{
ui.setState("erro!");
}
}catch(Exception e){
e.printStackTrace();
}
}


Does anyone knows what's the problem here?

Thanks in advance.


ptrckph
Offline
Joined: 2008-09-23
Rate this post:
0
No votes yet

Hello!

Check if you have specified the context your application was running on. For the verify() method, there are three parameters: the queryTemplate, the referenceTemplate and the context. As I could see, you just have specified the two templates.