StartVerify

Definition

Usage

Start 1:1 verification.

Parameter

ID of the user to be enrolled

}

Index of the fingerprint of the user to be enrolled. The value ranges from 0 to 9.

Return Value

Return True if it is successful, or return False.

Related Function

StartIdentify, CancelOperation

 

Ejemplo

C#

private static int startEnroll(string ipAddr, int port, int userId, int fingerId)
        {
int idwErrorCode = 0;
//Create Standalone SDK class dynamicly.
            zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass();
if (axCZKEM1.Connect_Net(ipAddr, 4370))
            {
int iMachineNumber = 1;
                axCZKEM1.CancelOperation();
                axCZKEM1.DelUserTmp(iMachineNumber, userId, fingerId);
if (axCZKEM1.StartEnroll(userId, fingerId))
                {
                    MessageBox.Show("Operation Success! UserId: " + userId + " With FingerId: " + fingerId + "Successfuly Enrolled");
                    axCZKEM1.StartIdentify();//After enrolling templates,you should let the device into the 1:N verification condition
                }
else
                {
                    axCZKEM1.GetLastError(ref idwErrorCode);
                    MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error");
                }
            }
else
            {
                axCZKEM1.GetLastError(ref idwErrorCode);
            }
            axCZKEM1.Disconnect();
return idwErrorCode;
        }

VB

Private Sub startEnroll(ipAddr As String, port As Int32, userId As Int32, fingerId As Int32)
'Create Standalone SDK class dynamicly.
Dim axCZKEM1 As New zkemkeeper.CZKEM
Dim iMachineNumber As Integer
Dim idwErrorCode As Integer
If axCZKEM1.Connect_Net(ipAddr, port) = True Then
            axCZKEM1.CancelOperation()
            axCZKEM1.DelUserTmp(iMachineNumber, userId, fingerId)
If axCZKEM1.StartEnroll(userId, fingerId) = True Then
                MsgBox("Operation Success! UserId: " + userId + " With FingerId: " + fingerId + "Successfuly Enrolled")
                axCZKEM1.StartIdentify() 'After enrolling templates,you should Let the device into the 1:N verification condition
Else
                axCZKEM1.GetLastError(idwErrorCode)
                MsgBox("Operation failed,ErrorCode=" & idwErrorCode.ToString(), MsgBoxStyle.Exclamation, "Error")
End If
Else
            axCZKEM1.GetLastError(idwErrorCode)
End If
        axCZKEM1.Disconnect()
End Sub