- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
Device : Digital Persona u.are.u 4500
注册时我将数据保存在 sql 数据库中 image
格式(sql 数据类型是图像)它工作正常我的数据正确保存在数据库中,但是现在当我验证数据时在我的验证过程中它给出了异常
hresult : 0xffff.
这是我的C#验证代码
SqlConnection conn = new SqlConnection(connetionstring);
conn.Open();
SqlCommand cmd = new SqlCommand("SELECT * FROM mySavedDataTable", conn);
MemoryStream ms;
byte[] fpBytes;
SqlDataAdapter sd = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
sd.Fill(dt);
foreach (DataRow dr in dt.Rows)
{
fpBytes = Encoding.UTF8.GetBytes(dr["Template"].ToString());
ms = new System.IO.MemoryStream(fpBytes);
DPFP.Template template = new DPFP.Template();
template.Serialize(ms);
Verificator.Verify(features, template, ref result);
if (result.Verified)
{
ver = true;
break;
}
}
conn.Close();
最佳答案
我已经这样做了,而且效果很好!
DataResult<Fmd> resultConversion = null;
IdentifyResult identifyResult = null;
string MobileNumber = "";
string Cnic = "";
// Check capture quality and throw an error if bad.
if (!this.CheckCaptureResult(captureResult)) return;
// See the SDK documentation for an explanation on threshold scores.
int thresholdScore = DPFJ_PROBABILITY_ONE * 1 / 100000;
DataSet dataSetBiometric = DatabaseHandler.getData("select CNIC, MOBILE_NUMBER, BIOMETRIC from ACCOUNT_OPENING");
//select CNIC, MOBILE_NUMBER, BIOMETRIC from ACCOUNT_OPENING
Fmd[] fmds = new Fmd[dataSetBiometric.Tables[0].Rows.Count];
for (int i = 0; i < dataSetBiometric.Tables[0].Rows.Count; i++)
{
fmds[0] = Fmd.DeserializeXml(dataSetBiometric.Tables[0].Rows[i]["BIOMETRIC"].ToString());//BIOMETRIC
resultConversion = FeatureExtraction.CreateFmdFromFid(captureResult.Data, Constants.Formats.Fmd.ANSI);
identifyResult = Comparison.Identify(resultConversion.Data, 0, fmds, thresholdScore, dataSetBiometric.Tables[0].Rows.Count);
if (identifyResult.ResultCode == Constants.ResultCode.DP_SUCCESS)
{
MobileNumber = dataSetBiometric.Tables[0].Rows[i]["MOBILE_NUMBER"].ToString();
Cnic = dataSetBiometric.Tables[0].Rows[i]["CNIC"].ToString();
break;
}
}
关于c# - 来自数据库的 Digital Persona 指纹验证不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41742993/
是否可以使用 Mozilla Persona 来签署数据(字符串、 token 等)? 我想使用 navigator.id.request() 传递一串数据,然后在不受信任的介质上传输断言并在验证时检
我们正在为我们的一个网站使用 Kentico 内置角色,在更新角色时我们遇到大约五秒钟的延迟。我们有一些联系人字段,我们使用规则来设置角色。有什么办法可以改善角色的更新时间。我们使用以下代码片段来更新
Device : Digital Persona u.are.u 4500 注册时我将数据保存在 sql 数据库中 image 格式(sql 数据类型是图像)它工作正常我的数据正确保存在数据库中,
我正在上传我的第一个 Opera 扩展。这很简单。它是一个启动弹出窗口的工具栏按钮。它在 Opera 开发者模式下运行良好。 Opera 不允许我成功上传它。它一直说缺少persona.ini 文件。
对不起,通用标题。我现在正在玩 Mozilla 的 Persona。我将 Express.js 与 express-persona 一起使用中间件,所以设置一切都非常简单。客户端部分也很简单,但我很难
我正在尝试将 DP 控件集成到我们的应用程序中,我注意到 SDK 中存在一些问题,我希望有人能够帮助我。 当应用程序未获得焦点时,它不会触发 OnFingerTouch 事件或任何其他事件。 当我尝试
是否可以轻松使用Mozilla Persona ( Browser ID ) 适用于 native iOS 和 Android 应用程序?还是从 web view 中获取信息太麻烦了? 最佳答案 对于
我在项目中使用 Mozilla Persona。我想在 onlogin 之后更新 loggedInUser。但是 loggedInUser 是传递给 navigator.id.watch() 的对象的
我使用小程序捕获了字符串形式的功能集。我需要将该字符串转换回字节并将其反序列化以匹配它。但我不知道哪里出了问题,因为它没有将模板与功能集进行比较。我已经为此奋斗了几个星期,请任何人帮助我。 //Con
Closed. This question needs details or clarity。它当前不接受答案。
我正在尝试使用 DigitalPersona SDK v 3.0.0 在 Java 中比较两个指纹,但我收到 FMD is Invalid Error 或有时我收到传递给 API 调用的一个或多个参数
我试图在我的 CommandBar 组件的最右侧显示一个 Persona 组件,我将其用作我的应用程序的 header 。 这是一段代码 const getFarItems = () => { r
我试图在我的 CommandBar 组件的最右侧显示一个 Persona 组件,我将其用作我的应用程序的 header 。 这是一段代码 const getFarItems = () => { r
此代码是否需要 Digital Persona One Touch RTE(运行时环境)才能工作?: DPFPVerification verifier = DPFPGlobal.getVerifi
我是一名优秀的程序员,十分优秀!