========================================================================
DigitalPersona, Inc. : Enrollment sample code project
========================================================================
This sample code demonstrates how to use the enrollment and verification
features of DPFPApi.
To build the sample, use VC++ 7.0 or later.
The sample dialog boxes are based on ATL dialogs.
Main Dialog
====================
The main dialog contains buttons for calling the Enrollment and Verification dialogs, as
well as saving the Enrollment template to disk and reading it from disk.
When the Enrollment dialog is closed, the fingerprint Enrollment template is passed
to the Main dialog, where in turn, it can be passed to the Verification dialog or saved to
disk.
It is also possible to read a previously saved template from disk and use it for fingerprint
verification instead of creating a new Enrollment template using the Enrollment dialog.
Enrollment Dialog
====================
This dialog enrolls fingerprints, i.e. it captures four fingerprint images, converts them
into fingerprint pre-enrollment feature sets, and then creates the Enrollment template from
them.
The function OnInitDialog creates the required Feature Extraction and Matching contexts,
and then starts fingerprint image capture using DPFPApi functions. It also gets the
dimensions of the fingerprint image to be drawn in the dialog from the helper control
IDC_STATIC_DRAWAREA_SIZE.
The Enrollment dialog contains a number of checkboxes for specifying the parameters of
the Enrollment template. The states of each of these checkboxes are collected and put into
the variable m_mcRegOptions, which is passed to the enrollment function.
When any fingerprint event happens, the dialog receives a message, (WMUS_FP_NOTIFY, which
was previously passed to DPFPApi) and processes the parameters of the message. wParam
contains the code for the event. All events are traced in the list box in the dialog.
Receipt of a WN_COMPLETED event means that the fingerprint image has been captured. lParam
contains a pointer to the image. The dialog displays the image using the helper function
DisplayFingerprintImage and then passes it to the helper function AddToEnroll.
The function DisplayFingerprintImage first prepares a regular bitmap header, then uses the
SDK function to get the fingerprint image bits and finally, uses CreateDIBSection to put
the bits into the bitmap. Then it sets the bitmap handle to the control in the dialog
(IDC_STATIC_DRAWAREA) that displays the image.
Function AddToEnroll uses SDK functions to create a fingerprint pre-enrollment feature set
from the fingerprint image and add it to the array of pre-enrollment feature sets. When the
number of pre-enrollment feature sets in the array reaches the number required for
enrollment, it uses the SDK function MC_generateRegFeatures to create one Enrollment
template. It uses m_mcRegOptions to create the template with the appropriate features. The
template is saved in the member BLOB variable m_RegTemplate. This variable is copied from
this dialog into the main dialog, where it can be passed to the Verification dialog or
saved on disk.
The OnDestroy function closes all contexts and stops fingerprint image capture.
Verification Dialog
====================
This dialog verifies a fingerprint, i.e. it captures a fingerprint image, converts
it into a fingerprint verification feature set, and compares the feature set against a fingerprint
enrollment template (either one previously created in the Enrollment dialog or one read
from disk.)
The function OnInitDialog creates the required Feature Extraction and Matching
contexts, and then starts fingerprint image capture using DPFPApi functions.
It also gets the dimensions of the fingerprint image to be drawn in the dialog from
the helper control IDC_STATIC_DRAWAREA_SIZE.
The dialog contains a checkbox for specifying that template adaption is needed. If the
Enrollmet template has been created with learning allowed and this checkbox is
checked, the Enrollment template could be modified to contain more recent fingerprint
features.
When any fingerprint event happens, the dialog receives a message, (WMUS_FP_NOTIFY, which
was previously passed to DPFPApi) and processes the parameters of the message. wParam contains
the code for the event. All events are traced in the list box in the dialog. Receipt of a
WN_COMPLETED event means that the fingerprint image has been captured. lParam contains a pointer
to the image. The dialog displays the image using the helper function DisplayFingerprintImage and
then compares it with the Enrolled fingerprint template using the Verify helper function. The
Enrolled template has been passed to the dialog previously from the calling function, shortly
after construction of the dialog.
The function DisplayFingerprintImage first prepares a regular bitmap header, then uses an SDK
function to get the fingerprint image bits and finally, uses CreateDIBSection to put the bits into
the bitmap. Then it sets the bitmap handle to the control in the dialog (IDC_STATIC_DRAWAREA) that
displays the image.
The Verify function uses SDK functions to create a fingerprint feature set from the fingerprint Image,
and then compares that feature set with the Enrolled template previously passed to the dialog from
the outside.
The OnDestroy function closes all contexts and stops fingerprint image capture.
没有合适的资源?快使用搜索试试~ 我知道了~
java、 c、c++、.net指纹识别(含demo程序)
共189个文件
dll:21个
vb:21个
cs:21个
3星 · 超过75%的资源 需积分: 13 43 下载量 140 浏览量
2017-10-27
12:11:19
上传
评论
收藏 6.64MB ZIP 举报
温馨提示
digital persona 的demo程序和sdk,有java, c,c++,com_activeX,.Net。欢迎下载
资源推荐
资源详情
资源评论
收起资源包目录
java、 c、c++、.net指纹识别(含demo程序) (189个子文件)
build.bat 4KB
build.bat 4KB
build.bat 4KB
run.bat 3KB
run.bat 3KB
run.bat 3KB
EnrollmentDlg.cpp 15KB
VerificationDlg.cpp 12KB
DPFpUITestDialog.cpp 7KB
Utilities.cpp 4KB
SampleReg.cpp 1KB
DPFpUITest.cpp 461B
StdAfx.cpp 209B
stdafx.cpp 206B
MainForm.Designer.cs 14KB
MainForm.Designer.cs 6KB
CaptureForm.Designer.cs 6KB
CaptureForm.cs 4KB
VerificationForm.Designer.cs 4KB
EnrollmentForm.Designer.cs 3KB
Resources.Designer.cs 3KB
Resources.Designer.cs 2KB
MainForm.cs 2KB
EnrollmentForm.cs 2KB
EnrollmentForm.cs 2KB
MainForm.cs 2KB
VerificationForm.cs 2KB
VerificationForm.cs 2KB
AssemblyInfo.cs 1KB
AssemblyInfo.cs 1KB
AppData.cs 1KB
Settings.Designer.cs 1KB
Settings.Designer.cs 1016B
Program.cs 480B
Program.cs 402B
EnrollmentSample CS.csproj 5KB
UISupportSample CS.csproj 5KB
DPFPCtlX.dll 1007KB
DPmsg.dll 487KB
DPDevTS.dll 419KB
DPMux.dll 339KB
DPCOper2.dll 283KB
DPDevice2.dll 235KB
DPFPDevX.dll 215KB
DPCrStor.dll 211KB
DPTSClnt.dll 199KB
DPFPEngX.dll 191KB
DpSvInfo2.dll 183KB
DPFPShrX.dll 163KB
DPFPDevNET.dll 39KB
DPFPGuiNET.dll 31KB
DPFPEngNET.dll 27KB
DPFPVerNET.dll 23KB
DPFPShrNET.dll 23KB
DPFPCtlXLib.dll 15KB
DPFPCtlXTypeLibNET.dll 15KB
DPFPCtlXWrapperNET.dll 12KB
DPFPShrXTypeLibNET.dll 9KB
DpHostW.exe 315KB
Enrollment.exe 131KB
DPFPUIDemo.exe 83KB
EnrollmentSample VB.exe 43KB
Enrollment.exe 40KB
UIVBDemo.exe 32KB
EnrollmentSample CS.exe 31KB
UISupportSample CS.exe 31KB
UISupportSample VB.exe 29KB
Enrollment.frm 6KB
Verification.frm 6KB
MainForm.frm 6KB
MainFrame.frm 4KB
EnrollmentDialog.frm 3KB
VerificationDialog.frm 3KB
dpMatch.h 15KB
dpFtrEx.h 14KB
DPDevClt.h 12KB
DpUIApi.h 7KB
MainDlg.h 6KB
dpDefs.h 5KB
EnrollmentDlg.h 3KB
dpRCodes.h 3KB
VerificationDlg.h 3KB
DPFpUITestDialog.h 2KB
stdafx.h 1KB
resource.h 1KB
resource.h 1KB
StdAfx.h 1KB
Utilities.h 619B
Dplogo.ico 10KB
Dplogo.ico 10KB
dpfpenrollment.jar 307KB
dpotapi.jar 56KB
dpfpverification.jar 26KB
EnrollmentSample.jar 25KB
UISupportSample.jar 18KB
ConsoleSample.jar 16KB
dpotjni.jar 11KB
ConsoleUserInterfaceFactory.java 21KB
MainForm.java 11KB
CaptureForm.java 6KB
共 189 条
- 1
- 2
资源评论
- qq_374648242018-04-15找不到了,重新下载
- 一步一步一起走2018-05-11没用,反正对我没用
wsszxx22
- 粉丝: 0
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于CarNet实现裂缝检测python源码+文档说明+数据+图片(课程设计)
- 课程设计-基于耐火材料裂缝剥落检测python源码+课件
- 基于OpenCV的视频道路车道检测python源码+文档说明+实验演示+图片+使用方法(高分毕业设计)
- 基于OpenCV的案例:图像边缘、角点和轮廓检测,图像分割,图像增强;图片拼接;运动目标检测,颜色直方图比较,三帧帧差法,抠图
- SmartPlug-html大一笔记
- SmartPlug-proteusdemo
- Preliminary Findings on Handmade Rattan Baby Crib andBassinet Designs Regarding.zip
- aveebfq_v1.2.83_downyi.com.apk
- 基于有机发光二极管(OLED)的建模优化算法的matlab仿真源码+数据+文档说明+项目说明(高分课程设计)
- hash01-test.c 本人哈希表(一)的示例代码,仅供参考!
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功