Collect Face Data

The face data to be applied and linked with card should be collected first via face capture module of access control device.

  • Make sure you have called NET_DVR_Init to initialize the development resources.

  • Make sure you have called NET_DVR_Login_V40 to log in to device.

Figure 1 Programming Flow of Collecting Face Data

  1. Call NET_DVR_StartRemoteConfig with "NET_DVR_CAPTURE_FACE_INFO" (command No.: 2510) and set lpInBuffer to NET_DVR_CAPTURE_FACE_COND for enabling persistent connection to collect face data.
    Note:

    The status callback function fRemoteConfigCallback in NET_DVR_StartRemoteConfig should be set to "null".

  2. Call NET_DVR_GetNextRemoteConfig to get collected face data item by item.
    Note:

    To get all collected face data, this step must be performed repeatedly.

    The collected face data is returned in the structure NET_DVR_CAPTURE_FACE_CFG by lpOutBuff.

  3. Call NET_DVR_StopRemoteConfig to disconnect the persistent connection.

Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release the resource.