When the access control device is not connected to the client software or platform via the network, you can collect data (including ID card information, card information, face data, and fingerprint) locally on the stand-alone device by importing description of the information that needs to be collected. The offline collected data will be stored on the device and can also be downloaded, exported, or deleted from the device.
Make sure you have called NET_DVR_Init to initialize the development environment.
Make sure you have called NET_DVR_Login_V40 to log in to the device.
The capability is returned in the message XML_Cap_AccessControl by lpOutBuffer of lpOutputParam.
If this function is supported, the node <isSupportOfflineCapture> will be returned and its value is "true". Otherwise, please end this task.
The capability is returned in the message JSON_OfflineCaptureCap lpOutBuffer of lpOutputParam.
If importing failed, you can call NET_DVR_STDXMLConfig to transmit the request URI: GET /ISAPI/AccessControl/OfflineCapture/uploadFailedDetails?format=json for getting the details of failing to upload the user list of offline data collection.
The uploading failure details are returned in the message JSON_UploadFailedDetails by lpOutputParam.
Before setting rule parameters of offline data collection, you'd better call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/AccessControl/OfflineCapture/ruleInfo?format=json for getting the existing or configured parameters for reference. The parameters are returned in the message JSON_RuleInfo by lpOutBuffer of lpOutputParam.
The collection progress is returned in the message JSON_CaptureProgress by lpOutBuffer of lpOutputParam.
Option | Description |
---|---|
Export Collected Data |
Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/OfflineCapture/dataOutput?format=json and set lpInBuffer of lpInputParam to the message JSON_DataOutputCfg. Note:
During exporting, you can call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/AccessControl/OfflineCapture/dataOutput/progress?format=json for getting the progress of exporting the offline collected data. |
Download Collected Data |
|
Search for Collected Data |
|
Delete A Specific Piece of Collected Data |
Call NET_DVR_STDXMLConfig to pass through the request URL: DELETE /ISAPI/AccessControl/OfflineCapture/DataCollections/<captureNo>?format=json. |
Delete All Collected Data |
Call NET_DVR_STDXMLConfig to pass through the request URL: DELETE /ISAPI/AccessControl/OfflineCapture/DataCollections?format=json. |
Call NET_DVR_Logout and NET_DVR_Cleanup to log out of the device and release the resources.