private void axFirsFaceSdk1_OnEventEnrollUser(object sender, AxFirsFaceSdkLib._DFirsFaceSdkEvents_OnEventEnrollUserEvent e) { EInputUserFeatuer arg = new EInputUserFeatuer(); arg.lDevHandle = e.lDevHandle; arg.lExtendParam = e.lExtendParam; arg.lFeatureLen = e.lFeatureLen; arg.lOpCode = e.lOpCode; arg.lPhotoLen = e.lPhotoLen; arg.lPhotoType = e.lPhotoType; arg.lUserData = e.lUserData; arg.lUserID = e.lUserID; arg.strBase64FeatureData = e.strBase64FeatureData; arg.strBase64PhotoData = e.strBase64PhotoData; arg.strCardNo = e.strCardNo; if (EInputUserFeature != null) { EInputUserFeature(null, arg); } }
private void axFirsFaceSdk1_OnEventTrap(object sender, AxFirsFaceSdkLib._DFirsFaceSdkEvents_OnEventTrapEvent e) { TrapEventArgs arg =new TrapEventArgs(); arg.lDevHandle = e.lDevHandle; arg.lExtendParam = e.lExtendParam; //操作标识,OP_SUCC=0成功,OP_FAIL=1失败 arg.lOpCode = e.lOpCode; arg.lPhotoLen = e.lPhotoLen; arg.lPhotoType = e.lPhotoType; arg.lScore = e.lScore; arg.lUserData = e.lUserData; arg.lUserID = e.lUserID; // 识别结果,1通过,0失败 arg.lVerifyResult = e.lVerifyResult; arg.strBase64PhotoData = e.strBase64PhotoData; if (UserEventTrap != null) { UserEventTrap(null, arg); } }