After capturing the vehicle picture, you can control the entry of vehicles according to the ANPR results after configuring the alarm of license plate in blocklist or allowlist. The vehicles in blocklist are not allowed to enter, while the vehicles in the allowlist are allowed to enter.
Make sure you have called NET_DVR_Init to initialize the integration environment.
Make sure you have called NET_DVR_Login_V40 to log in to the device.
Figure 1 Programming Flow of
Configuring Blocklist and Allowlist ANPR AlarmCall NET_DVR_GetDeviceAbility, set the capability type (dwAbilityType) to "DEVICE_ABILITY_INFO" (0x011), and set the input parameter pointer (pInbuf) to the message XML_Desc_ITDeviceAbility.
The intelligent traffic capability is returned in the message of XML_ITDeviceAbility, and the related node is <ITCAbility>.
Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/ITC/capability.
The intelligent traffic capability is returned in the message XML_ITCCap by lpOutBuffer of lpOutputParam.
The triggering mode parameters are returned by the output buffer (lpOutBuffer) in the structure of NET_ITC_TRIGGERCFG.
The overlay parameters are returned by the output buffer (lpOutBuffer) in the structure of NET_ITS_OVERLAP_CFG_V50.
Configure arming schedule for blocklist ANPR alarm
Call NET_DVR_GetSTDConfig with "NET_DVR_GET_VEHICLE_BLOCKLIST_SCHEDULE" (command No: 6622) to get the configured or existing arming schedule of blocklist ANPR alarm for reference.
The arming schedule parameters (NET_DVR_EVENT_SCHEDULE) are returned by the output buffer (lpOutBuffer) of structure NET_DVR_STD_CONFIG.
Call NET_DVR_SetSTDConfig with "NET_DVR_SET_VEHICLE_BLOCKLIST_SCHEDULE" (command No.: 6623) and set the input buffer (lpInBuffer) of structure NET_DVR_STD_CONFIG to NET_DVR_EVENT_SCHEDULE for setting arming schedule.
Configure arming schedule for allowlist ANPR alarm
Call NET_DVR_GetSTDConfig with "NET_DVR_GET_VEHICLE_ALLOWLIST_SCHEDULE" (command No: 6624) to get the configured or existing arming schedule of allowlist ANPR alarm for reference.
The arming schedule parameters (NET_DVR_EVENT_SCHEDULE) are returned by the output buffer (lpOutBuffer) of structure NET_DVR_STD_CONFIG.
Call NET_DVR_SetSTDConfig with "NET_DVR_SET_VEHICLE_ALLOWLIST_SCHEDULE" (command No.: 6625) and set the input buffer (lpInBuffer) of structure NET_DVR_STD_CONFIG to NET_DVR_EVENT_SCHEDULE for setting arming schedule.
The configuration capability is returned in the message XML_EventTriggersCap by the output parameter lpOutBuffer in the structure of NET_DVR_STD_ABILITY.
Configure linkage action for blocklist ANPR alarm
Call NET_DVR_GetSTDConfig with "NET_DVR_GET_VEHICLE_BLOCKLIST_EVENT_TRIGGER" (command No.: 6626) to get the configured or existing linkage action of blocklist ANPR alarm for reference.
The linkage action parameters (NET_DVR_EVENT_TRIGGER) are returned by the output buffer (lpOutBuffer) of structure NET_DVR_STD_CONFIG.
Call NET_DVR_SetSTDConfig with "NET_DVR_SET_VEHICLE_BLOCKLIST_EVENT_TRIGGER" (command No.: 6627) and set the input buffer (lpInBuffer) of structure NET_DVR_STD_CONFIG to NET_DVR_EVENT_TRIGGER for setting linkage action.
Configure linkage action for allowlist ANPR alarm
Call NET_DVR_GetSTDConfig with "NET_DVR_GET_VEHICLE_ALLOWLIST_EVENT_TRIGGER" (command No.: 6628) to get the configured or existing linkage action of allowlist ANPR alarm for reference.
The linkage action parameters (NET_DVR_EVENT_TRIGGER) are returned by the output buffer (lpOutBuffer) of structure NET_DVR_STD_CONFIG.
Call NET_DVR_SetSTDConfig with "NET_DVR_SET_VEHICLE_ALLOWLIST_EVENT_TRIGGER" (command No.: 6629) and set the input buffer (lpInBuffer) of structure NET_DVR_STD_CONFIG to NET_DVR_EVENT_TRIGGER for setting linkage action.
The commands (lCommand) to receive blocklist and allowlist ANPR alarms should be set to "COMM_VEHICLE_CONTROL_ALARM" (command No.: 0x3059) in NET_DVR_SetDVRMessageCallBack_V50 and NET_DVR_StartListen_V30.
For alarm details, refer to the structure of NET_DVR_VEHICLE_CONTROL_ALARM.
Call NET_DVR_Logout and NET_DVR_Cleanup to log out from device and release resources.