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 the card information linked with the face picture is applied, refer
to Manage Card Information for details.
Figure 1 Programming Flow of
Managing Face Information
-
Call NET_DVR_GetDeviceAbility, specify the capability type
(dwAbilityType) to "ACS_ABILITY" (macro definition
value: 0x801), and set the condition buffer (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 the output buffer
(pOutBuffer).
If the node <FaceParam> is returned in the message,
it indicates that managing face information is supported by device, and you
can perform the following steps.
Otherwise, managing face information is not supported, please end this
task.
-
Perform the following operation(s) to get or apply face information.
-
Call NET_DVR_StopRemoteConfig to disconnect the persistent
connection.
Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release the resource.