Configure Blocklist and Allowlist ANPR Alarm

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 Alarm

  1. Optional: Get intelligent traffic capability to check if the following functions are supported.
  2. Optional: Call NET_DVR_GetDeviceConfig with "NET_DVR_GET_TRIGGEREX_CFG" (command No.: 5074) and set the input buffer (lpInBuffer) to the structure NET_DVR_TRIGGER_COND for getting the configured or existing triggering mode of blocklist and allowlist ANPR alarm for reference.

    The triggering mode parameters are returned by the output buffer (lpOutBuffer) in the structure of NET_ITC_TRIGGERCFG.

  3. Call NET_DVR_SetDeviceConfig with "NET_DVR_SET_TRIGGEREX_CFG" (command No.: 5075), set the input buffer (lpInBuffer) to the structure NET_DVR_TRIGGER_COND, and set the input parameter (lpInParamBuffer) to the structure NET_ITC_TRIGGERCFG for setting the triggering mode.
  4. Optional: Configure parameters to display license plate information on alarm picture.
    1. Optional: Call NET_DVR_GetDeviceConfig with "NET_ITS_GET_OVERLAP_CFG_V50" (command No.: 5055) and set the input buffer (lpInBuffer) to the structure NET_ITS_OVERLAPCFG_COND for getting the configured or existing overlay parameters for reference.

      The overlay parameters are returned by the output buffer (lpOutBuffer) in the structure of NET_ITS_OVERLAP_CFG_V50.

    2. Call NET_DVR_SetDeviceConfig with "NET_ITS_SET_OVERLAP_CFG_V50" (command No.: 5056), set the input buffer (lpInBuffer) to the structure NET_ITS_OVERLAPCFG_COND, and set the input parameter (lpInParamBuffer) to the structure NET_ITS_OVERLAP_CFG_V50 for setting the parameters to display license plate information on alarm picture.
  5. Call NET_DVR_StartDownload with "NET_SDK_DOWNLOAD_VEHICLE_BLOCKALLOWLIST_FILE" (command No.: 7) to download the blocklist and allowlist template.
  6. Call NET_DVR_UploadFile_V40 with "UPLOAD_VEHICLE_BLOCKALLOWLIST_FILE" (command No.: 13) to import the blocklist and allowlist information filled in the template.
  7. Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: POST /ISAPI/Traffic/channels/<ID>/searchLPListAudit and set lpInBuffer of lpInputParam to the message XML_LPListAuditSearchDescription to search for the configured or existing blocklist or allowlist.
  8. Configure arming schedule for blocklist ANPR alarm or allowlist ANPR alarm.
  9. Optional: Call NET_DVR_GetSTDAbility, set the dwAbilityType to "NET_DVR_GET_EVENT_TRIGGERS_CAPABILITIES" (value: 3501), and set condition parameter lpCondBuffer in the structure of NET_DVR_STD_ABILITY to "NULL" for getting the configuration capability of blocklist and allowlist ANPR alarm linkage.

    The configuration capability is returned in the message XML_EventTriggersCap by the output parameter lpOutBuffer in the structure of NET_DVR_STD_ABILITY.

  10. Configure linkage action for blocklist ANPR alarm or allowlist ANPR alarm.
    • Configure linkage action for blocklist ANPR alarm

      1. 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.

        Note:

        The linkage action parameters (NET_DVR_EVENT_TRIGGER) are returned by the output buffer (lpOutBuffer) of structure NET_DVR_STD_CONFIG.

      2. 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

      1. 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.

        Note:

        The linkage action parameters (NET_DVR_EVENT_TRIGGER) are returned by the output buffer (lpOutBuffer) of structure NET_DVR_STD_CONFIG.

      2. 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.

  11. Optional: Receive blocklist and allowlist ANPR alarm in arming mode (see Receive Alarm/Event in Arming Mode) or listening mode (see Receive Alarm/Event in Listening Mode) when alarm is triggered.
    Note:

Call NET_DVR_Logout and NET_DVR_Cleanup to log out from device and release resources.