我在asp.net中为我的项目使用了DPUruNet库。我可以阅读并打开指纹设备。问题是我无法连续触发CaptureAsync。我只能在page_load中触发一次。当我的页面要求它等待捕获时,有人知道如何订阅此事件吗?看来我无法连续调用此事件。我只能在asp页面的页面加载中访问它,当我尝试发送信号时不会触发
reader.On_Captured += new Reader.CaptureCallback(reader_On_Captured);
void reader_On_Captured(CaptureResult capResult)
{
if (capResult.Quality == Constants.CaptureQuality.DP_QUALITY_GOOD)
{
count++;
DataResult<Fmd> fmd = FeatureExtraction.CreateFmdFromFid(capResult.Data, Constants.Formats.Fmd.DP_PRE_REGISTRATION);
// Get view bytes to create bitmap.
foreach (Fid.Fiv fiv in capResult.Data.Views)
{
//Ask user to press finger to get fingerprint
//UpdateEnrollMessage("Click save button to save fingerprint", //HelperFunctions.CreateBitmap(fiv.RawImage, fiv.Width, fiv.Height));
break;
}
}
}