2016-06-12 36 views
0

我一直在Veridis sdk 5.0上摆弄。我需要从指纹图像文件中获取ANSI 378模板。这是一个示例代码。Veridis生物特征SDK:从指纹图像文件获取ANSI378模板

 var r = VeridisLicense.InstallLicense(myKey, string.Empty); 
     var bitmap = Bitmap.FromFile(imagePath) as Bitmap; 
     var sample = new BiometricSample(bitmap, 500); 
     var bioTemplate = new BiometricTemplate(sample, BiometricTemplateFormat.Ansi); 
     var data = bioTemplate.GetData(); 

但是,执行InstallLicense行后,应用程序崩溃时出现ntdll堆损坏错误。如果我省略了这一点,我会从BiometricTemplate构造函数中获取Veridis.Biometric.BiometricException“Not started(Error#-4)”。 有人能告诉我这里发生了什么事吗?使用它附带的网点示例安装许可证时,我遇到同样的问题。但是,veridis sdk包内的演示应用程序在安装许可证时不会发生任何错误。

回答

0

我相信你忘了调用静态函数BiometricCapture.StartSDK(eventListener)

您还需要从ICaptureListener继承的类。那个新类将成为你的Event监听器。