Manage Face Information

If you want to access by face, you should add face picture and link the face picture with the card for getting the access permissions, and then apply face information to 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.

  • Make sure you have collected the face data, refer to Collect Face Data for details.

Figure 1 Programming Flow of Managing Face Information

  1. Call NET_DVR_GetDeviceAbility, specify dwAbilityType to "ACS_ABILITY" (macro definition value: 0x801), and set pCondBuffer to the message XML_Desc_AcsAbility for getting access control capability to check if managing face information is supported by device.

    The access control capability is returned in the message XML_AcsAbility by pOutBuffer.

    If supports, the node <FaceParam> is returned in the message, and then you can perform the following steps.

    Otherwise, managing face information is not supported, please end this task.

  2. Perform one of the following operations to get, apply, or delete face information.
    Note:

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

    Figure 2 Face Management Example Page

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