Instructions
U.are.U SDK - Developer Guide 51
The .NET API
Enrollment
CreateEnrollmentFmd()
creates and returns an enrollment FMD. The method takes as input an enumeration which
defines which format to use, e.g., ANSI or ISO. This method also takes as input an
IEnumerable<Fmd>
object type.
See
IEnumerables in the .NET Wrapper on page 45 for a brief description. As
IEnumerable<Fmd>
pertains to Enrollment,
you may either send an array of FMDs to
CreateEnrollmentFmd()
because simple arrays satisfy the
IEnumerable<Fmd>
interface. You may also send a method which returns
IEnumerable<Fmd>
. Here is an example
that uses an
IEnumerable<Fmd>
method. To keep the example simple, error checking is removed:
// Create an enrollment Fmd.
DataResult<Fmd> enrollmentResult = Enrollment.CreateEnrollmentFmd(
Constants.Formats.Fmd.ANSI,
CaptureExtractFmd()
);
Here is a function which captures and extracts an FMD, then returns
IEnumerable<Fmd>
: (the full version of this
code is in the code sample)
// Capture and extract an FMD and return as IEnumerable<Fmd>.
private IEnumerable<Fmd> CaptureAndExtractFmd()
{
while (true)
{
// !!! Get Status and ensure that status is DP_STATUS_READY before continuing
// Capture a fingerprint.
CaptureResult captureResult = m_reader.Capture(
Constants.Formats.Fid.ANSI,
Constants.CaptureProcessing.DP_IMG_PROC_DEFAULT,
/* Default processing used. */
-1,
/* No timeout. */
reader.Capabilities.Resolutions[0]
/* A resolution that is available to reader. */
);
// !!! Check for errors, use ‘yield return null; or break;’ to stop.
yield return convertResult.Data;
}
}
Function Description
Compare Compare two FMDs; supported formats are: Gold SDK, One Touch SDK, ANSI
and ISO.
Identify Identify an FMD: given an array of FMDs, this function returns an array of candi-
dates that match the original fingerprint (an FMV within an FMD) within the
threshold of error. Supported formats are: Gold SDK, One Touch SDK, ANSI and
ISO.