0% found this document useful (0 votes)
139 views

Device Network SDK (ANPR) - Developer Guide - V6.1.0.X - 20230330

Uploaded by

sptjardine
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
139 views

Device Network SDK (ANPR) - Developer Guide - V6.1.0.X - 20230330

Uploaded by

sptjardine
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 407

Device Network SDK (ANPR)

Developer Guide
Device Network SDK (ANPR) Developer Guide

Legal Information
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE DOCUMENT IS PROVIDED "AS IS"
AND "WITH ALL FAULTS AND ERRORS". OUR COMPANY MAKES NO REPRESENTATIONS OR
WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. IN NO EVENT
WILL OUR COMPANY BE LIABLE FOR ANY SPECIAL, CONSEQUENTIAL, INCIDENTAL, OR INDIRECT
DAMAGES, INCLUDING, AMONG OTHERS, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS
INTERRUPTION OR LOSS OF DATA, CORRUPTION OF SYSTEMS, OR LOSS OF DOCUMENTATION,
WHETHER BASED ON BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE, IN
CONNECTION WITH THE USE OF THE DOCUMENT, EVEN IF OUR COMPANY HAS BEEN ADVISED OF
THE POSSIBILITY OF SUCH DAMAGES OR LOSS.

i
Device Network SDK (ANPR) Developer Guide

Contents
Chapter 1 Overview .................................................................................................................... 1
1.1 Introduction ........................................................................................................................... 1
1.2 Update History ....................................................................................................................... 1
Chapter 2 Configure ANPR Alarm ................................................................................................ 2
Chapter 3 Configure Blocklist and Allowlist ANPR Alarm ............................................................. 6
Chapter 4 Control Barrier Gate Status ....................................................................................... 11
Chapter 5 Alarm/Event Receiving ............................................................................................. 13
5.1 Receive Alarm/Event in Arming Mode ................................................................................. 13
5.2 Receive Alarm/Event in Listening Mode .............................................................................. 16
Chapter 6 API Reference ........................................................................................................... 20
6.1 NET_DVR_GetDeviceAbility ................................................................................................. 20
6.2 NET_DVR_GetDeviceConfig ................................................................................................. 21
6.3 NET_DVR_GetDownloadState .............................................................................................. 22
6.4 NET_DVR_GetSTDAbility ...................................................................................................... 22
6.5 NET_DVR_GetSTDConfig ...................................................................................................... 23
6.6 NET_DVR_GetUploadState .................................................................................................. 24
6.7 NET_DVR_RemoteControl ................................................................................................... 26
6.8 NET_DVR_SetDeviceConfig .................................................................................................. 27
6.9 NET_DVR_SetSTDConfig ...................................................................................................... 28
6.10 NET_DVR_STDXMLConfig ................................................................................................... 29
6.11 NET_DVR_StartDownload .................................................................................................. 30
6.12 NET_DVR_StopDownload .................................................................................................. 31
6.13 NET_DVR_UploadClose ...................................................................................................... 31
6.14 NET_DVR_UploadFile_V40 ................................................................................................ 32
6.15 NET_DVR_Cleanup ............................................................................................................. 33
6.16 NET_DVR_GetErrorMsg ..................................................................................................... 33

ii
Device Network SDK (ANPR) Developer Guide

6.17 NET_DVR_GetLastError ...................................................................................................... 34


6.18 NET_DVR_Init ..................................................................................................................... 34
6.19 NET_DVR_Login_V40 ......................................................................................................... 35
6.19.1 fLoginResultCallBack ................................................................................................. 35
6.20 NET_DVR_Logout ............................................................................................................... 36
6.21 NET_DVR_SetSDKInitCfg .................................................................................................... 36
6.22 NET_DVR_CloseAlarmChan_V30 ....................................................................................... 38
6.23 NET_DVR_GetDVRConfig ................................................................................................... 38
6.24 NET_DVR_SetDVRConfig .................................................................................................... 39
6.25 NET_DVR_SetDVRMessageCallBack_V50 .......................................................................... 40
6.25.1 MSGCallBack ............................................................................................................. 48
6.26 NET_DVR_SetupAlarmChan_V50 ....................................................................................... 48
6.27 NET_DVR_StartListen_V30 ................................................................................................. 49
6.28 NET_DVR_StopListen_V30 ................................................................................................. 50
Chapter 7 Structure and Enumeration ....................................................................................... 51
7.1 Data Structure ...................................................................................................................... 51
7.1.1 ITC_LANE_DIRECTION_TYPE ....................................................................................... 51
7.1.2 ITC_LANE_USEAGE_TYPE ............................................................................................ 52
7.1.3 ITS_OVERLAP_ITEM_TYPE .......................................................................................... 53
7.1.4 ITC_RELA_LANE_DIRECTION_TYPE ............................................................................. 57
7.1.5 ITC_TRIGGERMODE_TYPE ........................................................................................... 58
7.1.6 ITC_VIOLATION_DETECT_TYPE .................................................................................... 59
7.1.7 NET_DVR_BARRIERGATE_CFG ..................................................................................... 61
7.1.8 NET_DVR_CRUISECHAN_INFO .................................................................................... 62
7.1.9 NET_DVR_EVENT_SCHEDULE ..................................................................................... 62
7.1.10 NET_DVR_EVENT_TRIGGER ...................................................................................... 62
7.1.11 NET_DVR_GEOGLOCATION ....................................................................................... 63
7.1.12 NET_DVR_GUARD_CFG ............................................................................................. 64

iii
Device Network SDK (ANPR) Developer Guide

7.1.13 NET_DVR_GUARD_COND ......................................................................................... 65


7.1.14 NET_DVR_HANDLEEXCEPTION_V41 ......................................................................... 66
7.1.15 NET_DVR_INIT_CFG_ABILITY .................................................................................... 66
7.1.16 NET_DVR_LLI_PARAM ............................................................................................... 67
7.1.17 NET_DVR_LLPOS_PARAM ......................................................................................... 68
7.1.18 NET_DVR_MIME_UNIT ............................................................................................. 68
7.1.19 NET_DVR_PLATE_INFO ............................................................................................. 69
7.1.20 NET_DVR_PLATE_RESULT .......................................................................................... 71
7.1.21 NET_DVR_PRESETCHAN_INFO .................................................................................. 74
7.1.22 NET_DVR_PTZTRACKCHAN_INFO ............................................................................. 74
7.1.23 NET_DVR_SCHEDTIME .............................................................................................. 74
7.1.24 NET_DVR_STD_ABILITY ............................................................................................. 74
7.1.25 NET_DVR_STD_CONFIG ............................................................................................ 75
7.1.26 NET_DVR_TIME_V30 ................................................................................................ 76
7.1.27 NET_DVR_TIME_V50 ................................................................................................ 77
7.1.28 NET_DVR_TIME_DETECTION .................................................................................... 78
7.1.29 NET_DVR_TRIGGER_COND ....................................................................................... 79
7.1.30 NET_DVR_VEHICLE_ADDINFO ................................................................................... 79
7.1.31 NET_DVR_VEHICLE_CONTROL_ALARM .................................................................... 80
7.1.32 NET_DVR_VEHICLE_INFO .......................................................................................... 81
7.1.33 NET_DVR_VIA_LANE_PARAM ................................................................................... 83
7.1.34 NET_DVR_VIA_VTCOIL_PARAM ................................................................................ 84
7.1.35 NET_DVR_XML_CONFIG_INPUT ............................................................................... 85
7.1.36 NET_DVR_XML_CONFIG_OUTPUT ............................................................................ 86
7.1.37 NET_IPC_LANE_HVT_PARAM .................................................................................... 87
7.1.38 NET_IPC_POST_HVT_PARAM .................................................................................... 88
7.1.39 NET_ITC_EPOLICE_IOTL_PARAM ............................................................................... 89
7.1.40 NET_ITC_EPOLICE_LANE_PARAM ............................................................................. 90

iv
Device Network SDK (ANPR) Developer Guide

7.1.41 NET_ITC_EPOLICE_RS485_PARAM ............................................................................ 92


7.1.42 NET_ITC_INTERVAL_PARAM ..................................................................................... 93
7.1.43 NET_ITC_IO_LIGHT_PARAM ...................................................................................... 94
7.1.44 NET_ITC_LANE_HVT_PARAM_V50 ............................................................................ 94
7.1.45 NET_ITC_LANE_IMT_PARAM .................................................................................... 97
7.1.46 NET_ITC_LANE_LOGIC_PARAM ................................................................................. 98
7.1.47 NET_ITC_LANE_MPR_PARAM ................................................................................... 99
7.1.48 NET_ITC_LANE_NOCOMITY_PEDESTRIAN_PARAM ................................................ 100
7.1.49 NET_ITC_LANE_PARAM .......................................................................................... 102
7.1.50 NET_ITC_LANE_PRS_PARAM ................................................................................... 104
7.1.51 NET_ITC_LANE_VIDEO_EPOLICE_PARAM ............................................................... 106
7.1.52 NET_ITC_LIGHT_ACCESSPARAM_UNION ................................................................ 108
7.1.53 NET_ITC_LINE .......................................................................................................... 108
7.1.54 NET_ITC_NOCOMITY_PEDESTRIAN_PARAM ........................................................... 109
7.1.55 NET_ITC_PLATE_RECOG_PARAM ............................................................................ 111
7.1.56 NET_ITC_PLATE_RECOG_REGION_PARAM ............................................................. 112
7.1.57 NET_ITC_POLYGON ................................................................................................. 113
7.1.58 NET_ITC_POST_HVT_PARAM_V50 .......................................................................... 113
7.1.59 NET_ITC_POST_IMT_PARAM .................................................................................. 115
7.1.60 NET_ITC_POST_IOSPEED_PARAM ........................................................................... 116
7.1.61 NET_ITC_POST_MOBILE_PARAM ............................................................................ 116
7.1.62 NET_ITC_POST_MPR_PARAM ................................................................................. 117
7.1.63 NET_ITC_POST_PRS_PARAM ................................................................................... 119
7.1.64 NET_ITC_POST_RS485_PARAM ............................................................................... 120
7.1.65 NET_ITC_POST_RS485_RADAR_PARAM ................................................................. 121
7.1.66 NET_ITC_POST_SINGLEIO_PARAM ......................................................................... 122
7.1.67 NET_ITC_POST_VTCOIL_PARAM ............................................................................. 122
7.1.68 NET_ITC_POST_MPR_PARAM ................................................................................. 124

v
Device Network SDK (ANPR) Developer Guide

7.1.69 NET_ITC_RADAR_PARAM ........................................................................................ 125


7.1.70 NET_ITC_REDLIGHT_PEDESTRIAN_PARAM ............................................................. 126
7.1.71 NET_ITC_RS485_LIGHT_PARAM ............................................................................. 127
7.1.72 NET_ITC_SINGLE_IO_LIGHT_PARAM ...................................................................... 128
7.1.73 NET_ITC_SINGLE_IOSPEED_PARAM ........................................................................ 129
7.1.74 NET_ITC_SINGLE_IOTL_PARAM .............................................................................. 132
7.1.75 NET_ITC_SINGLE_RS485_LIGHT_PARAM ................................................................ 134
7.1.76 NET_ITC_SINGLE_TRIGGERCFG ............................................................................... 135
7.1.77 NET_ITC_SINGLE_VIDEO_DETECT_LIGHT_PARAM .................................................. 136
7.1.78 NET_ITC_SINGLEIO_PARAM .................................................................................... 137
7.1.79 NET_ITC_TRAFFIC_LIGHT_PARAM .......................................................................... 138
7.1.80 NET_ITC_TRIGGER_PARAM_UNION ........................................................................ 139
7.1.81 NET_ITC_TRIGGERCFG ............................................................................................ 141
7.1.82 NET_ITC_VIDEO_DETECT_LIGHT_PARAM ............................................................... 141
7.1.83 NET_ITC_VIOLATION_DETECT_LINE ........................................................................ 142
7.1.84 NET_ITC_VIOLATION_DETECT_PARAM ................................................................... 143
7.1.85 NET_ITS_ILLEGAL_INFO .......................................................................................... 145
7.1.86 NET_ITS_OVERLAP_CFG_V50 .................................................................................. 145
7.1.87 NET_ITS_OVERLAP_INFO_PARAM .......................................................................... 146
7.1.88 NET_ITS_OVERLAP_ITEM_PARAM_V50 .................................................................. 147
7.1.89 NET_ITS_OVERLAP_SINGLE_ITEM_PARAM_V50 .................................................... 148
7.1.90 NET_ITS_OVERLAPCFG_COND ................................................................................ 149
7.1.91 NET_ITS_PLATE_RESULT .......................................................................................... 150
7.1.92 NET_ITS_PICTURE_INFO ......................................................................................... 154
7.1.93 NET_POS_PARAM ................................................................................................... 156
7.1.94 NET_VCA_LINE ........................................................................................................ 157
7.1.95 NET_VCA_POINT ..................................................................................................... 157
7.1.96 NET_VCA_RECT ....................................................................................................... 158

vi
Device Network SDK (ANPR) Developer Guide

7.1.97 VCA_PLATE_COLOR ................................................................................................. 158


7.1.98 VCA_PLATE_TYPE .................................................................................................... 159
7.1.99 DATE_TIME .............................................................................................................. 162
7.1.100 NET_DVR_DEVICEINFO_V30 ................................................................................. 162
7.1.101 NET_DVR_DEVICEINFO_V40 ................................................................................. 166
7.1.102 NET_DVR_INIT_CFG_ABILITY ................................................................................ 169
7.1.103 NET_DVR_LOCAL_SDK_PATH ................................................................................ 170
7.1.104 NET_DVR_USER_LOGIN_INFO .............................................................................. 170
7.1.105 NET_SDK_CALLBACK_STATUS_NORMAL ............................................................... 172
7.1.106 NET_VCA_RECT ..................................................................................................... 172
7.1.107 NET_ALARM_CVR_SUBINFO_UNION .................................................................... 173
7.1.108 NET_ALARM_RECORD_EXCEPTION ....................................................................... 173
7.1.109 NET_ALARM_RECORDFILE_LOSS .......................................................................... 174
7.1.110 NET_ALARM_RESOURCE_USAGE .......................................................................... 174
7.1.111 NET_ALARM_STREAM_EXCEPTION ...................................................................... 174
7.1.112 NET_DVR_ALARMER ............................................................................................. 175
7.1.113 NET_DVR_ALARMINFO_DEV ................................................................................. 176
7.1.114 NET_DVR_ALARMINFO_DEV_V40 ........................................................................ 177
7.1.115 NET_DVR_ALARMINFO_V30 ................................................................................. 177
7.1.116 NET_DVR_ALARMINFO_V40 ................................................................................. 178
7.1.117 NET_DVR_ALRAM_FIXED_HEADER ....................................................................... 180
7.1.118 NET_DVR_ALARM_ISAPI_INFO ............................................................................. 183
7.1.119 NET_DVR_ALARM_ISAPI_PICDATA ........................................................................ 184
7.1.120 NET_DVR_ETHERNET_V30 .................................................................................... 184
7.1.121 NET_DVR_IPADDR_UNION .................................................................................... 185
7.1.122 NET_DVR_NETCFG_V50 ........................................................................................ 185
7.1.123 NET_DVR_PPPOECFG ............................................................................................ 187
7.1.124 NET_DVR_SETUPALARM_PARAM_V50 ................................................................. 187

vii
Device Network SDK (ANPR) Developer Guide

7.1.125 NET_DVR_TIME ..................................................................................................... 190


7.1.126 NET_DVR_TIME_EX ............................................................................................... 191
7.2 Enumeration ...................................................................................................................... 191
7.2.1 COUNTRY_INDEX ...................................................................................................... 191
7.2.2 CR_INDEX .................................................................................................................. 212
7.2.3 NET_SDK_DOWNLOAD_TYPE .................................................................................... 232
7.2.4 NET_SDK_UPLOAD_TYPE .......................................................................................... 236
7.2.5 VLR_VEHICLE_CLASS ................................................................................................. 239
7.2.6 VTR_RESULT .............................................................................................................. 244
Appendix A. Request URIs ...................................................................................................... 247
A.1 /ISAPI/ITC/capability .......................................................................................................... 249
A.2 /ISAPI/Traffic/channels/<ID>/capabilities .......................................................................... 249
A.3 /ISAPI/Traffic/channels/<ID>/licensePlate/filtration?format=json .................................... 250
A.4 /ISAPI/Traffic/channels/<ID>/searchLPListAudit ............................................................... 251
Appendix B. Request and Response Messages ........................................................................ 252
B.1 JSON_Filtration .................................................................................................................. 252
B.2 JSON_ResponseStatus ....................................................................................................... 252
B.3 XML_Desc_ITDeviceAbility ................................................................................................ 252
B.4 XML_EventNotificationAlert_ANPR ................................................................................... 253
B.5 XML_EventTriggerCapType ................................................................................................ 264
B.6 XML_EventTriggersCap ...................................................................................................... 265
B.7 XML_ITCCap ....................................................................................................................... 268
B.8 XML_ITDeviceAbility .......................................................................................................... 270
B.9 XML_LPListAuditSearchDescription ................................................................................... 282
B.10 XML_LPListAuditSearchResult ......................................................................................... 282
B.11 XML_ResponseStatus ....................................................................................................... 283
B.12 XML_SubscribeEvent ....................................................................................................... 283
B.13 XML_TrafficChannelCap ................................................................................................... 284

viii
Device Network SDK (ANPR) Developer Guide

Appendix C. Appendixes ......................................................................................................... 288


C.1 Device Network SDK Errors ................................................................................................ 288
C.2 Response Codes of Text Protocol ....................................................................................... 331
C.3 Error Codes Categorized by Functional Modules ............................................................... 370
C.4 Region Code ....................................................................................................................... 387
C.5 Country/Region Code ........................................................................................................ 387

ix
Device Network SDK (ANPR) Developer Guide

Chapter 1 Overview
This manual provides the integration methods and processes based on HCNetSDK for ANPR
(Automatic Number Plate Recognition) applications.

1.1 Introduction
The ANPR (Automatic Number Plate Recognition) applications integrated by private protocol help
to analyze and recognize the vehicle license plate, and support importing the blocklist or allowlist
to trigger license plate recognition alarms. In addition, for some entrance and exit devices, you can
also control the barrier gate remotely by calling APIs.

1.2 Update History

Summary of Changes in Version 6.1.0.25_Aug., 2019


1. Extended intelligent traffic capability message XML_ITCCap (related URL: /ISAPI/ITC/capability ;
related API: NET_DVR_STDXMLConfig ):
added a node <isSupportVehicleDetection> (whether to support vehicle detection).
2. Extended structure about the configuration parameters of ANPR arming schedule
NET_DVR_GUARD_CFG (related API: NET_DVR_SetDeviceConfig with
"NET_DVR_SET_GUARDCFG" (command No.: 3135)):
added a member byDirection (triggered direction) by one byte.

Summary of Changes in Version 6.0.2.30_03/2019


1. Extended blocklist and allowlist ANPR alarm structure NET_DVR_VEHICLE_CONTROL_ALARM
via one reserved byte:
added one parameter byPicTransType (picture transmission method).
2. Edited some description mistakes in this document, and added some missing APIs or data
structures.

Summary of Changes in Version 5.2.5.5_08/2018


New document.

1
Device Network SDK (ANPR) Developer Guide

Chapter 2 Configure ANPR Alarm


If the vehicle appears in the monitoring image during a certain time period, and the recognition
parameters are configured, the ANPR camera will capture the vehicle picture automatically. Then
the camera analyzes the license plate and the ANPR alarm will be triggered.
Before You Start
● 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.

2
Device Network SDK (ANPR) Developer Guide

Steps

Figure 2-1 Programming Flow of Configuring ANPR Alarm

3
Device Network SDK (ANPR) Developer Guide

1. Optional: Call NET_DVR_GetDeviceAbility , set the capability type (dwAbilityType) to


"DEVICE_ABILITY_INFO" (0x011), and set the input parameter pointer (pInbuf) to
XML_Desc_ITDeviceAbility message for getting intelligent traffic capability to check if the
following functions are supported.
You can also call NET_DVR_STDXMLConfig to transmit the request URI: GET /ISAPI/ITC/
capability to get the intelligent traffic capability and check whether the ANPR function is
supported.
The capability is returned in the message XML_ITCCap by lpOutBuffer of lpOutputParam.
The intelligent traffic capability is returned in the message of XML_ITDeviceAbility , and the
related node is <ITCAbility>.
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 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: Call NET_DVR_GetDeviceConfig with "NET_DVR_GET_GUARDCFG" (command No.:
3134) and set the input buffer (lpInBuffer) to the structure NET_DVR_GUARD_COND for getting
the configured or existing arming schedule of ANPR alarm for reference.
The arming schedule parameters are returned by the output buffer (lpOutBuffer) in the
structure of NET_DVR_GUARD_CFG .
5. Call NET_DVR_SetDeviceConfig with "NET_DVR_SET_GUARDCFG" (command No.: 3135), set the
input buffer (lpInBuffer) to the structure NET_DVR_GUARD_COND , and set the input parameter
(lpInParamBuffer) to the structure NET_DVR_GUARD_CFG for setting arming schedule.

Note
You can also configure the triggering mode and arming schedule for ANPR alarm by logging in to
device via web browser.
6. 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.

4
Device Network SDK (ANPR) Developer Guide

7. Optional: Call NET_DVR_STDXMLConfig to transmit /ISAPI/Traffic/channels/<ID>/licensePlate/


filtration?format=json by PUT method and set lpInputParam to JSON_Filtration to filter the
duplicated license plates and receive the same alarm just for once.

Note
To check whether the device supports filtering duplicated license plates, you can call
NET_DVR_STDXMLConfig to transmit /ISAPI/Traffic/channels/<ID>/capabilities by GET
method. The capability will be returned in the message JSON_Filtration by lpOutputParam. If it
supports, the node <isSupportFiltration> will be in the capability message and its value is "true".
8. Optional: Receive 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
The command (lCommand) to receive ANPR alarms should be set to
"COMM_ITS_PLATE_RESULT" (command No.: 0x3050) or "COMM_UPLOAD_PLATE_RESULT"
(command No.: 0x2800) in the alarm callback function MSGCallBack .
For alarm details, refer to XML_EventNotificationAlert_ANPR returned in the field pXmlBuf of
NET_DVR_PLATE_INFO in the structure NET_ITS_PLATE_RESULT or NET_DVR_PLATE_RESULT .
What to do next
Call NET_DVR_Logout and NET_DVR_Cleanup to log out from device and release resources.

5
Device Network SDK (ANPR) Developer Guide

Chapter 3 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.
Before You Start
● 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.

6
Device Network SDK (ANPR) Developer Guide

Steps

Figure 3-1 Programming Flow of Configuring Blocklist and Allowlist ANPR Alarm

7
Device Network SDK (ANPR) Developer Guide

1. Optional: Get intelligent traffic capability to check if the following functions are supported.
- Call 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.
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.
- Configure arming schedule for blocklist ANPR alarm
a. 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.

8
Device Network SDK (ANPR) Developer Guide

Note
The arming schedule parameters ( NET_DVR_EVENT_SCHEDULE ) are returned by the
output buffer (lpOutBuffer) of structure NET_DVR_STD_CONFIG .
b. 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
a. 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.

Note
The arming schedule parameters ( NET_DVR_EVENT_SCHEDULE ) are returned by the
output buffer (lpOutBuffer) of structure NET_DVR_STD_CONFIG .
b. 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.
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
a. 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 .
b. 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
a. 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.

9
Device Network SDK (ANPR) Developer Guide

Note
The linkage action parameters ( NET_DVR_EVENT_TRIGGER ) are returned by the output
buffer (lpOutBuffer) of structure NET_DVR_STD_CONFIG .
b. 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
● 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 .

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

10
Device Network SDK (ANPR) Developer Guide

Chapter 4 Control Barrier Gate Status


In the entrance and exit scene, you can remotely control the barrier gate status via device network
SDK, such as falling the gate, rising the gate, stopping the gate at a certain position, and locking the
gate.
Before You Start
● 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.

Steps

Figure 4-1 API Calling Flow of Controlling Barrier Gate Status


1. Call NET_DVR_GetDeviceAbility , set the capability type (dwAbilityType) to
"DEVICE_ABILITY_INFO" (0x011), and set pInbuf to XML_Desc_ITDeviceAbility for getting
intelligent traffic capability to check whether the device supports this function.
The intelligent traffic capability is returned in the message XML_ITDeviceAbility by pOutBuf.
If supports, the node <ITCAbility> is returned in the message, and then you can perform the
following steps.
Otherwise, this function is not supported, please end this task.
2. Call NET_DVR_RemoteControl with "NET_DVR_BARRIERGATE_CTRL" (command No.: 3128) and
set lpInBuffer to NET_DVR_BARRIERGATE_CFG for remotely controlling the barrier.

11
Device Network SDK (ANPR) Developer Guide

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

12
Device Network SDK (ANPR) Developer Guide

Chapter 5 Alarm/Event Receiving


The alarm/event information from the device can be received in third-party platform or system
when the alarms are triggered or event occurred. Two modes are available for receiving alarms,
including arming mode and listening mode.
Arming Mode
The third-party platform connects to device automatically, when the alarm is triggered, the
platform sends alarm uploading command to the device, and then the device will upload the
alarm to the platform.
Listening Mode
When alarm is triggered, the device automatically uploads the alarm, and then the third-party
platform receives the uploaded alarm via the configured listening host (listening address and port
should be configured). This mode is applicable for multiple devices uploading alarm/event
information to one third-party platform without logging in to devices, and the restart of devices
will not affect the alarm/event uploading. But a device can only support the configuration of one
or two listening addresses and ports.

5.1 Receive Alarm/Event in Arming Mode


When the alarm is triggered or the event occurred, the secondarily developed third-party platform
can automatically connect and send alarm/event uploading command to the device, and then the
device uploads the alarm/event information to the platform for receiving.
Before You Start
● 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.

● Make sure you have configured the alarm/event parameters, refer to the typical alarm/event

configurations for details.

13
Device Network SDK (ANPR) Developer Guide

Steps

Figure 5-1 Programming Flow of Receiving Alarm/Event in Arming Mode


1. Call NET_DVR_SetDVRMessageCallBack_V50 to set callback function for returning alarm/event
information.

Note
● If the configured alarm is triggered or event occurred, the alarm/event information will be

uploaded by device and returned in the callback function. You can view the alarm/event and
do some processing operations.
● For the integration via device network SDK (HCNetSDK), to receive different types of alarm/

event information, the parameter lCommand (data type to be uploaded) in the configured
callback function should be different (refer to the typical alarm/event configurations). For the
integration via text protocol, the lCommand should be set to "COMM_ISAPI_ALARM"
(command No.: 0x6009) and the input parameter pAlarmInfo in the callback function
MSGCallBack should be set to NET_DVR_ALARM_ISAPI_INFO .
2. Call NET_DVR_SetupAlarmChan_V50 to set up uploading channel.
3. Call NET_DVR_CloseAlarmChan_V30 to close uploading channel and stop receiving alarm or
event information.
Example
Sample Code of Receiving Alarm or Event in Arming Mode

14
Device Network SDK (ANPR) Developer Guide

#include <stdio.h>
#include <iostream>
#include "Windows.h"
#include "HCNetSDK.h"
using namespace std;

void main() {
//---------------------------------------
// Initialize
NET_DVR_Init();
//Set connection time and reconnection time
NET_DVR_SetConnectTime(2000, 1);
NET_DVR_SetReconnect(10000, true);
//---------------------------------------
// Log in to device
LONG lUserID;
//Login parameters, including device IP address, user name, password, and so on.
NET_DVR_USER_LOGIN_INFO struLoginInfo = {0};
struLoginInfo.bUseAsynLogin = 0; //Synchronous login mode
strcpy(struLoginInfo.sDeviceAddress, "192.0.0.64"); //Device IP address
struLoginInfo.wPort = 8000; //Service port No.
strcpy(struLoginInfo.sUserName, "admin"); //User name
strcpy(struLoginInfo.sPassword, "abcd1234"); //Password
//Device information, output parameter
NET_DVR_DEVICEINFO_V40 struDeviceInfoV40 = {0};
lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfoV40);
if (lUserID < 0)
{
printf("Login failed, error code: %d\n", NET_DVR_GetLastError());
NET_DVR_Cleanup();
return;
}

//Set alarm callback function


NET_DVR_SetDVRMessageCallBack_V50(0, MessageCallbackNo1, NULL);
NET_DVR_SetDVRMessageCallBack_V50(1, MessageCallbackNo2, NULL);

//Enable arming
NET_DVR_SETUPALARM_PARAM_V50 struSetupParamV50={0};
struSetupParamV50.dwSize=sizeof(NET_DVR_SETUPALARM_PARAM_V50);
//Alarm category to be uploaded
struSetupParamV50.byAlarmInfoType=1;
//Arming level
struSetupParamV50.byLevel=1;

char szSubscribe[1024] = {0};


//The following code is for alarm subscription (subscribe all)
memcpy(szSubscribe, "<SubscribeEvent version=\"2.0\" xmlns=\"http://www.isapi.org/ver20/XMLSchema\">\r
\n<eventMode>all</eventMode>\r\n", 1024);
LONG lHandle = -1;
if (0 == strlen(szSubscribe))
{

15
Device Network SDK (ANPR) Developer Guide

//Arm
lHandle = NET_DVR_SetupAlarmChan_V50(lUserID, &struSetupParamV50, NULL, strlen(szSubscribe));
}
else
{
//Subscribe
LlHandle = NET_DVR_SetupAlarmChan_V50(lUserID, &struSetupParamV50, szSubscribe, strlen(szSubscribe));
}

if (lHandle < 0)
{
printf("NET_DVR_SetupAlarmChan_V50 error, %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

Sleep(20000);
//Disarm the uploading channel
if (!NET_DVR_CloseAlarmChan_V30(lHandle))
{
printf("NET_DVR_CloseAlarmChan_V30 error, %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//Log out
NET_DVR_Logout(lUserID);
//Release resources
NET_DVR_Cleanup();
return;
}

What to do next
Call NET_DVR_Logout and NET_DVR_Cleanup to log out and release resources.

5.2 Receive Alarm/Event in Listening Mode


When alarm is triggered or event occurred, the device uploads the alarm/event information
automatically, so you can configure the listening address and port for listening and receiving the
alarm/event in the secondarily developed third-part platform.
Before You Start
● Make sure you have called NET_DVR_Init to initialize the development environment.

● Make sure you have configured the alarm/event parameters, refer to the typical alarm/event

configurations for details.

16
Device Network SDK (ANPR) Developer Guide

Steps

Figure 5-2 Programming Flow of Receiving Alarm/Event in Listening Mode


1. Optional: Call NET_DVR_Login_V40 to log in to device.
2. Optional: Call NET_DVR_GetDVRConfig with "NET_DVR_GET_NETCFG_V50" (command No.:
1015) to get the existing listening configurations (i.e., listening address and port) for reference.
The listening parameters are retruned in the structure NET_DVR_NETCFG_V50 by the output
parameter pointer lpOutBuffer.
3. Call NET_DVR_SetDVRConfig with "NET_DVR_SET_NETCFG_V50" (command No.: 1016) and
specify the input parameter pointer lpInBuffer to the structure NET_DVR_NETCFG_V50 for
setting the listening address and port.
4. Call NET_DVR_StartListen_V30 to set callback function for returning alarm/event information
and start the listening.

17
Device Network SDK (ANPR) Developer Guide

Note
For the integration via device network SDK (HCNetSDK), to receive different types of alarm/
event information, the parameter lCommand (data type to be uploaded) in the configured
callback function should be different (refer to the typical alarm/event configurations). For the
integration via text protocol, the lCommand should be set to "COMM_ISAPI_ALARM" and the
input parameter pAlarmInfo in the callback function MSGCallBack should be set to
NET_DVR_ALARM_ISAPI_INFO .
The alarm/event information is automatically uploaded by the device when the configured
alarm is triggered or event occurred, and the third-party platform or system gets the alarm/
event information from the configured callback function.
5. Call NET_DVR_StopListen_V30 to stop listening and receiving alarm or event information.
Example
Sample Code of Receiving Alarm/Event in Listening Mode
#include <stdio.h>
#include <iostream>
#include "Windows.h"
#include "HCNetSDK.h"
using namespace std;
void main() {
//---------------------------------------
// Initialize
NET_DVR_Init();
//Set connection time and reconnection time
NET_DVR_SetConnectTime(2000, 1);
NET_DVR_SetReconnect(10000, true);
//---------------------------------------
// Log in to device
LONG lUserID;
NET_DVR_DEVICEINFO_V30 struDeviceInfo;
lUserID = NET_DVR_Login_V30("172.0.0.100", 8000, "admin", "12345", &struDeviceInfo);
if (lUserID < 0)
{
printf("Login error, %d\n", NET_DVR_GetLastError());
NET_DVR_Cleanup();
return;
}
//Enable listening
LONG lHandle;
lHandle = NET_DVR_StartListen_V30(NULL,7200, MessageCallback, NULL);
if (lHandle < 0)
{
printf("NET_DVR_StartListen_V30 error, %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}
Sleep(5000);

18
Device Network SDK (ANPR) Developer Guide

//Disable listening
if (!NET_DVR_StopListen_V30(lHandle))
{
printf("NET_DVR_StopListen_V30 error, %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}
//Log out
NET_DVR_Logout(lUserID);
//Release SDK resource
NET_DVR_Cleanup();
return;
}

What to do next
Call NET_DVR_Logout (if logged in) and NET_DVR_Cleanup to log out and release resources.

19
Device Network SDK (ANPR) Developer Guide

Chapter 6 API Reference

6.1 NET_DVR_GetDeviceAbility
Get the device capabilities.

API Definition
BOOL NET_DVR_GetDeviceAbility(
LONG lUserID,
DWORD dwAbilityType,
char *pInBuf,
DWORD dwInLength,
char *pOutBuf,
DWORD dwOutLength
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwAbilityType
[IN] Capability types, which are different according to different devices and functions.
pInBuf
[IN] Input parameter buffer pointer, which are different according to different devices and
functions, and they are returned in the structure or messages.
dwInLength
[IN] Size of input buffer.
pOutBuf
[OUT] Output parameter buffer pointer, which are different according to different devices and
functions, and they are returned in the structure or messages.
dwOutLength
[OUT] Size of buffer for receiving data.

Return Values
Returns TRUE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.

20
Device Network SDK (ANPR) Developer Guide

6.2 NET_DVR_GetDeviceConfig
Get device configuration information in batch (with sending data).

API Definition
BOOL NET_DVR_GetDeviceConfig(
LONG lUserID,
DWORD dwCommand,
DWORD dwCount,
LPVOID lpInBuffer,
DWORD dwInBufferSize,
LPVOID lpStatusList,
LPVOID lpOutBuffer,
DWORD dwOutBufferSize
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwCommand
[IN] Device getting commands. The commands are different for different getting functions.
dwCount
[IN] Number of configurations (cameras) to get at a time. 0, 1-one camera, 2-two cameras, 3-
three cameras, and so on. Up to 64 cameras' configuration information can be obtained at a
time.
lpInBuffer
[IN] Pointer of configuration condition buffer, which specifies the number (dwCount) of
configurations to get, and relates to the getting commands.
dwInBufferSize
[IN] Size of configuration condition buffer, which saves the obtained configuration information
(the number is dwCount).
lpStatusList
[OUT] Error information list, and its memory is allocated by user, each error information
contains 4 bytes (a unsigned 32-bit integer).
There is a one-to-one correspondence between the errors in the list and the cameras need to
search, e.g., lpStatusList[2] corresponds to lpInBuffer[2].
If the parameter value is 0 or 1, it refers to getting succeeded, otherwise, this parameter value is
the error code.
lpOutBuffer

21
Device Network SDK (ANPR) Developer Guide

[OUT] Parameters returned by device, which relates to the getting commands. And there is a
one-to-one correspondence between the parameters and the cameras need to search.
If the lpStatusList of one camera is larger than 1, the corresponding lpOutBuffer is invalid.
dwOutBufferSize
[IN] Total size of returned results (the number is dwCount).

Return Values
Returns TRUE for success, and returns FALSE for failure. If returns TRUE, it does not mean that all
configurations are obtained, you can check the value of lpStatusList[n] to judge which one is
succeeded.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
See Also
NET_DVR_SetDeviceConfig

6.3 NET_DVR_GetDownloadState
Get the file downloading progress and status.

API Definition
LONG NET_DVR_GetDownloadState(
LONG lDownloadHandle,
DWORD *pProgress
);

Parameters
lDownloadHandle
[IN] Handle for downloading files, which is returned by NET_DVR_StartDownload .
pProgress
[OUT] Returned progress value, which is ranging from 1 to 100.

Return Values
Returns -1 for calling failed, and returns other values as the downloading status codes: 1-
Downloaded, 2-Downloading, 3-Downloading Failed, 4-Network Disconnected, Unknown Status.
If returning failed, you can call NET_DVR_GetLastError to get the error code.

6.4 NET_DVR_GetSTDAbility
Get the device capabilities.

22
Device Network SDK (ANPR) Developer Guide

API Definition
BOOL NET_DVR_GetSTDAbility(
LONG lUserID,
DWORD dwAbilityType,
NET_DVR_STD_ABILITY lpAbilityParam
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwAbilityType
[IN] Capability types, which are different according to different functions.
lpAbilityParam
[IN/OUT] Capability details, including condition parameter, input parameter, output parameter,
and so on (see details in the structure NET_DVR_STD_ABILITY ), which are different according
to different capability types.

Return Values
Returns TRUE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.

6.5 NET_DVR_GetSTDConfig
Get the device configuration information.

API Definition
BOOL NET_DVR_GetSTDConfig(
LONG lUserID,
DWORD dwCommand,
NET_DVR_STD_CONFIG lpConfigParam
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwCommand
[IN] Device configuration commands, which are different according to different configuration
functions.
lpConfigParam

23
Device Network SDK (ANPR) Developer Guide

[IN][OUT] Set input and output parameters, which are different according to different
configuration functions. For different configuration functions, the lpCondBuffer and lpOutBuffer
in the IpConfigParam are also different. See the structure NET_DVR_STD_CONFIG for details.

Note
When getting configuration parameters, the lpInBuffer in the lpConfigParam is invalid, you can
set it to NULL.

Return Values
Returns TRUE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
See Also
NET_DVR_SetSTDConfig

6.6 NET_DVR_GetUploadState
Get the file uploading progress and status.

API Definition
LONG NET_DVR_GetUploadState(
LONG lUploadHandle,
DWORD *pProgress
);

Parameters
lUploadHandle
[IN] Handling for uploading files, which is returned by NET_DVR_UploadFile_V40 .
pProgress
[OUT] Returned progress value.

Return Values
Return -1 for failure, and return other values as the uploading status codes, see details in the
following table.

Table 6-1 Uploading Status Code


Return Value Description
1 Uploaded successfully.
2 Uploading.

24
Device Network SDK (ANPR) Developer Guide

Return Value Description


3 Uploading failed.
4 Network disconnected. Unknown status.
6 HDD error.
7 No HDD for saving inquest files.
8 Insufficient capacity.
9 Insufficient device resource.
10 No more files can be uploaded.
11 Too large file size.
15 File type error.
19 Invalid file format.
20 Incorrect file content.
21 The uploaded audio sampling rate is not
supported.
22 Insufficient storage in the face library.
26 Name error.
27 Invalid picture resolution.
28 Too many targets on the picture.
29 No target is recognized on the picture.
30 Picture recognition failed.
31 Analysis engine exception.
32 Analyzing additional information on the picture
failed.
33 Thumbnail modeling failed.
34 Incorrect security verification key.
35 Downloading picture via URL has not started.
36 Duplicate custom ID of different persons.
37 Person ID error (The ID is saved in
customHumanID of FaceAppendData).
38 Modeling failed. Device inner error.

25
Device Network SDK (ANPR) Developer Guide

Return Value Description


39 Modeling failed. Face modeling error.
40 Modeling failed. Face score error.
41 Modeling failed. Feature collection error.
42 Modeling failed. Attribute collection error.
43 Picture data error.
44 Picture additional information error.
45 Certificate has already existed.

6.7 NET_DVR_RemoteControl
Implement remote control.

API Definition
BOOL NET_DVR_RemoteControl(
LONG lUserID,
DWORD dwCommand,
LPVOID lpInBuffer,
DWORD dwInBufferSize
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwCommand
[IN] Control commands. To realize different functions, the commands are different.
lpInBuffer
[IN] Input parameters, which vary with different control commands.
dwInBufferSize
[IN] Size of input parameters.

Return Values
Returns TRUE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.

26
Device Network SDK (ANPR) Developer Guide

6.8 NET_DVR_SetDeviceConfig
Set device parameters in batch (sending data is supported).

API Definition
BOOL NET_DVR_SetDeviceConfig(
LONG lUserID,
DWORD dwCommand,
DWORD dwCount,
LPVOID lpInBuffer,
DWORD dwInBufferSize,
LPVOID lpStatusList,
LPVOID lpInParamBuffer,
DWORD dwInParamBufferSize
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwCommand
[IN] Device configuration commands, which are different according to different configurations.
dwCount
[IN] Number of cameras to be set at a time. 0,1-one camera, 2-two cameras, 3-three cameras,
and so on. Up to 256 cameras can be configured at a time.
lpInBuffer
[IN] Pointer of configuration condition buffer, e.g., stream ID, which specifies the number
(dwCount) of cameras to set, and relates to the configuration commands.
dwInBufferSize
[IN] Size of configuration condition buffer, which saves the configured information of cameras
with the number of dwCount.
lpStatusList
[OUT] Error information list, and its memory is allocated by user, each error information
contains 4 bytes (a unsigned 32-bit integer).
There is a one-to-one correspondence between the errors in the list and the cameras that need
to be searched, e.g., lpStatusList[2] corresponds to lpInBuffer[2].
If the parameter value is 0, it refers to setting succeeded, otherwise, this parameter value is the
error code.
lpInParamBuffer

27
Device Network SDK (ANPR) Developer Guide

[IN] Device parameters to set, which relates to the configuration commands. And there is a one-
to-one correspondence between the parameters and the cameras that need to be searched.
dwInParamBufferSize
[IN] Set the size of content buffer.

Return Values
Returns TRUE for success, and returns FALSE for all failed. If returns TRUE, it does not indicate that
all settings are succeeded, you can get the value of lpStatusList[n] to check which one is
succeeded.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
See Also
NET_DVR_GetDeviceConfig

6.9 NET_DVR_SetSTDConfig
Set the device parameters.

API Definition
BOOL NET_DVR_SetSTDConfig(
LONG lUserID,
DWORD dwCommand,
NET_DVR_STD_CONFIG lpConfigParam
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwCommand
[IN] Device configuration commands, which are different according to different configuration
functions.
lpConfigParam
[IN][OUT] Set input and output parameters, which are different according to different
configuration functions. For different configuration functions, the lpCondBuffer and lpInBuffer
in the IpConfigParam are also different. See the structure NET_DVR_STD_CONFIG for details.

Note
When getting configuration parameters, the lpOutBuffer in the lpConfigParam is invalid, you
can set it to "NULL".

28
Device Network SDK (ANPR) Developer Guide

Return Values
Returns TRUE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
See Also
NET_DVR_GetSTDConfig

6.10 NET_DVR_STDXMLConfig
Transmit request URL with XML or JSON format to implement some typical functions.

API Definition
BOOL NET_DVR_STDXMLConfig(
LONG lUserID,
const NET_DVR_XML_CONFIG_INPUT *lpInputParam,
NET_DVR_XML_CONFIG_OUTPUT *lpOutputParam
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
lpInputParam
[IN] Input parameters, refer to the structure NET_DVR_XML_CONFIG_INPUT for details.
lpOutputParam
[IN][OUT] Output parameters, refer to the structure NET_DVR_XML_CONFIG_OUTPUT for
details.

Return Values
Return TRUE for success, and return FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
Remarks
The input parameter lpInputParam and output parameter lpOutputParam are different when
transmitting text protocol for implementing different functions, and each parameter corresponds
to a component of text protocol, see the relations below:

29
Device Network SDK (ANPR) Developer Guide

Parameter of NET_​DVR_​STDXMLConfig Component of Text Protocol


lpInputParam lpRequestUrl (see in structure Method+URL
NET_DVR_XML_CONFIG_INPU E.g., GET /​ISAPI/​System/
T) capabilities
lpInBuffer (see in structure Request Message
NET_DVR_XML_CONFIG_INPU
T)
lpOutputParam lpOutBuffer (see in structure Response Message
NET_DVR_XML_CONFIG_OUTP
UT )
lpStatusBuffer (see in structure Response Message
NET_DVR_XML_CONFIG_OUTP
UT )

6.11 NET_DVR_StartDownload
Start downloading files

API Definition
LONG NET_DVR_StartDownload(
LONG lUserID,
DWORD dwDownloadType,
LPVOID lpInBuffer,
DWORD dwInBufferSize,
char const *sFileName
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwDownloadType
[IN] Downloading commands which specify the file type to download, see details in the
enumeration NET_SDK_DOWNLOAD_TYPE .
lpInBuffer
[IN] Input parameters, which are different according to different downloading commands.
dwInBufferSize
[IN] Input buffer size.

30
Device Network SDK (ANPR) Developer Guide

sFileName
[IN] Path for saving downloaded files (absolute path, includes file name).

Return Values
Returns -1 for failure, and returns other values as the parameters of NET_DVR_StopDownload and
NET_DVR_GetDownloadState .
If returning failed, you can call NET_DVR_GetLastError to get the error code.

6.12 NET_DVR_StopDownload
Stop downloading files.

API Definition
BOOL NET_DVR_StopDownload(
LONG lHandle
);

Parameters
lHandle
[IN] Handle for downloading files, which is returned by NET_DVR_StartDownload .

Return Values
Returns TRUE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.

6.13 NET_DVR_UploadClose
Stop uploading files.

API Definition
BOOL NET_DVR_UploadClose(
LONG lUploadHandle
);

Parameters
lUploadHandle
[IN] Handle for uploading files, which is returned by NET_DVR_UploadFile_V40 .

31
Device Network SDK (ANPR) Developer Guide

Return Values
Return TRUE for success, and return FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.

6.14 NET_DVR_UploadFile_V40
Upload file.

API Definition
LONG NET_DVR_UploadFile_V40(
LONG lUserID,
DWORD dwUploadType,
LPVOID lpInBuffer,
DWORD dwInBufferSize,
char *sFileName,
LPVOID lpOutBuffer,
DWORD dwOutBufferSize
);

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwUploadType
[IN] Uploading commands, which specify the file type to upload, see details in the enumeration
NET_SDK_UPLOAD_TYPE .
lpInBuffer
[IN] Input parameters, which are different according to different uploading commands.
dwInBufferSize
[IN] Input buffer size.
sFileName
[IN] Name of the file to be uploaded. For the complete file path (including the file name), the
maximum size is 128 bytes, and the maximum size of the file name is 32 bytes.
lpOutBuffer
[OUT] Output parameters, which are different according to different uploading commands.
dwOutBufferSize
[OUT] Output buffer size.

32
Device Network SDK (ANPR) Developer Guide

Return Values
Return -1 for failure, and return other values as the parameter of NET_DVR_UploadClose and
NET_DVR_GetUploadState .
If -1 is returned, you can call NET_DVR_GetLastError to get the error code.

6.15 NET_DVR_Cleanup
Release the resources after the program is ended.

API Definition
BOOL NET_DVR_Cleanup(
);

Return Values
Returns TURE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The available error codes may be returned by this API are 0 and 3. See details in Device Network
SDK Errors .
Remarks
● When calling this API, you cannot call other APIs at the same time.
● NET_DVR_Init and this API should be called by pair. That is, once the NET_DVR_Init is called, you
should call NET_DVR_Cleanup to release the resources when exiting the program.

6.16 NET_DVR_GetErrorMsg
Return the error information of the last operation.

API Definition
char *NET_DVR_GetErrorMsg(
LONG *pErrorNo
);

Parameters
pErrorNo
[OUT] Error code pointer.

Return Values
The return values are the pointers of error information, see Device Network SDK Errors for details.

33
Device Network SDK (ANPR) Developer Guide

Remarks
You can call NET_DVR_GetLastError to get the error codes.

6.17 NET_DVR_GetLastError
Return the error code of the last operation.

API Definition
DWORD NET_DVR_GetLastError(
);

Return Values
The return values are error codes, see Device Network SDK Errors for details.
Remarks
You can also call NET_DVR_GetErrorMsg to directly get the error information.

6.18 NET_DVR_Init
Initialize the programming environment before calling other APIs.

API Definition
BOOL NET_DVR_Init(
);

Return Values
Returns TURE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The available error codes of this API are 0, 41, and 53. See details in Device Network SDK Errors .
Remarks
Before initializing, you can call NET_DVR_SetSDKInitCfg to set the initialization parameters, such as
supported capabilities, loading path of component libraries (only supported by Linux system), and
so on.
See Also
NET_DVR_Cleanup

34
Device Network SDK (ANPR) Developer Guide

6.19 NET_DVR_Login_V40
Log in to the device (supports asynchronous login).

API Definition
LONG NET_DVR_Login_V40(
NET_DVR_USER_LOGIN_INFO pLoginInfo,
NET_DVR_DEVICEINFO_V40 lpDeviceInfo
);

Parameters
pLoginInfo
[IN] Login parameters, including device address, user name, password, and so on. See details in
the structure NET_DVR_USER_LOGIN_INFO .
lpDeviceInfo
[OUT] Device information. See details in the structure NET_DVR_DEVICEINFO_V40 .

Return Values
● For asynchronous login, the callback function ( fLoginResultCallBack ) configured in the
structure ( NET_DVR_USER_LOGIN_INFO ) returns the asynchronous login status, user ID and
device information.
● For synchronous login, this API returns -1 for logging failed, and returns other values for the
returned user IDs. The user ID is unique, and it helps to realize the further device operations.
● If -1 is returned, you can call NET_DVR_GetLastError to get the error code.

Remarks
● When bUseAsynLogin in pLoginInfo is 0, it indicates that login is in synchronous mode; when
bUseAsynLogin in pLoginInfo is 1, it indicates that login is in asynchronous mode.
● Up to 2048 users are allowed to log in to HCNetSDK at same time, and the values of returned
UserID are ranging from 0 to 2047.

See Also
NET_DVR_Logout

6.19.1 fLoginResultCallBack

35
Device Network SDK (ANPR) Developer Guide

Login Status Callback Function

Member Data Type Description


lUserID LONG User ID, which is returned by
NET_DVR_Login_V40 .
dwResult DWORD Login status: 0-asynchronously logging in failed,
1-asynchronously logged in.
lpDeviceInfo NET_DVR_DEVICEINFO Device information, such as serial No., channel,
_V40 capability, and so on.
pUser void* User data.

6.20 NET_DVR_Logout
Log out from devices.

API Definitions
BOOL NET_DVR_Logout(
LONG lUserID
);

Parameters
lUserID
[IN] User ID, which is returned by NET_DVR_Login_V40 .

Return Values
Returns TURE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The available error codes may be returned by this API are 0, 3, 7, 8, 9, 10, 14, 17, 41, 44, 47, 72,
and 73. See details in Device Network SDK Errors .

6.21 NET_DVR_SetSDKInitCfg
Set initialization parameters.

API Parameters
BOOL NET_DVR_SetSDKInitCfg(
NET_SDK_INIT_CFG_TYPE enumType,

36
Device Network SDK (ANPR) Developer Guide

void* const lpInBuff


);

Parameters
enumType
[IN] Initialization parameter type. Different type values correspond to different parameters, see
details in the table below.

Table 6-2 NET_SDK_INIT_CFG_TYPE


enumType Value Description lpInBuff
NET_SDK_INIT_CFG_ 1 Capability supported by NET_DVR_INIT_CFG_A
ABILITY SDK. BILITY
NET_SDK_INIT_CFG_ 2 Set loading path for NET_DVR_LOCAL_SDK
SDK_PATH component libraries _PATH
(supported by both
Linux and Windows
system).
NET_SDK_INIT_CFG_ 3 Set path (including Path in string format,
LIBEAY_PATH library name) for e.g., C:\\libeay32.dll.
libeay32.dll (Windows),
libcrypto.so (Linux),
and libcrypto.dylib
(Mac) of OpenSSL in
version 1.1.1 and 1.0.2.
NET_SDK_INIT_CFG_ 4 Set path (including Path in string format,
SSLEAY_PATH library name) for e.g., C:\\ssleay32.dll.
ssleay32.dll (Windows),
libssl.so (Linux),
libssl.dylib (Mac) of
OpenSSL in version
1.1.1 and 1.0.2.
lpInBuff
[IN] Input parameter. Different parameter types correspond to different structures, see details in
the table above.

Return Values
Returns TURE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.

37
Device Network SDK (ANPR) Developer Guide

Remarks
This API should be called before calling NET_DVR_Init to initialize and check the dependent
libraries or capabilities.

6.22 NET_DVR_CloseAlarmChan_V30
Close alarm uploading channel.

API Definition
BOOL NET_DVR_CloseAlarmChan_V30(
LONG lAlarmHandle
);

Parameters
lAlarmHandle
Value returned by NET_DVR_SetupAlarmChan_V50 .

Return Values
Return TURE for success, and return FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The available error codes of this API are 0, 3, 6, 12, 17, 41, and 47. See details in the Device
Network SDK Errors .

6.23 NET_DVR_GetDVRConfig
Get the device configuration information.

API Definition
BOOL NET_DVR_GetDVRConfig(
LONG lUserID,
DWORD dwCommand,
LONG lRuleID,
LONG lChannel,
LPVOID lpOutBuffer,
DWORD dwOutBufferSize,
LPDWORD lpBytesReturned
);

Parameters
lUserID

38
Device Network SDK (ANPR) Developer Guide

[IN] Value returned by NET_DVR_Login_V40 .


dwCommand
[IN] Device getting commands, which are different according to different getting functions.
lRuleID
[IN] Rule ID.
lChannel
[IN] Channel No. (NIC No.), which varies with different commands. 0xffffffff-invalid or all
channels, 1-main NIC, 2-extended NIC.
lpOutBuffer
[OUT] Pointer of buffer to receive data. For different getting functions, the structures of this
parameter are different.
dwOutBufferSize
[IN] Size of buffer to receive data (unit: byte). It cannot be 0.
lpBytesReturned
[OUT] Pointer of actually received data size. It cannot be NULL.

Return Values
Returns TRUE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The following error codes may be returned by this API: 0, 3, 6, 7, 8, 9, 10, 12, 17, 41, 43, 44, 47, 72,
73, and 76. See the corresponding error types and descriptions in the Device Network SDK Errors .
See Also
NET_DVR_SetDVRConfig

6.24 NET_DVR_SetDVRConfig
Set the device parameters.

API Definition
BOOL NET_DVR_SetDVRConfig(
LONG lUserID,
DWORD dwCommand,
LONG lChannel,
LPVOID lpInBuffer,
DWORD dwInBufferSize
);

39
Device Network SDK (ANPR) Developer Guide

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
dwCommand
[IN] Device configuration commands, which are different according to different configuration
functions.
lChannel
[IN] Channel No. (NIC No.), which varies with different commands. 0xFFFFFFFF-invalid, 1-main
NIC, 2-extended NIC.
lpInBuffer
[IN] Pointer of input data buffer. For different configuration functions, the structures of this
parameter are different.
dwInBufferSize
[IN] Size of input data buffer (unit: byte).

Return Values
Returns TRUE for success, and returns FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The following error codes may be returned by this API: 0, 3, 6, 7, 8, 9, 10, 12, 17, 41, 43, 44, 47, 72,
73, and 76. See the corresponding error types and descriptions in the Device Network SDK Errors .
See Also
NET_DVR_GetDVRConfig

6.25 NET_DVR_SetDVRMessageCallBack_V50
Set callback functions for getting the video data.

API Definition
BOOL NET_DVR_SetDVRMessageCallBack_V50(
int iIndex,
MSGCallBack fMessageCallBack,
void *pUser
);

Parameters
iIndex
[IN] Callback function index No., which ranges from 0 to 15.

40
Device Network SDK (ANPR) Developer Guide

fMessageCallBack
[IN] Callback function, see details in MSGCallBack .
pUser
[IN] User data.

Return Values
Return TRUE for success, and return FALSE for failure.
If FALSE returned, call NET_DVR_GetLastError to get the error code.
Remarks
● This API supports setting multiple callback functions for different channels (up to 16 channels are
supported) at same time, and the configured callback functions are distinguished by the index
No.
● All alarm/event information will be returned in each configured callback function, and you can
distinguish the devices via the pAlarmInfo in the callback function ( MSGCallBack ).
Example
Sample Code of Setting Multiple Callback Functions to Receive Different Alarms/Events in Arming
Mode
#include <stdio.h>
#include <iostream>
#include "Windows.h"
#include "HCNetSDK.h"
using namespace std;

int iNum=0;
void CALLBACK MessageCallbackNo1(LONG lCommand, NET_DVR_ALARMER *pAlarmer, char *pAlarmInfo, DWORD
dwBufLen, void* pUser)
{
int i=0;
char filename[100];
FILE *fSnapPic=NULL;
FILE *fSnapPicPlate=NULL;

//This sample code is for reference only. Actually, it is not recommended to process the data and save file in the
callback function directly.
//You'd better process the data in the message response funcion via message mode (PostMessage).

switch(lCommand)
{
case COMM_ALARM:
{
NET_DVR_ALARMINFO struAlarmInfo;
memcpy(&struAlarmInfo, pAlarmInfo, sizeof(NET_DVR_ALARMINFO));
switch (struAlarmInfo.dwAlarmType)
{
case 3: //Motion detection alarm

41
Device Network SDK (ANPR) Developer Guide

for (i=0; i<16; i++) //#define MAX_CHANNUM 16 //The maximum number of channels
{
if (struAlarmInfo.dwChannel[i] == 1)
{
printf("Channel Number with Motion Detection Alarm %d\n", i+1);
}
}
break;
default:
break;
}
break;
}
case COMM_UPLOAD_PLATE_RESULT:
{
NET_DVR_PLATE_RESULT struPlateResult={0};
memcpy(&struPlateResult, pAlarmInfo, sizeof(struPlateResult));
printf("License Plate Number: %s\n", struPlateResult.struPlateInfo.sLicense);//License plate number

switch(struPlateResult.struPlateInfo.byColor)//License plate color


{
case VCA_BLUE_PLATE:
printf("Vehicle Color: Blue\n");
break;
case VCA_YELLOW_PLATE:
printf("Vehicle Color: Yellow\n");
break;
case VCA_WHITE_PLATE:
printf("Vehicle Color: White\n");
break;
case VCA_BLACK_PLATE:
printf("Vehicle Color: Black\n");
break;
default:
break;
}
//Scene picture
if (struPlateResult.dwPicLen != 0 && struPlateResult.byResultType == 1 )
{
sprintf(filename,"testpic_%d.jpg",iNum);
fSnapPic=fopen(filename,"wb");
fwrite(struPlateResult.pBuffer1,struPlateResult.dwPicLen,1,fSnapPic);
iNum++;
fclose(fSnapPic);
}
//License plate picture
if (struPlateResult.dwPicPlateLen != 0 && struPlateResult.byResultType == 1)
{
sprintf(filename,"testPicPlate_%d.jpg",iNum);
fSnapPicPlate=fopen(filename,"wb");
fwrite(struPlateResult.pBuffer1,struPlateResult.dwPicLen,1,fSnapPicPlate);
iNum++;

42
Device Network SDK (ANPR) Developer Guide

fclose(fSnapPicPlate);
}
//Processing other data...
break;
}
case COMM_ITS_PLATE_RESULT:
{
NET_ITS_PLATE_RESULT struITSPlateResult={0};
memcpy(&struITSPlateResult, pAlarmInfo, sizeof(struITSPlateResult));

for (i=0;i<struITSPlateResult.dwPicNum;i++)
{
printf("License Plate Number: %s\n", struITSPlateResult.struPlateInfo.sLicense);//License plate number
switch(struITSPlateResult.struPlateInfo.byColor)//License plate color
{
case VCA_BLUE_PLATE:
printf("Vehicle Color: Blue\n");
break;
case VCA_YELLOW_PLATE:
printf("Vehicle Color: Yellow\n");
break;
case VCA_WHITE_PLATE:
printf("Vehicle Color: White\n");
break;
case VCA_BLACK_PLATE:
printf("Vehicle Color: Black\n");
break;
default:
break;
}
//Save scene picture
if ((struITSPlateResult.struPicInfo[i].dwDataLen != 0)&&(struITSPlateResult.struPicInfo[i].byType== 1)||
(struITSPlateResult.struPicInfo[i].byType == 2))
{
sprintf(filename,"testITSpic%d_%d.jpg",iNum,i);
fSnapPic=fopen(filename,"wb");
fwrite(struITSPlateResult.struPicInfo[i].pBuffer, struITSPlateResult.struPicInfo[i].dwDataLen,1,fSnapPic);
iNum++;
fclose(fSnapPic);
}
//License plate thumbnails
if ((struITSPlateResult.struPicInfo[i].dwDataLen != 0)&&(struITSPlateResult.struPicInfo[i].byType == 0))
{
sprintf(filename,"testPicPlate%d_%d.jpg",iNum,i);
fSnapPicPlate=fopen(filename,"wb");
fwrite(struITSPlateResult.struPicInfo[i].pBuffer, struITSPlateResult.struPicInfo[i].dwDataLen, 1, \
fSnapPicPlate);
iNum++;
fclose(fSnapPicPlate);
}
//Processing other data...
}

43
Device Network SDK (ANPR) Developer Guide

break;
}
default:
break;
}
}

void CALLBACK MessageCallbackNo2(LONG lCommand, NET_DVR_ALARMER *pAlarmer, char *pAlarmInfo, DWORD


dwBufLen, void* pUser)
{
int i=0;
char filename[100];
FILE *fSnapPic=NULL;
FILE *fSnapPicPlate=NULL;

//This sample code is for reference only. Actually, it is not recommended to process the data and save file in the
callback function directly.
//You'd better process the data in the message response funcion via message mode (PostMessage).

switch(lCommand)
{
case COMM_ALARM:
{
NET_DVR_ALARMINFO struAlarmInfo;
memcpy(&struAlarmInfo, pAlarmInfo, sizeof(NET_DVR_ALARMINFO));
switch (struAlarmInfo.dwAlarmType)
{
case 3: //Motion detection alarm
for (i=0; i<16; i++) //#define MAX_CHANNUM 16 //The maximum number of channel
{
if (struAlarmInfo.dwChannel[i] == 1)
{
printf("Channel No. with Motion Detection Alarm %d\n", i+1);
}
}
break;
default:
break;
}
break;
}
case COMM_UPLOAD_PLATE_RESULT:
{
NET_DVR_PLATE_RESULT struPlateResult={0};
memcpy(&struPlateResult, pAlarmInfo, sizeof(struPlateResult));
printf("License Plate Number: %s\n", struPlateResult.struPlateInfo.sLicense);//License plate number

switch(struPlateResult.struPlateInfo.byColor)//License plate color


{
case VCA_BLUE_PLATE:
printf("Vehicle Color: Blue\n");
break;

44
Device Network SDK (ANPR) Developer Guide

case VCA_YELLOW_PLATE:
printf("Vehicle Color: Yellow\n");
break;
case VCA_WHITE_PLATE:
printf("Vehicle color: White\n");
break;
case VCA_BLACK_PLATE:
printf("Vehicle Color: Black\n");
break;
default:
break;
}
//Scene picture
if (struPlateResult.dwPicLen != 0 && struPlateResult.byResultType == 1 )
{
sprintf(filename,"testpic_%d.jpg",iNum);
fSnapPic=fopen(filename,"wb");
fwrite(struPlateResult.pBuffer1,struPlateResult.dwPicLen,1,fSnapPic);
iNum++;
fclose(fSnapPic);
}
//License plate picture
if (struPlateResult.dwPicPlateLen != 0 && struPlateResult.byResultType == 1)
{
sprintf(filename,"testPicPlate_%d.jpg",iNum);
fSnapPicPlate=fopen(filename,"wb");
fwrite(struPlateResult.pBuffer1,struPlateResult.dwPicLen,1,fSnapPicPlate);
iNum++;
fclose(fSnapPicPlate);
}
//Processing other data...
break;
}
case COMM_ITS_PLATE_RESULT:
{
NET_ITS_PLATE_RESULT struITSPlateResult={0};
memcpy(&struITSPlateResult, pAlarmInfo, sizeof(struITSPlateResult));

for (i=0;i<struITSPlateResult.dwPicNum;i++)
{
printf("License Plate Number: %s\n", struITSPlateResult.struPlateInfo.sLicense);//License plate number
switch(struITSPlateResult.struPlateInfo.byColor)//License plate color
{
case VCA_BLUE_PLATE:
printf("Vehicle Color: Blue\n");
break;
case VCA_YELLOW_PLATE:
printf("Vehicle Color: Yellow\n");
break;
case VCA_WHITE_PLATE:
printf("Vehicle Color: White\n");
break;

45
Device Network SDK (ANPR) Developer Guide

case VCA_BLACK_PLATE:
printf("Vehicle Color: Black\n");
break;
default:
break;
}
//Save scene picture
if ((struITSPlateResult.struPicInfo[i].dwDataLen != 0)&&(struITSPlateResult.struPicInfo[i].byType== 1)||
(struITSPlateResult.struPicInfo[i].byType == 2))
{
sprintf(filename,"testITSpic%d_%d.jpg",iNum,i);
fSnapPic=fopen(filename,"wb");
fwrite(struITSPlateResult.struPicInfo[i].pBuffer, struITSPlateResult.struPicInfo[i].dwDataLen,1,fSnapPic);
iNum++;
fclose(fSnapPic);
}
//License plate thumbnails
if ((struITSPlateResult.struPicInfo[i].dwDataLen != 0)&&(struITSPlateResult.struPicInfo[i].byType == 0))
{
sprintf(filename,"testPicPlate%d_%d.jpg",iNum,i);
fSnapPicPlate=fopen(filename,"wb");
fwrite(struITSPlateResult.struPicInfo[i].pBuffer, struITSPlateResult.struPicInfo[i].dwDataLen, 1, \
fSnapPicPlate);
iNum++;
fclose(fSnapPicPlate);
}
//Processing other data...
}
break;
}
default:
break;
}
}

void main() {

//---------------------------------------
//Initialize
NET_DVR_Init();
//Set the connection time and reconnection time
NET_DVR_SetConnectTime(2000, 1);
NET_DVR_SetReconnect(10000, true);

//---------------------------------------
//Log in to device
LONG lUserID;
NET_DVR_DEVICEINFO_V30 struDeviceInfo;
lUserID = NET_DVR_Login_V30("172.0.0.100", 8000, "admin", "12345", &struDeviceInfo);
if (lUserID < 0)
{
printf("Login error, %d\n", NET_DVR_GetLastError());

46
Device Network SDK (ANPR) Developer Guide

NET_DVR_Cleanup();
return;
}

//Set alarm callback function


NET_DVR_SetDVRMessageCallBack_V50(0, MessageCallbackNo1, NULL);
NET_DVR_SetDVRMessageCallBack_V50(1, MessageCallbackNo2, NULL);

//Enable arming
NET_DVR_SETUPALARM_PARAM struSetupParam={0};
struSetupParam.dwSize=sizeof(NET_DVR_SETUPALARM_PARAM);

//Alarm information type to upload: 0-History Alarm (NET_DVR_PLATE_RESULT), 1-Real-Time Alarm


(NET_ITS_PLATE_RESULT)
struSetupParam.byAlarmInfoType=1;
//Arming Level: Level-2 arming (for traffic device)
struSetupParam.byLevel=1;

LONG lHandle = NET_DVR_SetupAlarmChan_V41(lUserID,&struSetupParam);


if (lHandle < 0)
{
printf("NET_DVR_SetupAlarmChan_V41 error, %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

Sleep(20000);
//Disarm uploading channel
if (!NET_DVR_CloseAlarmChan_V30(lHandle))
{
printf("NET_DVR_CloseAlarmChan_V30 error, %d\n", NET_DVR_GetLastError());
NET_DVR_Logout(lUserID);
NET_DVR_Cleanup();
return;
}

//User logout
NET_DVR_Logout(lUserID);
//Release SDK resource
NET_DVR_Cleanup();
return;
}

See Also
NET_DVR_SetupAlarmChan_V50

47
Device Network SDK (ANPR) Developer Guide

6.25.1 MSGCallBack
Alarm/event information callback function.

Callback Function Definition


typedef void(CALLBACK *MSGCallBack)(
LONG lCommand,
NET_DVR_ALARMER *pAlarmer,
char *pAlarmInfo,
DWORD dwBufLen,
void *pUser
);

Parameters
lCommand
[OUT] Uploaded message type. You can distinguish the alarm/event information via the type.
pAlarmer
[OUT] Alarm device information, including serial No., IP address, login handle, and so on, see
details in NET_DVR_ALARMER .
pAlarmInfo
[OUT] Alarm/event information, the details are returned in different structures according to
lCommand.
dwBufLen
[OUT] Size of alarm/event information buffer.
pUser
[OUT] User data.

6.26 NET_DVR_SetupAlarmChan_V50
Set up persistent connection to receive alarm/event information (supports alarm/event
subscription).

API Definition
LONG NET_DVR_SetupAlarmChan_V50(
LONG lUserID,
NET_DVR_SETUPALARM_PARAM_V50 lpSetupParam,
char *pData,
DWORD dwDataLen,
);

48
Device Network SDK (ANPR) Developer Guide

Parameters
lUserID
[IN] Value returned by NET_DVR_Login_V40 .
lpSetupParam
[IN] Arming parameters, refer to the structure NET_DVR_SETUPALARM_PARAM_V50 for
details.
pData
[IN] Alarm/event subscription conditions.
dwDataLen
[IN] Length of alarm/event subscription conditions.

Return Values
Return -1 for failure, and return other values as the handles of NET_DVR_CloseAlarmChan_V30 .
If -1 is returned, you can call NET_DVR_GetLastError to get the error code.
Remarks
This API supports alarm/event subscription, you can specify the types of alarm or event to be
uploaded by device by setting pData and dwDataLen.

6.27 NET_DVR_StartListen_V30
Register callback function for receiving alarm/event information and start listening (supports
multiple threads).

API Definition
LONG NET_DVR_StartListen_V30(
char *sLocalIP,
WORD wLocalPort,
MSGCallBack DataCallback,
void *pUserData
);

Parameters
sLocalIP
[IN] IP address of local PC. It can be set to null.
wLocalPort
[IN] Listening port No. of local PC. It is configured by user, and it should be the same with that of
device.

49
Device Network SDK (ANPR) Developer Guide

DataCallback
[IN] Alarm/event information callback function, see details in MSGCallBack .
pUserData
[IN] User data.

Return Values
Return -1 for failure, and return other values for the handle parameters of
NET_DVR_StopListen_V30 .
If -1 is returned, you can call NET_DVR_GetLastError to get the error code.
The available error codes of this API are 0, 3, 6, 12, 17, 41, 44, 47, 72, and 75. See details in the
Device Network SDK Errors .
Remarks
● To receive the alarm/event information sent by device, you should set the management host
server address or listening host server address of device to the IP address of PC (which is same
with the sLocalIP), or set the management host server port or listening host server port to the
listening port No. of PC (which is same with the wLocalPort).
● The callback function in this API is prior to other callback functions, that is, if the callback
function is configured in this API, other callback functions will not receive the alarm information.
All the device alarm information is returned in same callback function, and you can distinguish
the devices via the alarm device information (pAlarmInfo).

6.28 NET_DVR_StopListen_V30
Stop listening (supports multiple threads).

API Definition
BOOL NET_DVR_StopListen_V30(
LONG lListenHandle
);

Parameters
lListenHandle
Listening handle, which is returned by NET_DVR_StartListen_V30 .

Return Values
Return TRUE for success, and return FALSE for failure.
If FALSE is returned, you can call NET_DVR_GetLastError to get the error code.
The available error codes of this API are 0, 3, 12, and 17. See details in the Device Network SDK
Errors .

50
Device Network SDK (ANPR) Developer Guide

Chapter 7 Structure and Enumeration

7.1 Data Structure

7.1.1 ITC_LANE_DIRECTION_TYPE
Enumerate the lane direction type.

Enumeration Definition
enum{
ITC_LANE_DIRECTION_UNKNOW = 0,
ITC_LANE_LEFT = 1,
ITC_LANE_STRAIGHT = 2,
ITC_LANE_LEFT_STRAIGHT = 3,
ITC_LANE_RIGHT = 4,
ITC_LANE_LEFT_RIGHT = 5,
ITC_LANE_RIGHT_STRAIGHT = 6,
ITC_LANE_LEFT_RIGHT_STRAIGHT = 7,
ITC_LANE_LEFT_WAIT = 9,
ITC_LANE_STRAIGHT_WAIT = 10,
ITC_LANE_FORWARD = 11,
ITC_LANE_BACKWARD = 12,
ITC_LANE_BOTHWAY = 13,
ITC_LANE_STRAIGHT_WAIT_RIGHT = 14
}ITC_LANE_DIRECTION_TYPE

Member
ITC_LANE_DIRECTION_UNKNOW
Unknown.
ITC_LANE_LEFT
Turn left.
ITC_LANE_STRAIGHT
Go straight.
ITC_LANE_LEFT_STRAIGHT
Turn left and go straight.
ITC_LANE_RIGHT
Turn right.
ITC_LANE_LEFT_RIGHT
Turn left and turn right.

51
Device Network SDK (ANPR) Developer Guide

ITC_LANE_RIGHT_STRAIGHT
Turn right and go straight.
ITC_LANE_LEFT_RIGHT_STRAIGHT
Turn left, turn right and go straight.
ITC_LANE_LEFT_WAIT
Turn left and wait.
ITC_LANE_STRAIGHT_WAIT
Go straight and wait.
ITC_LANE_FORWARD
Drive forward.
ITC_LANE_BACKWARD
Drive backward.
ITC_LANE_BOTHWAY
Drive bidirectionally.
ITC_LANE_STRAIGHT_WAIT_RIGHT
Go straight and wait, and turn right.

7.1.2 ITC_LANE_USEAGE_TYPE
Enumerate the lane usage type.

Enumeration Definition
enum {
ITC_LANE_USEAGE_UNKNOW = 0,
ITC_LANE_CARRIAGEWAY = 1,
ITC_LANE_BUS = 2,
ITC_LANE_FAST = 3,
ITC_LANE_SLOW = 4,
ITC_LANE_MOTOR = 5,
ITC_LANE_NONMOTOR = 6,
ITC_LANE_REVERSE_LANE = 7,
ITC_LANE_BAN_TRUCKS = 8,
ITC_LANE_MIX = 9,
ITC_LANE_EMERGENCY = 10,
ITC_LANE_BAN_LEFT = 11,
ITC_LANE_BAN_RIGHT = 12
}ITC_LANE_USEAGE_TYPE

Member
ITC_LANE_USEAGE_UNKNOW

52
Device Network SDK (ANPR) Developer Guide

Unknown.
ITC_LANE_CARRIAGEWAY
Normal lane.
ITC_LANE_BUS
Bus lane.
ITC_LANE_FAST
Fast lane.
ITC_LANE_SLOW
Slow lane.
ITC_LANE_MOTOR
Motor vehicle lane.
ITC_LANE_NONMOTOR
Non-motor vehicle lane.
ITC_LANE_REVERSE_LANE
Opposite lane.
ITC_LANE_BAN_TRUCKS
Non-truck lane.
ITC_LANE_MIX
All-purpose lane.
ITC_LANE_EMERGENCY
Emergency lane.
ITC_LANE_BAN_LEFT
Lane banning turning left.
ITC_LANE_BAN_RIGHT
Lane banning turning right.

7.1.3 ITS_OVERLAP_ITEM_TYPE
Enumerate character overlay type.

Enumeration Definition
enum{
OVERLAP_ITEM_NULL = 0,
OVERLAP_ITEM_SITE = 1,
OVERLAP_ITEM_ROADNUM, = 2,
OVERLAP_ITEM_INSTRUMENTNUM, = 3,
OVERLAP_ITEM_DIRECTION, = 4,

53
Device Network SDK (ANPR) Developer Guide

OVERLAP_ITEM_DIRECTIONDESC, = 5,
OVERLAP_ITEM_DIRECTIONDESC, = 6,
OVERLAP_ITEM_LANEDES, = 7,
OVERLAP_ITEM_CAPTIME, = 8,
OVERLAP_ITEM_CAPTIME_MILLSECOND, = 9,
OVERLAP_ITEM_PLATENUM, = 10,
OVERLAP_ITEM_CARCOLOR, = 11,
OVERLAP_ITEM_CARTYPE, = 12,
OVERLAP_ITEM_CARBRAND, = 13,
OVERLAP_ITEM_CARSPEED, = 14,
OVERLAP_ITEM_SPEEDLIMIT, = 15,
OVERLAP_ITEM_CARLENGTH, = 16,
OVERLAP_ITEM_ILLEGALNUM, = 17,
OVERLAP_ITEM_MONITOR_INFO, = 18,
OVERLAP_ITEM_ILLEGALDES, = 19,
OVERLAP_ITEM_OVERSPEED_PERCENT, = 20,
OVERLAP_ITEM_RED_STARTTIME, = 21,
OVERLAP_ITEM_RED_STOPTIME, = 22,
OVERLAP_ITEM_RED_DURATION, = 23,
OVERLAP_ITEM_SECUNITY_CODE, = 24,
OVERLAP_ITEM_CAP_CODE, = 25,
OVERLAP_ITEM_SEATBELT, = 26,
OVERLAP_ITEM_MONITOR_ID, = 27,
OVERLAP_ITEM_SUN_VISOR, = 28,
OVERLAP_ITEM_LANE_DIRECTION, = 29,
OVERLAP_ITEM_LICENSE_PLATE_COLOR, = 30,
OVERLAP_ITEM_SCENE_NUMBER, = 31,
OVERLAP_ITEM_SCENE_NAME, = 32,
OVERLAP_ITEM_YELLOW_SIGN_CAR, = 33,
OVERLAP_ITEM_DANGEROUS_CAR, = 34,
OVERLAP_ITEM_CAR_SUBBRAND, = 35,
OVERLAP_ITEM_CAR_DIRECTION, = 36,
OVERLAP_ITEM_PENDANT, = 37,
OVERLAP_ITEM_CALL, = 38,
OVERLAP_ITEM_CAR_VALIDITY = 39
}ITS_OVERLAP_ITEM_TYPE

Member
OVERLAP_ITEM_NULL
Unknown.
OVERLAP_ITEM_SITE
Location.
OVERLAP_ITEM_ROADNUM
Intersection No.
OVERLAP_ITEM_INSTRUMENTNUM
Device No.
OVERLAP_ITEM_DIRECTION

54
Device Network SDK (ANPR) Developer Guide

Direction No.
OVERLAP_ITEM_DIRECTIONDESC
Direction.
OVERLAP_ITEM_LANENUM
Lane No.
OVERLAP_ITEM_LANEDES
Lane.
OVERLAP_ITEM_CAPTIME
Capture time (without milliseconds).
OVERLAP_ITEM_CAPTIME_MILLSECOND
Capture time (milliseconds).
OVERLAP_ITEM_PLATENUM
License plate No.
OVERLAP_ITEM_CARCOLOR
Vehicle color.
OVERLAP_ITEM_CARTYPE
Vehicle type.
OVERLAP_ITEM_CARBRAND
Vehicle brand.
OVERLAP_ITEM_CARSPEED
Vehicle speed.
OVERLAP_ITEM_SPEEDLIMIT
Speed limit sign.
OVERLAP_ITEM_CARLENGTH
Vehicle length, ranges from 1 to 99, unit: m.
OVERLAP_ITEM_ILLEGALNUM
Violation code, actually overlay illegal action information, such as low speed, overspeed, driving
in the opposite direction, running the red light, occupying the road, driving over the yellow line,
etc.
OVERLAP_ITEM_MONITOR_INFO
Camera information.
OVERLAP_ITEM_ILLEGALDES
Illegal action.
OVERLAP_ITEM_OVERSPEED_PERCENT
Overspeed percentage.

55
Device Network SDK (ANPR) Developer Guide

OVERLAP_ITEM_RED_STARTTIME
Red light start time.
OVERLAP_ITEM_RED_STOPTIME
Red light end time.
OVERLAP_ITEM_RED_DURATION
Duration of right light on.
OVERLAP_ITEM_SECUNITY_CODE
Security code.
OVERLAP_ITEM_CAP_CODE
Capture No.
OVERLAP_ITEM_SEATBELT
Whether to fasten the seat belt.
OVERLAP_ITEM_MONITOR_ID
Camera No.
OVERLAP_ITEM_SUN_VISOR
Sun visor.
OVERLAP_ITEM_LANE_DIRECTION
Driving direction of the lane.
OVERLAP_ITEM_LICENSE_PLATE_COLOR
License plate color.
OVERLAP_ITEM_SCENE_NUMBER
Scene No.
OVERLAP_ITEM_SCENE_NAME
Scene name.
OVERLAP_ITEM_YELLOW_SIGN_CAR
Yellow label vehicle.
OVERLAP_ITEM_DANGEROUS_CAR
Hazardous material truck.
OVERLAP_ITEM_CAR_SUBBRAND
Vehicle sub-brand.
OVERLAP_ITEM_CAR_DIRECTION
Driving direction of the vehicle.
OVERLAP_ITEM_PENDANT
Pendant on the window.

56
Device Network SDK (ANPR) Developer Guide

OVERLAP_ITEM_CALL
Talking on the phone.
OVERLAP_ITEM_CAR_VALIDITY
Confidence level.

See Also
NET_ITS_OVERLAP_SINGLE_ITEM_PARAM_V50

7.1.4 ITC_RELA_LANE_DIRECTION_TYPE
Enumerate the lane directions.

Enumeration Definition
enum{
ITC_RELA_LANE_DIRECTION_UNKNOW = 0,
ITC_RELA_LANE_EAST_WEST = 1,
ITC_RELA_LANE_WEST_EAST = 2,
ITC_RELA_LANE_SOUTH_NORTH = 3,
ITC_RELA_LANE_NORTH_SOUTH = 4,
ITC_RELA_LANE_EASTSOUTH_WESTNORTH = 5,
ITC_RELA_LANE_WESTNORTH_EASTSOUTH = 6,
ITC_RELA_LANE_EASTNORTH_WESTSOUTH = 7,
ITC_RELA_LANE_WESTSOUTH_EASTNORTH = 8
}ITC_RELA_LANE_DIRECTION_TYPE

Member
ITC_RELA_LANE_DIRECTION_UNKNOW
Other
ITC_RELA_LANE_EAST_WEST
From east to west.
ITC_RELA_LANE_WEST_EAST
From weat to east.
ITC_RELA_LANE_SOUTH_NORTH
From south to north.
ITC_RELA_LANE_NORTH_SOUTH
From north to south.
ITC_RELA_LANE_EASTSOUTH_WESTNORTH
From southeast to northwest.
ITC_RELA_LANE_WESTNORTH_EASTSOUTH

57
Device Network SDK (ANPR) Developer Guide

From northwest to southeast.


ITC_RELA_LANE_EASTNORTH_WESTSOUTH
From northeast to southwest.
ITC_RELA_LANE_WESTSOUTH_EASTNORTH
From southwest to northeast.

7.1.5 ITC_TRIGGERMODE_TYPE
Enumerate the trigger modes.

Enumeration Definition
enum{
ITC_POST_IOSPEED_TYPE = 0x1,
ITC_POST_SINGLEIO_TYPE = 0x2,
ITC_POST_RS485_TYPE = 0x4,
ITC_POST_RS485_RADAR_TYPE = 0x8,
ITC_POST_VIRTUALCOIL_TYPE = 0x10,
ITC_POST_HVT_TYPE_V50 = 0x20,
ITC_POST_MPR_TYPE = 0x40,
ITC_POST_PRS_TYPE = 0x80,
ITC_EPOLICE_IO_TRAFFICLIGHTS_TYPE = 0x100,
ITC_EPOLICE_RS485_TYPE = 0x200,
ITC_PE_RS485_TYPE = 0x10000,
ITC_VIDEO_EPOLICE_TYPE = 0x20000,
ITC_VIA_VIRTUALCOIL_TYPE = 0x40000,
ITC_POST_IMT_TYPE = 0x80000,
IPC_POST_HVT_TYPE = 0x100000,
ITC_POST_MOBILE_TYPE = 0x200000,
ITC_REDLIGHT_PEDESTRIAN_TYPE = 0x400000,
ITC_NOCOMITY_PEDESTRIAN_TYPE = 0x800000
}ITC_TRIGGERMODE_TYPE

Member
ITC_POST_IOSPEED_TYPE
Triggered by I/O speed detection (checkpoint)
ITC_POST_SINGLEIO_TYPE
Triggered by single I/O (checkpoint)
ITC_POST_RS485_TYPE
Triggered by RS-485 vehicle detector (checkpoint)
ITC_POST_RS485_RADAR_TYPE
Triggered by RS-485 radar (checkpoint)
ITC_POST_VIRTUALCOIL_TYPE

58
Device Network SDK (ANPR) Developer Guide

Triggered by virtual coil (checkpoint)


ITC_POST_HVT_TYPE_V50
Triggered by video (mixed checkpoint)
ITC_POST_MPR_TYPE
Triggered by multi-frame recognition (checkpoint)
ITC_POST_PRS_TYPE
Triggered by video detection
ITC_EPOLICE_IO_TRAFFICLIGHTS_TYPE
Triggered by traffic light signal detector (intersection violation system)
ITC_EPOLICE_RS485_TYPE
Triggered by RS-485 vehicle detector (intersection violation system)
ITC_PE_RS485_TYPE
Triggered by RS-485 vehicle detector (checkpoint violation system)
ITC_VIDEO_EPOLICE_TYPE
Triggered by video (checkpoint violation system).
ITC_VIA_VIRTUALCOIL_TYPE
Triggered by VIA.
ITC_POST_IMT_TYPE
Triggered by smart monitoring.
IPC_POST_HVT_TYPE
Triggered by mixed checkpoint
ITC_POST_MOBILE_TYPE
Triggered by mobile device.
ITC_REDLIGHT_PEDESTRIAN_TYPE
Triggering by pedestrian red light running.
ITC_NOCOMITY_PEDESTRIAN_TYPE
Triggered by outing of comity to pedestrian.

7.1.6 ITC_VIOLATION_DETECT_TYPE
Enumerate violation detection types.

Structure Definition
enum {
ITC_VIOLATION_POST = 0x01,
ITC_VIOLATION_DRIVELINE = 0x02,

59
Device Network SDK (ANPR) Developer Guide

ITC_VIOLATION_REVERSE = 0x04,
ITC_VIOLATION_REDLIGHT = 0x08,
ITC_VIOLATION_DIRECTION = 0x10,
ITC_VIOLATION_INTERSECTION_CONGEST = 0x20,
ITC_VIOLATION_NONDRIVEWAY = 0x40,
ITC_VIOLATION_CHANGELANE = 0x80,
ITC_VIOLATION_BAN = 0x100,
ITC_VIOLATION_INTERSECTION_PARK = 0x200,
ITC_VIOLATION_GREEN_PARK = 0x400,
ITC_VIOLATION_BAN_DRIVE = 0x800,
ITC_VIOLATION_ACROSS_YELLOWLINE = 0x1000,
ITC_VIOLATION_HIGH_SPEED = 0x2000,
ITC_VIOLATION_LOW_SPEED = 0x4000,
ITC_VIOLATION_TURN_AROUND = 0x8000,
ITC_VIOLATION_CONGESTION = 0x10000
}ITC_VIOLATION_DETECT_TYPE

Member
ITC_VIOLATION_POST
Checkpoint capture.
ITC_VIOLATION_DRIVELINE
Driving on the lane line capture.
ITC_VIOLATION_REVERSE
Wrong-way driving capture.
ITC_VIOLATION_REDLIGHT
Red light running capture.
ITC_VIOLATION_DIRECTION
Driving against direction guidance capture.
ITC_VIOLATION_INTERSECTION_CONGEST
Overstaying at intersection capture.
ITC_VIOLATION_NONDRIVEWAY
Motor vehicle on non-motor vehicle lane capture.
ITC_VIOLATION_CHANGELANE
Illegal lane change.
ITC_VIOLATION_BAN
Prohibition violation.
ITC_VIOLATION_INTERSECTION_PARK
Stop vehicle over the stop line when the red light is on.
ITC_VIOLATION_GREEN_PARK
Stop vehicle when the green light is on.

60
Device Network SDK (ANPR) Developer Guide

ITC_VIOLATION_BAN_DRIVE
Prohibition.
ITC_VIOLATION_ACROSS_YELLOWLINE
Cross the yellow line.
ITC_VIOLATION_HIGH_SPEED
Overspeed (only for checkpoint).
ITC_VIOLATION_LOW_SPEED
Low speed (only for checkpoint).
ITC_VIOLATION_TURN_AROUND
Illegal U-turning.
ITC_VIOLATION_CONGESTION
Congestion.

Remarks
● Crossing the yellow line means capturing lane change or U-turning of vehicles by cameras
installed by the roadside, and the concept of illegal lane change is the same as that in the
intersection violation system.
● Prohibition requires capturing all license plates of a specific area, and prohibition violation only
captures a specific type of license plates in the lane.

7.1.7 NET_DVR_BARRIERGATE_CFG
Barrier control parameter structure

Structure Definition
struct{
DWORD dwSize;
DWORD dwChannel;
BYTE byLaneNo;
BYTE byBarrierGateCtrl;
BYTE byEntranceNo;
BYTE byRes[13];
}NET_DVR_BARRIERGATE_CFG,*LPNET_DVR_BARRIERGATE_CFG;

Members
dwSize
Structure size.
dwChannel
Channel No.

61
Device Network SDK (ANPR) Developer Guide

byLaneNo
Barrier No.: 0-invalid, 1-barrier No.1
byBarrierGateCtrl
Control parameters: 0-close barrier, 1-open barrier, 2-stop control, 3-lock barrier
byEntranceNo
Entrance/Exit No., which is between 1 and 8
byRes
Reserved, set to 0.

7.1.8 NET_DVR_CRUISECHAN_INFO

Structure about The Information of Channel That Called Patrol

Member Data Type Description


dwEnableCruiseChan DWORD Channel that called patrol.
dwCruiseNo DWORD Patrol No., 0xfffffff-​invalid.

7.1.9 NET_DVR_EVENT_SCHEDULE

Arming Schedule Parameter Structure

Member Data Type Description


dwSize DWORD Structure size
struAlarmTime Array of Arming schedule, 7 days per week, 8 time
NET_DVR_SCHEDTIME periods per day
struHolidayAlarmTime Array of Holiday arming schedule, see details in the
NET_DVR_SCHEDTIME structure .
byRes BYTE Reserved.

7.1.10 NET_DVR_EVENT_TRIGGER

62
Device Network SDK (ANPR) Developer Guide

Structure About Event Linkage Configuration

Member Data Type Description


dwSize DWORD Structure size.
struHandleException Array of Exception handling mode
NET_DVR_HANDLEEXC
EPTION_V41
dwRelRecordChan Array of DWORD Actually triggered video channel, represented
by value, read starts from 0, and it is invalid
after the value of 0xffffffff being read.
struPresetChanInfo Array of Information of channel that called preset
NET_DVR_PRESETCHA
N_INFO
struCruiseChanInfo Array of Information of channel that called patrol
NET_DVR_CRUISECHA
N_INFO
struPtzTrackInfo Array of Information of channel that called pattern
NET_DVR_PTZTRACKC
HAN_INFO
byDirection Array of BYTE Triggering direction: 0-reserved, 1-all, 2-
forward, 3-backward
szFDID Char Face picture library ID
byRes2 Array of BYTE Reserved

7.1.11 NET_DVR_GEOGLOCATION
Address and location information structure.

Structure Definition
struct{
int iRes[2];
DWORD dwCity;
}NET_DVR_GEOGLOCATION, *LPNET_DVR_GEOGLOCATION;

Members
iRes

63
Device Network SDK (ANPR) Developer Guide

Reserved, set to 0.
dwCity
Province and city.

7.1.12 NET_DVR_GUARD_CFG
Structure about the configuration parameters of ANPR arming schedule.

Structure Definition
struct{
DWORD dwSize;
NET_DVR_TIME_DETECTION struAlarmSched[MAX_DAYS/*7*/][MAX_TIMESEGMENT_V30/*8*/];
NET_DVR_HANDLEEXCEPTION_V41 struHandleException;
DWORD dwMaxRelRecordChanNum;
DWORD dwRelRecordChanNum;
DWORD dwRelRecordChan[MAX_CHANNUM_V30/*64*/];
NET_DVR_TIME_DETECTION struHolidayTime[MAX_TIMESEGMENT_V30/*8*/];
BYTE byDirection;
BYTE byRes[87];
}NET_DVR_GUARD_CFG,*LPNET_DVR_GUARD_CFG;

Members
dwSize
Structure size
struAlarmSched
Arming schedule, 7 days for a week, maximum 8 time periods for a day, see details in the
structure NET_DVR_TIME_DETECTION .
struHandleException
Alarm linkage action, supports "center"-upload to center, see details in the structure
NET_DVR_HANDLEEXCEPTION_V41 .
dwMaxRelRecordChanNum
Maximum number of triggered video channels (read only) that can be supported.
dwRelRecordChanNum
Actual number of triggered video channels that can be supported, that is, the number of
channels in the current group.
dwRelRecordChan
Alarm triggered video channel No., E.g., if the value of dwRecordChanNum is 5, the values of
dwRelRecordChan is between 0 and 4.
struHolidayTime

64
Device Network SDK (ANPR) Developer Guide

Holiday arming schedule, see details in the structure NET_DVR_TIME_DETECTION .


byDirection
Triggered direction: 0-reserved, 1-all, 2-forward, 3-backward.
byRes
Reserved, set to 0.

Remarks
● When the value of dwMaxRelRecordChanNum is larger than 64, the channels should be
grouped, and maximum 64 channels can be in a group.
● The video channel No. is linked with the group No., e.g., if the group No. is 0, the channel No. is
between 1 and 64; if the group No. is 1, the channel No. is between 65 and 128; if 0xffffffff
appears, it indicates that the following channel No. is invalid.

7.1.13 NET_DVR_GUARD_COND
Structure about the configuration conditions of ANPR arming schedule.

Structure Definition
struct{
DWORD dwSize;
DWORD dwChannel;
BYTE byRelateType;
BYTE byGroupNo;
BYTE byRes[62];
}NET_DVR_GUARD_COND,*LPNET_DVR_GUARD_COND;

Members
dwSize
Structure size
dwChannel
Channel No.
byRelateType
Capture linkage mode: 0-invalid, 1-MPR mode (video triggered capture, for network camera
only), 2-HVT mode
byGroupNo
Group No.
byRes
Reserved, set to 0.

65
Device Network SDK (ANPR) Developer Guide

7.1.14 NET_DVR_HANDLEEXCEPTION_V41

Exception Information Structure

Member Data Type Description


dwHandleType DWORD Handling types, see details below:
● 0x00: no response

● 0x01: display alarm on monitor screen

● 0x02: audio warning

● 0x04: upload to center

● 0x08: trigger alarm output

● 0x10: send picture with JPEG format by e-

mail
● 0x20: trigger wireless sound and light alarm

● 0x40: trigger e-map (supported by PCNVR

only)
● 0x200: capture picture and upload to FTP

● 0x400: focus mode linkage (for defocus

detection)
● 0x800: PTZ linkage (speed dome tracks the

target)
● 0x1000: capture picture and upload to cloud

storage.
● 0x10000: message alarm

E.g., if dwHandleType is 0x01|0x04, it indicates


that the alarm information will be displayed on
monitor screen and uploaded to alarm center
when the alarm is triggered.
dwMaxAlarmOutChan DWORD Manixmum number of alarm outputs (read
nelNum only) supported by the device.
dwRelAlarmOut Array of DWORD Alarm output No. triggered by alarm, which
starts from 0, 0xffffffff-​invalid. E.g.
byRelAlarmOut[i]==3 indicates that the alarm
output No.4 is triggered.
byRes Array of BYTE Reserved, set to 0.

7.1.15 NET_DVR_INIT_CFG_ABILITY

66
Device Network SDK (ANPR) Developer Guide

Initialization Capability Structure

Member Data Type Description


enumMaxLoginUsersN INIT_CFG_MAX_NUM Maximum number of users can log in, see
um details below:
enum _INIT_CFG_MAX_NUM_{
INIT_CFG_NUM_2048 = 2048,
INIT_CFG_NUM_5120 = 5120,
INIT_CFG_NUM_10240 = 10240,
INIT_CFG_NUM_15360 = 15360,
INIT_CFG_NUM_20480 = 20480
}INIT_CFG_MAX_NUM

enumMaxAlarmNum INIT_CFG_MAX_NUM Maximum number of alarm channels, see


details below:
enum _INIT_CFG_MAX_NUM_{
INIT_CFG_NUM_2048 = 2048,
INIT_CFG_NUM_5120 = 5120,
INIT_CFG_NUM_10240 = 10240,
INIT_CFG_NUM_15360 = 15360,
INIT_CFG_NUM_20480 = 20480
}INIT_CFG_MAX_NUM

byRes Array of BYTE Reserved, set to 0.

Remarks
By default, up to 2048 channels are supported. More channels require higher computer
performance and network bandwidth.
See Also
NET_DVR_SetSDKInitCfg

7.1.16 NET_DVR_LLI_PARAM

Longitude and Latitude Parameter Structure

Member Data Type Description


fSec float Second, range: [0.000000, 60.000000].
byDegree BYTE Degree, range of latitude: [0, 90], range of
longitude: [0, 180].

67
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


byMinute BYTE Minute, range: [0, 59].
byRes BYTE[] Reserved field whose size is 6 bytes.

7.1.17 NET_DVR_LLPOS_PARAM

Position Information (Longitude and Latitude) Structure

Member Data Type Description


byLatitudeType BYTE Latitude type: 0-north, 1-south.
byLongitudeType BYTE Longitude type: 0-east, 1-west.
byRes1 BYTE[] Reserved field whose size is 2 bytes.
struLatitude NET_DVR_LLI_PARAM Latitude information.
struLongitude NET_DVR_LLI_PARAM Longitude information.
byRes BYTE[] Reserved whose size is 16 bytes.

7.1.18 NET_DVR_MIME_UNIT

Input Content Details Structure of Message Transmission API


(NET_DVR_STDXMLConfig)

Member Data Type Description


szContentType Array of char Content type (corresponds to Content-Type
field in the message), e.g., text/json. text/xml,
and so on. The content format must be
supported by HTTP.
szName Array of char Content name (corresponds to name field in the
message), e.g., name="upload".
szFilename Array of char Content file name (corresponds to filename
field in the message), e.g., filename=​"C:\Users
\test\Desktop\11.txt".
dwContentLen DWORD Content size

68
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


pContent char* Data point
bySelfRead BYTE 0-External file, 1-Internal data, whose address is
specified by szFilename.
byRes Array of BYTE Reserved. Set to 0. Maximum: 15 bytes.

See Also
NET_DVR_XML_CONFIG_INPUT

7.1.19 NET_DVR_PLATE_INFO

Structure About the Captured License Plate Information

Member Data Type Description


byPlateType BYTE License plate type.
byColor BYTE License plate color. For details, refer to
VCA_PLATE_COLOR .
byBright BYTE License plate brightness.
byLicenseLen BYTE Number of characters on the license plate.
byEntireBelieve BYTE License plate confidence in percentage, which is
between 0 and 100.
byRegion BYTE Region index: 0-reserved, 1-Europe, 2-Russian,
3-Europe and Russian (EU&CIS), 4-Middle East,
5-​Asia-​Pacific Region (APAC), 6-Africa and
America, 0xff-​all
byCountry BYTE Country/region index. For details, refer to
COUNTRY_INDEX .

Note
The value "COUNTRY_ALL" (0xff, it indicates all
countries) is not supported.

byArea BYTE Area in each country/region. The enumeration


of areas in The United Arab Emirates is as
follows:

69
Device Network SDK (ANPR) Developer Guide

Member Data Type Description

enum EMI_AREA{
EMI_AREA_UNKNOWN = 0, //Unknown Area (the
area recognition is not supported)
EMI_AREA_AD, //Abu Dhabi
EMI_AREA_FJR, //Fujairah
EMI_AREA_DB, //Dubai
EMI_AREA_RAK, //Ras Al Khaimah
EMI_AREA_AM, //Ajman
EMI_AREA_SJ, //Sharjah
EMI_AREA_UMW, //Umm Al Quwain
EMI_AREA_OTHER = 0xff, //Unrecognized (the
device supports this algorithm, but the area cannot be
recognized due to environment and so on)
}EMI_AREA;

byPlateSize BYTE License plate size: 0-unknown, 1-long, 2-short


(for the Middle East).
byAddInfoFlag BYTE Additional information flag (whether the
structure NET_DVR_VEHICLE_ADDINFO is
valid): 0-no, 1-yes.
wCRIndex WORD Country/region index, which covers byCountry
and can replace it. The wCRIndex is preferred
over byCountry. If wCRIndex is larger than 256,
you should set byCountry to "0xfd" (invalid).
byRes BYTE[] Reserved field whose size is 4 bytes.
pAddInfoBuffer BYTE* Additional information pointer which points to
the structure NET_DVR_VEHICLE_ADDINFO .

Note
The size of this member is 8 bytes for 64-bit
Windows Linux operation systems. For other
operating systems, its size is 4 bytes.

byRes2 BYTE[] Reserved field whose size is 4 bytes.

Note
This member is valid for operation systems
except 64-bit Windows and Linux.

sPlateCategory char Additional information on license plates in the


Middle East, whose size 8 bytes.

70
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


dwXmlLen DWORD Length of the alarm information in XML format.
pXmlBuf char* Pointer of the alarm information in XML format,
which points to the alarm details
XML_EventNotificationAlert_ANPR .

Note
This member is valid when lCommand in the
callback function MSGCallBack of
NET_DVR_SetDVRMessageCallBack_V50 is
"COMM_ITS_PLATE_RESULT" (0x3050).

struPlateRect NET_VCA_RECT License plate position.


sLicense char[] License plate number whose size is 16 bytes.
byBelieve BYTE[] Confidence of each recognized character, whose
size 16 bytes. For example, if the license plate
number is "ZA12345" and the confidence of
each character is 20, 30, 40, 50, 60, 60, and 70,
it indicates that the correctness of character "Z"
is 20%, the correctness of "A" is 30%, and so on.

7.1.20 NET_DVR_PLATE_RESULT
ANPR result structure

Structure Definition
struct{
DWORD dwSize;
BYTE byResultType;
BYTE byChanIndex;
WORD wAlarmRecordID;
DWORD dwRelativeTime;
BYTE byAbsTime[32];
DWORD dwPicLen;
DWORD dwPicPlateLen;
DWORD dwVideoLen;
BYTE byTrafficLight;
BYTE byPicNum;
BYTE byDriveChan;
BYTE byVehicleType;
DWORD dwBinPicLen;
DWORD dwCarPicLen;

71
Device Network SDK (ANPR) Developer Guide

DWORD dwFarCarPicLen;
BYTE *pBuffer3;
BYTE *pBuffer4;
BYTE *pBuffer5;
BYTE byRelaLaneDirectionType;
BYTE byRes3[7];
NET_DVR_PLATE_INFO struPlateInfo;
NET_DVR_VEHICLE_INFO struVehicleInfo;
BYTE *pBuffer1;
BYTE *pBuffer2;
}NET_DVR_PLATE_RESULT, *LPNET_DVR_PLATE_RESULT;

Members
dwSize
Structure size
byResultType
Recognition type: 0-recognize via video, 1- recognize via picture, 2-continuous recorded video
(support search)
byChanIndex
Lane No.
wAlarmRecordID
Alarm video ID (for video search only), and this parameter is valid only when byResultType is
"2".
dwRelativeTime
Time of UTC ± 00:00. (reserved)
byAbsTime
Local time, accurate to millisecond, format: yyyymmddhhmmssxxx, e.g. 20090810235959999.
dwPicLen
Picture length (close-up picture).
dwPicPlateLen
Length of license plate thumbnail (colorful picture).
dwVideoLen
Video size.
byTrafficLight
0-capture without red or green light, 1-capture with green light, 2-capture with red light.
byPicNum
No. of continuously captured picture.
byDriveChan
Triggered lane No.

72
Device Network SDK (ANPR) Developer Guide

byVehicleType
Vehicle type, see details in VTR_RESULT .
dwBinPicLen
Size of binary picture (for iDS-65 series only).
dwCarPicLen
Size of original vehicle picture (for iDS-65 series only).
dwFarCarPicLen
Size of long-shot picture (for iDS-65 series only).
pBuffer3
Binary picture of license plate (for iDS-65 series only).
pBuffer4
Original vehicle picture (for iDS-65 series only).
pBuffer5
Long-shot picture (for iDS-65 series only).
byRelaLaneDirectionType
Direction of linked lane, see details in ITC_RELA_LANE_DIRECTION_TYPE .
byRes3
Reserved.
struPlateInfo
License plate information.
struVehicleInfo
Vehicle information
pBuffer1
For close-up picture information, the size of this buffer equals to the value of dwPicLen; for
video information, the size of this buffer equals to the value of dwVideoLen.
pBuffer2
For license plate thumbnail information, the size of this buffer equals to the value of
dwPicPlateLen.

Remarks
The uploaded picture or video information can be distinguished according to the information
length (if the length is 0). The picture data includes scene picture and license plate thumbnail. If
the video size is 0xffffffff, it indicates that the video is exception and only the alarm information
(without video) will be uploaded, and the video pointer is NULL.
For iDS-65 series devices, the manually captured picture can only be uploaded to pBuffer1 and
pBuffer2.

73
Device Network SDK (ANPR) Developer Guide

If the byResultType is 2, the wAlarmRecordID can be set as the search conditions for alarm video
search.

7.1.21 NET_DVR_PRESETCHAN_INFO

Preset Information Structure

Member Data Type Description


dwEnablePresetChan DWORD Channel that called preset.
dwPresetPointNo DWORD Called preset No., 0xfffffff-​not call preset.

7.1.22 NET_DVR_PTZTRACKCHAN_INFO

Pattern Information Structure

Member Data Type Description


dwEnablePtzTrackChan DWORD Channel that called the pattern.
dwPtzTrackNo DWORD Called pattern No., 0xfffffff-​invalid.

7.1.23 NET_DVR_SCHEDTIME

Structure About Start and End Time Parameters

Member Data Type Description


byStartHour BYTE Start time: hour.
byStartMin BYTE Start time: minute.
byStopHour BYTE End time: hour.
byStopMin BYTE End time: minute.

7.1.24 NET_DVR_STD_ABILITY

74
Device Network SDK (ANPR) Developer Guide

Input and Output Parameter Structure for Getting Capabilities

Member Data Type Description


lpCondBuffer LPVOID Condition parameters (ASCII character format),
e.g., the channel No., it can be set to "null".
dwCondSize DWORD Buffer size of condition parameters.
lpOutBuffer LPVOID Output parameters buffer (the parameter is
returned in the message with XML format), it
cannot be set to "null.
dwOutSize DWORD Output buffer size.
lpStatusBuffer LPVOID Get the returned status parameters
( XML_ResponseStatus ) when getting
capabilities failed. It can be set to null.
dwStatusSize DWORD Status buffer size.
dwRetSize DWORD Obtained data size (if the capability is obtained,
the value refers to the size of lpOutBuffer; if
getting failed, the value refers to the size of
lpStatusBuffer).
byRes Array [BYTE] Reserved. The maximum size is 32 bytes.

Remarks
For different capability types (which depend on the parameter dwAbilityType in the API
NET_DVR_GetSTDAbility ), the condition parameter lpCondBuffer and output parameter
lpOutBuffer are different. For details, refer to the typical applications.

7.1.25 NET_DVR_STD_CONFIG

Structure About Configuring Input and Output Parameters

Member Data Type Description


lpCondBuffer LPVOID Condition parameters, e.g., channel No., it can
be set to "NULL".
dwCondSize DWORD Size of buffer for storing condition parameters
lpInBuffer LPVOID Input parameters (a structure)
dwInSize DWORD Size of buffer for storing input parameters

75
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


lpOutBuffer LPVOID Output parameters (a structure)
dwOutSize DWORD Size of buffer for storing output parameters
lpStatusBuffer LPVOID Returned status parameters in XML format, it
can be set to NULL.
dwStatusSize DWORD Size of buffer for storing status parameters
lpXmlBuffer LPVOID Request or response message in XML format, it
is valid when byDataType is 1.
dwXmlSize DWORD Size of memory pointed by lpXmlBuffer.
byDataType BYTE Input or output parameter type: 0-valid when
the input or output parameters is a structure; 1-
valid when the input or output parameters is a
XML message.
byRes Array [BYTE] Reserved, set to 0. The maximum size is 32
bytes.

7.1.26 NET_DVR_TIME_V30

Time Parameter Structure

Member Data Type Description


wYear WORD Year.
byMonth BYTE Month.
byDay BYTE Day.
byHour BYTE Hour.
byMinute BYTE Minute.
bySecond BYTE Second.
byISO8601 BYTE Whether the time is in ISO8601
format, i.e., whether the time
difference is valid. 0-invalid, the
time is device local time, 1-
valid.
wMilliSec WORD Millisecond.

76
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


cTimeDifferenceH char Time difference between time
and UTC time, unit: hour, the
value is between -12 and +14
("+" indicates the east time
zone), it is valid when
byISO8601 is "1".
cTimeDifferenceM char Time difference between time
and UTC time, unit: minute, the
value is -30, +30, or +45 ("+"
indicates the east time zone), it
is valid when byISO8601 is "1".

7.1.27 NET_DVR_TIME_V50
Time parameters structure.

Structure Definition
struct{
WORD wYear;
BYTE byMonth;
BYTE byDay;
BYTE byHour;
BYTE byMinute;
BYTE bySecond;
BYTE byISO8601;
WORD wMilliSec;
signed char cTimeDifferenceH;
signed char cTimeDifferenceM;
}NET_DVR_TIME_V50, *LPNET_DVR_TIME_V50;

Members
wYear
Year
byMonth
Month
byDay
Day
byHour

77
Device Network SDK (ANPR) Developer Guide

Hour
byMinute
Minute
bySecond
Second
byISO8601
ISO8601 format, whether time differences are valid, 0-no, it is local time, 1-yes
wMillisecond
Millisecond, it is 0 by default
cTimeDifferenceH
Time offset (hours) from UTC, e.g., -12 ... +14, positive offset indicates eastern time zone
cTimeDifferenceM
Time offset (minutes) from UTC, e.g., -30, 0, 30, 45, positive offset indicates eastern time zone

7.1.28 NET_DVR_TIME_DETECTION
ANPR arming schedule structure

Structure Definition
struct{
NET_DVR_SCHEDTIME struSchedTime;
BYTE byDetSceneID;
BYTE byRes[15];
}NET_DVR_TIME_DETECTION,*LPNET_DVR_TIME_DETECTION;

Members
struSchedTime
Arming schedule, start time and end time parameters, see details in the structure .
byDetSceneID
Detection scene No., 0-invalid, other values: [1,4]. For network camera, the default value of this
parameter is 0.
byRes
Reserved, set to 0.

See Also

78
Device Network SDK (ANPR) Developer Guide

7.1.29 NET_DVR_TRIGGER_COND
Structure about the configuration conditions of triggering mode.

Structure Definition
struct{
DWORD dwSize;
DWORD dwChannel;
DWORD dwtriggerMode;
BYTE byDetSceneID;
BYTE byRes[63];
}NET_DVR_TRIGGER_COND,*LPNET_DVR_TRIGGER_COND;

Members
dwSize
Structure size
dwChannel
Channel No.
dwTriggerMode
Triggering mode, see details in ITC_TRIGGERMODE_TYPE
byDetSceneID
Detection scene No.: 0-invalid, other values: [1,4].
byRes
Reserved, set to 0.

7.1.30 NET_DVR_VEHICLE_ADDINFO

Structure about Additional Vehicle Information

Member Data Type Description


struLLPos NET_DVR_LLPOS_PARAM Longitude and latitude
information of the vehicle.
sVehicleNo char[] Vehicle ID whose size is 64
bytes.
byVehicleMonitorTaskID BYTE[] Intelligent vehicle arming task
ID whose size is 64 bytes. The
ID is applied to the device by

79
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


the upper layer when the task
is created.
byUUID BYTE[] UUID whose size is 64 bytes.
This member is used to link the
same capture across multiple
servers.
byRes BYTE[] Reserved field whose size is
832 bytes.

7.1.31 NET_DVR_VEHICLE_CONTROL_ALARM
Structure about the information of blocklist and allowlist ANPR alarm.

Structure Definition
struct{
DWORD dwSize;
BYTE byListType;
BYTE byPlateType;
BYTE byPlateColor;
BYTE byRes1;
char sLicense[MAX_LICENSE_LEN/*16*/];
char sCardNo[MAX_CARDNO_LEN/*48*/];
NET_DVR_TIME_V30 struAlarmTime;
DWORD dwChannel;
DWORD dwPicDataLen;
BYTE byPicType;
BYTE byPicTransType
BYTE byRes3[2];
char *pPicData;
BYTE byRes2[48];
}NET_DVR_VEHICLE_CONTROL_ALARM,*LPNET_DVR_VEHICLE_CONTROL_ALARM;

Members
dwSize
Structure size.
byListType
List type: 0-allowlist, 1-blocklist, 2-temporary list.
byPlateType
License plate type, seed details in VCA_PLATE_TYPE .

80
Device Network SDK (ANPR) Developer Guide

byPlateColor
License plate color, see details in VCA_PLATE_COLOR .
byRes1
Reserved, set to 0.
sLicense
License plate number
sCardNo
Card No.
struAlarmTime
Alarm time, see details in the structure NET_DVR_TIME_V30 .
dwChannel
Device channel No.
dwPicDataLen
Picture data size, 0-no picture, non-0-with picture data.
byPicType
Picture format: 0-JPEG, 1-BMP, 2-PNG
byPicTransType
Picture transmission method: 0-binary, 1-url
byRes3
Reserved, set to 0.
pPicData
Buffer of picture data in JPEG format.
byRes2
Reserved, set to 0.

7.1.32 NET_DVR_VEHICLE_INFO
Vehicle information structure

Structure Definition
struct{
DWORD dwIndex;
BYTE byVehicleType;
BYTE byColorDepth;
BYTE byColor;
BYTE byRaderState;
WORD wSpeed;
WORD wLength;

81
Device Network SDK (ANPR) Developer Guide

BYTE byIllegalType;
BYTE byVehicleLogoRecog;
BYTE byVehicleSubLogoRecog;
BYTE byVehicleModel;
BYTE byCustomInfo[16];
WORD wVehicleLogoRecog;
BYTE byIsParking;
BYTE byRes;
DWORD dwParkingTime;
BYTE byBelieve;
BYTE byRes3[7];
}NET_DVR_VEHICLE_INFO, *LPNET_DVR_VEHICLE_INFO;

Members
dwIndex
Vehicle No.
byVehicleType
Vehicle type: 0-others, 1-small-sized vehicle, 2-oversized vehicle, 3-pedestrian, 4-two-wheel
vehicle, 5-three-wheel vehicle, 6-motor vehicle
byColorDepth
Vehicle color depth: 0-dark color, 1-light color
byColor
Vehicle color: 0-other, 1-white, 2-silver, 3-gray, 4-black, 5-red, 6-deep blue, 7-blue, 8-yellow, 9-
green, 10-brown, 11-pink, 12-purple, 13-dark gray, 14-cyan, 0xff-unkonwn
byRaderState
Radar status: 0-normal, 1-fault, 2-keeps sending same speed, 3-no data sent, 4-the sent radar
data is too large or too small.
wSpeed
Vehicle speed, unit: km/h
wLength
Vehicle length
byIllegalType
0-Normal, 1-Low Speed, 2-Overspeed, 3-Wrong-Way Driving, 4-Rad Light Running, 5-Driving on
Lane Line, 6-Driving in Wrong Lane at Intersection, 7-Intersection Stranded, 8-Motor Vehicle
Occupied Non-Motor Lane, 9-Illegal Lane Change, 10-Special Lane Occupancy, 11-Yellow Vehicle
Restriction, 12-Intersection Parking, 13-Green Light Parking, 14-Out of Comity to Pedestrian, 15-
Illegal Parking, 16-Illegal U-Turn, 17-Emergency Lane Occupancy, 18-No Right-Turn, 19-No Left-
Turn, 20-Driving on Yellow Line, 21-Seatbelt Unfastened, 22-Pedestrian Red Light Running, 23-
Vehicle Queue Jumping, 24-Illegal High Beam, 25-Driving with Making Call, 26-Left Turn not
Yield to Straight, 27-Right Turn not Yield to Left Turn, 28-U-Turn not Yield to Straight, 29-Small

82
Device Network SDK (ANPR) Developer Guide

Turn at Big Bend, 30-Running Green Light in Congestion, 31-Without Helmet, 32-Manned Non-
Motor Vehicle, 33-Motor Vehicle on Non-Motor Vehicle Lane, 34-Non-Motor Vehicle Umbrella
Tent, 35-Vehicle Discharging Black Smoke, 36-Honk, 37-Parking Over the Lane Line, 38-
Occupying Two Parking Spaces, 39-Parking Over the Lane Line and Occupying Two Parking
Spaces, 40-Not Yield to Vehicle from Right,41-Not Yield to Vehicles in the Roundabout, 42-on
Ramp Not Yield to Main Road, 43-Large-Sized Vehicle on the Lane, 44-Roadster Step on the Gas,
45-Smoke.
byVehicleLogoRecog
Vehicle main brand. For details, refer to the enumeration VLR_VEHICLE_CLASS .
byVehicleSubLogoRecog
Vehicle sub brand.
byVehicleModel
Vehicle model of sub brand
byCustomInfo
Custom information
wVehicleLogoRecog
Vehicle main brands (it is compatible with byVehicleLogoRecog). For details, refer to the
enumeration VLR_VEHICLE_CLASS .
byIsParking
Whether the vehicle is parking: 0-invalid, 1-parking, 2-not parking.
byRes
Reserved.
dwParkingTime
Parking time, unit: second.
byBelieve
Confidence of byIllegalType.
byRes
Reserved.

Remarks
For the vehicle main and sub brands, refer to the list provided by device.

7.1.33 NET_DVR_VIA_LANE_PARAM
Structure about the lane parameters for VIA video detection mode

83
Device Network SDK (ANPR) Developer Guide

Structure Definition
struct{
BYTE byLaneNO;
BYTE byRes[63];
NET_ITC_LANE_LOGIC_PARAM struLogicParam;
NET_ITC_LINE struLaneLine;
NET_ITC_POLYGON struPlateRecog;
BYTE byRes1[300];
}NET_DVR_VIA_LANE_PARAM, *LPNET_DVR_VIA_LANE_PARAM;

Members
byLaneNO
Linked lane No.
byRes
Reserved.
struLogicParam
Lane attribute parameter, see details in the structure NET_ITC_LANE_LOGIC_PARAM .
struLaneLine
Lane line, see details in the structure NET_ITC_LINE .
struLaneLine
License plate recognition area parameter, see details in the structure NET_ITC_POLYGON .
byRes1
Reserved.

See Also
NET_DVR_VIA_VTCOIL_PARAM

7.1.34 NET_DVR_VIA_VTCOIL_PARAM
VIA video detection parameter structure.

Structure Definition
struct{
BYTE byEnable;
BYTE byLaneNum;
BYTE byRes[62];
NET_ITC_LINE struLaneBoundaryLine;
NET_DVR_VIA_LANE_PARAM struLaneParam[MAX_ITC_LANE_NUM/*6*/];
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;

84
Device Network SDK (ANPR) Developer Guide

BYTE byRes1[624];
}NET_DVR_VIA_VTCOIL_PARAM, *LPNET_DVR_VIA_VTCOIL_PARAM;

Members
byEnable
Enable or not: 0-no, 1-yes.
byLaneNum
Number of recognized lanes.
byRes
Reserved.
struLaneBoundaryLine
Lane boundary line, which is the left boundary line of the leftmost lane, see details in the
structure NET_ITC_LINE .
struLaneParam
Lane parameter for VIA video detection, see details in the structure
NET_DVR_VIA_LANE_PARAM .
struPlateRecog
License plate recognition parameter, see details in the structure
NET_ITC_PLATE_RECOG_PARAM .
byRes1
Reserved.

See Also
NET_ITC_TRIGGER_PARAM_UNION

7.1.35 NET_DVR_XML_CONFIG_INPUT

Input Parameter Structure of Message Transmission API (NET_DVR_STDXMLConfig)

Member Data Type Description


dwSize DWORD Structure size.
lpRequestUrl void* Request URL (command) for implement
different functions, and it is in string format.
dwRequestUrlLen DWORD Request URL size.

85
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


lpInBuffer void* Buffer for storing input parameters (request
messages), see the input content details
structure in NET_DVR_MIME_UNIT .
dwInBufferSize DWORD Input buffer size.
dwRecvTimeOut DWORD Receiving timeout, unit: ms, 0-5000ms (default).
byForceEncrpt BYTE Whether to enable force encryption (the
messages will be encrypted by AES algorithm
for transmission): 0-no, 1-yes.
byNumOfMultiPart BYTE Number of message segments: 0-invalid; other
values-number of message segments, which is
transmitted by the parameter lpInBuffer in the
structure NET_DVR_MIME_UNIT .
byRes Array of BYTE Reserved, set to 0.

Related API
NET_DVR_STDXMLConfig

7.1.36 NET_DVR_XML_CONFIG_OUTPUT

Output Parameter Structure of Message Transmission API


(NET_DVR_STDXMLConfig)

Member Data Type Description


dwSize DWORD Structure size.
lpOutBuffer void* Buffer for storing output parameters (response
messages), which is allocated when passing
through URL by GET method.
dwOutBufferSize DWORD Output buffer size.
dwReturnedXMLSize DWORD Actual size of response message.
lpStatusBuffer void* Response status (ResponseStatus message).
This parameter will not be assigned if
performing GET operation succeeded, and you
can also set it to "NULL" if not required.

86
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


dwStatusSize DWORD Size of response status buffer.
lpDataBuffer HPR_VOIDPTR Buffer for transmitted data. This parameter is
valid when the value of byNumOfMultiPart is
larger than 0.
byNumOfMultiPart HPR_UINT8 Number of parts that the message is divided
into.
byRes BYTE Reserved, set to 0.
[23]

Related API
NET_DVR_STDXMLConfig

7.1.37 NET_IPC_LANE_HVT_PARAM
Mixed checkpoint lane parameter structure of network camera.

Structure Definition
struct{
BYTE byLaneNO;
BYTE byCarDriveDirect;
BYTE byRes[62];
NET_ITC_LINE struLaneLine;
NET_ITC_POLYGON struPlateRecog;
BYTE byRes1[256];
}NET_IPC_LANE_HVT_PARAM, *LPNET_IPC_LANE_HVT_PARAM;

Members
byLaneNO
Lane No.
byCarDriveDirect
Vehicle driving direction, which is enumerated below:
enum _ITC_LANE_CAR_DRIVE_DIRECT_{
ITC_LANE_DRIVE_UNKNOW = 0,
ITC_LANE_DRIVE_UP_TO_DOWN = 1,
ITC_LANE_DRIVE_DOWN_TO_UP = 2
}ITC_LANE_CAR_DRIVE_DIRECT

ITC_LANE_DRIVE_UNKNOW

87
Device Network SDK (ANPR) Developer Guide

Unknown
ITC_LANE_DRIVE_UP_TO_DOWN
Drive from up to bottom on image.
ITC_LANE_DRIVE_DOWN_TO_UP
Drive from bottom to up on image.
byRes
Reserved, set to 0.
struLaneLine
Lane line, refer to the structure NET_ITC_LINE for details.
struPlateRecog
ANPR region parameters, refer to the structure NET_ITC_POLYGON for details.
byRes1
Reserved, set to 0.

See Also
NET_IPC_POST_HVT_PARAM

7.1.38 NET_IPC_POST_HVT_PARAM
Structure of mixed checkpoint trigger parameters of network camera.

Structure Definition
struct{
BYTE byEnable;
BYTE byLaneNum;
BYTE byRes[62];
NET_ITC_LINE struLaneBoundaryLine;
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;
NET_IPC_LANE_HVT_PARAM struLaneParam[MAX_ITC_LANE_NUM/*6*/];
char szSceneName[NAME_LEN/*32*/];
NET_VCA_LINE struSnapLine;
BYTE byRes1[392];
}NET_IPC_POST_HVT_PARAM,*LPNET_IPC_POST_HVT_PARAM;

Members
byEnable
Whether to enable mixed checkpoint trigger mode of network camera: 0-no, 1-yes.
byLaneNum
Number of lanes to be recognized.

88
Device Network SDK (ANPR) Developer Guide

byRes
Reserved.
struLaneBoundaryLine
Left boundary line of left lane, refer to the structure NET_ITC_LINE for details.
struPlateRecog
ANPR parameters, refer to the structure NET_ITC_LANE_MPR_PARAM for details.
struLaneParam
Lane parameters, refer to the structure NET_IPC_LANE_HVT_PARAM for details.
szSceneName
Scene name.
struSnapLine
Capture line, it is valid only when the camera is mounted at road side, refer to the structure
NET_VCA_LINE for details.
byRes1
Reserved.

See Also
NET_ITC_TRIGGER_PARAM_UNION

7.1.39 NET_ITC_EPOLICE_IOTL_PARAM
Structure about IO traffic light parameters for the intersection violation system.

Structure Definition
struct{
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;
NET_ITC_SINGLE_IOTL_PARAM struSingleIOTL[MAX_IOSPEED_GROUP_NUM/*4*/];
BYTE byRes[32];
}NET_ITC_EPOLICE_IOTL_PARAM, *LPNET_ITC_EPOLICE_IOTL_PARAM;

Members
struPlateRecog
License plate recognition parameter, see details in the structure
NET_ITC_PLATE_RECOG_PARAM .
struSingleIOTL
IO traffic light parameter of a single group, see details in the structure
NET_ITC_SINGLE_IOTL_PARAM .
byRes

89
Device Network SDK (ANPR) Developer Guide

Reserved.

See Also
NET_ITC_TRIGGER_PARAM_UNION

7.1.40 NET_ITC_EPOLICE_LANE_PARAM
Structure about lane parameters of RS-485 vehicle detector trigger mode for the intersection
violation system.

Structure Definition
struct{
BYTE byEnable;
BYTE byRelatedDriveWay;
WORD wDistance;
BYTE byRecordEnable;
BYTE byRecordType;
BYTE byPreRecordTime;
BYTE byRecordDelayTime;
BYTE byRecordTimeOut;
BYTE bySignSpeed;
BYTE bySpeedLimit;
BYTE byOverlayDriveWay;
NET_ITC_SERIAL_INFO struSerialInfo;
BYTE byRelatedIOOut[MAX_IOOUT_NUM/*4*/];
BYTE byFlashMode;
BYTE bySerialType;
BYTE byRelatedIOOutEx;
BYTE bySnapPicPreRecord;
NET_ITC_PLATE_RECOG_REGION_PARAM struPlateRecog[MAX_LANEAREA_NUM/*2*/];
BYTE byBigCarSignSpeed;
BYTE byBigCarSpeedLimit;
BYTE byRedTrafficLightChan;
BYTE byYellowTrafficLightChan;
BYTE byRelaLaneDirectionType;
BYTE byRes3[11];
}NET_ITC_EPOLICE_LANE_PARAM, *LPNET_ITC_EPOLICE_LANE_PARAM;

Members
byEnable
Whether to enable: 0-no, 1-yes.
byRelatedDriveWay
Linked lane No.
wDistance

90
Device Network SDK (ANPR) Developer Guide

Coil distance (reserved), unit: centimeter.


byRecordEnable
Whether to record by cycle for running red light event: 0-no, 1-yes.
byRecordType
Recording type for running red light event: 0-pre-record, 1-post-record.
byPreRecordTime
Pre-record time for running red light event, the default value is 0, unit: second.
byRecordDelayTime
Post-record time for running red light event, the default value is 0, unit: second.
byRecordTimeOut
Cycle recording timeout for running red light event, unit: second.
bySignSpeed
Marked speed limit (only valid for checkpoint intersection violation system), unit: km/h.
bySpeedLimit
Speed limit (only valid for checkpoint intersection violation system), unit: km/h.
byOverlayDriveWay
OSD overlayed lane No.
struSerialInfo
Vehicle detector parameters.
byRelatedIOOut
Linked IO output port. Multiple ports can be linked simultaneously.
byFlashMode
Flashing mode of the flash light: 0-simultaneous, 1-sequential.
bySerialType
Vehicle detector type: 0-private vehicle detector, 1-private OEM vehicle detector, 2-other
vehicle detector.
byRelatedIOOutEx
Linked IO output port. The output port No. is represented by bit, e.g., bit 0 refers to IO output
port 1, bit 1 refers to IO output port 2, and so on. For each bit, 0 means that the output port is
not linked, and 1 means that the output port is linked. Up to 8 IO output ports can be linked.
This member is compatible with byRelatedIOOut.
bySnapPicPreRecord
Pre-record time for capturing pictures: 0-default (the second picture), 1-the first picture, 2-the
second picture, 3-the third picture.
struPlateRecog

91
Device Network SDK (ANPR) Developer Guide

License plate recognition area parameters, see details in the structure


NET_ITC_PLATE_RECOG_REGION_PARAM .
byBigCarSignSpeed
Marked speed limit for large-sized vehicle, unit: km/h.
byBigCarSpeedLimit
Speed limit for large-sized vehicle, unit: km/h.
byRedTrafficLightChan
Red light channel No. of the traffic light detector, ranging from 1 to 16.
byYellowTrafficLightChan
Yellow light channel No. of the traffic light detector, ranging from 1 to 16.
byRelaLaneDirectionType
Linked lane direction type, see details in the structure ITC_RELA_LANE_DIRECTION_TYPE .
byRes3
Reserved.

Remarks
The linked lane No. configured by byRelatedDriveWay corresponds to the lane in the vehicle
detector for capturing. The lane No. configured by byOverlayDriveWay is the overlay lane No.
which is the actual lane No.
See Also
NET_ITC_EPOLICE_RS485_PARAM

7.1.41 NET_ITC_EPOLICE_RS485_PARAM
Structure about triggering parameters of RS-485 vehicle detector for intersection violation system
and checkpoint intersection violation system.

Structure Definition
struct{
BYTE byRelatedLaneNum;
BYTE byTrafficLightSignalSrc;
BYTE byRes1[2];
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;
NET_ITC_EPOLICE_LANE_PARAM struLane[MAX_ITC_LANE_NUM/*6*/];
BYTE byRes[32];
}NET_ITC_EPOLICE_RS485_PARAM, *LPNET_ITC_EPOLICE_RS485_PARAM;

Members
byRelatedLaneNum

92
Device Network SDK (ANPR) Developer Guide

Number of linked lanes.


byTrafficLightSignalSrc
Traffic light signal source: 0-vehicle detector, 1-traffic light detector.
byRes1
Reserved.
struPlateRecog
License plate recognition parameter, see details in the structure
NET_ITC_PLATE_RECOG_PARAM .
struLane
Linked lane parameter, see details in the structure NET_ITC_EPOLICE_LANE_PARAM .
byRes
Reserved.

Remarks
The parameters byRedTrafficLightChan and byYellowTrafficLightChan in the structure
NET_ITC_EPOLICE_LANE_PARAM are valid only when byTrafficLightSignalSrc is set to 1.
See Also
NET_ITC_TRIGGER_PARAM_UNION

7.1.42 NET_ITC_INTERVAL_PARAM
Structure about capture interval parameters.

Structure Definition
struct{
BYTE byIntervalType;
BYTE byRes1[3];
WORD wInterval[MAX_INTERVAL_NUM/*4*/];
BYTE byRes[8];
}NET_ITC_INTERVAL_PARAM, *LPNET_ITC_INTERVAL_PARAM;

Members
byIntervalType
Interval type: 0-time (default), 1-distance.
byRes1
Reserved.
wInterval

93
Device Network SDK (ANPR) Developer Guide

Burst interval (unit: millisecond) or burst distance (unit: decimeter). The burst interval type is
determined by byIntervalType.
byRes
Reserved.

7.1.43 NET_ITC_IO_LIGHT_PARAM
Structure about IO access traffic light parameters.

Structure Definition
struct{
NET_ITC_SINGLE_IO_LIGHT_PARAM struIOLight[MAX_LIGHT_NUM/*6*/];
BYTE byRes[8];
}NET_ITC_IO_LIGHT_PARAM, *LPNET_ITC_IO_LIGHT_PARAM;

Members
struIOLight
Single IO access traffic light parameters, see details in the structure
NET_ITC_SINGLE_IO_LIGHT_PARAM .
byRes
Reserved.

See Also
NET_ITC_LIGHT_ACCESSPARAM_UNION

7.1.44 NET_ITC_LANE_HVT_PARAM_V50
Structure about the extended lane parameters of the mixed-traffic checkpoint.

Structure Definition
struct{
BYTE byLaneNO;
BYTE byFlashMode;
BYTE bySignSpeed;
BYTE bySpeedLimit;
BYTE bySignLowSpeed;
BYTE byLowSpeedLimit;
BYTE byBigCarSignSpeed;
BYTE byBigCarSpeedLimit;
BYTE byBigCarSignLowSpeed;
BYTE byBigCarLowSpeedLimit;
BYTE bySnapTimes;

94
Device Network SDK (ANPR) Developer Guide

BYTE byDriveLineSnapTime;
BYTE byHighSpeedSnapTime;
BYTE byLowSpeedSnapTime;
BYTE byBanSnapTime;
BYTE byReverseSnapTime;
BYTE byRelatedDriveWay;
BYTE byLaneType;
BYTE byRelaLaneDirectionType;
BYTE byRes1[29];
DWORD dwVioDetectType;
DWORD dwRelatedIOOut;
NET_ITC_LINE struTrigLine;
NET_ITC_LINE struLineLeft;
NET_ITC_POLYGON struPlateRecog;
NET_ITC_LANE_LOGIC_PARAM struLane;
NET_ITC_INTERVAL_PARAM struInterval;
BYTE byRes2[280];
}NET_ITC_LANE_HVT_PARAM_V50, *LPNET_ITC_LANE_HVT_PARAM_V50;

Members
byLaneNO
Linked lane No. used for overlaying and uploading, ranging from 1 to 255.
byFlashMode
Flashing mode of the flash light: 0-simultaneous, 1-sequential.
bySignSpeed
Maximum marked speed limit for small-sized vehicle, unit: km/h.
bySpeedLimit
Maximum speed limit for small-sized vehicle, unit: km/h.
bySignLowSpeed
Minimum marked speed limit for small-sized vehicle, unit: km/h.
byLowSpeedLimit
Minimum speed limit for small-sized vehicle, unit: km/h.
byBigCarSignSpeed
Maximum marked speed limit for large-sized vehicle, unit: km/h.
byBigCarSpeedLimit
Maximum speed limit for large-sized vehicle, unit: km/h.
byBigCarSignLowSpeed
Minimum marked speed limit for large-sized vehicle, unit: km/h.
byBigCarLowSpeedLimit
Minimum speed limit for large-sized vehicle, unit: km/h.
bySnapTimes

95
Device Network SDK (ANPR) Developer Guide

Number of captured pictures of checkpoint, ranging from 1 to 3.


byDriveLineSnapTime
Number of captured pictures of driving on the lane line, ranging from 1 to 3.
byHighSpeedSnapTime
Number of captured pictures of overspeed, ranging from 1 to 3.
byLowSpeedSnapTime
Number of captured pictures of low speed, ranging from 1 to 3.
byBanSnapTime
Number of captured pictures of prohibition violation, ranging from 1 to 3.
byReverseSnapTime
Number of captured pictures of wrong-way driving, ranging from 1 to 3.
byRelatedDriveWay
Linked lane No. used for matching vehicle detector.
byLaneType
Lane type: 0-unconfigured, 1-highway, 2-city express way, 0xff-other way.
byRelaLaneDirectionType
Linked lane direction type, see details in the structure ITC_RELA_LANE_DIRECTION_TYPE . It
corresponds to byRelatedDriveWay to ensure that the lane is unique.
byRes1
Reserved, set to 0.
dwVioDetectType
Violation detection type, represented by bit. For each bit, 0 means that this type is disabled, 1
means that this type is enabled. See details in the structure ITC_VIOLATION_DETECT_TYPE .
dwRelatedIOOut
Linked IO output port. Multiple ports can be linked simultaneously. The output port No. is
represented by bit, e.g., bit 0 refers to IO output port 1, bit 1 refers to IO output port 2, and so
on. For each bit, 0 means that the output port is not linked, and 1 means that the output port is
linked.
struTrigLine
Triggering line, see details in the structure NET_ITC_LINE . Currently only the triggering line of
the first lane is used.
struLineLeft
Left lane line, see details in the structure NET_ITC_LINE .
struPlateRecog
License plate recognition area parameters, see details in the structure NET_ITC_POLYGON .
struLane

96
Device Network SDK (ANPR) Developer Guide

Lane properties, see details in the structure NET_ITC_LANE_LOGIC_PARAM . In the structure


byUseageType and byCarDriveDirect are valid.
struInterval
Capture interval parameters, see details in the structure NET_ITC_INTERVAL_PARAM .
byRes2
Reserved, set to 0.

See Also
NET_ITC_POST_HVT_PARAM_V50

7.1.45 NET_ITC_LANE_IMT_PARAM
Structure about lane parameters for smart monitoring.

Structure Definition
struct{
BYTE byLaneNO;
BYTE byRelaLaneDirectionType;
BYTE byRes[146];
NET_ITC_LINE struLaneLine;
BYTE byRes1[256];
}NET_ITC_LANE_IMT_PARAM, *LPNET_ITC_LANE_IMT_PARAM;

Members
byLaneNO
Overlay lane No.
byRelaLaneDirectionType
Linked lane direction type, see details in the structure ITC_RELA_LANE_DIRECTION_TYPE . It
corresponds to the linked lane No. to ensure that the lane is unique.
byRes
Reserved, set to 0.
struLaneLine
Lane line, see details in the structure NET_ITC_LINE .
byRes1
Reserved, set to 0.

See Also
NET_ITC_POST_IMT_PARAM

97
Device Network SDK (ANPR) Developer Guide

7.1.46 NET_ITC_LANE_LOGIC_PARAM
Structure about lane attribute parameters

Structure Definition
struct{
BYTE byUseageType;
BYTE byDirectionType;
BYTE byCarDriveDirect;
BYTE byRes[33];
}NET_ITC_LANE_LOGIC_PARAM, *LPNET_ITC_LANE_LOGIC_PARAM;

Members
byUseageType
Lane usage type, see details in the structure ITC_LANE_USEAGE_TYPE .
byDirectionType
Lane direction type, see details in the structure ITC_LANE_DIRECTION_TYPE .
byCarDriveDirect
Vehicle driving direction, see details below:
enum{
ITC_LANE_DRIVE_UNKNOW = 0,
ITC_LANE_DRIVE_UP_TO_DOWN = 1,
ITC_LANE_DRIVE_DOWN_TO_UP = 2
}ITC_LANE_CAR_DRIVE_DIRECT

ITC_LANE_DRIVE_UNKNOW
Unknown.
ITC_LANE_DRIVE_UP_TO_DOWN
Driving from top to bottom on image (down direction).
ITC_LANE_DRIVE_DOWN_TO_UP
Driving from bottom to top on image (up direction).
byRes
Reserved, set to 0.

See Also
NET_ITC_LANE_HVT_PARAM_V50
NET_ITC_LANE_VIDEO_EPOLICE_PARAM

98
Device Network SDK (ANPR) Developer Guide

7.1.47 NET_ITC_LANE_MPR_PARAM
Structure about the lane parameters in video recognition mode.

Structure Definition
struct{
BYTE byLaneNO;
union{
BYTE uLen[4];
struct{
BYTE byIONo;
BYTE byTriggerType;
BYTE byRes1[2];
}struIO;
struct{
BYTE byRelateChan;
BYTE byRes2[3];
}struRS485;
}uTssParamInfo;
BYTE byCarDriveDirect;
BYTE byRes[58];
NET_ITC_LINE struLaneLine;
NET_ITC_POLYGON struPlateRecog;
BYTE byRes1[256];
}NET_ITC_LANE_MPR_PARAM,*LPNET_ITC_LANE_MPR_PARAM;

Members
byLaneNO
Vehicle lane No.
uTssParamInfo
Triggering parameter union, see details below.
uLen
Union size, which is 4 bytes.
struIO
Structure about the parameters of alarm input triggering mode, see details below.
byIONo
Linked alarm input No., which starts from 1.
byTriggerType
Triggering mode, 0-falling edge,1-rising edge
byRes1
Reserved, set as 0.

99
Device Network SDK (ANPR) Developer Guide

struRS485
Structure about the parameters of RS-485 triggering mode, see details below.
byRelateChan
Linked vehicle detector No., which is between 1 and 16.
byRes2
Reserved, set as 0.
byCarDriveDirect
Vehicle driving direction, see details below:
enum{
ITC_LANE_DRIVE_UNKNOW = 0,
ITC_LANE_DRIVE_UP_TO_DOWN = 1,
ITC_LANE_DRIVE_DOWN_TO_UP = 2
}ITC_LANE_CAR_DRIVE_DIRECT

ITC_LANE_DRIVE_UNKNOW
Unknown.
ITC_LANE_DRIVE_UP_TO_DOWN
Drive from top to bottom on image.
ITC_LANE_DRIVE_DOWN_TO_UP
Drive from bottom to top on image.
byRes
Reserved
struLaneLine
Lane line, see details in the structure NET_ITC_LINE .
struPlateRecog
License plate region information, see details in the structure NET_ITC_POLYGON .
byRes1
Reserved

Remarks
The structure struIO in the union uTssParamInfo is valid when the value of parameter
bySourceType (in structure NET_ITC_POST_MPR_PARAM ) equal to1; the structure struRS485 in
the union uTssParamInfo is valid when the value of parameter bySourceType (in structure
NET_ITC_POST_MPR_PARAM ) equal to 2.

7.1.48 NET_ITC_LANE_NOCOMITY_PEDESTRIAN_PARAM
Structure about lane parameters of triggering mode of not yielding to pedestrian.

100
Device Network SDK (ANPR) Developer Guide

Structure Definition
struct{
BYTE byRelatedDriveWay;
BYTE byRelaLaneDirectionType;
BYTE byPedestriansNum;
BYTE byVehicleSpeed;
DWORD dwVehicleInterval;
BYTE byPedesDetRule;
BYTE byRes[3];
NET_ITC_LINE struLaneLine;
NET_ITC_LINE struStopLine;
NET_ITC_POLYGON struPlateRecog;
BYTE byRes1[280];
}NET_ITC_LANE_NOCOMITY_PEDESTRIAN_PARAM, *LPNET_ITC_LANE_NOCOMITY_PEDESTRIAN_PARAM;

Members
byRelatedDriveWay
Linked lane No.
byRelaLaneDirectionType
Linked lane direction type.
byPedestriansNum
Number of pedestrian threshold, ranging from 1 to 100, the default value is 1.
byVehicleSpeed
Vehicle speed threshold, ranging from 1 to 100, the default value is 0.
dwVehicleInterval
Vehicle following detection threshold, ranging from 0 to 65536, the default value is 0.
byPedesDetRule
Pedestrian detection rule, which indicates the walking direction of the pedestrian in the
detection area: 0-from right to left, 1-from left to right.
byRes
Reserved, set to 0.
struLaneLine
Lane line, see details in the structure NET_ITC_LINE .
struStopLine
Stop line, see details in the structure NET_ITC_LINE .
struPlateRecog
License plate recognition area, see details in the structure NET_ITC_POLYGON .
byRes1

101
Device Network SDK (ANPR) Developer Guide

Reserved, set to 0.

See Also
NET_ITC_NOCOMITY_PEDESTRIAN_PARAM

7.1.49 NET_ITC_LANE_PARAM
Lane parameter structure

Structure Definition
struct{
BYTE byEnable;
BYTE byRelatedDriveWay;
WORD wDistance;
WORD wTrigDelayTime;
BYTE byTrigDelayDistance;
BYTE bySpeedCapEn;
BYTE bySignSpeed;
BYTE bySpeedLimit;
BYTE bySnapTimes;
BYTE byOverlayDriveWay;
NET_ITC_INTERVAL_PARAM struInterval;
BYTE byRelatedIOOut[MAX_IOOUT_NUM];
BYTE byFlashMode;
BYTE byCartSignSpeed;
BYTE byCartSpeedLimit;
BYTE byRelatedIOOutEx;
NET_ITC_PLATE_RECOG_REGION_PARAM struPlateRecog[MAX_LANEAREA_NUM];
BYTE byLaneType;
BYTE byUseageType;
BYTE byRelaLaneDirectionType;
BYTE byLowSpeedLimit;
BYTE byBigCarLowSpeedLimit;
BYTE byLowSpeedCapEn;
BYTE byEmergencyCapEn;
BYTE byRes[9];
}NET_ITC_LANE_PARAM,*LPNET_ITC_LANE_PARAM;

Members
byEnable
Whether to enable this lane: 0-no, 1-yes.
byRelatedDriveWay
Linked lane No., which matches with the lane of vehicle detector, and it is used for capture.
wDistance

102
Device Network SDK (ANPR) Developer Guide

Distance between two coils, which is used for calculating speed.


wTrigDelayTime
Trigger delay time, unit: millisecond, the default value is 200.
byTrigDelayDistance
Trigger delay distance, unit: decimetre, the default value is 0.
bySpeedCapEn
Whether to trigger capture when overspeed is detected: 0-no, 1-yes.
bySignSpeed
Speed limit sign, unit: km/h
bySpeedLimit
Limit speed, unit: km/h.
bySnapTimes
Times of capture: 0-not capture, non-0-continuous capture, the maximum value is 5, the default
value is 1.
byOverlayDriveWay
Lane No. to be displayed on video, which is the actual lane No.
struInterval
Time interval of capture, refer to the structure NET_ITC_INTERVAL_PARAM for details.
byRelatedIOOut
Linked alarm output No., and multiple alarm outputs can be linked.
byFlashMode
Flash mode of flash light: 0-flash at same time, 1-switch to flash.
byCartSignSpeed
Speed limit sign of large-sized vehicle, unit: km/h.
byCartSpeedLimit
Limit speed of large-sized vehicle, unit: km/h.
byRelatedIOOutEx
Linked alarm output No., which is represented by bit: bit0-alarm output 1, bit1-alarm output 2,
and so on. The value of bit: 0-not linked, 1-linked. Up to 8 alarm outputs can be linked. This
parameter compatible with the parameter byRelatedIOOut.
struPlateRecog
ANPR region parameters, refer to the structure NET_ITC_PLATE_RECOG_REGION_PARAM for
details.
byLaneType
Lane type: 0-not configured, 1-highway, 1-urban expressway, 0xff-other road.

103
Device Network SDK (ANPR) Developer Guide

byUseageType
Lane usage, which is enumerated in ITC_LANE_USEAGE_TYPE .
byRelaLaneDirectionType
Linked lane direction, which is enumerated in ITC_RELA_LANE_DIRECTION_TYPE .
byLowSpeedLimit
Low speed limit of small-sized vehicle, unit: km/h.
byBigCarLowSpeedLimit
Low speed limit of large-sized vehicle, unit: km/h.
byLowSpeedCapEn
Whether to trigger capture when low speed is detected: 0-no, 1-yes.
byEmergencyCapEn
Whether to trigger capture when emergency lane occupation is detected.
byRes
Reserved.

Remarks

7.1.50 NET_ITC_LANE_PRS_PARAM
Structure about lane parameters of video detection triggering mode.

Structure Definition
struct{
BYTE byLaneNO;
union{
BYTE uLen[4];
struct{
BYTE byIONo;
BYTE byTriggerType;
BYTE byRes1[2];
}struIO;
struct{
BYTE byRelateChan;
BYTE byRes2[3];
}struRS485;
}uTssParamInfo;
BYTE byRes[59];
NET_ITC_LINE struLaneLine;
NET_ITC_POLYGON struPlateRecog;
BYTE byRelaLaneDirectionType;
BYTE byRes2[3];
NET_ITC_LINE struTrigLine;

104
Device Network SDK (ANPR) Developer Guide

BYTE byRes1[228];
}NET_ITC_LANE_PRS_PARAM, *LPNET_ITC_LANE_PRS_PARAM;

Members
byLaneNO
Lane No.
uTssParamInfo
Triggering parameters information union, see its members below:
uLen
Union size (4 bytes).
struIO
Structure about triggering mode parameters, see its members below:
byIONo
Linked IO No., starting from 1.
byTriggerType
Triggering mode: 0-falling edge, 1-rising edge.
byRes1
Reserved, set to 0.
struRS485
Structure about RS-485 triggering mode parameters, see its members below:
byRelateChan
Linked vehicle detector channel No., ranging from 1 to 16.
byRes2
Reserved, set to 0.
byRes
Reserved.
struLaneLine
Lane line, see details in the structure NET_ITC_LINE .
struPlateRecog
License plate recognition area, see details in the structure NET_ITC_POLYGON .
byRelaLaneDirectionType
Linked lane direction type, see details in the structure ITC_RELA_LANE_DIRECTION_TYPE .
byRes2
Reserved.
struTrigLine

105
Device Network SDK (ANPR) Developer Guide

Triggering line, see details in the structure NET_ITC_LINE .


byRes1
Reserved.

See Also
NET_ITC_POST_PRS_PARAM

7.1.51 NET_ITC_LANE_VIDEO_EPOLICE_PARAM
Structure about the lane parameters of video intersection violation system triggering mode.

Structure Definition
struct{
BYTE byLaneNO;
BYTE bySensitivity;
BYTE byEnableRadar;
BYTE byRelaLaneDirectionType;
NET_ITC_LANE_LOGIC_PARAM struLane;
NET_ITC_VIOLATION_DETECT_PARAM struVioDetect;
NET_ITC_VIOLATION_DETECT_LINE struLine;
NET_ITC_POLYGON struPlateRecog;
BYTE byRecordEnable;
BYTE byRecordType;
BYTE byPreRecordTime;
BYTE byRecordDelayTime;
BYTE byRecordTimeOut;
BYTE byCarSpeedLimit;
BYTE byCarSignSpeed;
BYTE bySnapPicPreRecord;
NET_ITC_INTERVAL_PARAM struInterval;
BYTE byRes[36];
}NET_ITC_LANE_VIDEO_EPOLICE_PARAM, *LPNET_ITC_LANE_VIDEO_EPOLICE_PARAM;

Members
byLaneNO
Linked lane No.
bySensitivity
Coil sensitivity, ranging from 1 to 100.
byEnableRadar
Whether to enable radar detection: 0-no, 1-yes.
byRelaLaneDirectionType

106
Device Network SDK (ANPR) Developer Guide

Linked lane direction type, see details in the structure ITC_RELA_LANE_DIRECTION_TYPE . It


corresponds to the linked lane No. to ensure that the lane is unique.
struLane
Lane parameters, see details in the structure NET_ITC_LANE_LOGIC_PARAM .
struVioDetect
Violation detection parameters, see details in the structure
NET_ITC_VIOLATION_DETECT_PARAM .
struLine
Violation detection line, see details in the structure NET_ITC_VIOLATION_DETECT_LINE .
struPlateRecog
License plate recognition area parameters, see details in the structure NET_ITC_POLYGON .
byRecordEnable
Whether to record by cycle for running red light event: 0-no, 1-yes.
byRecordType
Recording type for running red light event: 0-pre-record, 1-post-record.
byPreRecordTime
Pre-record time for running red light event, the default value is 0, unit: second.
byRecordDelayTime
Post-record time for running red light event, the default value is 0, unit: second.
byRecordTimeOut
Cycle recording timeout for running red light event, unit: second.
byCarSpeedLimit
Vehicle speed limit, unit: km/h.
byCarSignSpeed
Marked speed limit, unit: km/h.
bySnapPicPreRecord
Pre-record time for capturing pictures: 0-default (the second picture), 1-the first picture, 2-the
second picture, 3-the third picture.
struInterval
Capture interval parameters, see details in the structure NET_ITC_INTERVAL_PARAM .
byRes
Reserved, set to 0.

107
Device Network SDK (ANPR) Developer Guide

7.1.52 NET_ITC_LIGHT_ACCESSPARAM_UNION
Traffic light connection parameters union.

Structure Definition
union {
DWORD uLen[122];
NET_ITC_IO_LIGHT_PARAM struIOLight;
NET_ITC_RS485_LIGHT_PARAM struRS485Light;
NET_ITC_VIDEO_DETECT_LIGHT_PARAM struVideoDelectLight;
}NET_ITC_LIGHT_ACCESSPARAM_UNION, *LPNET_ITC_LIGHT_ACCESSPARAM_UNION;

Members
uLen
Union size.
struIOLight
IO access traffic light parameters, see details in the structure NET_ITC_IO_LIGHT_PARAM .
struRS485Light
RS-485 access traffic light parameters, see details in the structure
NET_ITC_RS485_LIGHT_PARAM .
struVideoDelectLight
Traffic light parameters detected in the video, see details in the structure
NET_ITC_VIDEO_DETECT_LIGHT_PARAM .

See Also
NET_ITC_TRAFFIC_LIGHT_PARAM

7.1.53 NET_ITC_LINE
Traffic line information structure

Structure Definition
struct{

struLine;
BYTE byLineType;
BYTE byRes[7];
}NET_ITC_LINE, *LPNET_ITC_LINE;

108
Device Network SDK (ANPR) Developer Guide

Members
struLine
Traffic line parameters.
byLineType
Traffic line type, see details below.
enum{
ITC_LINT_UNKNOW = 0,
ITC_LINE_WHITE = 1,
ITC_LINE_STOP = 2,
ITC_LINE_SINGLE_YELLOW = 3,
ITC_LINE_DOUBLE_YELLOW = 4,
ITC_LINE_GUARD_RAIL = 5,
ITC_LINE_NO_CROSS = 6
}ITC_LINE_TYPE

ITC_LINT_UNKNOW
Unknown
ITC_LINE_WHITE
Solid white line between lanes
ITC_LINE_STOP
Stop line
ITC_LINE_SINGLE_YELLOW
Single yellow line
ITC_LINE_DOUBLE_YELLOW
Double yellow line
ITC_LINE_GUARD_RAIL
Guardrail on the lane
ITC_LINE_NO_CROSS
No-Crossing line
byRes1
Reserved, set to 0.

7.1.54 NET_ITC_NOCOMITY_PEDESTRIAN_PARAM
Structure about triggering parameters of not yielding to pedestrian.

109
Device Network SDK (ANPR) Developer Guide

Structure Definition
struct{
BYTE byEnable;
BYTE byLaneNum;
BYTE byRes[74];
NET_ITC_LINE struLaneBoundaryLine;
NET_ITC_LINE struTriggerLine;
NET_ITC_POLYGON struPedesDetRecog;
NET_ITC_LANE_NOCOMITY_PEDESTRIAN_PARAM struLaneParam[MAX_ITC_LANE_NUM/*6*/];
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;
BYTE byRes1[400];
}NET_ITC_NOCOMITY_PEDESTRIAN_PARAM, *LPNET_ITC_NOCOMITY_PEDESTRIAN_PARAM;

Members
byEnable
Whether to enable: 0-no, 1-yes.
byLaneNum
Number of recognized lanes, ranging from 1 to 3.
byRes
Reserved, set to 0.
struLaneBoundaryLine
Border line of the lane, which is the border line of the rightmost lane, see details in the
structure NET_ITC_LINE .
struTriggerLine
Triggering line of not yielding to pedestrian, see details in the structure NET_ITC_LINE .
struPedesDetRecog
Pedestrian detection area, see details in the structure NET_ITC_POLYGON .
struLaneParam
Lane parameters, each array represents a lane, see details in the structure
NET_ITC_LANE_NOCOMITY_PEDESTRIAN_PARAM .
struPlateRecog
License plate recognition parameters, see details in the structure
NET_ITC_PLATE_RECOG_PARAM .
byRes1
Reserved, set to 0.

See Also
NET_ITC_TRIGGER_PARAM_UNION

110
Device Network SDK (ANPR) Developer Guide

7.1.55 NET_ITC_PLATE_RECOG_PARAM
ANPR parameter structure.

Structure Definition
struct{
BYTE byDefaultCHN[MAX_CHJC_NUM/*3*/];
BYTE byEnable;
DWORD dwRecogMode;
BYTE byVehicleLogoRecog;
BYTE byProvince;
BYTE byRegion;
BYTE byRes1;
WORD wPlatePixelWidthMin;
WORD wPlatePixelWidthMax;
BYTE byRes[24];
}NET_ITC_PLATE_RECOG_PARAM,*LPNET_ITC_PLATE_RECOG_PARAM;

Members
byDefaultCHN
Province
byEnable
Whether to enable ANPR for this region: 0-no, 1-yes.
dwRecogMode
Recognition type:
● bit0-Recognition direction: 0-from front, 1-from back (back plate recognition);

● bit1-License plate size: 0-small,1-large;

● bit2-Vehicle color: 0-disable, 1-enable;

● bit3-Farm vehicle: 0-disable, 1-enable;

● bit4-Fuzzy recognition: 0-disable, 1-enable;

● bit5-Positioning mode: 0-positioning by frame, 1-positioning by scene;

● bit6-Recognition mode: 0-recognize by frame, 1-recognize by scene;

● bit7-Day or night: 0-day, 1-night

● bit8-Motorcycle: 0-disable, 1-enable;

● bit9-Scene mode: 0-intersection violation system/video, 1-checkpoint

● bit10-Mini license plate: 0-disable, 1-enable (60 to 80 pixels)

● bit12-Civil license plate: 0-disable, 1-enable;

● bit13-Overtilted license plate: 0-disable, 1-enable;

● bit14-Oversized license plate: 0-disable, 1-enable;

● bit15-Sun shield detection: 0-disable, 1-enable;

● bit16-Yellow-label vehicle detection: 0-disable, 1-enable;

● bit17-Dangerous goods vehicle detection: 0-disable, 1-enable;

111
Device Network SDK (ANPR) Developer Guide

● bit18-Embassy vehicle detection: 0-disable, 1-enable;


● bit19-Vehicle sub brand recognition: 0-disable, 1-enable;
byVehicleLogoRecog
Whether to enable vehicle brand recognition: 0-no, 1-yes
byProvince
Reserved
byRegion
Region No.: 0-reserved, 1-Europe, 2-Russian, 3-Europe and Russian (EU&CIS)
byRes1
Reserved
wPlatePixelWidthMin
Minimum width of license plate that can be recognized, unit: pixel, range: [130,500]
wPlatePixelWidthMax
Maximum width of license plate that can be recognized, unit: pixel, range: [130,500]
byRes
Reserved.

7.1.56 NET_ITC_PLATE_RECOG_REGION_PARAM
Structure about license plate recognition area parameters.

Structure Definition
struct{
BYTE byMode;
BYTE byRes1[3];
union{
NET_VCA_RECT struRect;
NET_ITC_POLYGON struPolygon;
}uRegion;
BYTE byRes[16];
}NET_ITC_PLATE_RECOG_REGION_PARAM, *LPNET_ITC_PLATE_RECOG_REGION_PARAM;

Members
byMode
Area type: 0-rectangle area, 1-polygon area.
byRes1
Reserved.
struRect

112
Device Network SDK (ANPR) Developer Guide

Rectangle area, see details in the structure NET_VCA_RECT .


struPolygon
Polygon area, see details in the structure NET_ITC_POLYGON .
byRes
Reserved.

7.1.57 NET_ITC_POLYGON
Polygon information structure.

Structure Definition
struct{
DWORD dwPointNum;
NET_VCA_POINT struPos[ITC_MAX_POLYGON_POINT_NUM/*20*/];
}NET_ITC_POLYGON,*LPNET_ITC_POLYGON;

Members
dwPointNum
Number of valid points, which should be larger than and equal to 3, if three points are on a
straight line, or the lines crossed, it indicates the invalid region.
struPo
Polygon boundary points, the maximum number is 20, refer to the structure NET_VCA_POINT
for details.

7.1.58 NET_ITC_POST_HVT_PARAM_V50
Structure about the extended parameters of the mixed-traffic checkpoint.

Structure Definition
struct{
BYTE byLaneNum;
BYTE byCapType;
BYTE byCapMode;
BYTE bySceneMode;
BYTE bySpeedMode;
BYTE byLineRuleEffect;
BYTE byRes1[78];
NET_ITC_LINE struLeftTrigLine;
NET_ITC_LINE struRigtTrigLine;
NET_ITC_LINE struLaneBoundaryLine;
NET_ITC_POLYGON struDetectArea;
NET_DVR_GEOGLOCATION struGeogLocation;

113
Device Network SDK (ANPR) Developer Guide

NET_ITC_LANE_HVT_PARAM_V50 struLaneParam[MAX_ITC_LANE_NUM/*6*/];
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;
BYTE byRes2[260];
}NET_ITC_POST_HVT_PARAM_V50, *LPNET_ITC_POST_HVT_PARAM_V50;

Members
byLaneNum
Number of recognized lanes, ranging from 1 to 6.
byCapType
Capture type: 0-motor vehicle, non-motor vehicle and pedestrian (default), 1-motor vehicle.
byCapMode
Capture mode: 0-video frame extracting, 1-interrupt and capture, 2-mixed mode.
bySceneMode
Scene type: 0-city roads (default), 1-community entrance and exit, 2-highway.
bySpeedMode
Speed detection mode: 0-no speed detection, 1-radar speed detection, 2-video speed
detection.
byLineRuleEffect
Validity of triggering rule line, each bit represents a triggering rule line, bit0-left triggering rule
line, bit1-right triggering rule line, bit2-video detection area.
byRes1
Reserved, set to 0.
struLeftTrigLine
Left triggering line, which is a vertical line.
struRigtTrigLine
Right triggering line, which is a vertical line.
struLaneBoundaryLine
Border line of the lane, which is the right border line of the rightmost lane.
struDetectArea
Video detection area, see details in the structure NET_ITC_POLYGON .
struGeogLocation
Address and location, see details in the structure NET_DVR_GEOGLOCATION .
struLaneParam
Properties of a single lane, each array indicates a kind of lane information, see details in the
structure NET_ITC_LANE_HVT_PARAM_V50 .
struPlateRecog

114
Device Network SDK (ANPR) Developer Guide

License plate recognition parameters, see details in the structure


NET_ITC_PLATE_RECOG_PARAM .
byRes2
NET_ITC_TRIGGER_PARAM_UNION

7.1.59 NET_ITC_POST_IMT_PARAM
Structure about configuration parameters for smart monitoring.

Structure Definition
struct{
BYTE byEnable;
BYTE byLaneNum;
BYTE bySnapMode;
BYTE byRes[61];
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;
NET_ITC_LINE struLaneBoundaryLine;
NET_ITC_LANE_IMT_PARAM struLaneParam[MAX_ITC_LANE_NUM/*6*/];
BYTE byRes1[1584];
}NET_ITC_POST_IMT_PARAM, *LPNET_ITC_POST_IMT_PARAM;

Members
byEnable
Whether to enable smart monitoring mode: 0-disable, 1-enable.
byLaneNum
Number of recognized lanes, ranging from 1 to 6.
bySnapMode
Capture type: 0-motor vehicle, 1-motor vehicle, non-motor vehicle, and pedestrian.
byRes
Reserved, set to 0.
struPlateRecog
License plate recognition parameters, see details in the structure
NET_ITC_PLATE_RECOG_PARAM .
struLaneBoundaryLine
Lane boundary line, which is the left boundary line of the leftmost lane, see details in the
structure NET_ITC_LINE .
struLaneParam
Properties of a single lane, see details in the structure NET_ITC_LANE_IMT_PARAM .
byRes1

115
Device Network SDK (ANPR) Developer Guide

Reserved, set to 0.

See Also
NET_ITC_TRIGGER_PARAM_UNION

7.1.60 NET_ITC_POST_IOSPEED_PARAM
Structure about checkpoint IO speed detection parameters.

Structure Definition
struct{
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;
NET_ITC_SINGLE_IOSPEED_PARAM struSingleIOSpeed[MAX_IOSPEED_GROUP_NUM/*4*/];
BYTE byRes[32];
}NET_ITC_POST_IOSPEED_PARAM, *LPNET_ITC_POST_IOSPEED_PARAM;

Members
struPlateRecog
License plate recognition parameters, see details in the structure
NET_ITC_PLATE_RECOG_PARAM .
struSingleIOSpeed
Parameters of a single IO speed detection group, see details in the structure
NET_ITC_SINGLE_IOSPEED_PARAM .
byRes
Reserved.

See Also
NET_ITC_TRIGGER_PARAM_UNION

7.1.61 NET_ITC_POST_MOBILE_PARAM
Structure about mobile traffic triggering parameters.

Structure Definition
struct{
BYTE byEnable;
BYTE bySceneMode;
WORD wExpressWayCapType;
WORD wUrbanRoadCapType;
BYTE byCapNum;
BYTE byRecordEnable;

116
Device Network SDK (ANPR) Developer Guide

DWORD dwPreRecordTime;
DWORD dwOverRecordTime;
BYTE byRes[256];
}NET_ITC_POST_MOBILE_PARAM, *LPNET_ITC_POST_MOBILE_PARAM;

Members
byEnable
Whether to enable: 0-no, 1-yes.
bySceneMode
Scene mode: 0-highway, 1-city road.
wExpressWayCapType
Highway capture type, represented by bit: bit0-checkpoint, bit1-large-sized vehicle occupying
lane, bit2-driving on hard shoulder.
wUrbanRoadCapType
City road capture type, represented by bit: bit0-checkpoint, bit1-motor vehicle on non-motor
vehicle lane, bit2-occupying dedicated lane.
byCapNum
Number of captured pictures, ranging from 2 to 3.
byRecordEnable
Whether to enable violation recording: 0-no, 1-yes.
dwPreRecordTime
Pre-record time, unit: second.
dwOverRecordTime
Recording timeout, unit: second.
byRes
Reserved, set to 0.

See Also
NET_ITC_TRIGGER_PARAM_UNION

7.1.62 NET_ITC_POST_MPR_PARAM
Structure about the trigger parameters of multi-frame detection.

Structure Definition
struct{
BYTE byEnable;
BYTE byLaneNum;
BYTE bySourceType;

117
Device Network SDK (ANPR) Developer Guide

BYTE byPicUploadType;
BYTE byRoadType;
BYTE byRes2;
WORD wCustomDelayTime;
BYTE byRes[56];
NET_ITC_LINE struLaneBoundaryLine;
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;
NET_ITC_LANE_MPR_PARAM struLaneParam[MAX_ITC_LANE_NUM/*6*/];
char szSceneName[NAME_LEN/*32*/];
NET_VCA_LINE struSnapLine;
BYTE byRes1[392];
}NET_ITC_POST_MPR_PARAM,*LPNET_ITC_POST_MPR_PARAM;

Members
byEnable
Whether to enable: 0-no, 1-yes
byLaneNum
Number of recognized lanes
bySourceType
Signal source type, 0-triggered by MPR (triggered by video), 1-troggered by alarm input
(inductive loop), 2-triggered by RS-485.
byPicUploadType
Picture uploading type: 0-upload all, 1-forward uploading, 2-backward uploading
byRoadType
Road Mode: 0-entrance/exit, 1-city road, 2-custom, 3-alarm input
byRes2
Reserved
wCustomDelayTime
Custom capture delay time (it is valid when byRoadType is "2"), value range: [0,15000], unit: ms
byRes
Reserved.
struLaneBoundaryLine
Left boundary of left lane, see details in the structure NET_ITC_LINE .
struPlateRecog
ANPR parameters, see details in NET_ITC_PLATE_RECOG_PARAM .
struLaneParam
Lane multi-frame detection parameters, see details in NET_ITC_LANE_MPR_PARAM .
szSceneName
Scene name

118
Device Network SDK (ANPR) Developer Guide

struSnapLine
Capture line, it valid when camera is mounted at road side, see details in NET_VCA_LINE .
byRes1
Reserved.

7.1.63 NET_ITC_POST_PRS_PARAM
Structure about parameters triggering video detection (PRS).

Structure Definition
struct{
BYTE byEnable;
BYTE byLaneNum;
BYTE bySourceType;
BYTE bySnapMode;
BYTE byCapMode;
BYTE byNoPlatCarCap;
BYTE bySceneMode;
BYTE byRes[57];
NET_ITC_LINE struLaneBoundaryLine;
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;
NET_ITC_LANE_PRS_PARAM struLaneParam[MAX_ITC_LANE_NUM/*6*/];
BYTE byRes1[440];
}NET_ITC_POST_PRS_PARAM, *LPNET_ITC_POST_PRS_PARAM;

Members
byEnable
Whether to enable: 0-no, 1-yes.
byLaneNum
Number of recognized lanes.
bySourceType
Signal source type: 0-video detection, 1-linked IO trigger (inductive loops), 2-linked RS-485
triggering signal.
bySnapMode
Capture mode: 0-panorama image, 1-panorama image+feature view.
byCapMode
0-strobe light mode, 1-flash light mode. It is valid when bySourceType is set to 0.
byNoPlatCarCap
Whether to capture vehicle without license plate: 0-no, 1-yes.
bySceneMode

119
Device Network SDK (ANPR) Developer Guide

Scene mode: 0-normal entrance and exit, 1-toll station (vehicles will stay for longer time), 2-
underground parking lot (there will be dark day and night).
byRes
Reserved, set to 0.
struLaneBoundaryLine
Lane boundary line, which is the left boundary line of the leftmost lane, see details in the
structure NET_ITC_LINE .
struPlateRecog
License plate recognition parameters, see details in the structure
NET_ITC_PLATE_RECOG_PARAM .
struLaneParam
Lane parameters, see details in the structure NET_ITC_LANE_PRS_PARAM .
byRes1
Reserved, set to 0.

See Also
NET_ITC_TRIGGER_PARAM_UNION

7.1.64 NET_ITC_POST_RS485_PARAM
Trigger parameter structure of RS-485 vehicle detector in the checkpoint.

Structure Definition
struct{
BYTE byRelatedLaneNum;
BYTE byTriggerSpareMode;
BYTE byFaultToleranceTime;
BYTE byRes1;
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;
NET_ITC_LANE_PARAM struLane[MAX_ITC_LANE_NUM/*6*/];
BYTE byRes[32];
}NET_ITC_POST_RS485_PARAM,*LPNET_ITC_POST_RS485_PARAM;

Members
byRelatedLaneNum
Number of linked lanes.
byTriggerSpareMode
Trigger mode for spare (when the coil trigger is in fault): 0-none, 1-wireless virtual coil mode, 2-
mixed checkpoint mode.

120
Device Network SDK (ANPR) Developer Guide

byFaultToleranceTime
Error tolerance time, unit: minute, which is used to check if the vehicle detector has normally
worked for maximum time period.
byRes1
Reserved.
struPlateRecog
ANPR parameters, refer to the structure NET_ITC_PLATE_RECOG_PARAM for details.
struLane
Linked lane parameters, refer to the structure NET_ITC_LANE_PARAM for details.
byRes
Reserved.

See Also
NET_ITC_TRIGGER_PARAM_UNION

7.1.65 NET_ITC_POST_RS485_RADAR_PARAM
Structure about checkpoint RS-485 radar triggering parameters.

Structure Definition
struct{
BYTE byRelatedLaneNum;
BYTE byRes1[3];
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;
NET_ITC_LANE_PARAM struLane[MAX_ITC_LANE_NUM/*6*/];
NET_ITC_RADAR_PARAM struRadar;
BYTE byRes[32];
}NET_ITC_POST_RS485_RADAR_PARAM, *LPNET_ITC_POST_RS485_RADAR_PARAM;

Members
byRelatedLaneNum
Number of linked lanes.
byRes1
Reserved.
struPlateRecog
License plate recognition parameters, see details in the structure
NET_ITC_PLATE_RECOG_PARAM .
struLane
Linked lane parameters, see details in the structure NET_ITC_LANE_PARAM .

121
Device Network SDK (ANPR) Developer Guide

struRadar
Radar parameters, see details in the structure NET_ITC_RADAR_PARAM .
byRes
Reserved.

See Also
NET_ITC_TRIGGER_PARAM_UNION

7.1.66 NET_ITC_POST_SINGLEIO_PARAM
Structure about single IO triggering parameters.

Structure Definition
struct{
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;
NET_ITC_SINGLEIO_PARAM struSingleIO[MAX_IOIN_NUMEX/*10*/];
}NET_ITC_POST_SINGLEIO_PARAM, *LPNET_ITC_POST_SINGLEIO_PARAM;

Members
struPlateRecog
License plate recognition parameters, see details in the structure
NET_ITC_PLATE_RECOG_PARAM .
struSingleIO
Single IO triggering parameters, the array 0 refers to IO 1, the array 1 refers to IO 2, and so on,
see details in the structure NET_ITC_SINGLEIO_PARAM .

See Also
NET_ITC_TRIGGER_PARAM_UNION

7.1.67 NET_ITC_POST_VTCOIL_PARAM
Structure of MPR trigger parameters in checkpoint.

Structure Definition
struct{
BYTE byEnable;
BYTE byLaneNum;
BYTE bySourceType;
BYTE byPicUploadType;
BYTE byRoadType;
BYTE byRes2;

122
Device Network SDK (ANPR) Developer Guide

WORD wCustomDelayTime;
BYTE byRes[56];
NET_ITC_LINE struLaneBoundaryLine;
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;
NET_ITC_LANE_MPR_PARAM struLaneParam[MAX_ITC_LANE_NUM/*6*/];
char szSceneName[NAME_LEN/*32*/];
NET_VCA_LINE struSnapLine;
BYTE byRes1[392];
}NET_ITC_POST_MPR_PARAM,*LPNET_ITC_POST_MPR_PARAM;

Members
byEnable
Whether to enable checkpoint MPR trigger mode: 0-no, 1-yes.
byLaneNum
Number of lanes to be recognized.
bySourceType
Signal source type: 0-MPR triggered (video), 1-linked IO triggered (ground coil), 2-linked RS-485
triggered.
byPicUploadType
Picture type to be uploaded: 0-upload all, 1-, 2-
byRoadType
Lane type: 0-entrance and exit, 1-urban road, 2-custom, 3-alarm input.
byRes2
Reserved.
wCustomDelayTime
Custom capture delay time, it is valid when byRoadType is "2", unit: ms, value range: [0,15000].
byRes
Reserved.
struLaneBoundaryLine
Left boundary line of left lane, refer to the structure NET_ITC_LINE for details.
truPlateRecog
ANPR parameters, refer to the structure NET_ITC_LANE_MPR_PARAM for details.
struLaneParam
MPR lane parameters, refer to the structure NET_ITC_PLATE_RECOG_PARAM for details.
szSceneName
Scene name.
struSnapLine

123
Device Network SDK (ANPR) Developer Guide

Capture line, it is valid only when the camera is mounted at road side, refer to the structure
NET_VCA_LINE for details.
byRes1
Reserved.

See Also
NET_ITC_TRIGGER_PARAM_UNION

7.1.68 NET_ITC_POST_MPR_PARAM
Structure about the trigger parameters of multi-frame detection.

Structure Definition
struct{
BYTE byEnable;
BYTE byLaneNum;
BYTE bySourceType;
BYTE byPicUploadType;
BYTE byRoadType;
BYTE byRes2;
WORD wCustomDelayTime;
BYTE byRes[56];
NET_ITC_LINE struLaneBoundaryLine;
NET_ITC_PLATE_RECOG_PARAM struPlateRecog;
NET_ITC_LANE_MPR_PARAM struLaneParam[MAX_ITC_LANE_NUM/*6*/];
char szSceneName[NAME_LEN/*32*/];
NET_VCA_LINE struSnapLine;
BYTE byRes1[392];
}NET_ITC_POST_MPR_PARAM,*LPNET_ITC_POST_MPR_PARAM;

Members
byEnable
Whether to enable: 0-no, 1-yes
byLaneNum
Number of recognized lanes
bySourceType
Signal source type, 0-triggered by MPR (triggered by video), 1-troggered by alarm input
(inductive loop), 2-triggered by RS-485.
byPicUploadType
Picture uploading type: 0-upload all, 1-forward uploading, 2-backward uploading
byRoadType

124
Device Network SDK (ANPR) Developer Guide

Road Mode: 0-entrance/exit, 1-city road, 2-custom, 3-alarm input


byRes2
Reserved
wCustomDelayTime
Custom capture delay time (it is valid when byRoadType is "2"), value range: [0,15000], unit: ms
byRes
Reserved.
struLaneBoundaryLine
Left boundary of left lane, see details in the structure NET_ITC_LINE .
struPlateRecog
ANPR parameters, see details in NET_ITC_PLATE_RECOG_PARAM .
struLaneParam
Lane multi-frame detection parameters, see details in NET_ITC_LANE_MPR_PARAM .
szSceneName
Scene name
struSnapLine
Capture line, it valid when camera is mounted at road side, see details in NET_VCA_LINE .
byRes1
Reserved.

7.1.69 NET_ITC_RADAR_PARAM
Radar parameter structure.

Structure Definition
struct{
BYTE byRadarType;
BYTE byLevelAngle;
WORD wRadarSensitivity;
WORD wRadarSpeedValidTime;
BYTE byRes1[2];
float fLineCorrectParam;
int iConstCorrectParam;
BYTE byRes2[8];
}NET_ITC_RADAR_PARAM, *LPNET_ITC_RADAR_PARAM;

Members
byRadarType

125
Device Network SDK (ANPR) Developer Guide

Radar type: 0-no radar, 1-Andoray radar, 2-Olvia, 3-TransMicrowave, 4-radar connecting I/O
expansion box (this parameter is only used in checkpoint virtual coil interface and is not used
for checkpoint RS-485 radar), 5-Andoray (without radar controller), 0xff-custom type.
byLevelAngle
Angle between the radar and the horizontal line, ranging from 0 degree to 90 degree, the
default value is 25 degree.
wRadarSensitivity
Radar sensitivity.
wRadarSpeedValidTime
Radar speed valid time, ranging from 0 to 2000, 0 means it is not supported.
byRes1
Reserved.
fLineCorrectParam
Linear correction parameter (for multiplying operation), ranging from 0.0 to 2.0.
iConstCorrectParam
Constant correction parameter (for adding and subtracting operation), ranging from -100 to
100.
byRes2
Reserved.

Remarks
In the checkpoint RS-485 radar triggering mode, the radar detection vehicle will be detected as
soon as the vehicle passes by, which means that the speed and the capture signal are received
almost simultaneously. Therefore, wRadarSpeedValidTime is invalid in this mode.

7.1.70 NET_ITC_REDLIGHT_PEDESTRIAN_PARAM
Structure about the parameters triggered by pedestrian running the red light.

Structure Definition
struct{
BYTE byEnable;
BYTE bySnapNumTimes;
BYTE byPedesDir;
BYTE byDelayTime;
BYTE byStackTargetEnble;
BYTE byCalibRecogCtrl;
BYTE byRes1[2];
NET_ITC_TRAFFIC_LIGHT_PARAM struTrafficLight;
NET_ITC_LINE struStopLine;

126
Device Network SDK (ANPR) Developer Guide

NET_ITC_POLYGON struCalibRecog[MAX_CALIB_RECOG_NUM/*2*/];
BYTE byRes[440];
}NET_ITC_REDLIGHT_PEDESTRIAN_PARAM, *LPNET_ITC_REDLIGHT_PEDESTRIAN_PARAM;

Members
byEnable
Whether to enable: 0-disable, 1-enable.
bySnapNumTimes
Number of captured pictures, ranging from 1 to 3, the default value is 3.
byPedesDir
Pedestrian direction: 0-forward, 1-backward, 2-bidirectional.
byDelayTime
Delay time, ranging from 1 to 5, unit: second.
byStackTargetEnble
Whether to overlay the target frame on the captured picture, which means that the pedestrian
running the red light on the first captured picture will be marked with a rectangle frame: 0-no,
1-yes.
byCalibRecogCtrl
Manage calibration areas: 0-delete the calibration area, 1-add a calibration area.
byRes1
Reserved, set to 0.
struTrafficLight
Traffic light parameters, see details in the structure NET_ITC_TRAFFIC_LIGHT_PARAM .
struStopLine
Stop line, see details in the structure NET_ITC_LINE .
struCalibRecog
Calibration area, see details in the structure NET_ITC_POLYGON .
byRes
Reserved, set to 0.

See Also
NET_ITC_TRIGGER_PARAM_UNION

7.1.71 NET_ITC_RS485_LIGHT_PARAM
Structure about RS-485 access traffic light parameters.

127
Device Network SDK (ANPR) Developer Guide

Structure Definition
struct{
NET_ITC_SINGLE_RS485_LIGHT_PARAM struRS485Light[MAX_LIGHT_NUM/*6*/];
BYTE byRes[8];
}NET_ITC_RS485_LIGHT_PARAM, *LPNET_ITC_RS485_LIGHT_PARAM;

Members
struRS485Light
Single RS-485 access traffic light parameters, see details in the structure
NET_ITC_SINGLE_RS485_LIGHT_PARAM .
byRes
Reserved, set to 0.

See Also
NET_ITC_LIGHT_ACCESSPARAM_UNION

7.1.72 NET_ITC_SINGLE_IO_LIGHT_PARAM
Structure about single IO access traffic light parameters.

Structure Definition
struct{
BYTE byLightType;
BYTE byRelatedIO;
BYTE byRedLightState;
BYTE byRes[17];
}NET_ITC_SINGLE_IO_LIGHT_PARAM, *LPNET_ITC_SINGLE_IO_LIGHT_PARAM;

Members
byLightType
Guiding direction type of the traffic light: 0-left turn signal, 1-straight signal, 2-right turn signal.
byRelatedIO
Linked IO port No., ranging from 1 to 6.
byRedLightState
Red light level status: 0-low-level red light, 1-high-level red light.
byRes
Reserved.

128
Device Network SDK (ANPR) Developer Guide

See Also
NET_ITC_IO_LIGHT_PARAM

7.1.73 NET_ITC_SINGLE_IOSPEED_PARAM
Structure about a single group of IO speed detection parameters.

Structure Definition
struct{
BYTE byEnable;
BYTE byTrigCoil1;
BYTE byCoil1IOStatus;
BYTE byTrigCoil2;
BYTE byCoil2IOStatus;
BYTE byRelatedDriveWay;
BYTE byTimeOut;
BYTE byRelatedIOOutEx;
DWORD dwDistance;
BYTE byCapSpeed;
BYTE bySpeedLimit;
BYTE bySpeedCapEn;
BYTE bySnapTimes1;
BYTE bySnapTimes2;
BYTE byBigCarSpeedLimit;
BYTE byBigCarSignSpeed;
BYTE byIntervalType;
WORD wInterval1[MAX_INTERVAL_NUM/*4*/];
WORD wInterval2[MAX_INTERVAL_NUM/*4*/];
BYTE byRelatedIOOut[MAX_IOOUT_NUM/*4*/];
BYTE byFlashMode;
BYTE byLaneType;
BYTE byCarSignSpeed;
BYTE byUseageType;
NET_ITC_PLATE_RECOG_REGION_PARAM struPlateRecog[MAX_LANEAREA_NUM/*2*/];
BYTE byRelaLaneDirectionType;
BYTE byLowSpeedLimit;
BYTE byBigCarLowSpeedLimit;
BYTE byLowSpeedCapEn;
BYTE byEmergencyCapEn;
BYTE byRes[27];
}NET_ITC_SINGLE_IOSPEED_PARAM, *LPNET_ITC_SINGLE_IOSPEED_PARAM;

Members
byEnable
Whether to enable: 0-no, 1-yes.
byTrigCoil1

129
Device Network SDK (ANPR) Developer Guide

Coil 1 linked IO: 0-IO1, 1-IO2, 2-IO3, 3-IO4, 4-IO5, 5-IO6.


byCoil1IOStatus
Coil 1 IO input port status: 0-falling edge (default), 1-rising edge, 2-rising edge and falling edge,
3-high level, 4-low level.
byTrigCoil2
Cpil 2 linked IO: 0-IO1, 1-IO2, 2-IO3, 3-IO4, 4-IO5, 5-IO6.
byCoil2IOStatus
Coil 2 IO input port status: 0-falling edge (default), 1-rising edge, 2-rising edge and falling edge,
3-high level, 4-low level.
byRelatedDriveWay
Linked lane No.
byTimeOut
Timeout, the default value is 10, unit: second.
byRelatedIOOutEx
Linked IO output port. The output port No. is represented by bit, e.g., bit 0 refers to IO output
port 1, bit 1 refers to IO output port 2, and so on. For each bit, 0 means that the output port is
not linked, and 1 means that the output port is linked. Up to 8 IO output ports can be linked.
This member is compatible with byRelatedIOOut.
dwDistance
Coil distance, the default value is 1000, unit: centimeter.
byCapSpeed
Capture triggered speed, the default value is 30, unit: km/h.
bySpeedLimit
Speed limit, the default value is 60, unit: km/h.
bySpeedCapEn
Whether to enable overspeed capture: 0-no, 1-yes.
bySnapTimes1
Coil 1 capture times: 0-not capture (default), other value-number of pictures per burst capture
(the maximum value is 5).
bySnapTimes2
Coil 2 capture times (the default value is 1): 0-not capture, other value-number of pictures per
burst capture (the maximum value is 5).
byBigCarSpeedLimit
Speed limit for large-sized vehicle.
byBigCarSignSpeed
Marked speed limit for large-sized vehicle, unit: km/h.

130
Device Network SDK (ANPR) Developer Guide

byIntervalType
Interval type: 0-time (default), 1-distance.
wInterval1
Coil 1 burst interval (unit: millisecond) or burst distance (unit: decimeter). The burst interval
type is determined by byIntervalType.
wInterval2
Coil 2 burst interval (unit: millisecond) or burst distance (unit: decimeter). The burst interval
type is determined by byIntervalType.
byRelatedIOOut
Linked IO output port. Multiple ports can be linked simultaneously. The array 0 refers to IO
output port 1, the array 1 refers to IO output port 2, and so on. 0 means that the output port is
not linked, and 1 means that the output port is linked.
byFlashMode
Flashing mode of the flash light: 0-simultaneous, 1-sequential.
byLaneType
Lane type: 0-unconfigured, 1-highway, 2-city express way, 0xff-other way.
byCarSignSpeed
Marked speed limit for small-sized vehicle, unit: km/h.
byUseageType
Lane usage type, see details in the structure ITC_LANE_USEAGE_TYPE .
struPlateRecog
License plate recognition parameters, see details in the structure
NET_ITC_PLATE_RECOG_REGION_PARAM . One license plate recognition area is available, and
the other one is reserved.
byRelaLaneDirectionType
Linked lane direction type, see details in the structure ITC_RELA_LANE_DIRECTION_TYPE .
byLowSpeedLimit
Minimum speed limit for small-sized vehicle, unit: km/s.
byBigCarLowSpeedLimit
Minimum speed limit for large-sized vehicle, unit: km/s.
byLowSpeedCapEn
Whether to enable low speed capture: 0-no, 1-yes.
byEmergencyCapEn
Whether to enable occupying emergency lane capture: 0-no, 1-yes.
byRes

131
Device Network SDK (ANPR) Developer Guide

Reserved.

See Also
NET_ITC_POST_IOSPEED_PARAM

7.1.74 NET_ITC_SINGLE_IOTL_PARAM
Structure about a single group of IO traffic light parameters for the intersection violation system.

Structure Definition
struct{
BYTE byEnable;
BYTE byLightIO;
BYTE byTrafficLight;
BYTE byTrigIO;
BYTE byTrigIOStatus;
BYTE byRelatedDriveWay;
BYTE byRecordEnable;
BYTE byRecordType;
BYTE byPreRecordTime;
BYTE byRecordDelayTime;
BYTE byRecordTimeOut;
BYTE byRedSnapTimes;
BYTE byGreenSnapTimes;
BYTE byRelatedIOOutEx;
BYTE byRes1;
BYTE byIntervalType;
WORD wRedInterval[MAX_INTERVAL_NUM/*4*/];
WORD wGreenInterval[MAX_INTERVAL_NUM/*4*/];
BYTE byRelatedIOOut[MAX_IOOUT_NUM/*4*/];
BYTE byFlashMode;
BYTE byRes2[3];
NET_ITC_PLATE_RECOG_REGION_PARAM struPlateRecog[MAX_LANEAREA_NUM/*2*/];
BYTE byRes[32];
}NET_ITC_SINGLE_IOTL_PARAM, *LPNET_ITC_SINGLE_IOTL_PARAM;

Members
byEnable
Whether to enable: 0-no, 1-yes.
byLightIO
Traffic light IO: 0-IO1, 1-IO2, 2-IO3, 3-IO4, 4-IO5, 5-IO6.
byTrafficLight
Valid status of the traffic light: 0-high-level red light and low-level green light, 1-high-level green
light and low-level red light.

132
Device Network SDK (ANPR) Developer Guide

byTrigIO
Triggered IO port No.: 0-IO1, 1-IO2, 2-IO3, 3-IO4, 4-IO5, 5-IO6.
byTrigIOStatus
Triggered IO port status: 0-falling edge (default), 1-rising edge, 2-rising edge and falling edge, 3-
high level, 4-low level.
byRelatedDriveWay
Linked lane No.
byRecordEnable
Whether to record by cycle for running red light event: 0-no, 1-yes.
byRecordType
Recording type for running red light event: 0-pre-record, 1-post-record.
byPreRecordTime
Pre-record time for running red light event, the default value is 0, unit: second.
byRecordDelayTime
Post-record time for running red light event, the default value is 0, unit: second.
byRecordTimeOut
Cycle recording timeout for running red light event, unit: second.
byRedSnapTimes
Red light capture times: 0-not capture, other value-number of pictures per burst capture (the
maximum value is 5).
byGreenSnapTimes
Green light capture times: 0-not capture, other value-number of pictures per burst capture (the
maximum value is 5).
byRelatedIOOutEx
Linked IO output port. The output port No. is represented by bit, e.g., bit 0 refers to IO output
port 1, bit 1 refers to IO output port 2, and so on. For each bit, 0 means that the output port is
not linked, and 1 means that the output port is linked. Up to 8 IO output ports can be linked.
This member is compatible with byRelatedIOOut.
byRes1
Reserved.
byIntervalType
Interval type: 0-time (default), 1-distance.
wRedInterval
Burst time (unit: millisecond) or burst distance (unit: decimeter) of the red light. The burst
interval type is determined by byIntervalType.
wGreenInterval

133
Device Network SDK (ANPR) Developer Guide

Burst time (unit: millisecond) or burst distance (unit: decimeter) of the green light. The burst
interval type is determined by byIntervalType.
byRelatedIOOut
Linked IO output port. Multiple ports can be linked simultaneously.
byFlashMode
Flashing mode of the flash light: 0-simultaneous, 1-sequential.
byRes2
Reserved.
struPlateRecog
License plate recognition area parameters, see details in the structure
NET_ITC_PLATE_RECOG_REGION_PARAM .
byRes
Reserved.

See Also
NET_ITC_EPOLICE_IOTL_PARAM

7.1.75 NET_ITC_SINGLE_RS485_LIGHT_PARAM
Structure about single RS-485 access traffic light parameters.

Structure Definition
struct{
BYTE byLightType;
BYTE byRelatedLightChan;
BYTE byInputLight;
BYTE byRelatedYLightChan;
BYTE byRes[16];
}NET_ITC_SINGLE_RS485_LIGHT_PARAM, *LPNET_ITC_SINGLE_RS485_LIGHT_PARAM;

Members
byLightType
Guiding direction type of the traffic light: 0-left turn signal, 1-straight signal, 2-right turn signal.
byRelatedLightChan
No. of the traffic light detector channel linked to the red light, ranging from 0 to 16, 0 indicates
no red light.
byInputLight
Accessed traffic light type: 0-access red light, 1-access green light. It is not supported by ITS
cameras.

134
Device Network SDK (ANPR) Developer Guide

byRelatedYLightChan
No. of the traffic light detector channel linked to the yellow light, ranging from 0 to 16, 0
indicates no yellow light.
byRes
Reserved, set to 0.

Remarks
For example, if the traffic light types in the intersection includes left turn+straight and right turn,
you need to configure three arrays. The first array is for left turn signal and linked to detector
channel 1, the second array is for straight signal and linked to detector channel 1, and the third
array is for right turn signal and linked to detector channel 2.
See Also
NET_ITC_RS485_LIGHT_PARAM

7.1.76 NET_ITC_SINGLE_TRIGGERCFG
A single triggering parameter structure

Structure Definition
struct{
BYTE byEnable;
BYTE byRes1[3];
DWORD dwTriggerType;
NET_ITC_TRIGGER_PARAM_UNION uTriggerParam;
BYTE byRes[64];
}NET_ITC_SINGLE_TRIGGERCFG,*LPNET_ITC_SINGLE_TRIGGERCFG;

Member
byEnable
Whether to enable: 0-disable, 1-enable
byRes1
Reserved, set to 0
dwTriggerType
Trigger mode, see details in ITC_TRIGGERMODE_TYPE .
uTriggerParam
Trigger parameters, see details in the structure NET_ITC_TRIGGER_PARAM_UNION .

See Also
NET_ITC_TRIGGERCFG

135
Device Network SDK (ANPR) Developer Guide

7.1.77 NET_ITC_SINGLE_VIDEO_DETECT_LIGHT_PARAM
Structure about the traffic light parameters detected in a single video.

Structure Definition
struct{
BYTE byLightNum;
BYTE byStraightLight;
BYTE byLeftLight;
BYTE byRightLight;
BYTE byRedLight;
BYTE byGreenLight;
BYTE byYellowLight;
BYTE byYellowLightTime;
NET_POS_PARAM struLightRect;
BYTE byRes[24];
}NET_ITC_SINGLE_VIDEO_DETECT_LIGHT_PARAM, *LPNET_ITC_SINGLE_VIDEO_DETECT_LIGHT_PARAM;

Members
byLightNum
Number of traffic lights.
byStraightLight
Whether the straight signal is on: 0-no, 1-yes.
byLeftLight
Whether the left turn signal is on: 0-no, 1-yes.
byRightLight
Whether the right turn signal is on: 0-no, 1-yes.
byRedLight
Whether the red light is on: 0-no, 1-yes.
byGreenLight
Whether the green light is on: 0-no, 1-yes.
byYellowLight
Whether the yellow light is on: 0-no, 1-yes.
byYellowLightTime
Yellow light duration used to correct recognition deviation of red light and green light.
struLightRect
Traffic light area, see details in the structure NET_POS_PARAM .
byRes

136
Device Network SDK (ANPR) Developer Guide

Reserved, set to 0.

See Also
NET_ITC_VIDEO_DETECT_LIGHT_PARAM

7.1.78 NET_ITC_SINGLEIO_PARAM
Structure about single IO parameters.

Structure Definition
struct{
BYTE byDefaultStatus;
BYTE byRelatedDriveWay;
BYTE bySnapTimes;
BYTE byRelatedIOOutEx;
NET_ITC_INTERVAL_PARAM struInterval;
BYTE byRelatedIOOut[MAX_IOOUT_NUM/*4*/];
BYTE byFlashMode;
BYTE byEnable;
BYTE byUseageType;
BYTE byEmergencyCapEn;
NET_ITC_PLATE_RECOG_REGION_PARAM struPlateRecog[MAX_LANEAREA_NUM/*2*/];
BYTE byRes[32];
}NET_ITC_SINGLEIO_PARAM, *LPNET_ITC_SINGLEIO_PARAM;

Members
byDefaultStatus
Default IO triggering status: 0-low level, 1-high level.
byRelatedDriveWay
Linked lane No.
bySnapTimes
Capture times (the default value is 1): 0-not capture, other value-number of pictures per burst
capture (the maximum value is 5).
byRelatedIOOutEx
Linked IO output port. The output port No. is represented by bit, e.g., bit 0 refers to IO output
port 1, bit 1 refers to IO output port 2, and so on. For each bit, 0 means that the output port is
not linked, and 1 means that the output port is linked. Up to 8 IO output ports can be linked.
This member is compatible with byRelatedIOOut.
struInterval
Capture interval parameters, see details in the structure NET_ITC_INTERVAL_PARAM .
byRelatedIOOut

137
Device Network SDK (ANPR) Developer Guide

Linked IO output port. Multiple ports can be linked simultaneously.


byFlashMode
Flashing mode of the flash light: 0-simultaneous, 1-sequential.
byEnable
Whether to enable single IO: 0-no, 1-yes.
byUseageType
Lane usage type, see details in the structure ITC_LANE_USEAGE_TYPE .
byEmergencyCapEn
Whether to enable occupying emergency lane capture: 0-no, 1-yes.
struPlateRecog
License plate recognition area parameters, see details in the structure
NET_ITC_PLATE_RECOG_REGION_PARAM .
byRes
Reserved.

See Also
NET_ITC_POST_SINGLEIO_PARAM

7.1.79 NET_ITC_TRAFFIC_LIGHT_PARAM
Traffic light parameter structure.

Structure Definition
struct{
BYTE bySource;
BYTE byRes1[3];
NET_ITC_LIGHT_ACCESSPARAM_UNION struLightAccess;
BYTE byRes[32];
}NET_ITC_TRAFFIC_LIGHT_PARAM, *LPNET_ITC_TRAFFIC_LIGHT_PARAM;

Members
bySource
Traffic light accessing source: 0-IO access, 1-RS-485 access, 2-video detection.
byRes1
Reserved, set to 0.
struLightAccess
Traffic light accessing parameters, see details in the structure
NET_ITC_LIGHT_ACCESSPARAM_UNION .

138
Device Network SDK (ANPR) Developer Guide

byRes
Reserved, set to 0.

7.1.80 NET_ITC_TRIGGER_PARAM_UNION
Trigger parameter union

Structure Definition
union{
DWORD uLen[1070];
NET_ITC_POST_IOSPEED_PARAM struIOSpeed;
NET_ITC_POST_SINGLEIO_PARAM struSingleIO;
NET_ITC_POST_RS485_PARAM struPostRs485;
NET_ITC_POST_RS485_RADAR_PARAM struPostRadar;
NET_ITC_POST_VTCOIL_PARAM struVtCoil;
NET_ITC_POST_HVT_PARAM_V50 struHvtV50;
NET_ITC_POST_MPR_PARAM struPostMpr;
NET_ITC_POST_PRS_PARAM struPostPrs;
NET_ITC_EPOLICE_IOTL_PARAM struIOTL;
NET_ITC_EPOLICE_RS485_PARAM struEpoliceRs485;
NET_ITC_EPOLICE_RS485_PARAM struPERs485;
NET_DVR_VIA_VTCOIL_PARAM struViaVtCoil;
NET_ITC_POST_IMT_PARAM struPostImt;
NET_IPC_POST_HVT_PARAM struIpcHvt;
NET_ITC_POST_MOBILE_PARAM struPostMobile;
NET_ITC_REDLIGHT_PEDESTRIAN_PARAM struRedLightPed;
NET_ITC_NOCOMITY_PEDESTRIAN_PARAM struNoComityPed;
}NET_ITC_TRIGGER_PARAM_UNION,*LPNET_ITC_TRIGGER_PARAM_UNION;

Members
uLen
Union size, total 4280 bytes (1070*4).
struIOSpeed
(Checkpoint) I/O speed detection parameters, see details in the structure
NET_ITC_POST_IOSPEED_PARAM .
struSingleIO
(Checkpoint) Single I/O parameters, see details in the structure
NET_ITC_POST_SINGLEIO_PARAM .
struPostRs485
(Checkpoint) RS-485 vehicle detector parameters, see details in the structure
NET_ITC_POST_RS485_PARAM .
struPostRadar

139
Device Network SDK (ANPR) Developer Guide

(Checkpoint) RS485 radar parameters, see details in the structure


NET_ITC_POST_RS485_RADAR_PARAM .
struVtCoil
(Checkpoint) Virtual coil parameters, see details in the structure
NET_ITC_POST_VTCOIL_PARAM .
struHvtV50
(Checkpoint) Trigger parameters of mixed checkpoint's video, see details in the structure
NET_ITC_POST_HVT_PARAM_V50 .
struPostMpr
(Checkpoint) Trigger parameters of multi-frame detection (MPR), see details in the structure
NET_ITC_POST_MPR_PARAM .
struPostPrs
(PRS) Video detection trigger parameters, see details in the structure
NET_ITC_POST_PRS_PARAM .
struIOTL
(Intersection violation system) Traffic light signal detector parameters, see details in the
structure NET_ITC_EPOLICE_IOTL_PARAM .
struEpoliceRs485
(Intersection violation system) RS485 vehicle detector parameter, see details in the structure
NET_ITC_EPOLICE_RS485_PARAM .
struPERs485
RS485 vehicle detector parameters, see details in the structure
NET_ITC_EPOLICE_RS485_PARAM .
struViaVtCoil
(VIA) Video detection parameters, see details in the structure NET_DVR_VIA_VTCOIL_PARAM .
struPostImt
Smart monitoring configuration parameters, see details in the structure
NET_ITC_POST_IMT_PARAM .
struIpcHvt
(Network camera) Mixed checkpoint parameters, see details in the structure
NET_IPC_POST_HVT_PARAM .
struPostMobile
Trigger mode of mobile device, see details in the structure NET_ITC_POST_MOBILE_PARAM .
struRedLightPed
Trigger parameters of pedestrian red light running, see details in the structure
NET_ITC_REDLIGHT_PEDESTRIAN_PARAM .
struNoComityPed

140
Device Network SDK (ANPR) Developer Guide

Trigger parameters of outing of comity to pedestrian, see details in the structure


NET_ITC_NOCOMITY_PEDESTRIAN_PARAM .

See Also
NET_ITC_SINGLE_TRIGGERCFG

7.1.81 NET_ITC_TRIGGERCFG
Trigger parameter structure.

Structure Definition
struct{
DWORD dwSize;
NET_ITC_SINGLE_TRIGGERCFG struTriggerParam;
BYTE byRes[32];
}NET_ITC_TRIGGERCFG,*LPNET_ITC_TRIGGERCFG;

Members
dwSize
Structure size
struTriggerParam
Single trigger parameter, see details in the structure NET_ITC_SINGLE_TRIGGERCFG .
byRes
Reserved, set to 0.

7.1.82 NET_ITC_VIDEO_DETECT_LIGHT_PARAM
Structure about the traffic light parameters detected in the video.

Structure Definition
struct{
NET_ITC_SINGLE_VIDEO_DETECT_LIGHT_PARAM struTrafficLight[MAX_VIDEO_DETECT_LIGHT_NUM/*12*/];
BYTE byRes[8];
}NET_ITC_VIDEO_DETECT_LIGHT_PARAM, *LPNET_ITC_VIDEO_DETECT_LIGHT_PARAM;

Members
struTrafficLight
Traffic light parameters detected in a single video, see details in the structure
NET_ITC_SINGLE_VIDEO_DETECT_LIGHT_PARAM .

141
Device Network SDK (ANPR) Developer Guide

byRes
Reserved, set to 0.

See Also
NET_ITC_LIGHT_ACCESSPARAM_UNION

7.1.83 NET_ITC_VIOLATION_DETECT_LINE
Structure about violation detection line parameters.

Structure Definition
struct{
NET_ITC_LINE struLaneLine;
NET_ITC_LINE struStopLine;
NET_ITC_LINE struRedLightLine;
NET_ITC_LINE struCancelLine;
NET_ITC_LINE struWaitLine;
NET_ITC_LINE struRes[8];
}NET_ITC_VIOLATION_DETECT_LINE, *LPNET_ITC_VIOLATION_DETECT_LINE;

Members
struLaneLine
Lane line parameters, see details in the structure NET_ITC_LINE .
struStopLine
Stop line parameters, see details in the structure NET_ITC_LINE .
struRedLightLine
Triggering line parameters of red light running, see details in the structure NET_ITC_LINE .
struCancelLine
Canceling line parameters of triggering location of going straight, see details in the structure
NET_ITC_LINE .
struWaitLine
Stop line parameters of waiting area, see details in the structure NET_ITC_LINE .
struRes
Reserved, set to 0.

142
Device Network SDK (ANPR) Developer Guide

Remarks
● If the vehicle runs over the triggering line of red light running when the red light is on, the
vehicle will be judged to be red light running violation. Generally, the triggering line of red light
running is below the triggering line of going straight.
● If the vehicle runs over the canceling line of triggering location of going straight, the vehicle will
be judged to go straight instead of turning left or right. It is used to judge violation of not driving
according to the lane guidance.

See Also
NET_ITC_LANE_VIDEO_EPOLICE_PARAM

7.1.84 NET_ITC_VIOLATION_DETECT_PARAM
Violation detection parameter structure.

Structure Definition
struct{
DWORD dwVioDetectType;
BYTE byDriveLineSnapTimes;
BYTE byReverseSnapTimes;
WORD wStayTime;
BYTE byNonDriveSnapTimes;
BYTE byChangeLaneTimes;
BYTE bybanTimes;
BYTE byDriveLineSnapSen;
WORD wSnapPosFixPixel;
BYTE bySpeedTimes;
BYTE byTurnAroundEnable;
BYTE byThirdPlateRecogTime;
BYTE byPostSnapTimes;
BYTE byRes1[18];
WORD wStopLineDis;
BYTE byRes[14];
}NET_ITC_VIOLATION_DETECT_PARAM, *LPNET_ITC_VIOLATION_DETECT_PARAM;

Members
dwVioDetectType
Violation detection type represented by bit. For each bit, 0 refers to disabling, 1 refers to
enabling, see details in the structure ITC_VIOLATION_DETECT_TYPE .
byDriveLineSnapTimes
Number of captured pictures of driving on the lane line, ranging from 2 to 3.
byReverseSnapTimes

143
Device Network SDK (ANPR) Developer Guide

Number of captured pictures of worng-way driving, ranging from 2 to 3.


wStayTime
Duration of motor vehicle on non-motor vehicle lane, unit: second. The camera will start
capturing after this period.
byNonDriveSnapTimes
Number of captured pictures of motor vehicle on non-motor vehicle lane, ranging from 2 to 3.
byChangeLaneTimes
Number of captured pictures of illegal lane change, ranging from 2 to 3.
bybanTimes
Number of captured pictures of prohibition violation, ranging from 2 to 3.
byDriveLineSnapSen
Sensitivity of driving on the lane line, ranging from 0 to 100.
wSnapPosFixPixel
The minimum offset of the location between the second captured picture and the third
captured picture, unit: pixel. It is valid when driving against the traffic light.
bySpeedTimes
Number of captured pictures of illegal overspeed, ranging from 2 to 3.
byTurnAroundEnable
Whether to enable illegal U-turning: 0-no, 1-yes.
byThirdPlateRecogTime
Time of recognizing the third license plate, ranging from 0 to 180, unit: second.
byPostSnapTimes
Number of captured pictures of checkpoint, ranging from 1 to 2.
byRes1
Reserved, set to 0.
wStopLineDis
The minimum distance between the vehicle and the stop line on the second violation picture of
the intersection violation system, ranging from 0 to 300, unit: pixel.
byRes
Reserved, set to 0.

See Also
NET_ITC_LANE_VIDEO_EPOLICE_PARAM

144
Device Network SDK (ANPR) Developer Guide

7.1.85 NET_ITS_ILLEGAL_INFO
Traffic violation code structure.

Structure Definition
struct{
BYTE byIllegalInfo[MAX_ILLEGAL_LEN/*64*/];
BYTE byRes[256];
}NET_ITS_ILLEGAL_INFO,*LPNET_ITS_ILLEGAL_INFO;

Members
byIllegalInfo
Traffic violation code (in character string format)
byRes
Reserved, set to 0.

See Also
NET_ITS_PLATE_RESULT

7.1.86 NET_ITS_OVERLAP_CFG_V50
Extended text overlay parameter structure (V50)

Structure Definition
struct{
DWORD dwSize;
BYTE byEnable;
BYTE byRes1[3];
NET_ITS_OVERLAP_ITEM_PARAM_V50 struOverLapItemV50;
NET_ITS_OVERLAP_INFO_PARAM struOverLapInfo;
BYTE byRes[120];
}NET_ITS_OVERLAP_CFG_V50,*LPNET_ITS_OVERLAP_CFG_V50;

Members
dwSize
Structure size.
byEnable
Whether to enable: 0-no, 1-yes
byRes1
Reserved.

145
Device Network SDK (ANPR) Developer Guide

struOverLapItemV50
Character string parameter, refer to the structure NET_ITS_OVERLAP_ITEM_PARAM_V50 for
details.
struOverLapInfo
Character string details, refer to the structure NET_ITS_OVERLAP_INFO_PARAM for details.
byRes
Reserved.

7.1.87 NET_ITS_OVERLAP_INFO_PARAM
Structure about the character string to be displayed.

Structure Definition
struct{
BYTE bySite[128];
BYTE byRoadNum[32];
BYTE byInstrumentNum[32];
BYTE byDirection[32];
BYTE byDirectionDesc[32];
BYTE byLaneDes[32];
BYTE byRes1[32];
BYTE byMonitoringSite1[44];
BYTE byMonitoringSite2[32];
BYTE byRes[64];
}NET_ITS_OVERLAP_INFO_PARAM,*LPNET_ITS_OVERLAP_INFO_PARAM;

Members
bySite
Location description.
byRoadNum
Intersection No.
byInstrumentNum
Device No.
byDirection
Direction No.
byDirectionDesc
Direction description.
byLaneDes
Lane description

146
Device Network SDK (ANPR) Developer Guide

byRes1
Reserved, set to 0.
byMonitoringSite1
Information of camera No.1
byMonitoringSite2
Information of camera No.2
byRes
Reserved, set to 0.

See Also
NET_ITS_OVERLAP_CFG_V50

7.1.88 NET_ITS_OVERLAP_ITEM_PARAM_V50
Structure about configuration parameters for overlaying characters

Structure Definition
struct{
NET_ITS_OVERLAP_SINGLE_ITEM_PARAM_V50 struSingleItem[MAX_OVERLAP_ITEM_NUM/*50*/];
DWORD dwLinePercent;
DWORD dwItemsStlye;
WORD wStartPosTop;
WORD wStartPosLeft;
WORD wCharStyle;
WORD wCharSize;
WORD wCharInterval;
BYTE byRes1[2];
DWORD dwForeClorRGB;
DWORD dwBackClorRGB;
BYTE byColorAdapt;
BYTE byParamFillZeroEnble;
BYTE byPlateLeftCornerEnable;
BYTE byRes2;
WORD wStartSPicPosTop;
WORD wStartSPicPosLeft;
BYTE byOsdLocate;
BYTE byRes[63];
}NET_ITS_OVERLAP_ITEM_PARAM_V50, *LPNET_ITS_OVERLAP_ITEM_PARAM_V50;

Members
struSingleItem
Single character parameter.

147
Device Network SDK (ANPR) Developer Guide

dwLinePercent
Percentage of overlayed lines, ranges from 0 to 100, the default value is 100.
dwItemsStlye
Overlaying type: 0-horizontal (default), 1-vertical.
wStartPosTop
The coordinate of top starting point, it is only valid for overlaying within the picture, ranges
from 0 to 2,448, the default value is 0.
wStartPosLeft
The coordinate of left starting point, it is only valid for overlaying within the picture, ranges from
0 to 2,448, the default value is 0.
wCharStyle
Font type: 0-SimSun, 1-STXinwei (default).
wCharSize
Character size: 0-16*16, 1-32*32, 2-48*48, 3-64*64 (default), 4-128*128.
wCharInterval
Space distance between two characters, ranges from 0 to 16, available unit: pixel (default).
byRes1
Reserved, set to 0.
dwForeClorRGB
RGB value of foreground color:

See Also

7.1.89 NET_ITS_OVERLAP_SINGLE_ITEM_PARAM_V50
Structure about overlaying single character information.

Structure Definition
struct{
BYTE byRes1[2];
BYTE byItemType;
BYTE byChangeLineNum;
BYTE bySpaceNum;
BYTE byRes2[2];
BYTE byEnablePos;
WORD wStartPosTop;
WORD wStartPosLeft;
BYTE byItemTypeCustom[32];

148
Device Network SDK (ANPR) Developer Guide

BYTE byRes[8];
}NET_ITS_OVERLAP_SINGLE_ITEM_PARAM_V50, *LPNET_ITS_OVERLAP_SINGLE_ITEM_PARAM_V50;

Members
byRes1
Reserved.
byItemType
Type, see details in the structure ITS_OVERLAP_ITEM_TYPE .
byChangeLineNum
Number of line feeds after overlaying items, ranges from 0 to 10, the default value is 0.
bySpaceNum
Number of spaces after overlaying items, ranges from 0 to 255, the default value is 0.
byRes2
Reserved.
byEnablePos
Whether to enable displaying coordinates: 0-no, 1-yes.
wStartPosTop
The coordinate of top starting point, it is only valid for overlaying within the picture, ranges
from 0 to 2,448, the default value is 0.
wStartPosLeft
The coordinate of left starting point, it is only valid for overlaying within the picture, ranges from
0 to 2,448, the default value is 0.
byItemTypeCustom
Custom type, corresponds to the parameter byItemType, customize type name for byItemType
parameter. If byItemTypeCustom is "NULL", the type name of byItemType parameter will be
used by default.
byRes
Reserved.

See Also
NET_ITS_OVERLAP_ITEM_PARAM_V50

7.1.90 NET_ITS_OVERLAPCFG_COND
Structure about the OSD configuration conditions.

149
Device Network SDK (ANPR) Developer Guide

Structure Definition
struct{
DWORD dwSize;
DWORD dwChannel;
DWORD dwConfigMode;
BYTE byPicModeType;
BYTE byRes[15];
}NET_ITS_OVERLAPCFG_COND,*LPNET_ITS_OVERLAPCFG_COND;

Members
dwSize
Structure size
dwChannel
Channel No.
dwConfigMode
Configuration mode: 0-via client software, 1-access device via web browser to configure
byPicModeType
Picture mode: 0-thumbnail, 1-large picture (composite picture)
byRes
Reserved, set to 0

7.1.91 NET_ITS_PLATE_RESULT
ANPR result structure

Structure Definition
struct{
DWORD dwSize;
DWORD dwMatchNo;
BYTE byGroupNum;
BYTE byPicNo;
BYTE bySecondCam;
BYTE byFeaturePicNo;
BYTE byDriveChan;
BYTE byVehicleType;
BYTE byDetSceneID;
BYTE byVehicleAttribute;
WORD wIllegalType;
BYTE byIllegalSubType[8];
BYTE byPostPicNo;
BYTE byChanIndex;
WORD wSpeedLimit;

150
Device Network SDK (ANPR) Developer Guide

BYTE byChanIndexEx;
BYTE byRes2;
NET_DVR_PLATE_INFO struPlateInfo;
NET_DVR_VEHICLE_INFO struVehicleInfo;
BYTE byMonitoringSiteID[48];
BYTE byDeviceID[48];
BYTE byDir;
BYTE byDetectType;
BYTE byRelaLaneDirectionType;
BYTE byCarDirectionType;
DWORD dwCustomIllegalType;
BYTE *pIllegalInfoBuf;
BYTE byIllegalFromatType;
BYTE byPendant;
BYTE byDataAnalysis;
BYTE byYellowLabelCar;
BYTE byDangerousVehicles;
BYTE byPilotSafebelt;
BYTE byCopilotSafebelt;
BYTE byPilotSunVisor;
BYTE byCopilotSunVisor;
BYTE byPilotCall;
BYTE byBarrierGateCtrlType;
BYTE byAlarmDataType;
NET_DVR_TIME_V50 struSnapFirstPicTime;
DWORD dwIllegalTime;
DWORD dwPicNum;
NET_ITS_PICTURE_INFO struPicInfo[6];
}NET_ITS_PLATE_RESULT, *LPNET_ITS_PLATE_RESULT;

Members
dwSize
Structure Size
dwMatchNo
Match ID, which consists of vehicle No., data type, and lane No.
byGroupNum
Number of picture groups (total number of one vehicle picture groups captured by multiple
cameras), the default value is 1.
byPicNo
No. of continuously captured picture (if byPicNo is byGroupNum, it indicates that the last
picture is received).
bySecondCam
Whether the picture is captured by the second camera.
byFeaturePicNo

151
Device Network SDK (ANPR) Developer Guide

Intersection violation system for red light running, the No. of picture to be set as close-up
picture, 0xff-not set.
byDriveChan
Triggered lane No.
byVehicleType
Vehicle type: 0-unknown, 1-bus, 2-truck, 3-car, 4-mini bus, 5-van, 6-pedestrian, 7-two-wheel
vehicle, 8-three-wheel vehicle, 9-SUV/MPV, 10-medium bus, 11-motor vehicle, 12-non-motor
vehicle, 13-mini car, 14-micro car, 15-pickup truck. Generally, the vehicle type is determined by
this member. If this member is set to 0, the vehicle type is determined by the member
byVehicleType in the structure NET_DVR_VEHICLE_INFO .
byDetSceneID
Detection scene No., 0-invalid, other values: [1,4], for network camera, its value is 0 (not
support)
byVehicleAttribute
Vehicle properties, 0-no additional properties, other values: bit1-yellow label vehicle, bit2-
danguous goods vehicle, bit value: 0-no, 1-yes.
wIllegalType
Traffic violation type. When the value of this parameter is 0, see the traffic violation type in
dwCustomIllegalType.
byIllegalSubType
Sub type of traffic violation.
byPostPicNo
The No. of picture to be set as the checkpoint picture, 0xff-not set.
byChanIndex
Channel No.
wSpeedLimit
Upper limit of speed (it is valid only when overspeed).
byChanIndexEx
byChanIndexEx*256+byChanIndex is the actual channel No.
byRes2
Reserved
struPlateInfo
License plate information, see details in the structure NET_DVR_PLATE_INFO .
struVehicleInfo
Vehicle information , see details in the structure NET_DVR_VEHICLE_INFO .
byMonitoringSiteID

152
Device Network SDK (ANPR) Developer Guide

Monitoring point ID
byDeviceID
Device ID
byDir
Detection direction: 1-backward, 2-forward, 3-bidirection, 4-from east to west, 5from south to
north, 6-from west to east, 7from north to south, 8-other
byDetectType
Detection type: 0-vehicle detection, 1-triggered by inductive loop, 2- triggered by video
detection, 3-multi-frame recognition, 4- triggered by radar, 5-mixed-traffic detection.
byRelaLaneDirectionType
Linked lane direction, see details in ITC_RELA_LANE_DIRECTION_TYPE , which corresponds to
the linked lane No.
byCarDirectionType
Vehicle driving direction: 0-from top to bottom in image, 1- from bottom to top in image.
dwCustomIllegalType
Traffic violation type (custom), this parameter is valid only when wIllegalType is 0.
pIllegalInfoBuf
Violation code, it is valid when byIllegalFromatType is 1. The code pointer points to the
structure NET_ITS_ILLEGAL_INFO .
byIllegalFromatType
Traffic violation information format: 0-digital format, 1-character format
byPendant
Objects hanging on window?: 0-unknown, 1-yes, 2-no
byDataAnalysis
Data analyzed?: 0-no, 1-yes
byYellowLabelCar
Yellow label vehicle? 0-unknown, 1-yes, 2-no
byDangerousVehicles
Dangerous goods vehicle? 0-unknown, 1-yes, 2-no
byPilotSafebelt
Driver wearing safety belt? 0-unknown, 1-yes, 2-no
byCopilotSafebelt
Co-driver wearing safety belt?: 0-unknown, 1-yes, 2-no
byPilotSunVisor
Sun shield of co-driver room opened?: 0-unknown, 1-yes, 2-no

153
Device Network SDK (ANPR) Developer Guide

byCopilotSunVisor
Sun shield of co-driver room opened?: 0-unknown, 1-yes, 2-no
byPilotCall
Driver making call? 0-unknown, 1-yes, 2-no
byBarrierGateCtrlType
Barrier control type: 0-open, 1-close.
byAlarmDataType
Alarm data type: 0-real-time data, 1-history data.
struSnapFirstPicTime
Time of first captured picture, unit: ms, see details in the structure NET_DVR_TIME_V50 .
dwIllegalTime
Violation duration (unit: ms)=time of last captured picture-time of first captured picture
dwPicNum
Number of pictures.
struPicInfo
Picture information, call back one by one, and up to 6 pictures are allowed, see details in the
structure NET_ITS_PICTURE_INFO .

Remarks
Generally, refer to the parameter byVehicleType of this structure for the vehicle type. If
byVehicleType is 0, refer to the parameter byVehicleType of structure NET_DVR_VEHICLE_INFO .

7.1.92 NET_ITS_PICTURE_INFO
Captured picture information structure.

Structure Definition
struct{
DWORD dwDataLen;
BYTE byType;
BYTE byDataType;
BYTE byCloseUpType;
BYTE byPicRecogMode;
DWORD dwRedLightTime;
BYTE byAbsTime[32];
NET_VCA_RECT struPlateRect;
NET_VCA_RECT struPlateRecgRect;
BYTE *pBuffer;
DWORD dwUTCTime;
BYTE byCompatibleAblity;
BYTE byTimeDiffFlag;

154
Device Network SDK (ANPR) Developer Guide

signed char cTimeDifferenceH;


signed char cTimeDifferenceM;
BYTE byRes2[4];
}NET_ITS_PICTURE_INFO, *LPNET_ITS_PICTURE_INFO;

Members
dwDataLen
Size of media data.
byType
Data type: 0-license plate picture, 1-scene picture, 2-composite picture, 3-close-up picture, 4-
binary picture, 5-stream, 6-driver's face thumbnail, 7-co-driver's face thumbnail, 8-non-motor
vehicle, 9-pedestrian, 10-raw data, 11-target picture, 12-driver room picture, 13-co-driver room
picture, 14-face thumbnail
byDataType
Data uploading type: 0-directly upload, 1-upload URL of cloud storage server
byCloseUpType
Close-up picture type: 0-reserved, 1-non-motor vehicle, 2-pedestrian
byPicRecogMode
Recognition mode: 0-recognize in forward direction, 1-recognize in backward direction
dwRedLightTime
Red light duration, unit: s
byAbsTime
Absolute time: yyyymmddhhmmssxxx, e.g.20090810235959999, the last three bits are
milliseconds.
struPlateRect
When byType is "1", this parameter indicates the position of license plate on the scene picture,
when byType is "8" or "9", this parameter indicates the person coordinates. See details in the
structure NET_VCA_RECT .
struPlateRecgRect
ANPR region coordinates, when byType is "12" or "13", this parameter indicates the coordinates
of driver. See details in the structure NET_VCA_RECT .
pBuffer
Buffer for saving data.
dwUTCTime
UTC time
byCompatibleAblity
Compatible with capability filed, and it is represented by bit, value: 0-invalid, 1-valid. bit0-
whether the parameter dwUTCTime is valid.

155
Device Network SDK (ANPR) Developer Guide

byTimeDiffFlag
Whether the time difference parameter is valid: 0-invalid, 1-valid.
cTimeDifferenceH
Time difference between time and UTC time, unit: hour, the value is between -12 and +14 ("+"
indicates the east time zone), it is valid when byTimeDiffFlag is "1".
cTimeDifferenceM
Time difference between time and UTC time, unit: minute, the value is -30, +30, or +45 ("+"
indicates the east time zone), it is valid when byTimeDiffFlag is "1".
byRes2
Reserved

Remarks
● If only the scene picture is uploaded, you can capture the close-up view from scene picture
according to the parameter struPlateRecgRect, and you can also adjust the width and height as
required.
● Picture URL format: http://CVMIP:Port/pic?
did=DevID&bid=BlkID&pid=PictureID&ptime=PicTime. E.g., http://10.192.65.140:8009/pic?
did=35b9cbd0-8ffa-1031-87e6-0025903c6a50&bid=387&pid=2952790009&ptime=1378106185
CVMIP
IP address of CVM (Cloud Video Management) server.
Port
Port number (default: 8009) of HTTP service provided by CVM (Cloud Video Management)
server.
DevID
Device ID of CVS (Cloud Video Server).
BlkID
Device block ID of CVS (Cloud Video Server)
PictureID
Picture ID generated by CVS (Cloud Video Server)
PicTime
Picture timestamp.

7.1.93 NET_POS_PARAM
Region parameter structure.

156
Device Network SDK (ANPR) Developer Guide

Structure Definition
struct{
WORD wLeft;
WORD wTop;
WORD wRight;
WORD wBottom;
}NET_POS_PARAM, *LPNET_POS_PARAM;

Members
wLeft
X-coordinate of the upper-left corner of the boundary frame, value range: [1, 1000].
wTop
Y-coordinate of the upper-left corner of the boundary frame, value range: [1, 1000].
wRight
X-coordinate of the lower-right corner of the boundary frame, value range: [1, 1000].
wBottom
Y-coordinate of the lower-right corner of the boundary frame, value range: [1, 1000].

See Also
NET_ITC_SINGLE_VIDEO_DETECT_LIGHT_PARAM

7.1.94 NET_VCA_LINE
Structure about line parameters.

Structure Definition
struct{
NET_VCA_POINT struStart;
NET_VCA_POINT struEnd;
}NET_VCA_LINE,*LPNET_VCA_LINE;

Members
struStart
Start point, see details in the structure NET_VCA_POINT
struEnd
End point, see details in the structure NET_VCA_POINT .

7.1.95 NET_VCA_POINT

157
Device Network SDK (ANPR) Developer Guide

Structure About Point Coordinates Parameters

Member Data Type Description


fX float X-coordinate, it is a normalized value ranging
from 0.000 to 1. The floating-​point number is
the percentage of the current image size and is
accurate to three decimal places.
fY float Y-coordinate, it is a normalized value ranging
from 0.000 to 1. The floating-​point number is
the percentage of the current image size and is
accurate to three decimal places.

7.1.96 NET_VCA_RECT

Structure About Rectangle Region Coordinate Parameters

Member Data Type Description


fX float X-coordinate of frame's upper-​left corner, it
ranges from 0.000 to 1.
fY float Y-coordinate of frame' upper-​left corner, it
ranges from 0.000 to 1.
fWidth float Frame width, it ranges from 0.000 to 1.
fHeight float Frame height, it ranges from 0.000 to 1.

7.1.97 VCA_PLATE_COLOR
Enumerate the license plate colors.

Enumeration Definition
enum{
VCA_BLUE_PLATE =0,
VCA_YELLOW_PLATE =1,
VCA_WHITE_PLATE =2,
VCA_BLACK_PLATE =3,
VCA_GREEN_PLATE =4,
VCA_BKAIR_PLATE =5,
VCA_RED_PLATE,
VCA_ORANGE_PLATE,

158
Device Network SDK (ANPR) Developer Guide

VCA_OTHER =0xff
}VCA_PLATE_COLOR

Member
VCA_BLUE_PLATE
Blue
VCA_YELLOW_PLATE
Yellow
VCA_WHITE_PLATE
White
VCA_BLACK_PLATE
Black
VCA_GREEN_PLATE
Green
VCA_BKAIR_PLATE
Black (for special use)
VCA_RED_PLATE
Red
VCA_ORANGE_PLATE
Orange
VCA_OTHER
Other

7.1.98 VCA_PLATE_TYPE
Enumerate the license plate types.

Enumeration Definition
enum{
VCA_STANDARD92_PLATE =0,
VCA_STANDARD02_PLATE =1,
VCA_WJPOLICE_PLATE =2,
VCA_JINGCHE_PLATE =3,
STANDARD92_BACK_PLATE =4,
VCA_SHIGUAN_PLATE =5,
VCA_NONGYONG_PLATE =6,
VCA_MOTO_PLATE =7,
NEW_ENERGY_PLATE =8,
VCA_CONSULATE_PLATE =9,
VCA_EMERGENCY_PLATE = 10

159
Device Network SDK (ANPR) Developer Guide

TRANSPORT_PLATE = 0x20,
COMMERCIAL_PLATE,
PRIVATE_PLATE,
LEARNING_PLATE,
CD_PLATE,
CC_PLATE,
SPECIAL_PLATE,
PROTOCOL_PLATE,
GOVERNMENT_PLATE,
EXPORT_PLATE,
TAXI_PLATE,
TESTING_PLATE,
TRANSFER_PLATE,
TRUCK_PLATE,
BUS_PLATE,
PUBLIC_PLATE,
PUB_TRANS_PLATE,
PRI_TRANS_PLATE,
UNKNOWN_PLATE = 0xff
}VCA_PLATE_TYPE

Member
VCA_STANDARD92_PLATE
License plate of civil and military vehicle.
VCA_STANDARD02_PLATE
License plate of civil vehicle
VCA_WJPOLICE_PLATE
License plate of armed police vehicle.
VCA_JINGCHE_PLATE
License plate of police vehicle.
STANDARD92_BACK_PLATE
Tail board of civil vehicle.
VCA_SHIGUAN_PLATE
License plate of embassy vehicle.
VCA_NONGYONG_PLATE
License plate of farm vehicle.
VCA_MOTO_PLATE
License plate of motor vehicle.
NEW_ENERGY_PLATE
License plate of new energy vehicle.
VCA_CONSULATE_PLATE

160
Device Network SDK (ANPR) Developer Guide

License plate of consulate.


VCA_EMERGENCY_PLATE
License plate of emergent vehicle.
TRANSPORT_PLATE
License plate of carrier vehicle.
COMMERCIAL_PLATE
License plate of commercial vehicle.
PRIVATE_PLATE
License plate of private car.
LEARNING_PLATE
License plate of driver-training vehicle.
CD_PLATE
License plate of embassy vehicle.
CC_PLATE
License plate of embassy vehicle.
SPECIAL_PLATE
License plate of special vehicle.
PROTOCOL_PLATE
Protocol license plate.
GOVERNMENT_PLATE
License plate of government vehicle.
EXPORT_PLATE
Export license plate.
TAXI_PLATE,
Taxi license plate.
TESTING_PLATE
Test license plate.
TRANSFER_PLATE
Transfer license plate.
TRUCK_PLATE
Truck license plate.
BUS_PLATE
Bus license plate.
PUBLIC_PLATE

161
Device Network SDK (ANPR) Developer Guide

Public license plate.


PUB_TRANS_PLATE
Public transfer license plate.
PRI_TRANS_PLATE
Private transfer license plate.
UNKNOWN_PLATE
Unknown (unrecognized).

7.1.99 DATE_TIME

Date and Time Structure

Member Data Type Description


year short Year.
month short Month.
dayOfWeek short Days of the week: 0-Sunday, 1-
Monday, 2-Tuesday, 3-
Wednesday, 4-Thursday, 5-
Friday, 6-Saturday.
day short Day.
hour short Hour.
minute short Minute.
second short Second.
milliSecond short Millisecond.

7.1.100 NET_DVR_DEVICEINFO_V30
Device parameter structure (V30).

Device Parameter Structure (V30)

Member Data Type Description


sSerialNumber BYTE Device serial No.
byAlarmInPortNum BYTE Number of analog alarm inputs

162
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


byAlarmOutPortNum BYTE Number of analog alarm outputs
byDiskNum BYTE Number of HDDs
byDVRType BYTE Device type
byChanNum BYTE Number of analog channels
byStartChan BYTE Start No. of analog channel, which starts from
1.
byAudioChanNum BYTE Number of two-way audio channels
byIPChanNum BYTE Number of digital channels, low 8-bit.
byZeroChanNum BYTE Number of channel-zero
byMainProto BYTE Transmission protocol type of main stream: 0-
private protocol (default), 1-RTSP, 2-private
protocol+RTSP
bySubProto BYTE Transmission protocol type of sub-stream: 0-
private protocol (default), 1-RTSP, 2-private
protocol+RTSP
bySupport BYTE Capabilities, if the result of bitwise operation is
0, it refers that the capability is not supported,
if the result is 1, it indicates that the capability
is supported.
● bySupport&0x1: whether supports VCA

search.
● bySupport&0x2: whether supports backup.

● bySupport&0x4: whether supports getting

encoding parameters.
● bySupport&0x8: whether supports dual-NIC.

● bySupport&0x10: whether supports remote

SADP.
● bySupport&0x20: whether supports RAID

card.
● bySupport&0x40: whether supports

searching in IPSAN directory.


● bySupport&0x80: whether supports RTP over

RTSP.
bySupport1 BYTE Extended capabilities, if the result of bitwise
operation is 0, it refers that the capability is not

163
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


supported, if the result is 1, it indicates that the
capability is supported.
● bySupport1&0x1: whether supports SNMP

with version 30.


● bySupport1&0x2: whether supports playback

and downloading video files.


● bySupport1&0x4: whether supports setting

the arming priority.


● bySupport1&0x8: whether supports

extending the arming time period.


● bySupport1&0x10: whether supports

multiple HDDs (more than 33).


● bySupport1&0x20: whether supports RTP

over RTSP.
● bySupport1&0x80: whether supports license

plate recognition alarm.


bySupport2 BYTE Extended capabilities, if the result of bitwise
operation is 0, it refers that the capability is not
supported, if the result is 1, it indicates that the
capability is supported.
● bySupport2&0x1: whether supports getting

stream via URL.


● bySupport2&0x2: whether supports FTP with

version 40.
● bySupport2&0x4: whether supports ANR.

● bySupport2&0x20: whether supports getting

device status.
● bySupport2&0x40: whether supports

encrypting stream.
wDevType WORD Device model
bySupport3 BYTE Extended capabilities, if the result of bitwise
operation is 0, it refers that the capability is not
supported, while, if the result is 1, it indicates
that the capability is supported.
● bySupport3&0x1: whether supports multi-

stream.
● bySupport3&0x4: whether supports

configuring by group (e.g., image, alarm

164
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


input, alarm output, user, device status, JPEG
picture capture, continuous and scheduled
capture, .HDD group management, and so
on).
● bySupport3&0x20: whether supports getting
stream via DDNS.
byMultiStreamProto BYTE Whether supports multi-​stream, if the result of
bitwise operation is 0, it refers to not support, if
the result is 1, it refers to support.
● byMultiStreamProto&0x1: whether supports

third-stream.
● byMultiStreamProto&0x2: whether supports

fourth-stream.
● byMultiStreamProto&0x40: whether

supports main stream.


● byMultiStreamProto&0x80: whether

supports sub-stream.
byStartDChan BYTE Start No. of digital channel, 0-no digital channel
(e.g., DVR, network camera).
byStartDTalkChan BYTE Start No. of two-way audio channel, 0-no two-
way audio channel.
byHighDChanNum BYTE Number of digital channels, high 8-bit.
bySupport4 BYTE Extended capabilities, if the result of bitwise
operation is 0, it refers that the capability is not
supported, if the result is 1, it indicates that the
capability is supported.
● bySupport4&0x01: whether all stream types

support RTSP and private protocol.


● bySupport4&0x02: whether the device

supports transmitting form format data via


API (NET_​DVR_​STDXMLConfig).
● bySupport4&0x10: whether supports loading

network disk by domain name.


byLanguageType BYTE Supported language types, if the result of
bitwise operation is 0, it refers to not support, if
the result is 1, it refers to support.

165
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


● byLanguageType ==0: this field is not
supported by device.
● byLanguageType&0x1: whether supports
Chinese.
● byLanguageType&0x2: whether supports
English.
byVoiceInChanNum BYTE Number of audio input channels
byStartVoiceInChanNo BYTE Start No. of audio input channel, 0-invalid.
byRes3 Array of BYTE Reserved, set to 0.
byMirrorChanNum BYTE Number of mirror channels
wStartMirrorChanNo WORD Start No. of mirror channel
byRes2 Array of BYTE Reserved, set to 0.

Remarks
● The maximum number of digital channels equal to byIPChanNum+byHighDChanNum*256.
● For login via text protocol, the following parameters are not supported: byMainProto,
bySubProto, bySupport, bySupport1, bySupport2, bySupport3, bySupport4, bySupport5,
bySupport6, bySupport7, byMultiStreamProto, byStartDTalkChan, byVoiceInChanNum,
byStartVoiceInChanNo, byMirrorChanNum, and wStartMirrorChanNo.

See Also
NET_DVR_DEVICEINFO_V40

7.1.101 NET_DVR_DEVICEINFO_V40

Device Parameter Structure (V40)

Member Data Type Description


struDeviceV30 NET_DVR_DEVICEINFO Device parameters
_V30
bySupportLock BYTE Whether supports locking function: 1-support.
byRetryLoginTime BYTE Remaining login attempts, it is valid when the
user name or password is incorrect and the
bySupportLock is 1.

166
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


byPasswordLevel BYTE Password strength: 0-invalid, 1-default
password, 2-valid password, 3-risky password.
For default password or risky password, the
users are reminded to change password.
byProxyType BYTE Proxy type: 0-no proxy, 1-standard proxy, 2-
EHome proxy.
dwSurplusLockTime DWORD Remaining locking time, unit: second. It is valid
only when bySupportLock is 1. During the
locing time, if the user try to log in to again, the
remaining locking time will resume to 30
minutes.
byCharEncodeType BYTE Character encodings. 0-no decoding
information, 1-GB2312 (Simplified Chinese), 2-
GBK, 3-BIG5 (Traditional Chinese), 4-Shift_​JIS
(Japanese), 5-EUC-KR (Korean), 6-UTF-8, 7-
ISO8859-1, 8-ISO8859-2, 9-ISO8859-3, …, 21-
ISO8859-15 (Western European)
bySupportDev5 BYTE Whether to support getting the parameters of
devices that support HCNetSDK version 5.0 or
above, the size of device name and type name
are extended to 64 bytes.
bySupport BYTE Whether it supports uploading changes, it
depends on the result of bitwise AND (&)
operation: 0-not support, 1-support. The result
of bySupport&0x1 indicates that this member is
reserved; the result of bySupport&0x2 indicates
that whether it supports uploading changes: 0-
not support, 1-support. This member is the
capability set extension.
byLoginMode BYTE Login mode: 0-login via private protocol, 1-login
via text protocol. For private protocol, the
default login port number is 8000, and for text
protocol, the default login port number is 80 or
443.
dwOEMCode DWORD OEM code.

167
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


iResidualValidity int Remaining valid days of the user's password,
unit: day. If the negative number is returned, it
indicates that the password being used has
expired. For example, if -3 is returned, it
indicates that the password being used has
expired for three days.
byResidualValidity BYTE Whether the member iResidualValidity is valid:
0-invalid, 1-valid.
bySingleStartDTalkCha BYTE Start channel No. for connecting independent
n audio tracks to the device. The value 0 is
reserved and invalid. The channel No. of audio
tracks cannot start from 0.
bySingleDTalkChanNu BYTE Total number of channels of the device
ms connected with independent tracks, 0-not
support.
byPassWordResetLevel BYTE Whether to prompt the non-admin user to
change the password: 0 (invalid), 1 (If the
administrator creates a non-admin user account
with an initial password, the non-admin user
will be prompted "Please change the initial
password" each time he/she logs in to the
device until he/she changes the initial
password), 2(If the non-admin user's password
has been changed by the administrator, the
non-admin user will be prompted "Please set a
new password" each time he/she logs in to the
device until he/she changes the password).
bySupportStreamEncry BYTE Whether it supports stream encryption, it
pt depends on the result of bitwise AND (&)
operation: 0-no, 1-yes. The result of
bySupportStreamEncrypt&0x1 indicates
whether to support RTP/TLS streaming, the
result of bySupportStreamEncrypt&0x2
indicates whether to support SRTP/UDP
streaming, and the result of
bySupportStreamEncrypt&0x4 indicates

168
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


whether to support SRTP/MULTICAST
streaming.
byRes2 Array of BYTE Reserved, set to 0.

Remarks
● Four character types are allowed in the password, including digits, lowercase letters, uppercase
letters and symbols. The maximum password length is 16 bits, and there are four password
strength levels, see details below:
○ Level 0 (Risky Password): The password length is less than 8 bits, or only contains one kind of

the character types. Or the password is the same with the user name, or is the mirror writing
of the user name.
○ Level 1 (Weak Password): The password length is more than or equal to 8 bits, and contains

two kinds of the character types. Meanwhile, the combination should be (digits + lowercase
letters) or (digits + uppercase letters).
○ Level 2 (Medium Password): The password length is more than or equal to 8 bits, and contains

two kinds of the character types. Meanwhile, the combination cannot be (digits + lowercase
letters) and (digits + uppercase letters).
○ Level 3 (Strong Password): The password length is more than or equal to 8 bits, and at least

contains three kinds of the character types.


● For login via text protocol, the following parameters are not supported: bySupportLock,
byRetryLoginTime, byPasswordLevel, byProxyType, dwSurplusLockTime, byCharEncodeType,
and bySupportDev5.

7.1.102 NET_DVR_INIT_CFG_ABILITY

Initialization Capability Structure

Member Data Type Description


enumMaxLoginUsersN INIT_CFG_MAX_NUM Maximum number of users can log in, see
um details below:
enum _INIT_CFG_MAX_NUM_{
INIT_CFG_NUM_2048 = 2048,
INIT_CFG_NUM_5120 = 5120,
INIT_CFG_NUM_10240 = 10240,
INIT_CFG_NUM_15360 = 15360,

169
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


INIT_CFG_NUM_20480 = 20480
}INIT_CFG_MAX_NUM

enumMaxAlarmNum INIT_CFG_MAX_NUM Maximum number of alarm channels, see


details below:
enum _INIT_CFG_MAX_NUM_{
INIT_CFG_NUM_2048 = 2048,
INIT_CFG_NUM_5120 = 5120,
INIT_CFG_NUM_10240 = 10240,
INIT_CFG_NUM_15360 = 15360,
INIT_CFG_NUM_20480 = 20480
}INIT_CFG_MAX_NUM

byRes Array of BYTE Reserved, set to 0.

Remarks
By default, up to 2048 channels are supported. More channels require higher computer
performance and network bandwidth.
See Also
NET_DVR_SetSDKInitCfg

7.1.103 NET_DVR_LOCAL_SDK_PATH

Path Information Structure for Loading Component Libraries

Member Data Type Description


sPath Array of char Component libraries' addresses
byRes Array of BYTE Reserved.

Remarks
If the path of HCNetSDKCom folder and HCNetSDK libraries are same, but the path of executable
programs are different, you can call NET_DVR_SetSDKInitCfg to specify the path of HCNetSDKCom
folder to make sure the component libraries are loaded normally.

7.1.104 NET_DVR_USER_LOGIN_INFO

170
Device Network SDK (ANPR) Developer Guide

Structure About Login Parameters

Member Data Type Description


sDeviceAddress char Device IP address, or domain name.
byUseTransport BYTE Enable capability transmission or not: 0-no
(default), 1-yes.
wPort WORD Device port number, e.g., 8000 (when login by
private protocol), 80 (when login by text
protocol).
sUserName char User name for logging in to device.
sPassword char Login password.
cbLoginResult fLoginResultCallBack Callback function used to return login status, it
is valid only when bUseAsynLogin is "1".
pUser void* User data.
bUseAsynLogin BOOL Whether to enable asynchronous login: 0-no, 1-
yes.
byProxyType BYTE Proxy server type: 0-no proxy, 1-standard proxy,
2-EHome proxy.
byUseUTCTime BYTE 0-not convert (default), 1-input or output UTC
time, 2-input or output local time.
byLoginMode BYTE Login mode: 0-login by private protocol, 1-login
by text protocol, 2-​self-​adaptive (it is available
when the protocol type supported by device is
unknown, and this mode does not support
asynchronous login).
byHttps BYTE Whether to enable TLS for login (by private
protocol or by text protocol): 0-no, 1-yes, 2-​self-
adaptive (which is usually used when the
protocol type supported by device is unknown.
Both HTTP and HTTPS requests will be sent).
iProxyID LONG Proxy server No.
byVerifyMode BYTE Whether to enable verification mode: 0-no, 1-
bidirectional verification (currently not
available), 2-​unidirectional verification (it is
valid when byLoginMode is 0 and byHttps is 1);

171
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


when byVerifyMode is 0, CA certificate is not
required, when byVerifyMode is 2, you should
call NET_DVR_SetSDKLocalCfg to load CA
certificate, and the enumeration value is "NET_
SDK_LOCAL_CFG_CERTIFICATION".
byRes3 BYTE[] Reserved, the maximum length is 119 bytes.

7.1.105 NET_SDK_CALLBACK_STATUS_NORMAL

Enumeration About Persistent Connection Status

Enumeration Type Marco Definition Description


Value
NET_SDK_CALLBACK_STATUS_ 1000 Succeeded.
SUCCESS
NET_SDK_CALLBACK_STATUS_ 1001 Connecting. The lpBuffer is 4-byte
PROCESSING status.
NET_SDK_CALLBACK_STATUS_ 1002 Failed. The lpBuffer is the value of
FAILED 4-byte status and 4-byte error
code.

7.1.106 NET_VCA_RECT

Structure About Rectangle Region Coordinate Parameters

Member Data Type Description


fX float X-coordinate of frame's upper-​left corner, it
ranges from 0.000 to 1.
fY float Y-coordinate of frame' upper-​left corner, it
ranges from 0.000 to 1.
fWidth float Frame width, it ranges from 0.000 to 1.
fHeight float Frame height, it ranges from 0.000 to 1.

172
Device Network SDK (ANPR) Developer Guide

7.1.107 NET_ALARM_CVR_SUBINFO_UNION

Union about CVR Alarm Information

Member Data Type Description


byLen BYTE[] Union size, the maximum array length is 492
bytes.
struRecordLost NET_ALARM_RECORD Video loss alarm information, the value of
FILE_LOSS dwAlarmType in
NET_DVR_ALARMINFO_DEV_V40 is 8.
struStreamException NET_ALARM_STREAM Streaming exception alarm information, the
_EXCEPTION value of dwAlarmType in
NET_DVR_ALARMINFO_DEV_V40 is 9.
struResourceUsage NET_ALARM_RESOUR Resource usage alarm information, the value of
CE_USAGE dwAlarmType in
NET_DVR_ALARMINFO_DEV_V40 is 10.
struRecordException NET_ALARM_RECORD Recording exception alarm information, the
_EXCEPTION value of dwAlarmType in
NET_DVR_ALARMINFO_DEV_V40 is 12.

7.1.108 NET_ALARM_RECORD_EXCEPTION

Structure about Recording Exception Alarm Information

Member Data Type Description


byReason BYTE Exception reason: 0-video volume full, 1-video
volume exception, 2-no available video volume.
byRes1 BYTE[] Reserved, set to 0. The maximum array length is
3 bytes.
sVolumeName BYTE[] Video volume name, the maximum array length
is "MAX_VOLUMENAME_LEN" (32 bytes).
dwVolumeID DWORD Video volume ID, or HDD No.
byRes BYTE[] Reserved, set to 0. The maximum array length is
452 bytes.

173
Device Network SDK (ANPR) Developer Guide

7.1.109 NET_ALARM_RECORDFILE_LOSS

Structure about Video Loss Alarm Information

Member Data Type Description


struInspectStart NET_DVR_TIME_EX Start time of video loss check.
struInspectEnd NET_DVR_TIME_EX End time of video loss check.
struIP NET_DVR_IPADDR_UN IP address of video loss channel.
ION
dwChanNo DWORD Channel No.
dwIDIndex DWORD Encoder ID.
sName BYTE[] Encoder name, the maximum array length is
"STREAM_ID_LEN" (32 bytes).
struLossStartTime NET_DVR_TIME_EX Start time of video loss.
struLossEndTime NET_DVR_TIME_EX End time of video loss.
dwLostNum DWORD Number of lost video files, 0xffffffff-​all video
files are lost.
byRes BYTE[] Reserved, set to 0. The maximum array length is
240 bytes.

7.1.110 NET_ALARM_RESOURCE_USAGE

Structure about Resource Usage Alarm Information

Member Data Type Description


byLevel BYTE Usage alarm level: 0-normal, 1-alarm level 1, 2-
alarm level 2, 3-alarm level 3.
byRes BYTE[] Reserved, set to 0. The maximum array length is
491 bytes.

7.1.111 NET_ALARM_STREAM_EXCEPTION

174
Device Network SDK (ANPR) Developer Guide

Structure about Video Exception Alarm Information

Member Data Type Description


struIP NET_DVR_IPADDR_UN IP address of video exception channel.
ION
dwChanNo DWORD Channel No.
dwIDIndex DWORD Encoder ID.
sName BYTE[] Encoder name, the maximum array length is
"STREAM_ID_LEN" (32 bytes).
byExceptionCase BYTE Exception reason: 0-data writing exception, 1-
network exception.
byRes BYTE[] Reserved, set to 0. The maximum array length is
307 bytes.

7.1.112 NET_DVR_ALARMER

Alarm Device Information Structure

Member Data Type Description


byUserIDValid BYTE Whether the user ID is valid: 0-no, 1-yes
bySerialValid BYTE Whether the serial No. is valid: 0-no, 1-yes
byVersionValid BYTE Whether the version No. is valid: 0-no, 1-yes
byDeviceNameValid BYTE Whether the device name is valid: 0-no, 1-yes
byMacAddrValid BYTE Whether the MAC address is valid: 0-no, 1-yes
byLinkPortValid BYTE Whether the login port No. is valid: 0-no, 1-yes
byDeviceIPValid BYTE Whether the device IP address is valid: 0-no, 1-
yes
bySocketIPValid BYTE Whether the Socket IP address is valid: 0-no, 1-
yes
lUserID LONG Value returned by NET_DVR_Login_V40 , it is
valid when arming.
sSerialNumber Array of BYTE Serial No.

175
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


dwDeviceVersion DWORD Version information
sDeviceName Array of char Device name
byMacAddr Array of BYTE MAC address
wLinkPort WORD Device communication port No.
sDeviceIP Array of char Device IP address
sSocketIP Array of char Socket IP address when actively uploading
alarm.
byIpProtocol BYTE Network protocol: 0-IPv4, 1-IPv6
byRes2 Array of BYTE Reserved, set to 0.

7.1.113 NET_DVR_ALARMINFO_DEV

Device Alarm Information Structure

Memeber Data Type Description


dwAlarmType DWORD Alarm types: 0-alarm input alarm of encoder, 1-
second private volume damaged, 2-NVR
disconnected, 3-encoder exception, 4-system
clock exception, 5-the remaining capacity of the
recording volume is too low, 6-​motion detection
alarm of encoder or encoding channel, 7-video
tampering alarm of encoder or encoding
channel.
struTime Alarm time
byRes Array of BYTE Reserved, set to 0.
dwNumber DWORD Number of alarm triggered channels.
pNO WORD* Channel No. or disk No., which ranges from 0 to
65535.

Remarks
For pNO: if dwAlarmType is 0, 3, 6, or 7, it may be channel No.; if dwAlarmType is 5, it may be disk
No.

176
Device Network SDK (ANPR) Developer Guide

7.1.114 NET_DVR_ALARMINFO_DEV_V40

Structure about CVR Alarm Information

Member Data Type Description


dwAlarmType DWORD Alarm categories: 0-alarm input alarm of
encoder, 1-second private volume damaged, 2-
NVR disconnected, 3-encoder exception, 4-
system clock exception, 5-the remaining
capacity of the recording volume is too low, 6-
motion detection alarm of encoder or encoding
channel, 7-video tampering alarm of encoder or
encoding channel, 8-video loss alarm, 9-​real-
time health monitoring alarm, 10-usage alarm,
11-CVR exception recovered, 12-recording
exception.
struTime NET_DVR_TIME Alarm time
uSubAlarmInfo NET_ALARM_CVR_SU CVR alarm information structure, and it is valid
BINFO_UNION when the alarm type is 8, 9, 10, and 12.
byRes Array of BYTE Reserved, set to 0. The maximum size is 256
bytes.
dwNumber DWORD Number of alarm triggered channels.
pNO WORD* Channel No. or disk No., which ranges from 0 to
65535.

Remarks
For pNO: if dwAlarmType is 0, 3, 6, or 7, it may be channel No.; if dwAlarmType is 5, it may be disk
No.

7.1.115 NET_DVR_ALARMINFO_V30

Structure About Uploaded Alarm Information

Member Data Type Description


dwAlarmType DWORD Alarm types: 0-alarm input alarm of encoder, 1-
second private volume damaged, 2-NVR

177
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


disconnected, 3-encoder exception, 4-system
clock exception, 5-the remaining capacity of the
recording volume is too low, 6-​motion detection
alarm of encoder or encoding channel, 7-video
tampering alarm of encoder or encoding
channel, 8-video loss alarm, 9-​real-​time health
monitoring alarm, 10-usage alarm, 11-CVR
exception recovered, 12-recording exception.
dwAlarmInputNumber DWORD Alarm input No., it is valid when alarm type is 0
or 23
byAlarmOutputNumbe Array of BYTE The triggered alarm output No. E.g.
r dwAlarmOutputNumber[0]==1 indicates that
alarm output No.1 is triggered;
dwAlarmOutputNumber[1]==1 indicates that
alarm output No.2 is triggered.
byAlarmRelateChannel Array of BYTE The triggered recording channel No.: 0-not
triggered, 1-triggered. E.g.
dwAlarmRelateChannel[0]==1 indicates that the
channel No.1 is triggered to record.
byChannel Array of BYTE Alarm channel, it is valid when alarm type is 2,
3, 6, 9, 10 or 11. E.g. dwChannel[0]==1 indicates
that the channel No. is in alarm.
byDiskNumber Array of BYTE Alarm HDD, it is valid when alarm type is 1, 4, or
5. E.g. dwDiskNumber [0]==1 indicates that the
HDD No.1 is abnormal.

Remarks
The time interval to upload the alarm of face picture library changed is 1 hour; for other alarm
type, the alarm information is uploaded in real-time, and the time interval is 1s. Currently, editing
the time interval is not supported.

7.1.116 NET_DVR_ALARMINFO_V40

178
Device Network SDK (ANPR) Developer Guide

Structure About Uploaded Alarm Information

Member Data Type Description


struAlarmFixedHeader NET_DVR_ALRAM_FIX Constant content in alarm information, see
ED_HEADER details in the structure .
pAlarmData DWORD* Variable content in alarm information

Remarks
● The time interval to upload the alarm of face picture library changed is 1 hour; for other alarm
type, the alarm information is uploaded in real-time, and the time interval is 1s. Currently,
editing the time interval is not supported.
● The content of pAlarmData varies with the value of dwAlarmType in the structure
NET_DVR_ALRAM_FIXED_HEADER , see details in the table below:

Table 7-1 Relations Between pAlarmData and dwAlarmType


dwAlarmType Description pAlarmData
0, 23 Alarm input alarm, pulse alarm dwTrigerAlarmOutNum*(DWOR
D) Alarm output No.,
+dwTrigerRecordChanNum*(DW
ORD) Channel No.
2, 3, 6, 9, 10, 11, 13, 15, Video loss, motion detection, dwAlarmChanNum*(DWORD)
16, 19 video tampering alarm, video channel No.
exception, recording exception,
scene change, resolution
mismatched, VCA detection, PoE
power supply exception, audio
loss
1, 4, 5 HDD full, HDD uninitialized, dwAlarmHardDiskNum*(DWOR
writing to HDD failed D) HDD No.
7, 8, 12, 17, 18, 24, 25, 26 Standard mismatches, invalid None
login, array exception, education
sharing system alarm, two-way
audio request alarm, face library
HDD exception, face library
changed, picture changed in face
picture library

179
Device Network SDK (ANPR) Developer Guide

7.1.117 NET_DVR_ALRAM_FIXED_HEADER

Structure About Constant Alarm Information

Member Data Type Description


dwAlarmType DWORD Alarm information type: 0-alarm input alarm, 1-
HDD full, 2-video loss, 3-​motion detection, 4-
HDD unformatted, 5-​writing to HDD failed, 6-
video tampering alarm, 7-standard mismatched,
8-invalid login, 9-video exception, 10-recording
exception, 11-scene change, 12-RAID exception,
13-​resolution mismatched, 15-VCA detection,
16- PoE power supply exception, 17-​education
sharing system alarm, 18-two-way audio
request alarm, 23-pulse alarm, 24-face picture
library HDD exception, 25-face picture library
changed, 26-picture of face picture library
changed, 27-POC exception, 28-camera FOV
exception, 30-no SD card, 31-supply voltage
exception, 32-PTZ locked
struAlarmTime NET_DVR_TIME_EX Alarm time
uStruAlarm Union ( Table 7-2 ) Alarm information union
pRes DWORD* Reserved.
byTimeDiffFlag BYTE Whether the time difference parameter is valid:
0-invalid, 1-valid.
cTimeDifferenceH char Time difference between time and UTC time,
unit: hour, the value is between -12 and +14
("+" indicates the east time zone), it is valid
when byISO8601 is "1".
cTimeDifferenceM char Time difference between time and UTC time,
unit: minute, the value is -30, +30, or +45 ("+"
indicates the east time zone), it is valid when
byISO8601 is "1".
byRes Array of BYTE Reserved, set to 0. The maximum size is 5 bytes.

180
Device Network SDK (ANPR) Developer Guide

Table 7-2 Union about Alarm Information Structures (uStruAlarm)


Member Data Type Description
byUnionLen Array of BYTE Union size, which is 116 bytes.
struIOAlarm Struct ( Table 7-3 ) Structure about alarm input parameters
struAlarmChannel Struct ( Table 7-4 ) Structure about alarm channel parameters
struAlarmHardDisk Struct ( Table 7-5 ) Structure about HDD alarm parameters
struRecordingHost Struct ( Table 7-6 ) Structure about alarm parameters of education
sharing system
struVoltageInstable Struct ( Table 7-7 ) Structure about alarm parameters of supply
voltage exception
struPTLocking Struct ( Table 7-8 Structure about parameters of PTZ locked alarm

Table 7-3 Structure about Alarm Input Parameters (struIOAlarm)


Member Data Type Description
dwAlarmInputNo DWORD Alarm input No.
dwTrigerAlarmOutNum DWORD The number of triggered alarm outputs. It is
used for calculating the number of all triggered
alarm outputs by pAlarmData in
NET_DVR_ALARMINFO_V40 , each alarm
output is represented by 4 bytes.
dwTrigerRecordChanN DWORD The number of triggered recording channels. It
um is used for calculating the number of all
triggered recording channels by pAlarmData of
NET_DVR_ALARMINFO_V40 , each channel is
represented by 4 bytes.

Table 7-4 Structure about Alarm Channel Parameters (struAlarmChannel)


Member Data Type Description
dwAlarmChanNum DWORD The number of alarm channels. It is used for
calculating the number of all alarm channels by
pAlarmData of NET_DVR_ALARMINFO_V40 ,
each alarm channel is represented by 4 bytes.
dwPicLen DWORD Size of JPEG picture.
byPicURL BYTE Picture data format: 0-binary data, 1-URL.

181
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


byTarget BYTE Detection target type: 0-not supported, 1-
person, 2-vehicle.
byRes1 Array of BYTE Reserved, the maximum size is 2 bytes.
pDataBuff char* Alarm picture data or URL. The pointer size is 8
bytes.
byRes3 Array of BYTE Reserved, the maximum size is 4 bytes. This
member is only available for 64-bit Window
operating system and 64-bit Linux operating
system.

Table 7-5 Structure about HDD Alarm Parameters (struAlarmHardDisk)


Member Data Type Description
dwAlarmHardDiskNum DWORD The number of alarm HDD. It is used for
calculating the number of all alarm HDDs by
pAlarmData of NET_DVR_ALARMINFO_V40 ,
each alarm HDD is represented by 4 bytes.

Table 7-6 Structure about Alarm Parameters of Education Sharing System (struRecordingHost)
Member Data Type Description
bySubAlarmType BYTE Alarm minor type: 1-one-touch post-record
byRes1 Array of BYTE Reserved, set to 0. The maximum size is 3 bytes.
struRecordEndTime NET_DVR_TIME_EX Recording end time.

Table 7-7 Structure about Alarm Parameters of Supply Voltage Exception (struVoltageInstable)
Member Data Type Description
fVoltageValue float Supply voltage, unit: V, corrects to one decimal
place.
byVoltageAlarmType BYTE Supply voltage exception type: 0-high supply
voltage, 1-low supply voltage
byRes1 Array of BYTE Reserved, set to 0. The maximum size is 3 bytes.

182
Device Network SDK (ANPR) Developer Guide

Table 7-8 Structure about Parameters of PTZ Locked Alarm (struPTLocking)


Member Data Type Description
fTemperature float Sensor temperature, which is accurate to one
decimal place.
dwCustomInfoLength DWORD Custom information length.
pCustomInfo BYTE* Custom information.
byType BYTE PTZ locked direction: 1-panning is locked, 2-
tilting is locked.
byDeicingEnabled BYTE Whether to enable heat for PTZ: 0-no, 1-yes.

Remarks
dwAlarmType==0, 23 corresponds to the structure struIOAlarm; dwAlarmType==
2/3/6/9/10/11/13/15/16/28 corresponds to the structure struAlarmChannel; dwAlarmType==
1/4/5 corresponds to the structure struAlarmHardDisk; dwAlarmType== 17 corresponds to the
structure struRecordingHost; dwAlarmType== 31 corresponds to the structure struVoltageInstable;
for other value, the union is not available.

7.1.118 NET_DVR_ALARM_ISAPI_INFO

Structure about Alarm Information Transmitted Based on Text Protocol

Member Data Type Description


pAlarmData char* Alarm information based on
text protocol (XML or JSON
message without binary data).
dwAlarmDataLen DWORD Alarm data length.
byDataType BYTE Alarm data type: 0-invalid, 1-
XML, 2-JSON.
byPicturesNumber BYTE The number of pictures
(number of pPicPackData
returned). When this member
is 1, only one structure of
NET_DVR_ALARM_ISAPI_PICD
ATA will be returned by
pPicPackData. When this

183
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


member is larger than 1,
multiple structures of
NET_DVR_ALARM_ISAPI_PICD
ATA will be returned by
pPicPackData.
byRes Array of BYTE Reserved, set to 0. The
maximum size is 2 bytes.
pPicPackData void* Alarm picture structure, see
NET_DVR_ALARM_ISAPI_PICD
ATA for details.
byRes Array of BYTE Reserved. The maximum size is
32 bytes.

Remarks
When enabling the listening mode, you should call the network configuration API based on text
protocol to set the IP address for the listening service.

7.1.119 NET_DVR_ALARM_ISAPI_PICDATA

Structure about Alarm Picture Data Transmitted Based on Text Protocol

Member Data Type Description


dwPicLen DWORD Alarm picture data length.
byRes Array of BYTE Reserved, set to 0. The
maximum size is 4 bytes.
szFilename Array of char Picture file saving path,
including file name. The
maximum size is 256 bytes.
pPicData BYTE* Pointer that pointing to the
uploaded image data.

7.1.120 NET_DVR_ETHERNET_V30

184
Device Network SDK (ANPR) Developer Guide

Ethernet Configuration Structure

Member Data Type Description


struDVRIP NET_DVR_IPADDR_UN Device IP address
ION
struDVRIPMask NET_DVR_IPADDR_UN Mask of device IP address
ION
dwNetInterface DWORD Network interface type: 1-10MBase-T;
2-10MBase-T (full duplex); 3-100MBase-TX;
4-100M (full duplex); 5-10M/100M/1000M
(self-adaptive); 6-1000M (full duplex)
wDVRPort WORD Device port No.
wMTU WORD MTU settings, the default is 1500.
byMACAddr Array of BYTE Device physical address.
byEthernetPortNo BYTE Network interface No.: 0-invalid, 1-interface 0,
2-interface 1, and so on. This parameter is read-
only.
byRes Array of BYTE Reserved.

7.1.121 NET_DVR_IPADDR_UNION

IP Address Union

Member Data Type Description


szIPv4 char[] IPv4 address. The maximum length is 16 bytes.
szIPv6 char[] IPv6 address. The maximum length is 256 bytes.

7.1.122 NET_DVR_NETCFG_V50

185
Device Network SDK (ANPR) Developer Guide

Network Configuration Structure

Member Data Type Description


dwSize DWORD Structure size.
struEtherNet Array of Ethernet interface
NET_DVR_ETHERNET_
V30
struRes1 Array of Reserved, set to 0.
struAlarmHostIpAddr NET_DVR_IPADDR_UN Listening service IP address
ION
byRes2 Array of BYTE Reserved, set as 0
wAlarmHostIpPort WORD Listening service port No.
byUseDhcp BYTE Whether to enable DHCP: 0xff- invalid; 0-
disable, 1-enable
byIPv6Mode BYTE Allocation mode of IPv6 address: 0-by router
advertisement, 1-by manual setting, 2-by
enabling DHCP allocation.
struDnsServer1IpAddr NET_DVR_IPADDR_UN IP address of domain name server 1
ION
struDnsServer2IpAddr NET_DVR_IPADDR_UN IP address of domain name server 2
ION
byIpResolver Array of BYTE IP resolver domain name or IP address (if the
port No. of device is 8000, the domain name is
not supported).
wIpResolverPort WORD IP resolver port No.
wHttpPortNo WORD HTTP port No.
struMulticastIpAddr NET_DVR_IPADDR_UN Multicast group address
ION
struGatewayIpAddr NET_DVR_IPADDR_UN Gateway address
ION
struPPPoE NET_DVR_PPPOECFG PPPoE parameters
byEnablePrivateMultic BYTE Private multicast search (SADP): 0-default, 1-
astDiscovery enable, 2-disable

186
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


byEnableOnvifMulticas BYTE Onvif multicast search (SADP): 0-default, 1-
tDiscovery enable, 2-disable
wAlarmHost2IpPort WORD Port No. of listening host 2.
struAlarmHost2IpAddr NET_DVR_IPADDR_UN IP address of listening host 2
ION
byEnableDNS BYTE DNS address setting mode: 0-​automatically get,
1-manually set.
byRes Array of BYTE Reserved, set to 0

Remarks
● For device only supports the private protocol with version 3.0 or lower, when the parameter
byUseDhcp="0xff", you should set the device IP address to null, and then the device will
automatically get the DHCP information.
● When the parameter byIPv6Mode is set to 0 or 2, setting IPv6 address in the parameter
struEtherNet is not required, it will be obtained automatically by the device; when byIPv6Mode
is set to 1, you should set IPv6 address. As there are multiple IPv6 addresses, the IPv6 address of
current logged-in device may be different with that in struEtherNet.

7.1.123 NET_DVR_PPPOECFG

PPPoE Configuration Structure

Member Data Type Description


dwPPPOE DWORD Whether to enable PPPoE: 0-no, 1-yes.
sPPPoEUser Array of BYTE PPPoE user name.
sPPPoEPassword Array of char PPPoE password.
struPPPoEIP NET_DVR_IPADDR_UN PPPoE IP address
ION

7.1.124 NET_DVR_SETUPALARM_PARAM_V50

187
Device Network SDK (ANPR) Developer Guide

Arming Parameter Structure

Member Data Type Description


dwSize DWORD Structure size.
byLevel BYTE Arming priority: 0-high, 1-medium, 2-low.
byAlarmInfoType BYTE Intelligent traffic alarm information type: 0-old
(NET_DVR_PLATE_RESULT),1-new (NET_ITS_
PLATE_RESULT).
byRetAlarmTypeV40 BYTE 0-the motion detection, video loss, video
tampering, and alarm input alarm information
is uploaded in normal mode (alarm type:
COMM_ALARM_V30, alarm information
structure: NET_DVR_ALARMINFO_V30 ); 1-
alarm information is uploaded in variable size
(alarm type: COMM_ALARM_V40, alarm
information structure:
NET_DVR_ALARMINFO_V40 ).
byRetDevInfoVersion BYTE Alarm types of CVR: 0-COMM_ALARM_DEVICE
(alarm information structure:
NET_DVR_ALARMINFO_DEV ), 1-COMM_
ALARM_DEVICE_V40 (alarm information
structure: NET_DVR_ALARMINFO_DEV_V40 ).
byRetVQDAlarmType BYTE VQD alarm types: 0-COMM_ALARM_VQD
(alarm information structure: NET_DVR_VQD_
DIAGNOSE_INFO), 1-COMM_ALARM_VQD_EX
(alarm information structure: NET_DVR_VQD_
ALARM, including camera information and
captured pictures)
byFaceAlarmDetection BYTE Face detection alarm types: 1-face detection
alarm (alarm type: COMM_ALARM_FACE_
DETECTION, alarm information structure: NET_
DVR_FACE_DETECTION), 0-face capture alarm
(alarm type: COMM_UPLOAD_FACESNAP_
RESULT, alarm information structure: NET_VCA_
FACESNAP_RESULT).
bySupport BYTE Capabilities, which is represented by bit:
● bit0-whether to upload picture: 0-yes, 1-no

● bit1-whether to enable ANR: 0-no, 1-yes

188
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


● bit4-whether to upload abnormal event
detection events of all detection targets: 0-
no, 1-yes. It is used to enable the NVR to get
events of all targets detected by network
cameras.
● bit5-whether to enable all-day event or alarm
uploading: 0-no, 1-yes. It is used to enable
the NVR to receive all alarms from network
cameras.
byBrokenNetHttp BYTE ANR type, which is represented by bit and
should be supported by device:
● bit0-whether to enable ANR for ANPR: 0-no,

1-yes.
● bit1-whether to enable ANR for people

counting: 0-no, 1-yes.


● bit2-whetehr to enable ANR for heat map: 0-

no, 1-yes.
● bit3-whether to enable ANR for face capture:

0-no, 1-yes.
● bit4-whether to enable ANR for face picture

comparison: 0-no, 1-yes.


● bit5-whether to enable ANR for JSON

message transmission: 0-no, 1-yes.


● bit6: whether to enable ANR for uploading

heat map data by dwell time duration and by


people quantity: 0-no, 1-yes.
● bit7: whether to enable ANR for uploading

intersection analysis result: 0-no, 1-yes.


wTaskNo BYTE Task No.
byDeployType BYTE Arming type: 0-arm via client software, 1-​real-
time arming.
bySubScription BYTE Subscription parameters, which is represent by
bit.
Bit7-whether to upload picture after subscribing
motion detection alarm by person or vehicle: 0-
no, 1-yes.
byRes1 Array [BYTE] Reserved, set to 0. The maximum size is 2 bytes.

189
Device Network SDK (ANPR) Developer Guide

Member Data Type Description


byAlarmTypeURL BYTE Alarm picture data type, which is represented
by bit, if the device supports uploading alarm
pictures in binary format and URL format, you
can specify the data type to be uploading via
this parameter, if the device only supports URL
format, this parameter is invalid. If the URL
format is selected, you should set the device
and enable the cloud storage, otherwise, the
picture will still be transmitted in binary format.
● bit0-type of captured face pictures: 0-binary

data, 1-URL
● bit1-type of picture uploaded in message: 0-

binary, 1-URL
● bit2-type of picture uploaded for face picture

comparison: 0-binary, 1-URL


byCustomCtrl BYTE Custom control type, which is represented by
bit, bit0-whether to upload the face thumbnail
of the front passenger: 0-no, 1-yes
byRes4 Array [BYTE] Reserved, set to 0. The maximum size is 128
bytes.

Remarks
● The parameters byLevel and byAlarmInfoType are available for traffic cameras. Up to 1 cameras
can be armed in the priority of level 0, up to 3 cameras can be armed in the priority of level 1,
and up to 5 cameras can be armed in the priority of level 3, the alarm/event information from
the camera in highest priority will be uploaded first.
● For arming via client software, only supports arming one channel, and supports uploading the
alarm/event when device is offline; for real-time arming, up to four channels can be armed at
same time, but uploading alarm/event when device is offline is not supported.
● The parameter wTaskNo is used to distinguish different arming connections. If the value of this
parameter in different arming connections is same, error will be returned.

7.1.125 NET_DVR_TIME

190
Device Network SDK (ANPR) Developer Guide

Time Parameter Structure

Member Data Type Description


dwYear DWORD Year
dwMonth DWORD Month
dwDay DWORD Day
dwHour DWORD Hour
dwMinute DWORD Minute
dwSecond DWORD Second

7.1.126 NET_DVR_TIME_EX

Extended Time Parameter Structure

Member Data Type Description


wYear WORD Year
byMonth BYTE Month
byDay BYTE Day
byHour BYTE Hour
byMinute BYTE Minute
bySecond BYTE Second
byRes BYTE Reserved.

7.2 Enumeration

7.2.1 COUNTRY_INDEX
Enumerate country names.

Enumeration Definition
enum{
COUNTRY_NONSUPPORT = 0,

191
Device Network SDK (ANPR) Developer Guide

COUNTRY_CZE = 1,
COUNTRY_FRA = 2,
COUNTRY_DEU = 3,
COUNTRY_ESP = 4,
COUNTRY_ITA = 5,
COUNTRY_NLD = 6,
COUNTRY_POL = 7,
COUNTRY_SVK = 8,
COUNTRY_BLR = 9,
COUNTRY_MDA = 10,
COUNTRY_RUS = 11,
COUNTRY_UKR = 12,
COUNTRY_BEL = 13,
COUNTRY_BGR = 14,
COUNTRY_DNK = 15,
COUNTRY_FIN = 16,
COUNTRY_GBR = 17,
COUNTRY_GRC = 18,
COUNTRY_HRV = 19,
COUNTRY_HUN = 20,
COUNTRY_ISR = 21,
COUNTRY_LUX = 22,
COUNTRY_MKD = 23,
COUNTRY_NOR = 24,
COUNTRY_PRT = 25,
COUNTRY_ROU = 26,
COUNTRY_SRB = 27,
COUNTRY_AZE = 28,
COUNTRY_GEO = 29,
COUNTRY_KAZ = 30,
COUNTRY_LTU = 31,
COUNTRY_TKM = 32,
COUNTRY_UZB = 33,
COUNTRY_LVA = 34,
COUNTRY_EST = 35,
COUNTRY_ALB = 36,
COUNTRY_AUT = 37,
COUNTRY_BIH = 38,
COUNTRY_IRL = 39,
COUNTRY_ISL = 40,
COUNTRY_VAT = 41,
COUNTRY_MLT = 42,
COUNTRY_SWE = 43,
COUNTRY_CHE = 44,
COUNTRY_CYP = 45,
COUNTRY_TUR = 46,
COUNTRY_SVN = 47,
COUNTRY_MTG = 48,
COUNTRY_KOV = 49,
COUNTRY_ADR = 50,
COUNTRY_ARM = 51,
COUNTRY_MON = 52,

192
Device Network SDK (ANPR) Developer Guide

COUNTRY_LIE = 53,
COUNTRY_SMO = 54,
COUNTRY_RES1 = 55,
COUNTRY_RES2 = 56,
COUNTRY_RES3 = 57,
COUNTRY_RES4 = 58,
COUNTRY_CHI = 59,
COUNTRY_IBN = 60,
COUNTRY_SKR = 61,
COUNTRY_LEB = 62,
COUNTRY_NEP = 63,
COUNTRY_THA = 64,
COUNTRY_PAK = 65,
COUNTRY_EMI = 66,
COUNTRY_BHU = 67,
COUNTRY_OMA = 68,
COUNTRY_KOR = 69,
COUNTRY_PHI = 70,
COUNTRY_CAM = 71,
COUNTRY_QAT = 72,
COUNTRY_KYR = 73,
COUNTRY_MAL = 74,
COUNTRY_MLY = 75,
COUNTRY_MOG = 76,
COUNTRY_ARA = 77,
COUNTRY_BRU = 78,
COUNTRY_LAO = 79,
COUNTRY_JAP = 80,
COUNTRY_RES19 = 81,
COUNTRY_PAS = 82,
COUNTRY_TAJ = 83,
COUNTRY_KUW = 84,
COUNTRY_SYR = 85,
COUNTRY_IND = 86,
COUNTRY_ISA = 87,
COUNTRY_AFG = 88,
COUNTRY_LAN = 89,
COUNTRY_IRQ = 90,
COUNTRY_VIE = 91,
COUNTRY_IRA = 92,
COUNTRY_YEM = 93,
COUNTRY_JOR = 94,
COUNTRY_BUR = 95,
COUNTRY_SIK = 96,
COUNTRY_BAN = 97,
COUNTRY_SGA = 98,
COUNTRY_EAT = 99,
COUNTRY_RES5 = 100,
COUNTRY_RES6 = 101,
COUNTRY_RES7 = 102,
COUNTRY_RES8 = 103,
COUNTRY_EGT = 104,

193
Device Network SDK (ANPR) Developer Guide

COUNTRY_LIY = 105,
COUNTRY_SUA = 106,
COUNTRY_TUN = 107,
COUNTRY_ALG = 108,
COUNTRY_MCC = 109,
COUNTRY_ETH = 110,
COUNTRY_ERI = 111,
COUNTRY_SDE = 112,
COUNTRY_DJI = 113,
COUNTRY_KEN = 114,
COUNTRY_TAI = 115,
COUNTRY_UGA = 116,
COUNTRY_RWA = 117,
COUNTRY_BUD = 118,
COUNTRY_SEY = 119,
COUNTRY_CHA = 120,
COUNTRY_CEA = 121,
COUNTRY_CON = 122,
COUNTRY_EQG = 123,
COUNTRY_GAB = 124,
COUNTRY_TCO = 125,
COUNTRY_DRC = 126,
COUNTRY_STP = 127,
COUNTRY_MAN = 128,
COUNTRY_WSA = 129,
COUNTRY_SEL = 130,
COUNTRY_TGA = 131,
COUNTRY_MAI = 132,
COUNTRY_BUF = 133,
COUNTRY_GUI = 134,
COUNTRY_GUB = 135,
COUNTRY_CAV = 136,
COUNTRY_SLE = 137,
COUNTRY_LIR = 138,
COUNTRY_IVC = 139,
COUNTRY_GHA = 140,
COUNTRY_TGO = 141,
COUNTRY_BEN = 142,
COUNTRY_NIG = 143,
COUNTRY_ZAB = 144,
COUNTRY_ANG = 145,
COUNTRY_ZBE = 146,
COUNTRY_MAW = 147,
COUNTRY_MOQ = 148,
COUNTRY_BOT = 149,
COUNTRY_NAM = 150,
COUNTRY_SAF = 151,
COUNTRY_SWD = 152,
COUNTRY_LES = 153,
COUNTRY_MAG = 154,
COUNTRY_UOC = 155,
COUNTRY_MAT = 156,

194
Device Network SDK (ANPR) Developer Guide

COUNTRY_NGE = 157,
COUNTRY_SSD = 158,
COUNTRY_SAH = 159,
COUNTRY_MYT = 160,
COUNTRY_REN = 161,
COUNTRY_CAI = 162,
COUNTRY_AZO = 163,
COUNTRY_MAD = 164,
COUNTRY_RES9 = 165,
COUNTRY_RES10 = 166,
COUNTRY_RES11 = 167,
COUNTRY_RES12 = 168,
COUNTRY_CAD = 169,
COUNTRY_GRE = 170,
COUNTRY_PIE = 171,
COUNTRY_USA = 172,
COUNTRY_BER = 173,
COUNTRY_MEX = 174,
COUNTRY_GUA = 175,
COUNTRY_BLI = 176,
COUNTRY_SAR = 177,
COUNTRY_HOR = 178,
COUNTRY_NIC = 179,
COUNTRY_COR = 180,
COUNTRY_PAN = 181,
COUNTRY_TBM = 182,
COUNTRY_TCI = 183,
COUNTRY_CUB = 184,
COUNTRY_JAM = 185,
COUNTRY_CAY = 186,
COUNTRY_HAT = 187,
COUNTRY_TDO = 188,
COUNTRY_PUR = 189,
COUNTRY_VIL = 190,
COUNTRY_BVI = 191,
COUNTRY_ATV = 192,
COUNTRY_ANB = 193,
COUNTRY_CSM = 194,
COUNTRY_ACY = 195,
COUNTRY_SBY = 196,
COUNTRY_SKN = 197,
COUNTRY_MOT = 198,
COUNTRY_GLP = 199,
COUNTRY_DOM = 200,
COUNTRY_MTE = 201,
COUNTRY_LUC = 202,
COUNTRY_SVG = 203,
COUNTRY_GRD = 204,
COUNTRY_BAR = 205,
COUNTRY_TRT = 206,
COUNTRY_CUR = 207,
COUNTRY_ARB = 208,

195
Device Network SDK (ANPR) Developer Guide

COUNTRY_NEA = 209,
COUNTRY_COL = 210,
COUNTRY_VEN = 211,
COUNTRY_GUY = 212,
COUNTRY_SUR = 213,
COUNTRY_FRN = 214,
COUNTRY_ECU = 215,
COUNTRY_PER = 216,
COUNTRY_BOL = 217,
COUNTRY_PAR = 218,
COUNTRY_CLE = 219,
COUNTRY_BRA = 220,
COUNTRY_UGY = 221,
COUNTRY_ARG = 222,
COUNTRY_RES13 = 223,
COUNTRY_RES14 = 224,
COUNTRY_RES15 = 225,
COUNTRY_RES16 = 226,
COUNTRY_ATN = 227,
COUNTRY_NED = 228,
COUNTRY_PNG = 229,
COUNTRY_SAN = 230,
COUNTRY_VAU = 231,
COUNTRY_NCN = 232,
COUNTRY_PAU = 233,
COUNTRY_FSM = 234,
COUNTRY_MRI = 235,
COUNTRY_CNM = 236,
COUNTRY_TEG = 237,
COUNTRY_NUR = 238,
COUNTRY_KIB = 239,
COUNTRY_FID = 240,
COUNTRY_TNG = 241,
COUNTRY_TUV = 242,
COUNTRY_WEF = 243,
COUNTRY_TIS = 244,
COUNTRY_EAS = 245,
COUNTRY_TOE = 246,
COUNTRY_NUE = 247,
COUNTRY_TCD = 248,
COUNTRY_PFP = 249,
COUNTRY_PID = 250,
COUNTRY_HAW = 251,
COUNTRY_RES17 = 252,
COUNTRY_RES18 = 253,
COUNTRY_UNRECOGNIZED = 0xfe,
COUNTRY_ALL = 0xff,
COUNTRY_INVALID = 0xfd
}COUNTRY_INDEX

196
Device Network SDK (ANPR) Developer Guide

Members
COUNTRY_NONSUPPORT
Not support
COUNTRY_CZE
Czech Republic
COUNTRY_DEU
Germany
COUNTRY_ESP
Spain
COUNTRY_ITA
Italy
COUNTRY_NLD
Netherlands
COUNTRY_POL
Poland
COUNTRY_SVK
Slovakia
COUNTRY_BLR
Belorussia
COUNTRY_MDA
Moldova
COUNTRY_RUS
Russia
COUNTRY_UKR
Ukraine
COUNTRY_BEL
Belgium
COUNTRY_BGR
Bulgaria
COUNTRY_DNK
Denmark
COUNTRY_FIN
Finland
COUNTRY_GBR

197
Device Network SDK (ANPR) Developer Guide

United Kingdom
COUNTRY_GRC
Greece
COUNTRY_HRV
Croatia
COUNTRY_HUN
Hungary
COUNTRY_ISR
Israel
COUNTRY_LUX
Luxembourg
COUNTRY_MKD
Macedonia
COUNTRY_NOR
Norway
COUNTRY_PRT
Portugal
COUNTRY_ROU
Romania
COUNTRY_SRB
Serbia
COUNTRY_AZE
Azerbaijan
COUNTRY_GEO
Georgia
COUNTRY_KAZ
Kazakhstan
COUNTRY_LTU
Lithuania
COUNTRY_TKM
Turkmenistan
COUNTRY_UZB
Uzbekistan
COUNTRY_LVA

198
Device Network SDK (ANPR) Developer Guide

Latvia
COUNTRY_EST
Estonia
COUNTRY_ALB
Albania
COUNTRY_AUT
Austria
COUNTRY_BIH
Bosnia and Herzegovina
COUNTRY_IRL
Ireland
COUNTRY_ISL
Iceland
COUNTRY_VAT
Vatican
COUNTRY_MLT
Malta
COUNTRY_SWE
Sweden
COUNTRY_CHE
Switzerland
COUNTRY_CYP
Cyprus
COUNTRY_TUR
Turkey
COUNTRY_SVN
Slovenia
COUNTRY_MTG
Montenegro
COUNTRY_KOV
Kosovo
COUNTRY_ADR
Andorra
COUNTRY_ARM

199
Device Network SDK (ANPR) Developer Guide

Armenia
COUNTRY_MON
Monaco
COUNTRY_LIE
Liechtenstein
COUNTRY_SMO
San Marino
COUNTRY_RES1
Reserved
COUNTRY_RES2
Reserved
COUNTRY_RES3
Reserved
COUNTRY_RES4
Reserved /* Asia, 48 countries, in which Cyprus is located on the border of Europe and Asia*/
COUNTRY_CHI
China
COUNTRY_IBN
In bahrain
COUNTRY_SKR
South Korea
COUNTRY_LEB
Lebanon
COUNTRY_NEP
Nepal
COUNTRY_THA
Thailand
COUNTRY_PAK
Pakistan
COUNTRY_EMI
The united Arab emirates
COUNTRY_BHU
Bhutan
COUNTRY_OMA

200
Device Network SDK (ANPR) Developer Guide

Oman
COUNTRY_KOR
North Korea
COUNTRY_PHI
The Philippines
COUNTRY_CAM
Cambodia
COUNTRY_QAT
Qatar
COUNTRY_KYR
Kyrgyzstan
COUNTRY_MAL
The maldives
COUNTRY_MLY
Malaysia
COUNTRY_MOG
Mongolia
COUNTRY_ARA
Saudi Arabia
COUNTRY_BRU
brunei
COUNTRY_LAO
Laos
COUNTRY_JAP
Japan
COUNTRY_RES19
Reserved
COUNTRY_PAS
Palestinian state
COUNTRY_TAJ
Tajikistan
COUNTRY_KUW
Kuwait
COUNTRY_SYR

201
Device Network SDK (ANPR) Developer Guide

Syria
COUNTRY_IND
India
COUNTRY_ISA
Indonesia
COUNTRY_AFG
Afghanistan
COUNTRY_LAN
Sri Lanka
COUNTRY_IRQ
Iraq
COUNTRY_VIE
Vietnam
COUNTRY_IRA
Iran
COUNTRY_YEM
yemen
COUNTRY_JOR
Jordan
COUNTRY_BUR
Burma
COUNTRY_SIK
Sikkim
COUNTRY_BAN
Bangladesh
COUNTRY_SGA
Singapore
COUNTRY_EAT
East Timor
COUNTRY_RES5
Reserved
COUNTRY_RES6
Reserved
COUNTRY_RES7

202
Device Network SDK (ANPR) Developer Guide

Reserved
COUNTRY_RES8
Reserved /*Africa, 60 countries and regions*/
COUNTRY_EGT
Egypt
COUNTRY_LIY
Libya
COUNTRY_SUA
Sudan
COUNTRY_TUN
Tunisia
COUNTRY_ALG
Algeria
COUNTRY_MCC
Morocco
COUNTRY_ETH
Ethiopia
COUNTRY_ERI
Eritrea
COUNTRY_SDE
Somalia Democratic
COUNTRY_DJI
Djibouti
COUNTRY_KEN
Kenya
COUNTRY_TAI
Tanzania
COUNTRY_UGA
Uganda
COUNTRY_RWA
Rwanda
COUNTRY_BUD
Burundi
COUNTRY_SEY

203
Device Network SDK (ANPR) Developer Guide

Seychelles
COUNTRY_CHA
Chad
COUNTRY_CEA
Central African
COUNTRY_CON
Cameroon
COUNTRY_EQG
Equatorial Guinea
COUNTRY_GAB
Gabon
COUNTRY_TCO
the Congo
COUNTRY_DRC
Democratic Republic of the Congo
COUNTRY_STP
Sao Tome and Principe
COUNTRY_MAN
Mauritania
COUNTRY_WSA
Western Sahara
COUNTRY_SEL
Senega
COUNTRY_TGA
the Gambia
COUNTRY_MAI
Mali
COUNTRY_BUF
Burkina Faso
COUNTRY_GUI
Guinea
COUNTRY_GUB
Guinea-Bissau
COUNTRY_CAV

204
Device Network SDK (ANPR) Developer Guide

Cape Verde
COUNTRY_SLE
Sierra Leone
COUNTRY_LIR
Liberia
COUNTRY_IVC
Ivory Coast
COUNTRY_GHA
Ghana
COUNTRY_TGO
Togo
COUNTRY_BEN
Benin
COUNTRY_NIG
Niger
COUNTRY_ZAB
Zambia
COUNTRY_ANG
Angola
COUNTRY_ZBE
Zimbabwe
COUNTRY_MAW
Malawi
COUNTRY_MOQ
Mozambique
COUNTRY_BOT
Botswana
COUNTRY_NAM
Namibia
COUNTRY_SAF
South Africa
COUNTRY_SWD
Swaziland
COUNTRY_LES

205
Device Network SDK (ANPR) Developer Guide

Lesotho
COUNTRY_MAG
Madagasca
COUNTRY_UOC
Union of Comoros
COUNTRY_MAT
Mauritius
COUNTRY_NGE
Nigeria
COUNTRY_SSD
South Sudan
COUNTRY_SAH
Saint Helena
COUNTRY_MYT
Mayotte
COUNTRY_REN
Reunion
COUNTRY_CAI
Canary Islands
COUNTRY_AZO
AZORES
COUNTRY_MAD
Madeira
COUNTRY_RES9
Reserved
COUNTRY_RES10
Reserved
COUNTRY_RES11
Reserved
COUNTRY_RES12
Reserved /*America, 55 countries and regions*/
COUNTRY_CAD
Canada
COUNTRY_GRE

206
Device Network SDK (ANPR) Developer Guide

Greenland Nuuk
COUNTRY_PIE
/Pierre and Miquelon
COUNTRY_USA
United States
COUNTRY_BER
Bermuda
COUNTRY_MEX
Mexico
COUNTRY_GUA
Guatemala
COUNTRY_BLI
Belize
COUNTRY_SAR
El Salvador
COUNTRY_HOR
Honduras
COUNTRY_NIC
Nicaragua
COUNTRY_COR
Costa Rica
COUNTRY_PAN
Panama
COUNTRY_TBM
The Bahamas
COUNTRY_TCI
The Turks and Caicos Islands
COUNTRY_CUB
Cuba
COUNTRY_JAM
Jamaica
COUNTRY_CAY
Cayman Islands
COUNTRY_HAT

207
Device Network SDK (ANPR) Developer Guide

Haiti
COUNTRY_TDO
The Dominican
COUNTRY_PUR
Puerto Rico
COUNTRY_VIL
The United States Virgin Islands
COUNTRY_BVI
The British Virgin Islands
COUNTRY_ATV
Anguilla The Valley
COUNTRY_ANB
Antigua and Barbuda
COUNTRY_CSM
Collectivite de Saint-Martin
COUNTRY_ACY
Autonomous country
COUNTRY_SBY
Saint-Barthelemy
COUNTRY_SKN
Saint Kitts and Nevis
COUNTRY_MOT
Montserrat
COUNTRY_GLP
Guadeloupe
COUNTRY_DOM
Dominica
COUNTRY_MTE
Martinique
COUNTRY_LUC
St. Lucia
COUNTRY_SVG
Saint Vincent and the Grenadines
COUNTRY_GRD

208
Device Network SDK (ANPR) Developer Guide

Grenada
COUNTRY_BAR
Barbados
COUNTRY_TRT
Trinidad and Tobago
COUNTRY_CUR
Curaao
COUNTRY_ARB
Aruba
COUNTRY_NEA
Netherlands Antilles
COUNTRY_COL
Colombia
COUNTRY_VEN
Venezuela
COUNTRY_GUY
Guyana
COUNTRY_SUR
Suriname
COUNTRY_FRN
Guyane Francaise
COUNTRY_ECU
Ecuador
COUNTRY_PER
Peru
COUNTRY_BOL
Bolivia
COUNTRY_PAR
Paraguay
COUNTRY_CLE
Chile
COUNTRY_BRA
Brazil
COUNTRY_UGY

209
Device Network SDK (ANPR) Developer Guide

Uruguay
COUNTRY_ARG
Argentina
COUNTRY_RES13
Reserved
COUNTRY_RES14
Reserved
COUNTRY_RES15
Reserved
COUNTRY_RES16
Reserved /*Oceania, 25 countries and regions*/
COUNTRY_ATN
Australien
COUNTRY_NED
Neuseeland
COUNTRY_PNG
Papua New Guinea
COUNTRY_SAN
Salomonen
COUNTRY_VAU
Vanuatu
COUNTRY_NCN
New Caledonia
COUNTRY_PAU
Palau
COUNTRY_FSM
Federated States of Micronesia
COUNTRY_MRI
Marshall Island
COUNTRY_CNM
Commonwealth of the Northern Mariana Islands
COUNTRY_TEG
The Territory of Guahan
COUNTRY_NUR

210
Device Network SDK (ANPR) Developer Guide

Nauru
COUNTRY_KIB
Kiribati
COUNTRY_FID
Fidschi
COUNTRY_TNG
Tonga
COUNTRY_TUV
Tuvalu
COUNTRY_WEF
Wallis et Futuna
COUNTRY_TIS
The Independent State of Samoa
COUNTRY_EAS
Eastern Samoa
COUNTRY_TOE
Tokelau
COUNTRY_NUE
Niue
COUNTRY_TCD
The Cook Islands
COUNTRY_PFP
Polynesie franaise French Polynesia
COUNTRY_PID
Pitcairn Islands
COUNTRY_HAW
Hawaii State
COUNTRY_RES17
Reserved
COUNTRY_RES18
Reserved
COUNTRY_UNRECOGNIZED
Unrecognized
COUNTRY_ALL

211
Device Network SDK (ANPR) Developer Guide

ALL
COUNTRY_INVALID
byCountry is invalid and you should use CRIndex, see CR_INDEX for details.

7.2.2 CR_INDEX
Enumeration about country or region index.

Enumeration Definition
enum{
CR_NONSUPPORT = 0,
CR_CZE = 1,
CR_FRA = 2,
CR_DEU = 3,
CR_ESP = 4,
CR_ITA = 5,
CR_NLD = 6,
CR_POL = 7,
CR_SVK = 8,
CR_BLR = 9,
CR_MDA = 10,
CR_RUS = 11,
CR_UKR = 12,
CR_BEL = 13,
CR_BGR = 14,
CR_DNK = 15,
CR_FIN = 16,
CR_GBR = 17,
CR_GRC = 18,
CR_HRV = 19,
CR_HUN = 20,
CR_ISR = 21,
CR_LUX = 22,
CR_MKD = 23,
CR_NOR = 24,
CR_PRT = 25,
CR_ROU = 26,
CR_SRB = 27,
CR_AZE = 28,
CR_GEO = 29,
CR_KAZ = 30,
CR_LTU = 31,
CR_TKM = 32,
CR_UZB = 33,
CR_LVA = 34,
CR_EST = 35,
CR_ALB = 36,
CR_AUT = 37,

212
Device Network SDK (ANPR) Developer Guide

CR_BIH = 38,
CR_IRL = 39,
CR_ISL = 40,
CR_VAT = 41,
CR_MLT = 42,
CR_SWE = 43,
CR_CHE = 44,
CR_CYP = 45,
CR_TUR = 46,
CR_SVN = 47,
CR_MTG = 48,
CR_KOV = 49,
CR_ADR = 50,
CR_ARM = 51,
CR_MON = 52,
CR_LIE = 53,
CR_SMO = 54,
CR_RES1 = 55,
CR_RES2 = 56,
CR_RES3 = 57,
CR_RES4 = 58,
CR_CHI = 59,
CR_IBN = 60,
CR_SKR = 61,
CR_LEB = 62,
CR_NEP = 63,
CR_THA = 64,
CR_PAK = 65,
CR_EMI = 66,
CR_BHU = 67,
CR_OMA = 68,
CR_KOR = 69,
CR_PHI = 70,
CR_CAM = 71,
CR_QAT = 72,
CR_KYR = 73,
CR_MAL = 74,
CR_MLY = 75,
CR_MOG = 76,
CR_ARA = 77,
CR_BRU = 78,
CR_LAO = 79,
CR_JAP = 80,
CR_RES19 = 81,
CR_PAS = 82,
CR_TAJ = 83,
CR_KUW = 84,
CR_SYR = 85,
CR_IND = 86,
CR_ISA = 87,
CR_AFG = 88,
CR_LAN = 89,

213
Device Network SDK (ANPR) Developer Guide

CR_IRQ = 90,
CR_VIE = 91,
CR_IRA = 92,
CR_YEM = 93,
CR_JOR = 94,
CR_BUR = 95,
CR_SIK = 96,
CR_BAN = 97,
CR_SGA = 98,
CR_EAT = 99,
CR_RES5 = 100,
CR_RES6 = 101,
CR_RES7 = 102,
CR_RES8 = 103,
CR_EGT = 104,
CR_LIY = 105,
CR_SUA = 106,
CR_TUN = 107,
CR_ALG = 108,
CR_MCC = 109,
CR_ETH = 110,
CR_ERI = 111,
CR_SDE = 112,
CR_DJI = 113,
CR_KEN = 114,
CR_TAI = 115,
CR_UGA = 116,
CR_RWA = 117,
CR_BUD = 118,
CR_SEY = 119,
CR_CHA = 120,
CR_CEA = 121,
CR_CON = 122,
CR_EQG = 123,
CR_GAB = 124,
CR_TCO = 125,
CR_DRC = 126,
CR_STP = 127,
CR_MAN = 128,
CR_WSA = 129,
CR_SEL = 130,
CR_TGA = 131,
CR_MAI = 132,
CR_BUF = 133,
CR_GUI = 134,
CR_GUB = 135,
CR_CAV = 136,
CR_SLE = 137,
CR_LIR = 138,
CR_IVC = 139,
CR_GHA = 140,
CR_TGO = 141,

214
Device Network SDK (ANPR) Developer Guide

CR_BEN = 142,
CR_NIG = 143,
CR_ZAB = 144,
CR_ANG = 145,
CR_ZBE = 146,
CR_MAW = 147,
CR_MOQ = 148,
CR_BOT = 149,
CR_NAM = 150,
CR_SAF = 151,
CR_SWD = 152,
CR_LES = 153,
CR_MAG = 154,
CR_UOC = 155,
CR_MAT = 156,
CR_NGE = 157,
CR_SSD = 158,
CR_SAH = 159,
CR_MYT = 160,
CR_REN = 161,
CR_CAI = 162,
CR_AZO = 163,
CR_MAD = 164,
CR_RES9 = 165,
CR_RES10 = 166,
CR_RES11 = 167,
CR_RES12 = 168,
CR_CAD = 169,
CR_GRE = 170,
CR_PIE = 171,
CR_USA = 172,
CR_BER = 173,
CR_MEX = 174,
CR_GUA = 175,
CR_BLI = 176,
CR_SAR = 177,
CR_HOR = 178,
CR_NIC = 179,
CR_COR = 180,
CR_PAN = 181,
CR_TBM = 182,
CR_TCI = 183,
CR_CUB = 184,
CR_JAM = 185,
CR_CAY = 186,
CR_HAT = 187,
CR_TDO = 188,
CR_PUR = 189,
CR_VIL = 190,
CR_BVI = 191,
CR_ATV = 192,
CR_ANB = 193,

215
Device Network SDK (ANPR) Developer Guide

CR_CSM = 194,
CR_ACY = 195,
CR_SBY = 196,
CR_SKN = 197,
CR_MOT = 198,
CR_GLP = 199,
CR_DOM = 200,
CR_MTE = 201,
CR_LUC = 202,
CR_SVG = 203,
CR_GRD = 204,
CR_BAR = 205,
CR_TRT = 206,
CR_CUR = 207,
CR_ARB = 208,
CR_NEA = 209,
CR_COL = 210,
CR_VEN = 211,
CR_GUY = 212,
CR_SUR = 213,
CR_FRN = 214,
CR_ECU = 215,
CR_PER = 216,
CR_BOL = 217,
CR_PAR = 218,
CR_CLE = 219,
CR_BRA = 220,
CR_UGY = 221,
CR_ARG = 222,
CR_RES13 = 223,
CR_RES14 = 224,
CR_RES15 = 225,
CR_RES16 = 226,
CR_ATN = 227,
CR_NED = 228,
CR_PNG = 229,
CR_SAN = 230,
CR_VAU = 231,
CR_NCN = 232,
CR_PAU = 233,
CR_FSM = 234,
CR_MRI = 235,
CR_CNM = 236,
CR_TEG = 237,
CR_NUR = 238,
CR_KIB = 239,
CR_FID = 240,
CR_TNG = 241,
CR_TUV = 242,
CR_WEF = 243,
CR_TIS = 244,
CR_EAS = 245,

216
Device Network SDK (ANPR) Developer Guide

CR_TOE = 246,
CR_NUE = 247,
CR_TCD = 248,
CR_PFP = 249,
CR_PID = 250,
CR_HAW = 251,
CR_RES17 = 252,
CR_RES18 = 253,
CR_UNRECOGNIZED = 0xfe,
CR_ALL = 0xff,
CR_TAIWAN = 256
}CR_INDEX

Members
CR_NONSUPPORT
Not support
CR_CZE
Czech Republic
CR_DEU
Germany
CR_ESP
Spain
CR_ITA
Italy
CR_NLD
Netherlands
CR_POL
Poland
CR_SVK
Slovakia
CR_BLR
Belorussia
CR_MDA
Moldova
CR_RUS
Russia
CR_UKR
Ukraine
CR_BEL

217
Device Network SDK (ANPR) Developer Guide

Belgium
CR_BGR
Bulgaria
CR_DNK
Denmark
CR_FIN
Finland
CR_GBR
United Kingdom
CR_GRC
Greece
CR_HRV
Croatia
CR_HUN
Hungary
CR_ISR
Israel
CR_LUX
Luxembourg
CR_MKD
Macedonia
CR_NOR
Norway
CR_PRT
Portugal
CR_ROU
Romania
CR_SRB
Serbia
CR_AZE
Azerbaijan
CR_GEO
Georgia
CR_KAZ

218
Device Network SDK (ANPR) Developer Guide

Kazakhstan
CR_LTU
Lithuania
CR_TKM
Turkmenistan
CR_UZB
Uzbekistan
CR_LVA
Latvia
CR_EST
Estonia
CR_ALB
Albania
CR_AUT
Austria
CR_BIH
Bosnia and Herzegovina
CR_IRL
Ireland
CR_ISL
Iceland
CR_VAT
Vatican
CR_MLT
Malta
CR_SWE
Sweden
CR_CHE
Switzerland
CR_CYP
Cyprus
CR_TUR
Turkey
CR_SVN

219
Device Network SDK (ANPR) Developer Guide

Slovenia
CR_MTG
Montenegro
CR_KOV
Kosovo
CR_ADR
Andorra
CR_ARM
Armenia
CR_MON
Monaco
CR_LIE
Liechtenstein
CR_SMO
San Marino
CR_RES1
Reserved
CR_RES2
Reserved
CR_RES3
Reserved
CR_RES4
Reserved /* Asia, 48 countries, in which Cyprus is located on the border of Europe and Asia*/
CR_CHI
China
CR_IBN
In bahrain
CR_SKR
South Korea
CR_LEB
Lebanon
CR_NEP
Nepal
CR_THA

220
Device Network SDK (ANPR) Developer Guide

Thailand
CR_PAK
Pakistan
CR_EMI
The united Arab emirates
CR_BHU
Bhutan
CR_OMA
Oman
CR_KOR
North Korea
CR_PHI
The Philippines
CR_CAM
Cambodia
CR_QAT
Qatar
CR_KYR
Kyrgyzstan
CR_MAL
The maldives
CR_MLY
Malaysia
CR_MOG
Mongolia
CR_ARA
Saudi Arabia
CR_BRU
brunei
CR_LAO
Laos
CR_JAP
Japan
CR_RES19

221
Device Network SDK (ANPR) Developer Guide

Reserved
CR_PAS
Palestinian state
CR_TAJ
Tajikistan
CR_KUW
Kuwait
CR_SYR
Syria
CR_IND
India
CR_ISA
Indonesia
CR_AFG
Afghanistan
CR_LAN
Sri Lanka
CR_IRQ
Iraq
CR_VIE
Vietnam
CR_IRA
Iran
CR_YEM
yemen
CR_JOR
Jordan
CR_BUR
Burma
CR_SIK
Sikkim
CR_BAN
Bangladesh
CR_SGA

222
Device Network SDK (ANPR) Developer Guide

Singapore
CR_EAT
East Timor
CR_RES5
Reserved
CR_RES6
Reserved
CR_RES7
Reserved
CR_RES8
Reserved /*Africa, 60 countries and regions*/
CR_EGT
Egypt
CR_LIY
Libya
CR_SUA
Sudan
CR_TUN
Tunisia
CR_ALG
Algeria
CR_MCC
Morocco
CR_ETH
Ethiopia
CR_ERI
Eritrea
CR_SDE
Somalia Democratic
CR_DJI
Djibouti
CR_KEN
Kenya
CR_TAI

223
Device Network SDK (ANPR) Developer Guide

Tanzania
CR_UGA
Uganda
CR_RWA
Rwanda
CR_BUD
Burundi
CR_SEY
Seychelles
CR_CHA
Chad
CR_CEA
Central African
CR_CON
Cameroon
CR_EQG
Equatorial Guinea
CR_GAB
Gabon
CR_TCO
the Congo
CR_DRC
Democratic Republic of the Congo
CR_STP
Sao Tome and Principe
CR_MAN
Mauritania
CR_WSA
Western Sahara
CR_SEL
Senega
CR_TGA
the Gambia
CR_MAI

224
Device Network SDK (ANPR) Developer Guide

Mali
CR_BUF
Burkina Faso
CR_GUI
Guinea
CR_GUB
Guinea-Bissau
CR_CAV
Cape Verde
CR_SLE
Sierra Leone
CR_LIR
Liberia
CR_IVC
Ivory Coast
CR_GHA
Ghana
CR_TGO
Togo
CR_BEN
Benin
CR_NIG
Niger
CR_ZAB
Zambia
CR_ANG
Angola
CR_ZBE
Zimbabwe
CR_MAW
Malawi
CR_MOQ
Mozambique
CR_BOT

225
Device Network SDK (ANPR) Developer Guide

Botswana
CR_NAM
Namibia
CR_SAF
South Africa
CR_SWD
Swaziland
CR_LES
Lesotho
CR_MAG
Madagasca
CR_UOC
Union of Comoros
CR_MAT
Mauritius
CR_NGE
Nigeria
CR_SSD
South Sudan
CR_SAH
Saint Helena
CR_MYT
Mayotte
CR_REN
Reunion
CR_CAI
Canary Islands
CR_AZO
AZORES
CR_MAD
Madeira
CR_RES9
Reserved
CR_RES10

226
Device Network SDK (ANPR) Developer Guide

Reserved
CR_RES11
Reserved
CR_RES12
Reserved /*America, 55 countries and regions*/
CR_CAD
Canada
CR_GRE
Greenland Nuuk
CR_PIE
/Pierre and Miquelon
CR_USA
United States
CR_BER
Bermuda
CR_MEX
Mexico
CR_GUA
Guatemala
CR_BLI
Belize
CR_SAR
El Salvador
CR_HOR
Honduras
CR_NIC
Nicaragua
CR_COR
Costa Rica
CR_PAN
Panama
CR_TBM
The Bahamas
CR_TCI

227
Device Network SDK (ANPR) Developer Guide

The Turks and Caicos Islands


CR_CUB
Cuba
CR_JAM
Jamaica
CR_CAY
Cayman Islands
CR_HAT
Haiti
CR_TDO
The Dominican
CR_PUR
Puerto Rico
CR_VIL
The United States Virgin Islands
CR_BVI
The British Virgin Islands
CR_ATV
Anguilla The Valley
CR_ANB
Antigua and Barbuda
CR_CSM
Collectivite de Saint-Martin
CR_ACY
Autonomous CR
CR_SBY
Saint-Barthelemy
CR_SKN
Saint Kitts and Nevis
CR_MOT
Montserrat
CR_GLP
Guadeloupe
CR_DOM

228
Device Network SDK (ANPR) Developer Guide

Dominica
CR_MTE
Martinique
CR_LUC
St. Lucia
CR_SVG
Saint Vincent and the Grenadines
CR_GRD
Grenada
CR_BAR
Barbados
CR_TRT
Trinidad and Tobago
CR_CUR
Curaao
CR_ARB
Aruba
CR_NEA
Netherlands Antilles
CR_COL
Colombia
CR_VEN
Venezuela
CR_GUY
Guyana
CR_SUR
Suriname
CR_FRN
Guyane Francaise
CR_ECU
Ecuador
CR_PER
Peru
CR_BOL

229
Device Network SDK (ANPR) Developer Guide

Bolivia
CR_PAR
Paraguay
CR_CLE
Chile
CR_BRA
Brazil
CR_UGY
Uruguay
CR_ARG
Argentina
CR_RES13
Reserved
CR_RES14
Reserved
CR_RES15
Reserved
CR_RES16
Reserved /*Oceania, 25 countries and regions*/
CR_ATN
Australien
CR_NED
Neuseeland
CR_PNG
Papua New Guinea
CR_SAN
Salomonen
CR_VAU
Vanuatu
CR_NCN
New Caledonia
CR_PAU
Palau
CR_FSM

230
Device Network SDK (ANPR) Developer Guide

Federated States of Micronesia


CR_MRI
Marshall Island
CR_CNM
Commonwealth of the Northern Mariana Islands
CR_TEG
The Territory of Guahan
CR_NUR
Nauru
CR_KIB
Kiribati
CR_FID
Fidschi
CR_TNG
Tonga
CR_TUV
Tuvalu
CR_WEF
Wallis et Futuna
CR_TIS
The Independent State of Samoa
CR_EAS
Eastern Samoa
CR_TOE
Tokelau
CR_NUE
Niue
CR_TCD
The Cook Islands
CR_PFP
Polynesie franaise French Polynesia
CR_PID
Pitcairn Islands
CR_HAW

231
Device Network SDK (ANPR) Developer Guide

Hawaii State
CR_RES17
Reserved
CR_RES18
Reserved
CR_UNRECOGNIZED
Unrecognized
CR_ALL
ALL
CR_TAIWAN
Taiwan (China)

7.2.3 NET_SDK_DOWNLOAD_TYPE
Enumerate file types to be downloaded.

Enumeration Definition
typedef enum {
NET_SDK_DOWNLOAD_CERT = 0,
NET_SDK_DOWNLOAD_IPC_CFG_FILE = 1,
NET_SDK_DOWNLOAD_BASELINE_SCENE_PIC = 2,
NET_SDK_DOWNLOAD_VQD_ALARM_PIC = 3,
NET_SDK_DOWNLOAD_CONFIGURATION_FILE = 4,
NET_SDK_DOWNLOAD_SCENE_CONFIGURATION_FILE = 5,
NET_SDK_DOWNLOAD_FILE_FORM_DB = 6,
NET_SDK_DOWNLOAD_TME_FILE = 7,
NET_SDK_DOWNLOAD_VEHICLE_BLOCKALLOWLIST_FILE = 8,
NET_SDK_DOWNLOAD_GUID_FILE = 9,
NET_SDK_DOWNLOAD_FILE_FORM_CLOUD = 10,
NET_SDK_DOWNLOAD_PICTURE = 11,
NET_SDK_DOWNLOAD_VIDEO = 12,
NET_DVR_DOWNLOAD_SCREEN_FILE = 13,
NET_SDK_DOWNLOAD_PUBLISH_MATERIAL = 14,
NET_SDK_DOWNLOAD_THERMOMETRIC_FILE = 15,
NET_SDK_DOWNLOAD_LED_CHECK_FILE = 16,
NET_SDK_DOWNLOAD_VEHICLE_INFORMATION = 17,
NET_SDK_DOWNLOAD_CERTIFICATE_BLOCKLIST_TEMPLET = 18,
NET_SDK_DOWNLOAD_LOG_FILE = 19,
NET_SDK_DOWNLOAD_FILEVOLUME_DATA = 20,
NET_SDK_DOWNLOAD_FD_DATA = 21,
NET_SDK_DOWNLOAD_SECURITY_CFG_FILE = 22,
NET_SDK_DOWNLOAD_PUBLISH_SCHEDULE = 23,
NET_SDK_DOWNLOAD_RIGHT_CONTROLLER_AUDIO = 24,
NET_SDK_DOWNLOAD_MODBUS_CFG_FILE = 25,

232
Device Network SDK (ANPR) Developer Guide

NET_SDK_DOWNLOAD_RS485_PROTOCOL_DLL_FILE = 26,
NET_SDK_DOWNLOAD_CLUSTER_MAINTENANCE_LOG = 27,
NET_SDK_DOWNLOAD_SQL_ARCHIVE_FILE = 28,
NET_SDK_DOWNLOAD_SUBWIND_STREAM = 29,
NET_SDK_DOWNLOAD_DEVTYPE_CALIBFILE = 30,
NET_SDK_DOWNLOAD_HD_CAMERA_CORRECT_TABLE = 31,
NET_SDK_DOWNLOAD_CLIENT_CALIBFILE = 32,
NET_SDK_DOWNLOAD_FOUE_CAMERAS_PICTURES = 33,
NET_SDK_DOWNLOAD_DOOR_CONTENT = 34,
NET_SDK_DOWNLOAD_PUBLISH_MATERIAL_THUMBNAIL = 35,
NET_SDK_DOWNLOAD_PUBLISH_PROGRAM_THUMBNAIL = 36,
NET_SDK_DOWNLOAD_PUBLISH_TEMPLATE_THUMBNAIL = 37,
NET_SDK_DOWNLOAD_DARK_FIGHTER_X_CORRECT_TABLE_MAIN = 38,
NET_SDK_DOWNLOAD_DARK_FIGHTER_X_CORRECT_TABLE_BACKUP = 39,
NET_SDK_DOWNLOAD_OFFLINE_CAPTURE_INFO_TEMPLATE = 40,
NET_SDK_DOWNLOAD_CAPTURE_DATA = 41,
NET_SDK_DOWNLOAD_HD_CAMERA_CORRECT_TABLE_FILE = 42,
NET_SDK_DOWNLOAD_CLIENT_CALIBFILE_FILE = 43,
NET_SDK_DOWNLOAD_FOUR_CAMERAS_PICTURES_FILE = 44,
NET_SDK_DOWNLOAD_SCENE_FILE = 45,
NET_SDK_DOWNLOAD_OPEN_SOURCE_CERT = 46,
NET_SDK_DOWNLOAD_RATIOSTITCHING_FILE = 47,
NET_SDK_DOWNLOAD_LENS_PARAM_FILE = 48,
NET_SDK_DOWNLOAD_SELECT_DEVTYPE_CALIBFILE = 49
} NET_SDK_DOWNLOAD_TYPE;

Enumeration Type
NET_SDK_DOWNLOAD_CERT
Certificate.
NET_SDK_DOWNLOAD_IPC_CFG_FILE
Network camera configuration file.
NET_SDK_DOWNLOAD_BASELINE_SCENE_PIC
Base scene picture.
NET_SDK_DOWNLOAD_VQD_ALARM_PIC
VQD (video quality diagnosis) alarm picture.
NET_SDK_DOWNLOAD_CONFIGURATION_FILE
Configuration file.
NET_SDK_DOWNLOAD_SCENE_CONFIGURATION_FILE
Scene configuration file.
NET_SDK_DOWNLOAD_FILE_FORM_DB
File in the image and video library.
NET_SDK_DOWNLOAD_TME_FILE
Entrance and exit management file.

233
Device Network SDK (ANPR) Developer Guide

NET_SDK_DOWNLOAD_VEHICLE_BLOCKALLOWLIST_FILE
Blocklist and allowlist configuration file.
NET_SDK_DOWNLOAD_GUID_FILE
GUID file.
NET_SDK_DOWNLOAD_FILE_FORM_CLOUD
Picture in the cloud storage.
NET_SDK_DOWNLOAD_PICTURE
Picture.
NET_SDK_DOWNLOAD_VIDEO
Video.
NET_DVR_DOWNLOAD_SCREEN_FILE
Screen server file.
NET_SDK_DOWNLOAD_PUBLISH_MATERIAL
Local material file of information release.
NET_SDK_DOWNLOAD_THERMOMETRIC_FILE
Thermometry calibration file.
NET_SDK_DOWNLOAD_LED_CHECK_FILE
LED correction file.
NET_SDK_DOWNLOAD_VEHICLE_INFORMATION
Vehicle information to be exported.
NET_SDK_DOWNLOAD_CERTIFICATE_BLOCKLIST_TEMPLET
ID card blocklist template.
NET_SDK_DOWNLOAD_LOG_FILE
Log to be exported.
NET_SDK_DOWNLOAD_FILEVOLUME_DATA
File volume data file, currently it is only supported by CVR (central video recorder) devices.
NET_SDK_DOWNLOAD_FD_DATA
Data in a specific face picture library to be exported.
NET_SDK_DOWNLOAD_SECURITY_CFG_FILE
Configuration file to be securely exported.
NET_SDK_DOWNLOAD_PUBLISH_SCHEDULE
Schedule to be exported.
NET_SDK_DOWNLOAD_RIGHT_CONTROLLER_AUDIO
Audio file of the main controller.

234
Device Network SDK (ANPR) Developer Guide

NET_SDK_DOWNLOAD_MODBUS_CFG_FILE
Configuration file of Modbus protocol.
NET_SDK_DOWNLOAD_RS485_PROTOCOL_DLL_FILE
Dynamic library file of RS-485 protocol.
NET_SDK_DOWNLOAD_CLUSTER_MAINTENANCE_LOG
Cluster maintenance log to be exported.
NET_SDK_DOWNLOAD_SQL_ARCHIVE_FILE
Archived record in the database to be exported.
NET_SDK_DOWNLOAD_SUBWIND_STREAM
Sub-window stream to be exported.
NET_SDK_DOWNLOAD_DEVTYPE_CALIBFILE
Model calibration file to be exported (*.cal).
NET_SDK_DOWNLOAD_HD_CAMERA_CORRECT_TABLE
24 MP/32 MP correction list to be exported (*.cal).
NET_SDK_DOWNLOAD_CLIENT_CALIBFILE
Client calibration file to be exported (*.pto).
NET_SDK_DOWNLOAD_FOUE_CAMERAS_PICTURES
Four-channel picture package to be exported (.tar).
NET_SDK_DOWNLOAD_DOOR_CONTENT
Door contact information.
NET_SDK_DOWNLOAD_PUBLISH_MATERIAL_THUMBNAIL
Thumbnail of local information release material.
NET_SDK_DOWNLOAD_PUBLISH_PROGRAM_THUMBNAIL
Thumbnail of information release program.
NET_SDK_DOWNLOAD_PUBLISH_TEMPLATE_THUMBNAIL
Thumbnail of information release template.
NET_SDK_DOWNLOAD_DARK_FIGHTER_X_CORRECT_TABLE_MAIN
DarkfighterX correction list file (main partition).
NET_SDK_DOWNLOAD_DARK_FIGHTER_X_CORRECT_TABLE_BACKUP
DarkfighterX correction list file (backup partition).
NET_SDK_DOWNLOAD_OFFLINE_CAPTURE_INFO_TEMPLATE
User list template of collection.
NET_SDK_DOWNLOAD_CAPTURE_DATA
Offline collected data.

235
Device Network SDK (ANPR) Developer Guide

NET_SDK_DOWNLOAD_HD_CAMERA_CORRECT_TABLE_FILE
HD camera correction sheet (CAL format).
NET_SDK_DOWNLOAD_CLIENT_CALIBFILE_FILE
User calibration file (PTO format).
NET_SDK_DOWNLOAD_FOUR_CAMERAS_PICTURES_FILE
Channel pictures package (TAR format).
NET_SDK_DOWNLOAD_SCENE_FILE
Scene file.
NET_SDK_DOWNLOAD_OPEN_SOURCE_CERT
Open source license compliance.
NET_SDK_DOWNLOAD_RATIOSTITCHING_FILE
Ratio stitching file.
NET_SDK_DOWNLOAD_LENS_PARAM_FILE
Lens parameters file.
NET_SDK_DOWNLOAD_SELECT_DEVTYPE_CALIBFILE
Calibration file in CAL format.

7.2.4 NET_SDK_UPLOAD_TYPE

Enumeration about File Types to Be Uploaded

Enumeration Type Macro Definition Description


Value
UPGRADE_CERT_FILE 0 Certificate file to be upgraded.
UPLOAD_CERT_FILE 1 Certificate file to be uploaded.
TRIAL_CERT_FILE 2 Trial license file.
CONFIGURATION_FILE 3 Configuration file.
UPLOAD_RECORD_FILE 4 Video file.
SCENE_CONFIGURATION_FILE 5 Scene configuration file.
UPLOAD_PICTURE_FILE 6 Picture file.
UPLOAD_VIOLATION_FILE 7 Violation dictionary file.
UPLOAD_TG_FIL 8 Timing generator file.

236
Device Network SDK (ANPR) Developer Guide

Enumeration Type Macro Definition Description


Value
UPLOAD_DATA_TO_DB 9 File to be uploaded to picture and
video library.
UPLOAD_BACKGROUND_PIC 10 Background picture.
UPLOAD_CALIBRATION_FILE 11 Calibration file.
UPLOAD_TME_FILE 12 Entrance and exiting management
file.
UPLOAD_VEHICLE_BLOCKALLOWLST_ 13 Vehicle blocklist file.
FILE
UPLOAD_PICTURE_TO_CLOUD 15 Picture file to be uploaded to cloud
storage.
UPLOAD_VIDEO_FILE 16 Video file.
UPLOAD_SCREEN_FILE 17 Screen server file.
UPLOAD_PUBLISH_MATERIAL 18 Local material file of information
release system.
UPLOAD_PUBLISH_UPGRADE_FILE 19 Upgrade file of information release
system.
UPLOAD_RING_FILE 20 Ringtone file.
UPLOAD_ENCRYPT_CERT 21 Encryption certificate.
UPLOAD_THERMOMETRIC_FILE 22 Calibration file for temperature
measurement.
UPLOAD_SUBBRAND_FILE 23 Vehicle sub brand file.
UPLOAD_LED_CHECK_FILE 24 LED correction file.
BATCH_UPLOAD_PICTURE_FILE 25 Picture files for uploading in batch.
UPLOAD_EDID_CFG_FILE 26 EDID configuration file.
UPLOAD_PANORAMIC_STITCH 27 Panorama stitching configuration file.
UPLOAD_BINOCULAR_COUNTING 28 Binocular counting correction sheet.
UPLOAD_AUDIO_FILE 29 Audio file.
UPLOAD_PUBLISH_THIRD_PARTY_ 30 Third-party file.
FILE
UPLOAD_DEEPEYES_BINOCULAR 31 TX1 binocular correction sheet.

237
Device Network SDK (ANPR) Developer Guide

Enumeration Type Macro Definition Description


Value
UPLOAD_CERTIFICATE_BLOCKLIST 32 ID card blocklist.
UPLOAD_HD_CAMERA_CORRECT_ 33 HD camera correction sheet (CAL
TABLE format).
UPLOAD_FD_DATA 35 Face data file to be imported to face
picture library.
UPLOAD_FACE_DATA 36 Face picture file to be imported to
face picture library.
UPLOAD_FACE_ANALYSIS_DATA 37 Picture file to be imported to picture
recognition target.
UPLOAD_FILEVOLUME_DATA 38 File volume file
IMPORT_DATA_TO_FACELIB 39 Face data (face picture and picture
additional information) to be
imported to face picture library of
device.
UPLOAD_LEFTEYE_4K_CALIBFILE 40 Camera calibration parameter file.
UPLOAD_SECURITY_CFG_FILE 41 Configuration file to be securely
imported.
UPLOAD_RIGHT_CONTROLLER_ 42 Audio file of main controller.
AUDIO
UPLOAD_MODBUS_CFG_FILE 43 Configuration file of Modbus protocol.
UPLOAD_NOTICE_VIDEO_DATA 44 Bulletin video file.
UPLOAD_RS485_PROTOCOL_DLL_ 45 Dynamic library file of RS485 protocol.
FILE
UPLOAD_PIC_BY_BUF 46 Picture file for importing by picture
cache.
UPLOAD_CLIENT_CALIBFILE 47 User calibration file (PTO format).
UPLOAD_HD_CAMERA_CORRECT_ 48 HD camera correction sheet (CAL
TABLE_3200W format).
UPLOAD_DOOR_CONTENT 49 Contact information of the door at
the building unit.
UPLOAD_ASR_CONTROL_FILE 50 Speech recognition control file.

238
Device Network SDK (ANPR) Developer Guide

Enumeration Type Macro Definition Description


Value
UPLOAD_APP_FILE 51 Application program file.
UPLOAD_AI_ALGORITHM_MODEL 52 Algorithm model in binary format.
UPLOAD_AI_BASE_PICTURE 55 Reference pictures in binary format
for AI target comparison.
UPLOAD_OFFLINE_CAPTURE_INFO 56 User list of offline collection to be
imported.
IMPORT_DATA_TO_HBDLIB 60 Import human body picture with
linked information to library.
UPLOAD_SCENE_FILE 61 Scene file to be imported.
UPLOAD_RATIOSTITCHING_FILE 62 Ratio stitching file to be imported.
UPLOAD_LENS_PARAM_FILE 63 Lens parameters file to be imported.

7.2.5 VLR_VEHICLE_CLASS
Enumerate the vehicle parent brands.

Enumeration Definition
typedef enum _VLR_VEHICLE_CLASS{
VLR_OTHER = 0, //Other
VLR_VOLKSWAGEN = 1, //Volkswagen
VLR_BUICK = 2, //Buick
VLR_BMW = 3, //BMW
VLR_HONDA = 4, //Honda
VLR_PEUGEOT = 5, //Peugeot
VLR_TOYOTA = 6, //Toyota
VLR_FORD = 7, //Ford
VLR_NISSAN = 8, //Nissan
VLR_AUDI = 9, //Audi
VLR_MAZDA = 10, //Mazda
VLR_CHEVROLET = 11, //Chevrolet
VLR_CITROEN = 12, //Citroen
VLR_HYUNDAI = 13, //Hyundai
VLR_CHERY = 14, //Chery
VLR_KIA = 15, //Kia
VLR_ROEWE = 16, //Roewe
VLR_MITSUBISHI = 17, //Mitsubishi
VLR_SKODA = 18, //Skoda
VLR_GEELY = 19, //Geely
VLR_ZHONGHUA = 20, //Zhonghua

239
Device Network SDK (ANPR) Developer Guide

VLR_VOLVO = 21, //Volvo


VLR_LEXUS = 22, //Lexus
VLR_FIAT = 23, //Fiat
VLR_EMGRAND = 24, //Emgrand (Geely)
VLR_DONGFENG = 25, //Dongfeng
VLR_BYD = 26, //BYD
VLR_SUZUKI = 27, //Suzuki
VLR_JINBEI = 28, //Jinbei
VLR_HAIMA = 29, //Haima
VLR_SGMW = 30, //SGMW
VLR_JAC = 31, //JAC
VLR_SUBARU = 32, //Subaru
VLR_ENGLON = 33, //Englon (Geely)
VLR_GREATWALL = 34, //Great Wall
VLR_HAFEI = 35, //Hafei
VLR_ISUZU = 36, //Isuzu
VLR_SOUEAST = 37, //Soueast
VLR_CHANA = 38, //Changan
VLR_FOTON = 39, //Foton
VLR_XIALI = 40, //Xiali (FAW)
VLR_BENZ = 41, //Benz
VLR_FAW = 42, //FAW
VLR_NAVECO = 43, //Iveco
VLR_LIFAN = 44, //Lifan
VLR_BESTURN = 45, //FAW Besturn (FAW)
VLR_CROWN = 46, //Crown (Toyota)
VLR_RENAULT = 47, //Renault
VLR_JMC = 48, //JMC
VLR_MG = 49, //MG
VLR_KAMA = 50, //Kama
VLR_ZOTYE = 51, //Zotye
VLR_CHANGHE = 52, //Changhe
VLR_XMKINGLONG = 53, //Xiamen King Long (Golden Dragon)
VLR_HUIZHONG = 54, //Shanghai Huizhong
VLR_SZKINGLONG = 55, //Suzhou Jinlong
VLR_HIGER = 56, //Higer
VLR_YUTONG = 57, //Yutong
VLR_CNHTC = 58, //CNHTC
VLR_BEIBEN = 59, //Beiben Truck
VLR_XINGMA = 60, //Hualing Xingma
VLR_YUEJIN = 61, //Yuejin
VLR_HUANGHAI = 62, //Huanghai
VLR_OLDWALL = 63, //Great Wall (Old Version)
VLR_CHANACOMMERCIAL = 64, //Chang'an Business
VLR_PORSCHE = 65, //Porsche
VLR_CADILLAC = 66, //Cadillac
VLR_INFINITI = 67, //Infiniti
VLR_GLEAGLE = 68, //Gleagle (Geely)
VLR_JEEP = 69, //Jeep
VLR_LANDROVER = 70, //Land Rover
VLR_CHANGFENG = 71, //Changfeng
VLR_BENNI = 72, //Chang'an Benni

240
Device Network SDK (ANPR) Developer Guide

VLR_ERA = 73, //Foton Forland


VLR_TAURUS = 74, //Chana Tauri Star (Chang'an Business)
VLR_EADO = 75, //Chang'an Yidong
VLR_SHANQI = 76, //Shanqi
VLR_HONGYAN = 77, //Hongyan Auto (SAIC IVECO HONGYAN)
VLR_DRAGON = 78, //Balong Motor (Dongfeng Liuqi)
VLR_JACTEXT = 79, //Jianghuai JAC
VLR_JACBUS = 80, //Jianghuai Xiandai Bus
VLR_ANKAI = 81, //Ankai Bus
VLR_SHENLONG = 82, //Shenlong Bus
VLR_DAEWOO = 83, //Daewoo Bus
VLR_WUZHENG = 84, //Wuzheng Motor
VLR_MAN = 85, //MAN Motor
VLR_ZHONGTONG = 86, //Zhongtong Bus
VLR_BAOJUN = 87, //Baojun
VLR_BQWEIWANG = 88, //BAIC Weiwang
VLR_TRUMPCHE = 89, //Trumpchi
VLR_LUFENG = 90, //Landwind
VLR_HMZHENGZHOU = 91, //Zhengzhou Hippocampus
VLR_BEIJING = 92, //BAIC Motor
VLR_ZHONGSHUN = 93, //Zhongshun
VLR_WEILIN = 94, //Weiling Motor
VLR_OPEL = 95, //Opel
VLR_KARRY = 96, //Karry
VLR_SMA = 97, //Huapu Motor
VLR_SMATEXT = 98, //Huapu Motor Wenzi SMA
VLR_YUWIN = 99, //JMC Yusheng
VLR_MINI = 100, //BMW MINI
VLR_MARK = 101, //Toyota MARKX
VLR_HAVAL = 102, //HAVAL
VLR_OGA = 103, //Acura
VLR_VENUCIA = 104, //Venucia
VLR_BYD2 = 105, //BYD Style 2
VLR_SMART = 106, //Benz SMART
VLR_BAW = 107, //Beijing Vehicle Manufacture/BAW
VLR_LUXGEN = 108, //Luxgen
VLR_YEMA = 109, //Yema
VLR_ZTE = 110, //ZXAUT
VLR_EVERUS = 111, //Linian
VLR_CHRYSLER = 112, //Chrysler
VLR_GONOW = 113, //Ji'ao
VLR_SHJIANG = 114, //Songhua River
VLR_RUILIN = 115, //Chrey
VLR_FORTA = 116, //Fuda
VLR_GAGUAR = 117, //Jaguar
VLR_HEIBAO = 118, //Heibao
VLR_TKING = 119, //TKING
VLR_TKINGTEXT = 120, //Tangjun Wenzi
VLR_FODAY = 121, //Foday
VLR_LOTUS = 122, //Lianhua Motor
VLR_NANJUN = 123, //CNJ
VLR_SHUANGHUAN = 124, //Shuanghuan Motor

241
Device Network SDK (ANPR) Developer Guide

VLR_SAIBAO = 125, //HAFEI Saibao


VLR_HAWTAI = 126, //Hawtai
VLR_LIFO = 127, //Yongyuan Feidie
VLR_JONWAY = 128, //Yongyuan Motor
VLR_FULONGMA = 129, //Fulongma
VLR_WEILI = 130, //Huaili
VLR_ANCHI = 131, //Jianghuai Anchi
VLR_PAIXI = 132, //Splash
VLR_HIGERTEXT = 133, //HIGER Wenzi
VLR_RIYECAR = 134, //Hino Light Truck
VLR_RIYETRUCK = 135, //Hino Heavy Truck
VLR_JIANGNAN = 136, //Jiangnan
VLR_OLDZOTYE = 137, //Zhongtai (Old Version)
VLR_OLDXIALI = 138, //Xiali (Old Version)
VLR_NEWAOCHI = 139, //New Aochi
VLR_CDW = 140, //Zhongqi Wangpai
VLR_CDWTEXT = 141, //Zhongqi Wangpai Wenzi
VLR_CIIMO = 142, //Honda CIIMO
VLR_CHANADS = 143, //Chang'an Di Ai Shi
VLR_DS = 144, //Dodge
VLR_ROHENS = 145, //Hyundai Rohens Coupe
VLR_YANTAI = 146, //Yantai
VLR_SHUANGLONG = 147, //Shuanglong
VLR_FENGLING = 148, //Shidai Fengling
VLR_XINKAI = 149, //Xinkai
VLR_GMC = 150, //GMC
VLR_DATONG = 151, //MAXUS
VLR_BQYINXIANG = 152, //BAIC Yinxiang
VLR_NEWCHERY = 153, //New Chery
VLR_MUDAN = 154, //Mudan
VLR_DAYUN = 155, //Dayun Motor
VLR_DONGWO = 156, //Dongwo Motor
VLR_UNION = 157, //Union Motor
VLR_CHUNZHOU = 158, //Chunzhou Bus
VLR_SANY = 159, //Sany
VLR_YAXING = 160, //Asiastar Bus
VLR_HENGTONG = 161, //Hengtong Bus
VLR_SHAOLIN = 162, //Shaolin Bus
VLR_YOUNG = 163, //Young Man Bus
VLR_STOM = 164, //Shitong
VLR_SANHUAN = 165, //Tri-Ring
VLR_XUGONG = 166, //XCMG
VLR_BEIFANG = 167, //Beifang Motor
VLR_JIANGHUAN = 168, //Jianghuan Truck
VLR_BJFARM = 169, //Beijing Agricultural
VLR_NEWDADI = 170, //Xin Dadi Motor
VLR_SUNWIN = 171, //Sunwin Bus
VLR_YINGTIAN = 172, //Yingtian
VLR_QINGQI = 173, //Qingqi
VLR_CHUFENG = 174, //Chufeng Motor
VLR_SCANIA = 175, //Scania
VLR_JIULONG = 176, //Jiulong Bus

242
Device Network SDK (ANPR) Developer Guide

VLR_YOUYI = 177, //Youyi Bus


VLR_SHANGRAO = 178, //Shangrao Bus
VLR_JIJIANG = 179, //Jijiang
VLR_YANGZI = 180, //Yangzi Bus
VLR_XIWO = 181, //Seewo Bus
VLR_CHANGJIANG = 182, //Changjiang Bus
VLR_WUYI = 183, //Wuyi
VLR_CHENGDU = 184, //Chengdu Bus
VLR_TIANMA = 185, //Tianma
VLR_BAOLONG = 186, //Baolong
VLR_NEWYATU = 187, //Soyat
VLR_BARUI = 188, //Kia Borrego
VLR_GUANZHI = 189, //Qoros
VLR_XIYATE = 190, //Seat
VLR_BINLI = 191, //Bentley
VLR_DADI = 192, //Dadi
VLR_FUQI = 193, //Fuqi
VLR_HANGTIAN = 194, //Hangtian Motor
VLR_HENGTIAN = 195, //Hi-tech
VLR_JMCCAR = 196, //JMC
VLR_KAERSEN = 197, //Carlson Motor
VLR_KAWEI = 198, //Kawei Motor
VLR_LANBOJINI = 199, //Lamborghini
VLR_MASHALADI = 200, //Maserati
VLR_SHUCHI = 201, //Shuchi Bus
VLR_SHILI = 202, //Shili Bus
VLR_HUABEI = 203, //Zhongke Huabei
VLR_YIZHENG = 204, //SAIC Yizheng
VLR_CHUNLAN = 205, //Chunlan
VLR_DAFA = 206, //Daihatsu Motor
VLR_SHENYE = 207, //Shenye Motor
VLR_FALALI = 208, //Ferrari
VLR_FUXING = 209, //Fuxing Motor
VLR_ANYUAN = 210, //Anyuan-Bus
VLR_JINGHUA = 211, //Jinghua Bus
VLR_TAIHU = 212, //Taihu Bus
VLR_WUZHOULONG = 213, //Wuzhoulong
VLR_CHANGLONG = 214, //Changlong-Bus
VLR_YUEXI = 215, //Yuexi Bus
VLR_SHENMA = 216, //Shenma Bus
VLR_LUSHAN = 217, //Lushan
VLR_WANFENG = 218, //Wanfeng
VLR_GZYUNBAO = 219, //Guangzhou Yunbao
VLR_ZHONGDA = 220, //Zhongda Motor
VLR_THREEWHEEL = 221, //Tricycle
VLR_TWOWHEEL = 222, //Two Wheeler
VLR_JBC = 223, //JBC
VLR_YZJIANG = 224, //Yangtze Bus
VLR_CNJ = 225, //CNJ
VLR_FORLAND = 226, //Futian Shidai Wenzi
VLR_FARMCAR = 227, //Agricultural Vehicle
VLR_DONGFANGHONG = 228, //Dong Fang Hong

243
Device Network SDK (ANPR) Developer Guide

VLR_STEYR = 229, //Steyr


VLR_HONGQI = 230, //Hongqi
VLR_USER1 = 231, //User 1
VLR_USER2 = 232, //User 2
VLR_USER3 = 233, //User 3
VLR_USER4 = 234, //User 4
VLR_USER5 = 235, //User 5
VLR_USER6 = 236, //User 6
VLR_USER7 = 237, //User 7
VLR_USER8 = 238 //User 8
}VLR_VEHICLE_CLASS;

7.2.6 VTR_RESULT
Enumerate the vehicle type recognition results.

Enumeration Definition
typedef enum _VTR_RESULT{
VTR_RESULT_OTHER = 0,
VTR_RESULT_BUS = 1,
VTR_RESULT_TRUCK = 2,
VTR_RESULT_CAR = 3,
VTR_RESULT_MINIBUS = 4,
VTR_RESULT_SMALLTRUCK = 5,
VTR_RESULT_HUMAN = 6,
VTR_RESULT_TUMBREL = 7,
VTR_RESULT_TRIKE = 8,
VTR_RESULT_SUV_MPV = 9,
VTR_RESULT_MEDIUM_BUS = 10,
VTR_RESULT_MOTOR_VEHICLE = 11,
VTR_RESULT_NON_MOTOR_VEHICLE = 12,
VTR_RESULT_SMALLCAR = 13,
VTR_RESULT_MICROCAR = 14,
VTR_RESULT_PICKUP = 15,
VTR_RESULT_CONTAINER_TRUCK = 16,
VTR_RESULT_MINI_TRUCK = 17,
VTR_RESULT_SLAG_CAR = 18,
VTR_RESULT_CRANE = 19,
VTR_RESULT_OIL_TANK_TRUCK = 20,
VTR_RESULT_CONCRETE_MIXER = 21,
VTR_RESULT_PLATFORM_TRAILER = 22,
VTR_RESULT_HATCHBACK = 23,
VTR_RESULT_SALOON = 24,
VTR_RESULT_SPORT_SEDAN = 25
}VTR_RESULT;

Members
VTR_RESULT_OTHER

244
Device Network SDK (ANPR) Developer Guide

Unknown.
VTR_RESULT_BUS
Bus.
VTR_RESULT_TRUCK
Truck.
VTR_RESULT_CAR
Car.
VTR_RESULT_MINIBUS
Minivan.
VTR_RESULT_SMALLTRUCK
Light truck.
VTR_RESULT_HUMAN
Pedestrian.
VTR_RESULT_TUMBREL
Two wheeler.
VTR_RESULT_TRIKE
Tricycle.
VTR_RESULT_SUV_MPV
SUV/MPV.
VTR_RESULT_MEDIUM_BUS
Middle-sized bus.
VTR_RESULT_MOTOR_VEHICLE
Motor vehicle.
VTR_RESULT_NON_MOTOR_VEHICLE
Non-motor vehicle.
VTR_RESULT_SMALLCAR
Small sedan.
VTR_RESULT_MICROCAR
Mini sedan.
VTR_RESULT_PICKUP
Pick-up truck.
VTR_RESULT_CONTAINER_TRUCK
Container truck.
VTR_RESULT_MINI_TRUCK

245
Device Network SDK (ANPR) Developer Guide

Mini cargo truck.


VTR_RESULT_SLAG_CAR
Dump truck.
VTR_RESULT_CRANE
Construction vehicle.
VTR_RESULT_OIL_TANK_TRUCK
Oil tank truck.
VTR_RESULT_CONCRETE_MIXER
Concrete mixer.
VTR_RESULT_PLATFORM_TRAILER
Flatbed trailer.
VTR_RESULT_HATCHBACK
Hatchback.
VTR_RESULT_SALOON
Saloon.
VTR_RESULT_SPORT_SEDAN
Sports sedan.

246
Device Network SDK (ANPR) Developer Guide

Appendix A. Request URIs

Description URI Method Request and Response Message


Get device /ISAPI/System/deviceInfo GET XML_DeviceInfo
information. XML_ResponseStatus
Edit device /ISAPI/System/deviceInfo PUT -
information.
Control PTZ. /​ISAPI/​PTZCtrl/​channels/​<ID>/ PUT XML_ResponseStatus
continuous
Get preset list. /ISAPI/PTZCtrl/channels/<ID>/ GET XML_PTZPresetList XML_
presets ResponseStatus
Manage all /ISAPI/PTZCtrl/channels/<ID>/ POST -
configured presets
presets.
Delete all presets. /ISAPI/PTZCtrl/channels/<ID>/ DELETE -
presets
Add a preset. /ISAPI/PTZCtrl/channels/<ID>/ PUT XML_ResponseStatus
presets/<ID>
Delete a preset. /ISAPI/PTZCtrl/channels/<ID>/ DELETE XML_ResponseStatus
presets/<ID>
Get a preset. /ISAPI/PTZCtrl/channels/<ID>/ GET -
presets/<ID>
Call a preset. /ISAPI/PTZCtrl/channels/<ID>/ PUT XML_ResponseStatus
presets/<ID>/goto
Get partition /ISAPI/SecurityCP/status/ GET JSON_SubSysList
status. subSystems?format=json JSON_ResponseStatus
Arm a partition. /ISAPI/SecurityCP/control/arm/ PUT JSON_ResponseStatus
<ID>?ways=<string>&format=json
Disarm a /ISAPI/SecurityCP/control/disarm/ PUT JSON_ResponseStatus
partition. <ID>?format=json
Clear partition /ISAPI/SecurityCP/control/ PUT JSON_ResponseStatus
alarms. clearAlarm/<ID>?format=json
Get zone status /ISAPI/SecurityCP/status/zones? GET JSON_ZoneList
format=json JSON_ResponseStatus

247
Device Network SDK (ANPR) Developer Guide

Search partition /ISAPI/SecurityCP/status/zones? POST -


status according format=json
to conditions.
Zone bypass. /ISAPI/SecurityCP/control/bypass? PUT JSON_ResponseStatus
format=json
Recover bypass of /ISAPI/SecurityCP/control/ PUT JSON_ResponseStatus
multiple zones. bypassRecover?format=json
Get relay status by /ISAPI/SecurityCP/status/ POST JSON_OutputSearch
specific outputStatus?format=json JSON_ResponseStatus
conditions.
Control relay in /ISAPI/SecurityCP/control/ POST JSON_ResponseStatus
batch. outputs?format=json
Get the /ISAPI/System/IO/outputs GET XML_IOOutputPortList
information of all XML_ResponseStatus
I/O output ports.
Get status of a /ISAPI/System/IO/outputs/<ID>/ GET XML_IOPortStatus
specific alarm status XML_ResponseStatus
output.
Manually trigger a /ISAPI/System/IO/outputs/<ID>/ PUT XML_ResponseStatus
specific alarm trigger
output.
Get device time /​ISAPI/​System/​time GET XML_TimeData
zone. XML_ResponseStatus
Get or set device /​ISAPI/​System/​time PUT -
time parameters.
Operations about /ISAPI/ContentMgmt/InputProxy/ GET XML_InputProxyChannelList
management of channels XML_ResponseStatus
all digital
channels.
Configure /ISAPI/ContentMgmt/InputProxy/ PUT -
operations about channels
management of
all digital
channels.
Create digital /ISAPI/ContentMgmt/InputProxy/ POST -
channels channels

248
Device Network SDK (ANPR) Developer Guide

Get status of all /ISAPI/ContentMgmt/InputProxy/ GET XML_


digital channels. channels/status InputProxyChannelStatusList
XML_ResponseStatus
Refresh the video /ISAPI/ContentMgmt/record/ PUT XML_ResponseStatus
mode manually control/manualRefresh/channels/
before playback. <ID>
Search for access /ISAPI/AccessControl/AcsEvent? POST JSON_AcsEvent
control events. format=json XML_ResponseStatus
Search for person /ISAPI/AccessControl/UserInfo/ POST JSON_UserInfoSearch
information. Search?format=json XML_ResponseStatus

A.1 /ISAPI/ITC/capability
Get intelligent traffic capability.

Request URI Definition

Table A-1 GET /ISAPI/ITC/capability


Method GET
Description Get intelligent traffic capability
Query None.
Request None.
Response Succeeded: XML_ITCCap
Failed: XML_ResponseStatus

A.2 /ISAPI/Traffic/channels/<ID>/capabilities
Get traffic channel capability.

Request URI Definition

Table A-2 GET /ISAPI/Traffic/channels/<ID>/capabilities


Method GET
Description Get traffic channel capability.

249
Device Network SDK (ANPR) Developer Guide

Query None
Request None
Response Succeeded: XML_TrafficChannelCap
Failed: XML_ResponseStatus

Remarks
The <ID> in the request URI refers to the traffic channel ID.

A.3 /ISAPI/Traffic/channels/<ID>/licensePlate/filtration?format=json
Get or set the parameters of filtering duplicated license plate.

Request URI Definition

Table A-3 GET /ISAPI/Traffic/channels/<ID>/licensePlate/filtration?format=json


Method GET
Description Get the parameters of filtering duplicated license plate.
Query format: determine the format of request or response message.
Request None.
Response Succeeded: JSON_Filtration
Failed: JSON_ResponseStatus

Table A-4 PUT /ISAPI/Traffic/channels/<ID>/licensePlate/filtration?format=json


Method PUT
Description Set the parameters of filtering duplicated license plate.
Query format: determine the format of request or response message.
Request JSON_Filtration
Response JSON_ResponseStatus

Remarks
The <ID> in the request URI refers to channel ID.

250
Device Network SDK (ANPR) Developer Guide

A.4 /ISAPI/Traffic/channels/<ID>/searchLPListAudit
Search for license plate list by channel.

Request URI Definition

Table A-5 POST /ISAPI/Traffic/channels/<ID>/searchLPListAudit


Method POST
Description Search for license plate list by channel.
Query None
Request XML_LPListAuditSearchDescription
Response XML_LPListAuditSearchResult

Remarks
The <ID> in the request URI refers to the channel ID.

251
Device Network SDK (ANPR) Developer Guide

Appendix B. Request and Response Messages

B.1 JSON_Filtration
Message about license plate filtration in JSON format
{
"Filtration": {
"enabled":
/*optional, boolean, whether to enable filtering duplicated license plate, by default, it is "false"*/
}
}

B.2 JSON_ResponseStatus
JSON message about response status
{
"requestURL":"",
/*optional, string, request URL*/
"statusCode": ,
/*optional, int, status code*/
"statusString":"",
/*optional, string, status description*/
"subStatusCode":"",
/*optional, string, sub status code*/
"errorCode": ,
/*required, int, error code, which corresponds to subStatusCode, this field is required when statusCode is not 1. The
returned value is the transformed decimal number*/
"errorMsg":"",
/*required, string, error details, this field is required when statusCode is not 1*/
"MErrCode": "0xFFFFFFFF",
/*optional, string, error code categorized by functional modules*/
"MErrDevSelfEx": "0xFFFFFFFF"
/*optional, string, extension of MErrCode. It is used to define the custom error code, which is categorized by
functional modules*/
}

B.3 XML_Desc_ITDeviceAbility
Input description message for getting intelligent traffic capability.
<?xml version="1.0" encoding="utf-8"?>
<!--req, description of input parameter pInBuf for getting intelligent traffic capability-->
<ITDeviceAbility version="2.0">
<channelNO><!--req, xs:integer, channel No.--></channelNO>

252
Device Network SDK (ANPR) Developer Guide

<ITCAbility/><!--opt, intelligent traffic capability-->


</ITDeviceAbility>

Remarks
Refer to the message XML_ITDeviceAbility of for the intelligent traffic capability details.

B.4 XML_EventNotificationAlert_ANPR
XML message about ANPR results
<EventNotificationAlert version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema"><!--required, xs:object, ANPR
result-->
<ipAddress><!--required, xs:string, IPv4 address of the device that triggers the alarm--></ipAddress>
<ipv6Address><!--optional, xs:string, IPv6 address of the device that triggers the alarm--></ipv6Address>
<portNo><!--optional, xs:integer, port No. of the device that triggers the alarm--></portNo>
<protocol><!--required, xs:string, transmission communication protocol type: HTTP, HTTPS, EHome. The value should
be HTTP when ISAPI protocol is transmitted via EZVIZ protocol. The value should be EHome when ISAPI protocol is
transmitted via ISUP--></protocol>
<macAddress><!--optional, xs:string, MAC address--></macAddress>
<dynChannelID><!--optional, xs:string, digital channel No.--></dynChannelID>
<channelID><!--optional, xs:string, channel (video channel) number of the device that triggers the alarm--></
channelID>
<releatedChannelList><!--optional, xs:string, list of channels linked with the alarm (the same alarm source). These
channels, which are used to display live view or playback when the platform receives alarms, and that whose number
is the value of <channelID> are in the same camera. Multiple channel No. should be separated by commas--></
releatedChannelList>
<dateTime>
<!--required, xs:datetime, alarm triggering time, e.g., 2017-04-22T15:39:01+08:00-->
</dateTime>
<activePostCount><!--required, xs:integer, times that the same alarm has been uploaded--></activePostCount>
<eventType><!--required, xs:string, event types, here it should be "ANPR"--></eventType>
<eventState><!--required, xs:string, continuous event's status: active (valid event), inactive (invalid event)--></
eventState>
<eventDescription><!--required, xs:string, event description--></eventDescription>
<channelName><!--optional, xs:string, channel name--></channelName>
<deviceID><!--optional, xs:string, device ID, which should be returned when the alarm is uploaded via ISUP--></
deviceID>
<ANPR><!--optional, xs:object, ANPR alarm information. This node is valid only when the value of <eventType> is
ANPR-->
<region><!--optional, xs:string, region. For details, refer to Region Code--></region>
<country><!--optional, xs:string, country/region. For details, refer to Country/Region Code--></country>
<area><!--optional, xs:string, regions in United Arab Emirates: FJR (Al Fujayrah), AD (Abu Dhabi,), unknown, UMW
(Umm Al Qaiwain), other, AM (Ajman), RAK (Ras Al Khaimah), DB (Dubai), SJ (Sharjah)--></area>
<licensePlate><!--required, xs:string, license plate number: "noPlate" (vehicle without license plate), "unknown" (no
license plate recognized), "XXXXXX" (recognized license plate number). The maximum string size is 32 bytes--></
licensePlate>
<line><!--required, xs:integer, recognized lane number--></line>
<direction><!--optional, xs:string, license plate recognition direction: "reverse", "forward", "unknown"--></
direction>
<confidenceLevel><!--required, xs:integer, confidence level, which ranges from 0 to 100--></confidenceLevel>

253
Device Network SDK (ANPR) Developer Guide

<plateType><!--optional, xs:string, license plate type: "unknown", "92TypeCivil"-92 civil vehicle, "92FarmVehicle"-
civil vehicle two-line license plate, "arm"-police vehicle, "upDownMilitay"-military vehicle (up/down format),
"92TypeArm"-92 armed police vehicle, "leftRightMilitay"-military vehicle (left/right format), "02TypePersonalized"-02
personalized vehicle, "yellowTwoLine"-yellow two-line license plate, "04NewMilitay"-04 new military vehicle,
"embassy"-embassy car, "oneLineArm"-new armed police vehicle with one-line structure, "twoLineArm"-new armed
police vehicle with two-line structure, "yellow1225FarmVehicle"-yellow agricultural vehicle with 1225 structure,
"green1325FarmVehicle"-green agricultural vehicle with 1325 structure, "yellow1325FarmVehicle"-yellow agricultural
vehicle with 1325 structure, "motorola"-motorcycle, "newEnergy"-new energy vehicle license plate, "civilAviation"-
civil aviation license plate, "coach"-driver-training car, "tempTravl"-temporary license plate car, "trailer", "consulate"-
consulate car, "hongKongMacao"-vehicle entering and exiting Hong Kong and Macao, "tempEntry"-temporary entry
car, "emergency"-emergency license plate, "oneLineArmHeadquarters"-armed police headquarter license plate (one-
line), "twoLineArmHeadquarters"-armed police headquarter license plate (two-line)--></plateType>
<plateColor>
<!--optional, xs:string, license plate color: "black", "blue", "golden", "orange", "red", "yellow", "white", "unknow",
"other", "newEnergyYellowGreen" (new energy green and yellow), "civilAviationBlack" (civil aviation black),
"civilAviationGreen" (civil aviation green), "green", "mixedColor" (mixed color), "newEnergyGreen" (new energy
green)-->
</plateColor>
<licenseBright>
<!--optional, xs:integer, license plate brightness, which ranges from 0 to 255-->
</licenseBright>
<Rect><!--optional, coordinates of the license plate thumbnail in the matched picture. The origin is the upper-left
corner of the screen-->
<height><!--required, xs:float, height, value range: [0.000,1.000]--></height>
<width><!--required, xs:float, width, value range: [0.000,1.000]--></width>
<x><!--required, xs:float, X-coordinate of the upper-left point, value range: [0.000,1.000]--></x>
<y><!--required, xs:float, Y-coordinate of the upper-left point, value range: [0.000,1.000]--></y>
</Rect>
<pilotsafebelt>
<!--optional, xs:string, whether the driver is wearing safety belt: "unknown, yes, no"-->
</pilotsafebelt>
<vicepilotsafebelt>
<!--optional, xs:string, whether the co-driver is wearing safety belt: "unknown, yes, no"-->
</vicepilotsafebelt>
<pilotsunvisor>
<!--optional, xs:string, whether the driver room's sun visor is open: "unknown, yes, no"-->
</pilotsunvisor>
<vicepilotsunvisor>
<!--required, xs:string, whether the co-driver room's sun visor is open: "unknown, yes, no"-->
</vicepilotsunvisor>
<envprosign><!--optional, xs:string, whether it is a yellow-label vehicle: "unknown,yes,no"--></envprosign>
<dangmark>
<!--optional, xs:string, whether it is dangerous goods vehicle: "unknown, yes, no"-->
</dangmark>
<uphone>
<!--optional, xs:string, whether the driver is making call: "unknown, yes, no"-->
</uphone>
<pendant>
<!--optional, xs:string, whether there is window hangings detected: "unknown, yes, no"-->
</pendant>
<tissueBox>
<!--optional, xs:string, whether there is tissue box detected: "unknown, yes, no"-->

254
Device Network SDK (ANPR) Developer Guide

</tissueBox>
<frontChild>
<!--optional, xs:string, whether the co-driver is with baby in arm: "unknown, yes, no"-->
</frontChild>
<label>
<!--optional, xs:string, whether there is label detected: "unknown, yes, no"-->
</label>
<decoration>
<!--optional, xs:string, whether there is decoration detected: "unknown, yes, no"-->
</decoration>
<smoking>
<!--optional, xs:string, whether there is smoking detected: "unknown, yes, no"-->
</smoking>
<perfumeBox>
<!--optional, xs:string, whether there is perfume box detected: "unknown, yes, no"-->
</perfumeBox>
<pdvs>
<!--optional, xs:string, whether there is a person sticking out of sunroof: "unknown, yes, no"-->
</pdvs>
<helmet>
<!--optional, xs:string, whether there is helmet detected: "unknown, yes, no"-->
</helmet>
<twoWheelVehicle>
<!--optional, xs:string, whether there is two-wheel detected: "unknown, yes, no"-->
</twoWheelVehicle>
<threeWheelVehicle>
<!--optional, xs:string, whether there is three-wheel detected: "unknown, yes, no"-->
</threeWheelVehicle>
<blackness>
<!--optional, xs:integer, Ringelmann emittance, which is used for smoke detection-->
</blackness>
<plateCharBelieve>
<!--optional, xs:string, confidence of the license plate's character, value range: [0,100.00]. The value is accurate to
two decimal places. For example, if the confidence of characters in the license plate "ZA12345" is 20, 30, 40, 50, 60,
and 70, it indicates that the possibility that the first character recognized is "Z" is 20%, the possibility that the second
character recognized is "A" is 30%, and so forth-->
</plateCharBelieve>
<speedLimit>
<!--optional, xs:integer, maximum speed limit, this node is valid only when overspeeding occurred-->
</speedLimit>
<illegalInfo>
<!--optional, traffic violation information of the vehicle-->
<illegalCode>
<!--required, xs:string, violation code-->
</illegalCode>
<illegalName>
<!--required, xs:string, violation name-->
</illegalName>
<illegalDescription>
<!--optional, xs:string, violation description-->
</illegalDescription>
</illegalInfo>

255
Device Network SDK (ANPR) Developer Guide

<vehicleType>
<!--optional, xs:string, vehicle type: "SUVMPV" (SUV/MPV), "buggy" (small-sized truck), "bus", "concreteMixer"
(concrete mixer), "containerTruck" (container truck), "coupe", "crane", "hatchback", "largeBus" (large-sized bus),
"lightTruck" (light truck), "mediumBus" (middle-sized bus), "mediumHeavyTruck" (medium and heavy truck),
"miniCar" (mini sedan (transformed to "vehicle")), "minibus", "minitruck", "motorVehicle" (motor vehicle
(transformed to "vehicle")), "nonmotorVehicle" (non-motor vehicle (transformed to "threeWheelVehicle")),
"oilTankTruck" (oil tank truck), "pedestrian", "pickupTruck" (pickup truck (transformed to "buggy")), "platformTrailer"
(platform trailer), "saloon", "slagTruck" (dump truck), "smallCar" (small sedan (transformed to "vehicle")),
"threeWheelVehicle" (tricycle), "truck", "twoWheelVehicle" (two wheeler), "unknown", "van", "vehicle" (sedan)-->
</vehicleType>
<postPicFileName>
<!--optional, xs:string, name of the picture selected as the checkpoint picture when illegal action occurs, "none"
refers to not selecting any picture-->
</postPicFileName>
<featurePicFileName>
<!--optional, xs:string, name of the picture selected as the close-up picture when running the red light in the
intersection violation system is detected, "none" refers to not selecting any picture-->
</featurePicFileName>
<detectDir>
<!--optional, xs:integer, detection direction: 1-upward, 2-downward, 3-bidirectional, 4-westward, 5-northward, 6-
eastward, 7-southward, 8-other-->
</detectDir>
<detectType>
<!--optional, xs:integer, detection type: 1-inductive loop trigger, 2-video trigger, 3-multiple-frame recognition, 4-
radar trigger-->
</detectType>
<barrierGateCtrlType>
<!--optional, xs:integer, whether the barrier gate is opened: 0-opened, 1-not opened-->
</barrierGateCtrlType>
<alarmDataType>
<!--optional, xs:integer, 0-real-time data, 1-history data-->
</alarmDataType>
<dwIllegalTime>
<!--optional, xs:integer, violation duration, which is the time difference between the capture time of the last
picture and that of the first picture, unit: millisecond-->
</dwIllegalTime>
<vehicleInfo><!--optional, xs:object, vehicle information-->
<index>
<!--required, xs:integer, vehicle No.-->
</index>
<vehicleType>
<!--optional, xs:integer, vehicle type: 0-other vehicle, 1-small-sized vehicle, 2-large-sized vehicle, 3-pedestrian
trigger, 4-two wheeler trigger, 5-tricycle trigger, 6-motor vehicle trigger-->
</vehicleType>
<colorDepth>
<!--required, xs:integer, shade of the vehicle color: 0-deep color, 1-light color-->
</colorDepth>
<color>
<!--required, xs:string, vehicle color: "unknown", "white", "silver"-silvery, "gray", "blacks"-black, "red",
"deepBlue"-dark blue, "blue", "yellow", "green", "brown", "pink", "purple", "deepGray"-dark gray, "cyan", "orange"-->
</color>
<speed>

256
Device Network SDK (ANPR) Developer Guide

<!--required, xs:integer, vehicle speed, unit: km/h-->


</speed>
<length>
<!--required, xs:integer, length of the former vehicle, unit: decimeter-->
</length>
<vehicleLogoRecog>
<!--required, xs:integer, vehicle parent brand-->
</vehicleLogoRecog>
<vehileSubLogoRecog>
<!--optional, xs:integer, vehicle sub-brand-->
</vehileSubLogoRecog>
<vehileModel>
<!--optional, xs:integer, time to market of the vehicle sub-brand-->
</vehileModel>
<vehicleTypeByWeight>
<!--optional, xs:integer, 1-class one vehicle (buses with seven or less seats, trucks with capacity of 2 tons or less),
2-class two vehicle (buses with 8 to 19 seats, trucks with capacity of 2 to 5 (included) tons), 3-class three vehicle
(buses with 20 to 39 seats, trucks with capacity of 5 to 10 (included) tons), 4-class four vehicle (buses with 40 or more
seats, trucks with capacity of 10 to 15 (included) tons), 5-class five vehicle (trucks with capacity of more than 15 tons),
6-class six vehicle (trucks with capacity of more than 15 tons)-->
</vehicleTypeByWeight>
<CarWindowFeature><!--optional, xs:object, window feature, which is configured by the node
<CarWindowFeature> in the message of /ISAPI/ITC/carFeatureParam-->
<tempPlate><!--optional, xs:string, whether there is a temporary license plate: unknown, yes, no-->unknown</
tempPlate>
<passCard><!--optional, xs:string, whether there is a vehicle pass: unknown, yes, no-->unknown</passCard>
<carCard><!--optional, xs:string, whether there is a card (business card, leaflet, etc.)-->unknown</carCard>
</CarWindowFeature>
<CarBodyFeature><!--optional, xs:object, vehicle body attribute, which is configured by the node
<CarBodyFeature> in the message of /ISAPI/ITC/carFeatureParam-->
<sparetire><!--optional, xs:string, whether there is a spare tire: unknown, yes, no-->unknown</sparetire>
<rack><!--optional, xs:string, whether there is a roof rack: unknown, yes, no-->unknown</rack>
<sunRoof><!--optional, xs:string, whether there is a sunroof: unknown, yes, no-->unknown</sunRoof>
<words><!--optional, xs:string, whether there are characters painted on the vehicle: unknown, yes, no--
>unknown</words>
<slagTruckCoverPlate><!--optional, xs:string, whether there is a cover on the dump truck: unknown, yes, no--
>unknown</slagTruckCoverPlate>
</CarBodyFeature>
<vehicleUseType><!--optional, xs:string, vehicle type: taxi, ambulance, bus, schoolBus, coach, unknown. The
vehicle type can be configured by the node <vehicleUseEnable> in the message of /ISAPI/ITC/carFeatureParam--
>taxi</vehicleUseType>
</vehicleInfo>
<EntranceInfo><!--optional, xs:object, entrance and exit information-->
<parkingID>
<!--optional, xs:string, parking space No.-->
</parkingID>
<gateID>
<!--optional, xs:string, entrance and exit No.-->
</gateID>
<direction>
<!--optional, xs:string, entering and exiting direction-->
</direction>

257
Device Network SDK (ANPR) Developer Guide

<cardNo>
<!--optional, xs:string, card No.-->
</cardNo>
<parkType>
<!--optional, xs:string, parking type: "permanent", "temporary"-->
</parkType>
</EntranceInfo>
<pictureInfoList><!--required, xs:object, picture list. Up to 8 pictures can be supported-->
<pictureInfo><!--required, xs:object, picture information-->
<fileName>
<!--required, xs:string, picture name, which must correspond to the picture name transmitted with the alarm
message-->
</fileName>
<type>
<!--required, xs:string, picture type: "detectionPicture, licensePlatePicture, pilotPicture, copilotPicture,
compositePicture, plateBinaryPicture, nonMotorPicture, pedestrianDetectionPicture, pedestrianPicture"-->
</type>
<dataType>
<!--required, xs:integer, data type: 0-upload data, 1-upload URL-->
</dataType>
<picRecogMode>
<!--optional, xs:integer, 0-front license plate recognition, 1-rear license plate recognition-->
</picRecogMode>
<redLightTime>
<!--optional, xs:integer, red light time elapsed, unit: second-->
</redLightTime>
<vehicleHead>
<!--optional, xs:integer, "unknown", "forward"-front license plate recognition, "back"-rear license plate
recognition-->
</vehicleHead>
<absTime>
<!--optional, xs:time, absolute time, format: yyyyMMddHHmmssxxx, e.g.: 20090810235959999, the last three
number is time in millisecond-->
</absTime>
<plateRect>
<!--dependent, the normalized value is the current image size in percentage multiplying 1000 and it is accurate
to three decimal places. This node is valid only when <type> is "detectionPicture"-->
<X>
<!--required, xs:integer, X-coordinate of the upper-left corner of the boundary frame-->
</X>
<Y>
<!--required, xs:integer, Y-coordinate of the upper-left corner of the boundary frame-->
</Y>
<width>
<!--required, xs:integer, width of the boundary frame-->
</width>
<height>
<!--required, xs:integer, height of the boundary frame-->
</height>
</plateRect>
<vehicelRect>
<!--dependent, the normalized value is the current image size in percentage multiplying 1000. This node is valid

258
Device Network SDK (ANPR) Developer Guide

only when <type> is "detectionPicture"-->


<X><!--required, xs:integer, X-coordinate of the upper-left point of the boundary frame-->
</X>
<Y><!--required, xs:integer, Y-coordinate of the upper-left point of the boundary frame-->
</Y>
<width>
<!--required, xs:integer, width of the boundary frame-->
</width>
<height>
<!--required, xs:integer, height of the boundary frame-->
</height>
</vehicelRect>
<pictureURL>
<!--dependent, xs:string, picture URL, which is valid only when <dataType> is "URL"-->
</pictureURL>
<pId><!--optional, xs:string, the maximum string size is 32 bytes. Recommended generation rule: device serial
number+time since the device started+random number-->null</pId>
</pictureInfo>
</pictureInfoList>
<hasMoreData>
<!--optional, xs:boolean, whether there is more data. This node is used to report the license plate information first,
and then report XML message with picture data; the XM message with picture data and license plate information are
linked by UUID-->
</hasMoreData>
<listType><!--optional, xs:string, list type: white (allowlist), black (blocklist), temporary (temporary list)-->white</
listType>
<originalLicensePlate>
<!--optional, xs:string, original license plate number, When the license plate number is a minor language, return
the original license plate number-->
</originalLicensePlate>
<CRIndex>
<!--optional, xs:integer, country/region index. For details, refer to Country/Region Code-->
</CRIndex>
<VehicelGPSInfo><!--optional, GPS information of the vehicle-->
<longitudeType><!--required, xs:string, longitude, "E,W"--></longitudeType>
<latitudeType><!--required, xs:string, latitude, "S,N"--></latitudeType>
<Longitude><!--required, longitude information-->
<degree><!--required, xs:integer--></degree>
<minute><!--required, xs:integer--></minute>
<sec><!--required, xs:float, accurate to 6 decimal places--></sec>
</Longitude>
<Latitude><!--required, latitude information-->
<degree><!--required, xs:integer--></degree>
<minute><!--required, xs:integer,--></minute>
<sec><!--required, xs:float, accurate to 6 decimal places--></sec>
</Latitude>
</VehicelGPSInfo>
<vehiclePositionControl><!--optional, xs:string, arming type: "vehicleMonitor"-intelligent arming of vehicle (PUT /
ISAPI/Traffic/channels/<ID>/vehicleMonitor/<taskID>/startTask), "manualVehicleMonitor"-manual arming of vehicle
(PUT /ISAPI/Traffic/channels/<ID>/manualVehicleMonitor), "dailyVehicleMonitor"-daily arming of vehicle (you can
check whether this arming type is supported via the node isSupportDailyVehicleMonitor in the capability message
returned by /ISAPI/Traffic/channels/<ID>/vehicleDetect/capabilities; when daily arming of vehicle is enabled, both

259
Device Network SDK (ANPR) Developer Guide

alarm of ANPR and intelligent arming of vehicle will be uploaded; if this node is not returned, it is normal vehicle
detection--></vehiclePositionControl>
<vehicleMonitorTaskID><!--optional, xs:string, task ID of intelligent arming of vehicle, the maximum size is 64 bytes,
this node is returned when the value of vehiclePositionControl is "vehicleMonitor"--></vehicleMonitorTaskID>
<vehicleListName><!--optional, xs:string, name of the list that the vehicle belongs to, the maximum size is 128
bytes--></vehicleListName>
<vehicleThermometryEnabled><!--optional, xs:boolean, whether to enable vehicle temperature measurement--
>true</vehicleThermometryEnabled>
<currTemperature><!--optional, xs:float, temperature-->36.5</currTemperature>
<thermometryUnit><!--optional, xs:string, temperature unit: celsius, fahrenheit, kelvin-->celsius</
thermometryUnit>
<plateCategory><!--optional, xs:string, additional license plate information, the maximum string size is 8 bytes. This
node is only used for license plates of the Middle East-->test</plateCategory>
<plateSize><!--optional, xs:int, license plate size: 0 (unknown), 1 (long), 2 (short, which is used for license plates of
the Middle East)-->1</plateSize>
</ANPR>
<UUID>
<!--optional, xs:string, common ID, which is used to link the same capture across multiple servers-->
</UUID>
<picNum>
<!--optional, xs:integer, number of pictures-->
</picNum>
<monitoringSiteID>
<!--optional, xs:string, camera No.-->
</monitoringSiteID>
<ePlateUUID>
<!--optional, xs:string, electronic license plate ID. If this node is configured with a value, it indicates that an
electronic license plate is linked-->
</ePlateUUID>
<isDataRetransmission><!--optional, xs:boolean, data retransmission mark--></isDataRetransmission>
<SceneInfo><!--optional, scene information-->
<scenesID><!--optional, xs:string, scene ID, value range: [1,16]--></scenesID>
<sceneName><!--optional, xs:string, scene name, the maximum size is 32 bytes--></sceneName>
<PTZPos><!--optional, PTZ information-->
<elevation><!--optional, xs:integer, value range: [-900,2700]--></elevation>
<azimuth><!--optional, xs:integer, value range: [0,3600]--></azimuth>
<absoluteZoom><!--optional, xs:integer, value range: [0,1000]--></absoluteZoom>
</PTZPos>
</SceneInfo>
<monitorDescription><!--optional, xs:string, camera information--></monitorDescription>
<DeviceGPSInfo>
<!--optional, xs:object, GPS location information of the device-->
<longitudeType>
<!--required, xs:string, longitude type: E, W-->E
</longitudeType>
<latitudeType>
<!--required, xs:string, latitude type: S, N-->S
</latitudeType>
<Longitude>
<!--required, object, longitude-->
<degree>
<!--required, int, degree-->60

260
Device Network SDK (ANPR) Developer Guide

</degree>
<minute>
<!--required, int, minute, value range: [0,59]-->59
</minute>
<sec>
<!--required, float, second, value range: [0,59.999999]-->59.000000
</sec>
</Longitude>
<Latitude>
<!--required, object, latitude-->
<degree>
<!--required, int, degree-->60
</degree>
<minute>
<!--required, int, minute, value range: [0,59]-->59
</minute>
<sec>
<!--required, float, second, value range: [0,59.999999], the value is accurate to six decimal places-->59.000000
</sec>
</Latitude>
</DeviceGPSInfo>
<pilotStandardSafebelt>
<!--optional, enum, whether the driver is buckled well: unknown, yes, no-->yes
</pilotStandardSafebelt>
<vicepilotStandardSafebelt>
<!--optional, enum, whether the front passenger is buckled well: unknown, yes, no-->yes
</vicepilotStandardSafebelt>
<trafficLightSnap>
<!--optional, enum, whether the picture is captured at the traffic light: yes, no-->yes
</trafficLightSnap>
<sequence>
<!--optional, int, vehicle capture number by the burst triggered by the network, value range: [1,4294967295]. The
burst control command will be applied after triggered by the network. Related URI: /ISAPI/Traffic/startRecognition.
Related API of Device Network SDK: NET_DVR_ContinuousShoot-->0
</sequence>
<relaLaneDirectionType>
<!--optional, int, linked lane direction: 0 (other), 1 (from east to west), 2 (from west to east), 3 (from south to north),
4 (from north to south) ,5 (from southeast to northwest), 6 (from northwest to southeast), 7 (from northeast to
southwest), 8 (from southwest to northeast)-->1
</relaLaneDirectionType>
<carDirectionType>
<!--optional, int, vehicle moving direction on the lane: 0 (downward), 1 (upward)-->1
</carDirectionType>
<targetID>
<!--optional, string, vehicle target ID, value range:[1,64]. The device should ensure that it is unique. It corresponds
to dwMatchNo in the Device Network SDK-->test
</targetID>
<isSecondCamera>
<!--optional, bool, whether the picture is captured by the second camera-->false
</isSecondCamera>
<dataAnalysisType>
<!--optional, int, data analysis type: 0 (data not analyzed), 1 (data already analyzed)-->1

261
Device Network SDK (ANPR) Developer Guide

</dataAnalysisType>
<RecordInfo>
<!--optional, object, vehicle video information-->
<fileName>
<!--required, string, video file name: record.mp4 (vehicle video). When the video is transmitted in binary format,
the value of this node must be the same as that of Content-ID-->record.mp4
</fileName>
<dataType>
<!--required, int, data type: 0 (binary data), 1 (URL)-->0
</dataType>
<URL>
<!--optional, string, URL. This node is valid when the value of <dataType> is URL-->null
</URL>
</RecordInfo>
<VehicleWeightInfo>
<!--optional, object, vehicle weight information-->
<isOverWeight>
<!--optional, bool, whether the vehicle is overweight-->false
</isOverWeight>
<axleNum>
<!--optional, int, number of axles, value range:[1,10]-->4
</axleNum>
<overWeight>
<!--optional, float, weight over the limit, value range: [0.000,100.000], unit: ton. The value is accurate to three
decimal places-->4.502
</overWeight>
<weight>
<!--optional, float, vehicle weight, value range: [0.000,100.000], unit: ton. The value is accurate to three decimal
places-->4.502
</weight>
<limitWeight>
<!--optional, float, weight limit, value range: [0.000,100.000], unit: ton. The value is accurate to three decimal
places-->4.502
</limitWeight>
<axleLen>
<!--optional, float, wheelbase, value range:[0.00,100.00], unit: ton. The value is accurate to two decimal places--
>4.502
</axleLen>
<devDescInfo>
<!--optional, string, device description, the maximum string size is 64 bytes-->null
</devDescInfo>
<AxleInfoList>
<!--optional, object, list of the axle information. The number of elements in the list is the same as the value of
<axleNum>-->
<AxleInfo>
<!--optional, object, information of an axle-->
<axleWeight>
<!--optional, float, axle weight, value range:[0.00,10000.00], unit: kg-->100.00
</axleWeight>
<axleDistance>
<!--optional, int, axle distance, value range:[0,100000], unit: mm. It is the distance between the current axle and
the next axle-->30000

262
Device Network SDK (ANPR) Developer Guide

</axleDistance>
</AxleInfo>
</AxleInfoList>
<length>
<!--optional, int, vehicle length, value range:[1,1000000], unit: cm-->4000
</length>
<width>
<!--optional, int, vehicle width, value range:[1,1000000], unit: cm-->4000
</width>
<height>
<!--optional, int, vehicle height, value range:[1,1000000], unit: cm-->4000
</height>
<tiresNum>
<!--optional, int, number of tires, value range:[1,20]-->4
</tiresNum>
<approvedPassengers>
<!--optional, int, maximum number of passengers allowed, value range:[1,100]-->7
</approvedPassengers>
</VehicleWeightInfo>
<isNotSlowZebraCrossing>
<!--optional, bool, whether the vehicle did not slow down at zebra crossing-->false
</isNotSlowZebraCrossing>
<isTurnRightStop>
<!--optional, bool, whether the vehicle did not stop before turning right-->false
</isTurnRightStop>
<PlateInfoList>
<!--optional, object, license plate information (only used for Hong Kong/Macau license plates)-->
<PlateInfo>
<!--optional, object, information of a license plate-->
<plateRect>
<!--optional, object, coordinate of the license plate area. This node is valid when the value of <type> is
detectionPicture. The value is normalized and equal to the size in percentage of the current image multiplying 1000.
The origin is the upper-left corner of the screen-->
<X>
<!--required, int, X-coordinate of the upper-left corner of the boundary frame, value range: [0,1000]-->1000
</X>
<Y>
<!--required, int, Y-coordinate of the upper-left corner of the boundary frame, value range: [0,1000]-->1000
</Y>
<width>
<!--required, int, width of the boundary frame, value range:[0,1000]-->1000
</width>
<height>
<!--required, int, height of the boundary frame, value range:[0,1000]-->1000
</height>
</plateRect>
<plateColor>
<!--required, enum, license plate color: black, blue, golden, orange, red, yellow, white, unknow, other,
newEnergyYellowGreen (new energy green and yellow), civilAviationBlack (civil aviation black), civilAviationGreen (civil
aviation green), green, mixedColor (mixed color), newEnergyGreen (new energy green)-->black
</plateColor>
<licensePlate>

263
Device Network SDK (ANPR) Developer Guide

<!--required, string, license plate number: noPlate (vehicle without license plate), unknown (no license plate
recognized), XXXXXX (recognized license plate number)-->A283KY77
</licensePlate>
<confidenceLevel>
<!--required, int, confidence level, value range:[0,100]-->50
</confidenceLevel>
</PlateInfo>
</PlateInfoList>
<deviceUUID>
<!--optional, string, device number, the maximum string size is 32 bytes. It is the device's serial number by default
and can be edited by the node <deviceID> in the message of /ISAPI/System/deviceInfo-->12345
</deviceUUID>
</EventNotificationAlert>

See Also
Region Code
Country/Region Code

B.5 XML_EventTriggerCapType
XML message about capability of alarm linkage action types
<EventTriggerCapType version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<isSupportCenter><!--optional, xs:boolean--></isSupportCenter>
<isSupportRecord><!--optional, xs:boolean--></isSupportRecord>
<isSupportMonitorAlarm><!--optional, xs:boolean--></isSupportMonitorAlarm>
<isSupportBeep><!--optional, xs: boolean, whether it supports audible warning--></isSupportBeep>
<isSupportIO><!--optional, xs:boolean--></isSupportIO>
<isSupportFTP><!--optional, xs:boolean--></isSupportFTP>
<isSupportEmail><!--optional, xs:boolean--></isSupEmail>
<isSupportLightAudioAlarm><!--optional, xs:boolean--></isSupportLightAudioAlarm>
<isSupportFocus><!--optional, xs:boolean--></isSupportFocus>
<isSupportPTZ><!--optional, xs:boolean--></isSupportPTZ>
<maxPresetActionNum>
<!--dependent, xs:integer, it is valid only when <isSupportPTZ> is "true"-->
</maxPresetActionNum>
<maxPatrolActionNum>
<!--dependent, xs:integer, it is valid only when <isSupportPTZ> is "true"-->
</maxPatrolActionNum>
<maxPatternActionNum>
<!--dependent, xs:integer, it is valid only when <isSupportPTZ> is "true"-->
</maxPatternActionNum>
<isSupportTrack><!--optional, xs:boolean, whether it supports PTZ linked tracking--></isSupportTrack>
<isSupportWhiteLight>
<!--optional, xs: boolean, whether it supports supplement light alarm linkage-->
</isSupportWhiteLight>
<isSupportCloud><!--optional, xs:boolean, whether it supports upload to the cloud--></isSupportCloud>
<targetNotificationInterval max="1000" min="0" default="30"><!--xs:integer, range: [0, 1000], the default value is 30,
unit: seconds, this node is valid for <MotionDetectionTriggerCap> and <TamperDetectionTriggerCap> and this node is
valid when <isSupportPTZ> is "true"--></targetNotificationInterval>

264
Device Network SDK (ANPR) Developer Guide

<direction opt="both,forward,reverse"><!--xs:string, triggering direction, this node is valid for the node
<BlackListTriggerCap>, <WhiteListTriggerCap>, and <VehicleDetectionTriggerCap>--></direction>
<presetDurationTime min="" max=""><!--dependent, xs:integer--></presetDurationTime>
<isSupportSMS><!--optional, xs:boolean, whether to support SMS (Short Message Service)--></isSupportSMS>
<maxCellphoneNum><!--dependent, xs:integer, the maximum number of cellphones, which is node is valid only
when <isSupportSMS> is "true"--></maxCellphoneNum>
<isSupportOSD><!--optional, xs:boolean--></isSupportOSD>
<isSupportAudio><!--optional, xs:boolean, whether it supports setting audio alarm independently. If this node is set
to "true", audio alarm and buzzer alarm can be linked separately, and the linage method is audio--></isSupportAudio>
<AudioAction><!--dependent, this node is valid when <isSupportBeep> is "true" or <isSupportAudio> is "true"-->
<audioTypeList>
<audioType><!--list-->
<audioID><!--required, xs:integer, alarm sound type--></audioID>
<audioDescription><!--required, xs:string, alarm sound description, it should correspond to the alarm sound type--
></audioDescription>
</audioType>
</audioTypeList>
<alarmTimes opt="0,1,2,3,4,5,6,7,8,9,255"><!--required, xs:integer, alarm times, it is between 0 and 9, 255-
continuous alarm, unit: time--></alarmTimes>
</AudioAction>
<isSupportSMS><!--optional, xs:boolean --></isSupportSMS>
<maxCellphoneNum><!--dependent, if <isSupportSMS> is true, xs:integer--></maxCellphoneNum>
<isNotSupportCenterModify><!--optional, xs:boolean, whether editing configuration parameters of the monitoring
center is not supported: "true"-yes (configuration parameters of the monitoring center cannot be edited), "false" or
this node is not returned-no (configuration parameters of the monitoring center can be edited)--></
isNotSupportCenterModify>
<isSupportMessageConfig>
<!--optional, xs:boolean, whether it supports SMS configuration, if supports, set cellphoneNumber to null-->
</isSupportMessageConfig>
<isSupportAnalogOutput><!--optional, xs:boolean, whether it supports IO output of linkage analog channel--></
isSupportAnalogOutput>
<isSupportIOOutputUnify><!--optional, xs:boolean, whether it supports configuration of IO output--></
isSupportIOOutputUnify>
<isSupportFaceContrast><!--optional, xs:boolean, whether it supports face picture comparison linkage--></
isSupportFaceContrast>
<isSupportSiren><!--optional, xs:boolean, whether it supports siren linkage--></isSupportSiren>
<isSupportOutput><!--optional, xs:boolean, whether it supports relay linkage--></isSupportOutput>
</EventTriggerCapType>

B.6 XML_EventTriggersCap
XML message about linkage capabilities of different alarm categories
<EventTriggersCap version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<DiskfullTriggerCap><!--optional, xs: EventTriggerCapType--></DiskfullTriggerCap>
<DiskerrorTriggerCap><!--optional, xs: EventTriggerCapType--></DiskerrorTriggerCap>
<NicbrokenTriggerCap><!--optional, xs: EventTriggerCapType--></NicbrokenTriggerCap>
<IpconflictTriggerCap><!--optional, xs: EventTriggerCapType--></IpconflictTriggerCap>
<IllaccesTriggerCap><!--optional, xs: EventTriggerCapType--></IllaccesTriggerCap>
<BadvideoTriggerCap><!--optional, xs: EventTriggerCapType--></BadvideoTriggerCap>

265
Device Network SDK (ANPR) Developer Guide

<VideomismatchTriggerCap><!--optional, xs: EventTriggerCapType--></VideomismatchTriggerCap>


<IOTriggerCap><!--optional, xs: EventTriggerCapType--></IOTriggerCap>
<LineDetectTriggerCap><!--optional, xs: EventTriggerCapType--></LineDetectTriggerCap>
<RegionEntranceTriggerCap><!--optional, xs: EventTriggerCapType--></RegionEntranceTriggerCap>
<RegionExitingTriggerCap><!--optional, xs: EventTriggerCapType--></RegionExitingTriggerCap>
<LoiteringTriggerCap><!--optional, xs: EventTriggerCapType--></LoiteringTriggerCap>
<GroupDetectionTriggerCap><!--optional, xs: EventTriggerCapType--></GroupDetectionTriggerCap>
<RapidMoveTriggerCap><!--optional, xs: EventTriggerCapType--></RapidMoveTriggerCap>
<ParkingTriggerCap><!--optional, xs: EventTriggerCapType--></ParkingTriggerCap>
<UnattendedBaggageTriggerCap><!--optional, xs: EventTriggerCapType--></UnattendedBaggageTriggerCap>
<AttendedBaggageTriggerCap><!--optional, xs: EventTriggerCapType--></AttendedBaggageTriggerCap>
<FireDetectionTriggerCap><!--optional, xs: EventTriggerCapType--></FireDetectionTriggerCap>
<FireDetectionCap><!--optional, xs: EventTriggerCapType--></FireDetectionCap>
<StorageDetectionTriggerCap><!--optional, xs: EventTriggerCapType--></StorageDetectionTriggerCap>
<ShipsDetectionTriggerCap><!--optional, xs: EventTriggerCapType--></ShipsDetectionTriggerCap>
<ThermometryCap><!--optional, xs: EventTriggerCapType--></ThermometryCap>
<VandalProofTriggerCap><!--optional, xs: EventTriggerCapType--></VandalProofTriggerCap>
<BlackListTriggerCap><!--opt, xs: EventTriggerCapType, configuration capability of blocklist arming linkage--></
BlackListTriggerCap>
<WhiteListTriggerCap><!--opt, xs: EventTriggerCapType, configuration capability of allowlist arming linkage--></
WhiteListTriggerCap>
<AllVehicleListTriggerCap><!--optional,xs:EventTriggerCapType, configuration capability of other list arming linkage--
></AllVehicleListTriggerCap>
<OtherVehicleListTriggerCap><!--optional,xs:EventTriggerCapType--></OtherVehicleListTriggerCap>
<PeopleDetectionTriggerCap><!--optional,xs:EventTriggerCapType--></PeopleDetectionTriggerCap>
<PIRAlarmCap><!--optional, xs: EventTriggerCapType--></PIRAlarmCap>
<TamperDetectionTriggerCap><!--optional, xs: EventTriggerCapType--></TamperDetectionTriggerCap>
<DefocusDetectionTriggerCap><!--optional, xs: EventTriggerCapType--></DefocusDetectionTriggerCap>
<FaceDetectionTriggerCap><!--optional, xs: EventTriggerCapType--></FaceDetectionTriggerCap>
<SceneChangeDetectionTriggerCap><!--optional, xs: EventTriggerCapType--></SceneChangeDetectionTriggerCap>
<VandalProofAlarmCap><!--optional, xs: EventTriggerCapType--></VandalProofAlarmCap>
<JudgmentTriggerCap><!--optional, xs: EventTriggerCapType--></JudgmentTriggerCap>
<FightingTriggerCap><!--optional, xs: EventTriggerCapType--></FightingTriggerCap>
<RisingTriggerCap><!--optional, xs: EventTriggerCapType--></RisingTriggerCap>
<DozingTriggerCap><!--optional, xs: EventTriggerCapType--></DozingTriggerCap>
<CountingTriggerCap><!--optional, xs: EventTriggerCapType--></CountingTriggerCap>
<VideoLossTriggerCap><!--optional, xs: EventTriggerCapType--></VideoLossTriggerCap>
<HideTriggerCap><!--optional, xs:EventTriggerCapType--></HideTriggerCap>
<AlarmInTriggerCap><!--optional, xs: EventTriggerCapType--></AlarmInTriggerCap>
<VehicleDetectionTriggerCap><!--optional, xs: EventTriggerCapType--></VehicleDetectionTriggerCap>
<AudioExceptionCap><!--optional, xs: EventTriggerCapType--></AudioExceptionCap>
<FiledDetectTriggerCap><!--optional, xs: EventTriggerCapType--></FiledDetectTriggerCap>
<MotionDetectionTriggerCap><!--optional, xs: EventTriggerCapType--></MotionDetectionTriggerCap>
<TemperatureCap><!--optional, xs: EventTriggerCapType--></TemperatureCap>
<IntelligentTriggerCap><!--optional, xs: EventTriggerCapType--></IntelligentTriggerCap>
<FaceContrastTriggerCap><!--optional, xs: EventTriggerCapType, face picture comparison alarm linkage--></
FaceContrastTriggerCap>
<PersonDensityDetectionTriggerCap><!--optional, xs: EventTriggerCapType--></PersonDensityDetectionTriggerCap>
<PersonQueueDetectionTriggerCap><!--optional, xs: EventTriggerCapType, queue management alarm linkage--></
PersonQueueDetectionTriggerCap>
<HumanRecognitionTriggerCap><!--optional,xs: EventTriggerCapType--></HumanRecognitionTriggerCap>
<FaceSnapTriggerCap><!--optional, xs: EventTriggerCapType--></FaceSnapTriggerCap>

266
Device Network SDK (ANPR) Developer Guide

<isSupportWhiteLightAction>
<!--dependent, xs: boolean, see details in EventTriggerCapType, it is valid when isSupportWhiteLight is "true"-->
</isSupportWhiteLightAction>
<isSupportAudioAction>
<!--dependent, xs: boolean, see details in EventTriggerCapType, it is valid when isSupportBeep is "true"-->
</isSupportAudioAction>
<HFPDTriggerCap><!--optional, xs: EventTriggerCapType--></HFPDTriggerCap>
<MixedTargetDetectionCap><!--optional, xs: EventTriggerCapType--></MixedTargetDetectionCap>
<HVTVehicleDetectionTriggerCap><!--optional, xs: EventTriggerCapType--></HVTVehicleDetectionTriggerCap>
<VCATriggerCap><!--optional, xs: EventTriggerCapType--></VCATriggerCap>
<PIRCap><!--optional, xs: EventTriggerCapType--></PIRCap>
<IllegalParkingTriggerCap><!--optional, xs: EventTriggerCapType, whether it supports illegal parking detection--></
IllegalParkingTriggerCap>
<PedestrianTriggerCap><!--optional, xs: EventTriggerCapType, whether it supports pedestrian detection--></
PedestrianTriggerCap>
<TrafficAccidentTriggerCap><!--optional, xs: EventTriggerCapType, whether it supports traffic accident detection--></
TrafficAccidentTriggerCap>
<ConstructionTriggerCap><!--optional, xs: EventTriggerCapType, whether it supports construction detection--></
ConstructionTriggerCap>
<RoadBlockTriggerCap><!--optional, xs: EventTriggerCapType, whether it supports roadblock detection--></
RoadBlockTriggerCap>
<AbandonedObjectTriggerCap><!--optional, xs: EventTriggerCapType, whether it supports objects dropped down
detection--></AbandonedObjectTriggerCap>
<ParallelParkingTriggerCap><!--optional, xs: EventTriggerCapType, whether it supports parallel parking detection--></
ParallelParkingTriggerCap>
<ParkingStateTriggerCap><!--optional, xs: EventTriggerCapType, whether it supports parking space status detection,
currently this node is not supported--></ParkingStateTriggerCap>
<CongestionTriggerCap><!--optional, xs: EventTriggerCapType, whether it supports congestion detection--></
CongestionTriggerCap>
<IntersectionAnalysisCap><!--optional, xs: EventTriggerCapType, whether it supports intersection analysis--></
IntersectionAnalysisCap>
<ShipsFlowDetectionTriggerCap><!--optional,xs:EventTriggerCapType, ship flow detection--></
ShipsFlowDetectionTriggerCap>
<dredgerDetectionTriggerCap><!--optional,xs:EventTriggerCapType, dredger detection--></
dredgerDetectionTriggerCap>
<voltageInstableTriggerCap><!--optional,xs:EventTriggerCapType, supply voltage exception--></
voltageInstableTriggerCap>
<HighHDTemperatureTriggerCap><!--optional, xs:EventTriggerCapType, HDD high temperature detection--></
HighHDTemperatureTriggerCap>
<LowHDTemperatureTriggerCap><!--optional, xs:EventTriggerCapType, HDD low temperature detection--></
LowHDTemperatureTriggerCap>
<HDImpactTriggerCap><!--optional, xs:EventTriggerCapType, HDD impact detection--></HDImpactTriggerCap>
<HDBadBlockTriggerCap><!--optional, xs:EventTriggerCapType, HDD bad sector detection--></
HDBadBlockTriggerCap>
<SevereHDFailureTriggerCap><!--optional, xs:EventTriggerCapType, HDD severe fault detection--></
SevereHDFailureTriggerCap>
<HUMANATTRIBUTECap><!--optional, xs:EventTriggerCapType--></HUMANATTRIBUTECap>
<HumanAttributeTriggerCap><!--optional, xs:EventTriggerCapType, human body attribute--></
HumanAttributeTriggerCap>
<BlackListFaceContrastTriggerCap><!--opt, xs:EventTriggerCapType, alarm linkage capability of blocklist face
comparison--></BlackListFaceContrastTriggerCap>
<FaceLibTriggerCap><!--optional, xs:EventTriggerCapType--></FaceLibTriggerCap>

267
Device Network SDK (ANPR) Developer Guide

<SafetyHelmetDetectionTriggerCap><!--optional, xs:EventTriggerCapType, alarm linkage capability of hard hat


detection--></SafetyHelmetDetectionTriggerCap>
<VibrationDetectionTriggerCap><!--optional, xs:EventTriggerCapType, alarm linkage capability of vibration detection--
></VibrationDetectionTriggerCap>
<RadarLineDetectionTriggerCap><!--optional, xs:EventTriggerCapType, alarm linkage capability of radar line crossing
detection--></RadarLineDetectionTriggerCap>
<RadarFieldDetectionTriggerCap><!--optional, xs:EventTriggerCapType, alarm linkage capability of radar intrusion
detection--></RadarFieldDetectionTriggerCap>
<HBDLibTriggerCap><!--optional, xs:EventTriggerCapType, alarm linkage capability of human body picture library--></
HBDLibTriggerCap>
<FaceThermometryCap><!--optional, xs:EventTriggerCapType--></FaceThermometryCap>
<NoMaskDetectionTriggerCap><!--optional, xs:EventTriggerCapType, alarm linkage capability of no wearing mask
detection--></NoMaskDetectionTriggerCap>
<TMPATriggerCap><!--optional, xs:EventTriggerCapType, alarm linkage capability of temperature measurement pre-
alarm--></TMPATriggerCap>
<FireEscapeDetectionTriggerCap><!--optional, xs:EventTriggerCapType, alarm linkage capability of fire engine access
detection--></FireEscapeDetectionTriggerCap>
<TakingElevatorDetectionTriggerCap><!--optional, xs:EventTriggerCapType, alarm linkage capability of elevator
detection--></TakingElevatorDetectionTriggerCap>
<RuleTriggerCap><!--optional, linkage capability of rule triggered alarm -->
<isSupportCityManagement>
<!--optional, xs:boolean, whether the city management supports setting linkage actions by area; if supports, the
value is true, otherwise, this node will not be returned-->
</isSupportCityManagement>
</RuleTriggerCap>
<ThermalCalibrationFileExceptionCap><!--optional, xs:EventTriggerCapType, alarm linkage capability of
thermography calibration file exception--></ThermalCalibrationFileExceptionCap>
</EventTriggersCap>

See Also
XML_EventTriggerCapType

B.7 XML_ITCCap
XML message about intelligent traffic capability
<ITCCap version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<isSupportITC><!—dependent, xs:boolean--></isSupportITC>
<isSupportITCStatus>
<!--req, xs:boolean, whether it supports device status-->
</isSupportITCStatus>
<isSupportIllegalDictionary>
<!--req, xs:boolean, whether it supports traffic violation dictionary-->
</isSupportIllegalDictionary>
<isSupportVehicleDetection>
<!--dep, xs: boolean, whether it supports vehicle detection-->
</isSupportVehicleDetection>
<isSupportHVTVehicleDetection><!--dependent, xs:boolean--></isSupportHVTVehicleDetection>
<isSupportlicencePlateAuditData><!--optional, xs:boolean--></isSupportlicencePlateAuditData>
<isSupportSearchLPListAudit><!--optional, xs:boolean--></isSupportSearchLPListAudit>

268
Device Network SDK (ANPR) Developer Guide

<isSupportEvidenceDictionary>
<!--req, xs: boolean, whether it supports traffic law enforcement dictionary-->
</isSupportEvidenceDictionary>
<isSupportITCSetUp>
<!--req, xs:boolean, whether it supports installation parameters-->
</isSupportITCSetUp>
<isSupportTrafficParam>
<!--req, xs:boolean, whether it supports vehicle counting statistics-->
</isSupportTrafficParam>
<isSupportManualCap>
<!--req, xs:boolean, whether it supports manual capture-->
</isSupportManualCap>
<isSupportIllegalUploadPic>
<!--req, xs:boolean, whether it supports uploading pictures-->
</isSupportIllegalUploadPic>
<isSupportContinueCap>
<!--req, xs:boolean, whether it supports continuous capture-->
</isSupportContinueCap>
<isSupportWiper>
<!--req, xs:boolean, whether it supports wiper-->
</isSupportWiper>
<isSupportEntranceCap>
<!--optional, xs:boolean, whether it supports entrance and exit functions-->
</isSupportEntranceCap>
<isSupportPlateRecognitionParam>
<!--req, xs:boolean, whether it supports license plate recognition parameters-->
</isSupportPlateRecognitionParam>
<isSupportSyncSignalOutput>
<!--req, xs:boolean,whether it supports output parameters-->
</isSupportSyncSignalOutput>
<isSupportSyncPower>
<!--req, xs:boolean, whether it supports signal light synchronization-->
</isSupportSyncPower>
<isSupportImageMerge>
<!--req, xs:boolean, whether it supports picture composition-->
</isSupportImageMerge>
<isSupportCabinetParam>
<!--req, xs:boolean, whether it supports device cabinet alarm-->
</isSupportCabinetParam>
<isSupportCarFeatureParam>
<!--req, xs:boolean, whether it supports vehicle features-->
</isSupportCarFeatureParam>
<isSupportLightCorrect>
<!--req, xs:boolean, whether it supports exporting illegal action codes-->
</isSupportLightCorrect>
<isSupportSnapshot>
<!--req, xs:boolean, whether it supports image capture resolution-->
</isSupportSnapshot>
<isSupportIllegalCodeData>
<!--req, xs:boolean, whether it supports signal light correction-->
</isSupportIllegalCodeData>
<isSupportNetStorage>

269
Device Network SDK (ANPR) Developer Guide

<!--req, xs:boolean, whether it supports network storage-->


</isSupportNetStorage>
<isSupportAlgorithmsVersion>
<!--req, xs:boolean, whether it supports getting algorithm library status-->
</isSupportAlgorithmsVersion>
<isSupportAlgorithmsState>
<!--req, xs:boolean, whether it supports getting algorithm library version-->
</isSupportAlgorithmsState>
<isSupportPlateCorrection>
<!--opt, xs:boolean, whether it supports manual license plate correction-->
</isSupportPlateCorrection>
<isSupportRadarSetUp>
<!--req, xs:boolean, whether it supports radar construction parameters-->
</isSupportRadarSetUp>
<isSupportRadarMeasurement>
<!--opt, xs:boolean, whether it supports radar measurement configuration-->
</isSupportRadarMeasurement>
</ITCCap>

B.8 XML_ITDeviceAbility
ITDeviceAbility message in XML format.
<ITDeviceAbility version="2.0"><!--capabilities of traffic camera and traffic terminal server-->
<channelNO><!--req, xs:integer, channel No.--></channelNO>
<ITCAbility><!--req, traffic camera capability-->
<IOInNo min="" max=""/>
<!--req, xs:integer, max and min number of IO input ports-->
<IOOutNo min="" max=""/>
<!--req, xs:integer, max and min number of IO output ports-->
<singleIOTriggerNum>4</singleIOTriggerNum>
<!--req, xs:integer, group number of single IO trigger-->
<lightArrayNum>8</lightArrayNum>
<!--req, xs:integer, group number of traffic lights-->
<measureArrayNum>4</measureArrayNum>
<!--req, xs:integer, group number of velocimetry modes-->
<lensMode opt="CCD,CMOS"/>
<!-- Lens mode-->
<PreTrigger>
<enabled></enabled>
<!--req, whether it is the original trigger mode, no this node if not support-->
</PreTrigger>
<triggerMode
opt="postIOSpeed,postSingleIO,postRS485,postRS485Radar,postVirtualcoil,epoliceIoTrafficLights,epoliceRS485,peRS48
5,postNoComityPed, postRedLightPed, videoEpolice"/>
<!--req, trigger mode, the cameras of the version smaller than V3.1 are not support it-->
<support opt="imageOverlayString,calibrateTime,multiNIC,NICBonding,voiceIntercom,IOEnableCfg,FTPExpand"/>
<!--req, bySupport??
bySupport&0x1??indicates whether support characters overlay configuration extension
bySupport&0x2??indicates whether support extend time correction cofiguration

270
Device Network SDK (ANPR) Developer Guide

bySupport&0x4, indicates whether support multi-NIC(multi-NIC segregation


bySupport&0x8, indicates whether support NIC bonding function(network failover)
bySupport&0x10, indicates whether support voice talk
bySupport&0x20??indicates whether support single IO trigger interface cofiguration
bySupport&0x40??indicates whether support FTP interface extension(support in v3.6)-->
<supportMultiRadar opt="postRS485Radar,postVirtualcoil,videoEpolice,postHVT"/>
<!--req, wSupportMultiRadar??
wSupportMultiRadar&0x1??indicates whether bayonet RS485 radar support lane associsted with radar
wSupportMultiRadar&0x2??indicates whether bayonet virtual coilsupport lane associsted with radar
wSupportMultiRadar&0x4??indicates whether hybrid bayonet support lane associsted with radar
wSupportMultiRadar&0x8??indicates whether video detection support lane associsted with radar-->
<ICRPresetNum min="0" max="8"/><!--req, ICR preset number (optical filter offset point) byICRPresetNum-->
<ICRTimeSlot min="0" max="8"/><!--req, ICR time slot number??1??8??byICRTimeSlot-->
<expandRs485SupportSensor opt="peRS485,epoliceRS485"/>
<!--req, byExpandRs485SupportSensor??
byExpandRs485SupportSensor &0x1??indicates e-police vehicle inspection support vehicle detector
byExpandRs485SupportSensor &0x2??indicates bayonet e-police inspection support detector -->
<expandRs485SupportSignalLampDet opt="videoEpolice,epoliceRS485,peRS485"/>
<!--req, byExpandRs485SupportSignalLampDet??
byExpandRs485SupportSignalLampDet &0x1??indicates e-police inspection support signal detector
byExpandRs485SupportSignalLampDet &0x2??indicates bayonet e-police inspection support external signal detector
byExpandRs485SupportSignalLampDet &0x4??indicates video e-police support external signal detector-->

<ImageCombine>
<enabled>true</enabled>
<!--req, it supports the picture mergence, no this node if not support-->
</ImageCombine>
<TrafficDataUpload>
<UploadType1>
<enabled>
true</enabled>
<!--req, it supports the uploading mode no.1 (that is, the type supported by intelligent traffic camera,
COMM_UPLOAD_PLATE_RESULT of arming mode), no this node if not support-->
</UploadType1>
<UploadType2>
<enabled>
true</enabled>
<!--req, it supports the uploading mode no.2 (that is, the type supported by ITS,
COMM_ITS_PLATE_RESULT of listening mode), no this node if not support-->
</UploadType2>
<UploadType3>
<enabled>
true</enabled>
<!--req, it supports the uploading mode no.2 (that is, the type supported by intelligent traffic camera,
COMM_ITS_PLATE_RESULT of arming mode), no this node if not support-->
</UploadType3>
</TrafficDataUpload>

<VideoLocalRecord>
<enabled>true</enabled>
<!--req, whether it supports local recording, no this node if not support-->
</VideoLocalRecord>

271
Device Network SDK (ANPR) Developer Guide

<PicLocalStore>
<enabled>true</enabled>
<!--req, whether it supports local storage of pictures, no this node if not support-->
</PicLocalStore>
<PlateRecognise>
<enabled>true</enabled>
<!--req, whether it supports license plate recognition, no this node if not support-->
<regionType opt="rect,polygon"/>
<!--the supported types of license plate recognition area-->
<plateTypeopt opt="standard92,standard02,armedPolice,police,standard92Back,embassy,agricultural,moto"/>
<plateColor opt="blue,yellow,white,black,green"/>
<vehicleType opt="small,big"/>
<bodyworkColor opt="white,silver,gray,black,red,darkblue,blue,yellow,green,brown,pink,violet"/>
</PlateRecognise>
<imageOverlayString>
<mode1>
<!--opt, the character overlay on the picture of original intelligent traffic camera, no this node if not support-->
<overlayStringType
opt="monitor,time,speed,speedRatio,speedLimit,plate,carColor,carLength,carType,laneNum,milliSecond,illegalInfo,red
OnTime"/>
<!--opt, monitoring site, time, speed, overspeed ratio, speed limit sign, license plate, color of vehicle, length of
vehicle,
vehicle type, traffic lane ID, millisecond, violation information, the time that the red light has been lighted-->
</mode1>
<mode2>
<!--opt, the character overlay on the picture of ITS or camera of ITS, no this node if not support-->
<overlapType
opt="monitor,site,roadNum,instrumentNum,directionNum,directionDes,laneNum,laneDes,capTime,capTimeMilli,plate
,carColor,carLength,carType,carBrand,speed,speedRatio,speedLimit,illegalDes,redStart,redStop,redOnTime,securityCod
e,capCode"/>
<!--opt, monitoring site, location, intersection ID, device ID, direction ID, direction description, lane ID, lane
description,
the time of capturing, the time of capturing(millisecond), license plate number, color of vehicle, length of vehicle,
vehicle type,
vehicle brands, speed, overspeed ratio, speed limit sign, violation information, the starting time of red light, the
ending time of
red light, the time that the red light has been lighted, security code, capturing ID-->
<itemLength min="0" max=""/>
<!--opt, length of character overlay-->
<changeLineNum min="0" max="10"/>
<!--opt, the number of line breaks-->
<spaceNum min="0" max="255"/>
<!--opt, the number of spaces-->
<linePercent min="0" max="100"/>
<!--opt, percentage of overlay line-->
<itemsStlye opt="horizontal,vertical"/>
<!--opt, overlay style: horizontal, vertical -->
<startPosTop min="0" max="2448"/>
<!--opt, the upper coordinate of starting point-->
<startPosLeft min="0" max="2448"/>
<!--opt, the left coordinate of starting point-->
<charStyle opt="SongTi,WeiTi"/>

272
Device Network SDK (ANPR) Developer Guide

<!--opt, font type: standard typeface of Chinese, typeface of Wei-->


<charSize opt="16*16,32*32,48*48,64*64"/>
<!--req, font size: 0-32*32(Chinese)/16*32(English), 1-64*64(Chinese)/32*64(English), 2-48*48 -->
<charInterval min="0" max="16"/>
<!--opt, character spacing-->
<ForeClorRGB>
<enabled>
true</enabled>
<!--opt, whether it supports to adjust RGB value of foreground color, no this node if not support-->
</ForeClorRGB>
<BackClorRGB>
<enabled>
true</enabled>
<!--opt, whether it supports to adjust RGB value of background color, no this node if not support-->
</BackClorRGB>
<ColorSelfAdapt>
<enabled>
true</enabled>
<!--opt, whether the color is adaptive, no this node if not support-->
</ColorSelfAdapt>
<itemTypeCustomLength min="0" max="32"/><!--opt, Custom definition type length(added in
NET_ITS_OVERLAP_CFG_V50), it will not be displayed if not supported.-->
</mode2>
</imageOverlayString>
<TPSAlarm>
<!--req, whether it supports uploading information of traffic counting, no this node if not support-->
<UploadType1>
<enabled>
true</enabled>
<!--req, it supports the uploading mode no.2(that is, the type supported by ITS, COMM_ITS_TRAFFIC_COLLECT
of listening mode), no this node if not support-->
</UploadType1>
<UploadType2>
<enabled>
true</enabled>
<!--req, it supports the uploading mode no.2(that is, the type supported by intelligent traffic camera,
COMM_ITS_PLATE_RESULT of arming mode(COMM_ITS_TRAFFIC_COLLECT), no this node if not support-->
</UploadType2>
</TPSAlarm>
<CameraSetup>
<!--req, it supports camera mounting configuration, no this node if not support-->
<enabled>
true</enabled>
</CameraSetup>
<AlarmRecordDown>
<!--req, it supports to download the alarm record, no this node if not support-->
<enabled>
true</enabled>
</AlarmRecordDown>
<supportMilliCheckTime>
<!--req, support millisecond time correction -->
<enabled>true</enabled>

273
Device Network SDK (ANPR) Developer Guide

</supportMilliCheckTime>

<SnapStatusDetectCFG>
<!--req, enabled parameter capability of status detection, the corresponding stucture is
(NET_DVR_STATUS_DETECTCFG), the node does not display when there is no support-->
<triggerIODectect opt="true,false"/><!--req,IO status detection triggered by ITC, true-enable??false-disable-->
<flashOutDetect opt="true,false"/><!--req,ITC sync-output status detection, true-enable??false-disable-->
<RS485Detect opt="true,false"/><!--req,ITC RS485 receive status detection, true-enable??false-disable-->
<trafficLightDetect opt="true,false"/><!--req,ITC traffic light detection, true-enable??false-disable-->
</SnapStatusDetectCFG>

<SnapRadarParam>
<!--req, radar configuration parameter capability, the corresponding stucture is (NET_ITC_RADAR_PARAM),the
node does not display when there is no support-->
<radarType opt="noRadar,Andaolei,Olivia,microwave,IOExpanBox,other"/><!--req,radar type, 0-noRadar,1-
Andaolei,2-Olivia,3-microwave, 4-IOExpanBox,0xff-other -->
<levelAngle min="0" max="90"/><!--req,the angle with horizontal line, 0~90 -->
<radarSensitivity min="0" max="65535"/><!--req, radar sensitivity, 0~65535 -->
<radarSpeedValidTime min="0" max="2000"/><!--req, valid time of radar speed [0~2000] -->
<lineCorrectParam min="0.0" max="2.0"/>
<!--req,linear correction parameters -->
<constCorrectParam min="-100" max="100"/>
<!--req,constant correction parameters -->
</SnapRadarParam>

<SnapEnableCfg>
<!--req,the corresponding stucture is (NET_DVR_SNAPENABLECFG) -->
<plateEnable opt="true,false"/>
<!--req, whether support plate recognition??0-false??1-true -->
<jpegPICSize min="64" max="8196"/>
<!--req Jpeg size[64-8196]-->
<frameFlip opt="noturn,turn"/>
<!--req 0-noturn(no flip) 1-turn(flip)-->
<flipAngle opt="0,90,180,270"/>
<!--req angle of image: 0,90,180,270-->
<lightPhase min="0" max="360"/>
<!--req phase, data range[0, 360]-->
<lightSyncPower opt="noSynchronized,Synchronized"/>
<!--req whether the signal lamp is synchronized with power supply??0-noSynchronized??1-Synchronized-->
<frequency min="0" max="255"/>
<!--req signal frequency-->
<uploadSDEnable opt="false,true"/>
<!--req whether auto upload SD picture: 0-false, 1-true-->
<plateMode opt="videoTrigger,externalTrigger"/>
<!--req recognition mode parameter: 0-videoTrigger, 1-externalTrigger-->
<uploadInfoFTP opt="false,true"/>
<!--req whether upload the additional info of capture to FTP: 0-false, 1-true-->
<autoFormatSD opt="false,true"/>
<!--req whether auto format SD card: 0-false, 1-true-->
</SnapEnableCfg>

<ITCIOoutParam>

274
Device Network SDK (ANPR) Developer Guide

<defaultStatus opt="lowlevel,highlevel"/>
<!--req IO default status: 0 - lowlevel??1 - highlevel-->
<IOoutStatus opt="lowlevel,highlevel,impulse"/>
<!--req IO valid status: 0 - lowlevel,1 - highlevel,2 - impulse-->
<flashMode opt="video,post,illegal"/>
<!--req flash work mode,described by bit: 0-work??1-not work, bit0 - video, bit1 - post,bit2 - illegal-->
<timeDelay min="" max=""/>
<!--req IO valid contious time, unit: us-->
<aheadTime min="" max=""/>
<!--req output IO ahead time,unit: us-->
<dutyRate min="0" max="40"/>
<!--req rate??[0,40%]-->
<detectBrightness opt="false,true"/>
<!--req auto detect the brightness of enabled flash: 0-false, 1-true-->
<brightnessThreld min="0" max="100"/>
<!--req brightness threld of flash, range:[0,100], flash when higher than threld-->
<flashLightEnable opt="false,true"/><!--req set flash time enable: 0-false, 1-true-->
<autoPlateBrightness opt="false,true"/>
<ioWorkMode opt="flashlight,polarizer"/>
<!--IO output port working mode: 0-Flash light, 1- Polarizer-->
</ITCIOoutParam>

<CameraSetUpCfg>
<setupHeight min="0" max="65535"/><!--req setup height/-->
<lensType opt="unKnown,8mm,12mm,16mm,25mm,35mm,50mm"/><!--req lens type/-->
<setupHeightUnit opt="M,CM"/>
<!--req 0~M,1~CM-->
<sceneDis min="0" max="65535"/><!--req the horizontal distance between the bottom of image and camera, unit:
cm-->
<videoDetCoefficient min="" max=""/><!--req video test coefficient[0,300]-->
<erectMethod opt="normalinstallation,sideinstallation"/><!--req, erect mode: 0- normal ??1- side -->
<horFieldAngle min="" max=""/>
<!-- The horizontal filed angle range [0??~360??]-->
<verFieldAngle min="" max=""/>
<!-- The vertical filed angle range [0??~360??]-->
</CameraSetUpCfg>

<PlcCfg>
<PLCEnable opt="false,true"/>
<!--req plate brightness compensation??default to enable????0-close??1-enable-->
<plateExpectBright min="0" max="100"/>
<!--req expectation brightness of plate,?? default to 50??, data range: [0, 100]-->
<brightChangeEnable opt="false,true"/>
<!--req illumination variation??default to enable????0-close??1-enable -->
<brightChangeThreld min="0" max="100"/>
<!--req brightness change threld ?? default to 50????data range: [0, 100]-->
<tradeOffFlash opt="false,true"/>
<!--req whether consider influence of flash: 0 - no; 1 - yes(default), when use the flash compensation, 1- weaken
the enhancement effect of flash brightness, 0 - no -->
<correctFactor min="0" max="100"/>
<!--req correction factor, data range: [0,100], default it to 50 (restore the default value when swicth
tradeoff_flash?? -->

275
Device Network SDK (ANPR) Developer Guide

<loopStatsEn opt="false,true"/>
<!--req brightness of coil, described by bit: 0- No statistical??1- statistical-->
<PLCBrightOffSet min="0" max="100"/>
<!--req sensitivity of plate brightness compensation(vitual coil mode valid only)??data range: 1- 100-->
</PlcCfg>

<CabinetAlarmParamCfg>
<supportCabinetNum min="0" max="8"/>
<cabinetNameLen min="0" max="32"/>
<associateIO opt="1,2,3,4,0xff"/>
<!--req 1-4??0xff?? 1-4: IO channel, 0xff- disable-->
<cabinetState opt="lowlevel,hightlevel"/>
<!--req 0- lowlevel, 1- highlevel-->
<alarmIntervalTime min="1" max="60"/>
<!--req data range: 1-60??uint: s -->
</CabinetAlarmParamCfg>

<ExceptionAlarmITC>
<exceptionType opt="diskError,nicBroken,ipConflict,sensors,signalDetector"/>
<alarmHandleType opt="monitor,audio,center,alarmout,picture,wirelesslight,uploadftp"/><!--req,
handle ,picture: capture and send mail-->
</ExceptionAlarmITC>
<ICRCFG>
<autoCtrlTime>4</autoCtrlTime>
<ICRPreset>2</ICRPreset>
<switchType opt="no,auto,manual,time,algorithmAuto"/>
<!--0 ~ Not switch, 1- Auto switch, 2~Manually switch,3~Scheduling switch??4~Auto-arithmetic-->
<AlgorithmAutoSwitch>
<detThreshold min="" max="" def=""/><!--Check the threshold, range[0~100], default:58-->
<unBrightnessThreshold min="" max="" def=""/><!--Abnormal brightness, range[0~255],default:12 -->
</AlgorithmAutoSwitch>
</ICRCFG>

<ITCFTP>
<ItcFtpTypeCond>
<workMode opt="ftp1,ftp2"/><!--req 0-FTP1(main FTP)??1-FTP2( backupFTP)-->
</ItcFtpTypeCond>
<ItcFtpCfg>
<enableFtp opt="true,false"/><!--req 0-false,1-true-->
<addressType opt="ipaddress,domainname"/><!--req 0- actual ipv4 ipv6 address, 1-domain-->
<ftpPort min="" max=""/><!--req ftp port range-->
<domainLen min="" max=""/><!--req domain length-->
<userNameLen min="" max=""/><!--req user name length-->
<passwordLen min="" max=""/><!--req password length-->
<dirLevel opt="rootdirectory,parentdirectory,childdirectory,threedirectory,fourdirectory"/>
<!--req 0 = don't use directory??save in the root directory,1 = use level 1 directory, 2= use level 2 directory, 3 =
use level 3 directory, 4=use level 4 directory-->
<uploadDataType opt="all,post,illegal"/><!--req 0-all,1- post,2-illegal(default to select all when use single FTP,
select post when use double FTP)-->
<itemOrder
opt="devname,devno,devip,channelname,channelno,time,cardno,plateno,paltecolor,laneno,carspeed,picnumber,
carnumber,speedlimit,illegalcode,crossnumber,directionnumber"/>

276
Device Network SDK (ANPR) Developer Guide

<delimiter opt="_"/><!--req separator??general: '_'-->


<topDirMode
opt="deviceName,deviceNO,deviceIP,monitor,time,timeday,violatetype,direction,place ,channelName,channelNo,Lane
No,custom"/>
<!--req 0x1 = use device name,0x2 = use device number,0x3 =use device IP??0x4=use monitor point,0x5=use
time(year month), 0x6=use time(year month day),
0x7=violation type,0x8= direction,0x9=location,0xa=channel name,0xb=channel number,0xc=lane number;
0xff=automatic-->
<subDirMode
opt="deviceName,deviceNO,deviceIP,monitor,time,timeday,violatetype,direction,place ,channelName,channelNo,Lane
No,custom"/>
<threeDirMode
opt="deviceName,deviceNO,deviceIP,monitor,time,timeday,violatetype,direction,place ,channelName,channelNo,Lane
No,custom"/>
<fourDirMode
opt="deviceName,deviceNO,deviceIP,monitor,time,timeday,violatetype,direction,place ,channelName,channelNo,Lane
No,custom"/>
<topCustomDirLen min="" max=""/><!--req customized length of level 1 directory-->
<subCustomDirLen min="" max=""/><!--req customized length of level 2 directory -->
<threeCustomDirLen min="" max=""/><!--req customized length of level 3 directory-->
<fourCustomDirLen min="" max=""/><!--req customized length of level 4 directory-->
</ItcFtpCfg>

</ITCFTP>

<GPSDATACFG>
<gpsDataMode opt="auto,manual"/>
<!--Getting GPS data, 0-Auto??1-Manual-->
<longitudeType opt="east,west"/><!--Longitude: 0- East longitude??1-West longitude-->
<latitudeType opt="north,south"/><!--latitude: 0-South latitude??1-North latitude-->
<Longitude>
<degree min="0" max="180"/>
<minute min="0" max="60"/>
<sec min="0" max="60"/>
</Longitude>
<Latitude>
<degree min="0" max="180"/>
<minute min="0" max="60"/>
<sec min="0" max="60"/>
</Latitude>
</GPSDATACFG>

</ITCAbility>
<ITSAbility>
<cameraAmount>
<!--req, xs:integer, the maximum number of supported cameras-->
</cameraAmount>
<storeAmount>
<!--req, xs:integer, the maximum amount of supported data storage-->
</storeAmount>
<ImageCombine>
<enabled>true</enabled>

277
Device Network SDK (ANPR) Developer Guide

<!--req, it supports picture mergence, no this node if not support-->


</ImageCombine>
<TrafficDataUpload>
<UploadType1>
<enabled>
true</enabled>
<!--req, it supports the uploading mode no.1 (that is, the type supported by intelligent traffic camera,
COMM_UPLOAD_PLATE_RESULT of arming mode), no this node if not support-->
</UploadType1>
<UploadType2>
<enabled>
true</enabled>
<!--req, it supports the uploading mode no.2 (that is, the type supported by ITS, COMM_ITS_PLATE_RESULT of
listening mode), no this node if not support-->
</UploadType2>
<UploadType3>
<enabled>
true</enabled>
<!--req, it supports the uploading mode no.2 (that is, the type supported by intelligent traffic camera,
COMM_ITS_PLATE_RESULT of arming mode), no this node if not support-->
</UploadType3>
</TrafficDataUpload>
<VideoLocalRecord>
<enabled>
true<!--req, it supports local recording, no this node if not support-->
</enabled>
</VideoLocalRecord>
<PicLocalStore>
<enabled>
true<!--req, it supports local storage of pictures, no this node if not support-->
</enabled>
</PicLocalStore>
<PlateRecognise>
<enabled>
true<!--req, whether it supports license plate recognition, no this node if not support-->
</enabled>
<regionType opt="rect,polygon"/>
<!-- the supported types of license plate recognition area-->
<plateTypeopt opt="standard92,standard02,armedPolice,police,standard92Back,embassy,agricultural,moto"/>
<plateColor opt="blue,yellow,white,black,green"/>
<vehicleType opt="small,big"/>
<bodyworkColor opt="white,silver,gray,black,red,darkblue,blue,yellow,green,brown,pink,violet"/>
</PlateRecognise>
<imageOverlayString>
<mode1>
<!--opt, the character overlay on the picture of original intelligent traffic camera, no this node if not support-->
<overlayStringType
opt="monitor,time,speed,speedRatio,speedLimit,plate,carColor,carLength,carType,laneNum,milliSecond,illegalInfo,red
OnTime"/>
<!--opt, monitoring site, time, speed, overspeed ratio, speed limit sign, license plate, color of vehicle, length of
vehicle,
vehicle type, traffic lane ID, millisecond, violation information, the time that the red light has been lighted-->

278
Device Network SDK (ANPR) Developer Guide

</mode1>
<mode2>
<!--opt, the character overlay on the picture of ITS or camera of ITS, no this node if not support-->
<overlapType
opt="monitor,site,roadNum,instrumentNum,directionNum,directionDes,laneNum,laneDes,capTime,capTimeMilli,plate
,carColor,carLength,carType,carBrand,speed,speedRatio,speedLimit,illegalDes,redStart,redStop,redOnTime,securityCod
e,capCode"/>
<!--opt, monitoring site, location, intersection ID, device ID, direction ID, direction description, lane ID, lane
description,
the time of capturing, the time of capturing(millisecond), license plate number, color of vehicle, length of vehicle,
vehicle type,
vehicle brands, speed, overspeed ratio, speed limit sign, violation information, the starting time of red light, the
ending time of
red light, the time that the red light has been lighted, security code, capturing ID-->
<itemLength min="0" max=""/>
<!--opt, length of character overlay-->
<changeLineNum min="0" max="10"/>
<!--opt, the number of line breaks-->
<spaceNum min="0" max="255"/>
<!--opt, the number of spaces-->
<linePercent min="0" max="100"/>
<!--opt, percentage of overlay line-->
<itemsStlye opt="horizontal,vertical"/>
<!--opt, overlay style: horizontal, vertical-->
<startPosTop min="0" max="2448"/>
<!--opt, the upper coordinate of starting point-->
<startPosLeft min="0" max="2448"/>
<!--opt, the left coordinate of starting point-->
<charStyle opt="SongTi,WeiTi"/>
<!--opt, font type: standard typeface of Chinese, typeface of Wei-->
<charSize opt="16*16,32*32,48*48,64*64"/>
<!--req, font size: 0-32*32(Chinese)/16*32(English), 1-64*64(Chinese)/32*64(English), 2-48*48 -->
<charInterval min="0" max="16"/>
<!--opt, character spacing-->
<ForeClorRGB>
<enabled>
true</enabled>
<!--opt, whether it supports to adjust RGB value of foreground color, no this node if not support-->
</ForeClorRGB>
<BackClorRGB>
<enabled>
true</enabled>
<!--opt, whether it supports to adjust RGB value of background color, no this node if not support-->
</BackClorRGB>
<ColorSelfAdapt>
<enabled>
true</enabled>
<!--opt, whether the color is adaptive, no this node if not support-->
</ColorSelfAdapt>
</mode2>
</imageOverlayString>
<TPSAlarm>

279
Device Network SDK (ANPR) Developer Guide

<!--req, whether it supports uploading information of traffic counting, no this node if not support-->
<UploadType1>
<enabled>
true</enabled>
<!--req, it supports the uploading mode no.2 (it supports the uploading mode no.2(that is, the type supported
by ITS, COMM_ITS_TRAFFIC_COLLECT of listening mode), no this node if not support-->
</UploadType1>
<UploadType2>
<enabled>
true</enabled>
<!--req, it supports the uploading mode no.2 (that is, the type supported by intelligent traffic camera,
COMM_ITS_TRAFFIC_COLLECT of arming mode,no this node if not support-->
</UploadType2>
</TPSAlarm>
<CameraSetup>
<!--req, it supports camera mounting configuration, no this node if not support-->
<enabled>
true</enabled>
</CameraSetup>
<!--req,park project -->
<LampCtrlInfo>
<lampCtrlMode opt="inlayLamp,externalLamp"/>
<!--req, lamp control mode??1-internal lamp??2-external lamp-->
<ctrlChannelIndex min="" max=""/>
<!--req alternate control channel number-->
<inlayLampCtrlMode>
<!--req internal lamp control mode -->
<lampStateCtrlNum min="" max=""/>
<!--req range of park space supported-->
<parkInlayInfo>
<enable opt="false,true"/>
<!--req,whether enable, true-enable, false-disable-->
<flicker opt="false,true"/>
<!--req,whether flash, true-flash??false- no flash-->
<lampColor opt="close,red,green,yellow,blue,magenta,cyan,white"/>
<!--req 0- none 1-red 2-green 3-yellow 4-blue 5-pink 6-cyan 7-white-->
</parkInlayInfo>
</inlayLampCtrlMode>
<externalLampCtrlMode>
<!--req external lamp control mode -->
<maxParkNum min="" max=""/>
<!--req park space number-->
<parkInfoType opt="normalParkIOstate,normalNoParkIOstate,specialParkIOstate,noSpecialParkIOstate"/>
<parkExternalSubinfo>
<enable opt="false,true"/>
<!--req,whether enable, true-enable??false-disable-->
<flicker opt="false,true"/>
<!--req,whether flash, true-flash??false-no flash-->
<IOstate opt="lowLevel,hightLevel"/>
<!--req,level, 0-low level??1-high level(valid external lamp)-->
</parkExternalSubinfo>
</externalLampCtrlMode>

280
Device Network SDK (ANPR) Developer Guide

</LampCtrlInfo>

<parkSpaceAttributeParam>
<maxParkNum min="" max=""/>
<!--req park number-->
<parkSpaceInfo>
<parkSpaceAttribute opt="normalPack,specialPack"/>
<!-- 0~normal pack 1~special pack-->
</parkSpaceInfo>
</parkSpaceAttributeParam>

<lampExternalCfg>
<enable opt="false,true"/>
<!--req,whethe enable, true-enable??false-disable-->
<lampState>
<flicker opt="false,true"/>
<!--req,whether flash, true-flash??false-no flash-->
<IONo opt="IO1,IO2,IO3"/>
<!--req 1~IO1,2~IO2,4~IO3 -->
</lampState>
</lampExternalCfg>

<compelCaptureCfg>
<parkIndex opt="parkPlace1,parkPlace2,parkPlace3,parkPlace4"/>
<!-- park number from left to right 1,2,3,4-->
</compelCaptureCfg>

<externalControlAlarm>
<lampState>
<flicker opt="false,true"/>
<!--req,whether flash, true-flash??false- no flash-->
<IONo opt="IO1,IO2,IO3"/>
<!--req 1~IO1,2~IO2,4~IO3 -->
</lampState>
<externalBeginTime>true</externalBeginTime>
<!--req whether support external begin time uploading -->
</externalControlAlarm>
<ManualSnap>
<!-- req, 3.7 added-->
<osdEnable>true</osdEnable>
<!-- req, capture OSD supports force closing-->
<laneNo min="1" man="6" />
<!-- req, vehicle lane No.-->
</ManualSnap>
</ITSAbility>
</ITDeviceAbility>

Example
Enter an example to illustrate your reference here (optional).

281
Device Network SDK (ANPR) Developer Guide

B.9 XML_LPListAuditSearchDescription
LPListAuditSearchDescription message in XML format
<LPListAuditSearchDescription version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<searchID><!--req, xs: string, search ID, which is used to check whether the current search requester is the same as
the previous one. If they are the same, the search record will be stored in the device to speed up the next search--></
searchID>
<searchResultPosition><!--req, xs: integer, the end position of search result in result list--></searchResultPosition>
<maxResults><!--req, xs: integer, the maximum number of results obtained by this search. Up to 2000 results can be
obtained by each search--></maxResults>
<type><!--optional, xs:string, license plate type: "blackList" (license plate in blocklist), "whitelist" (license plate in
allowlist), "allVehicleList" (license plate in all lists), "otherVehicleList" (license plate in other lists)--></type>
<LicensePlate><!--optional, xs:string, license plate number, fuzzy search is supported--></LicensePlate>
<cardNo><!--optional, xs:string, card No.--></cardNo>
<cardID><!--optional, xs:sring, card ID (Wiegand protocol), the maximum string size is 9 bytes--></cardID>
</LPListAuditSearchDescription>

B.10 XML_LPListAuditSearchResult
LPListAuditSearchResult message in XML format
<LPListAuditSearchResult version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<searchID><!--req, xs: string--></searchID>
<responseStatus></responseStatus>
<responseStatusStrg></responseStatusStrg>
<numOfMatches><!--req, xs: integer--></numOfMatches>
<totalMatches><!--req, xs: integer--></totalMatches>
<LicensePlateInfoList>
<LicensePlateInfo>
<id><!--req, xs: string --></id>
<LicensePlate><!--opt, xs: string--></LicensePlate>
<type><!--opt, xs: string, "blackList,whitelist,allVehicleList,otherVehicleList"--></type>
<createTime><!--opt, xs: string, time in ISO8601 format--></createTime>
<direction><!--opt, xs: string, "forward,reverse,unknown"--></direction>
<laneNo><!--opt, xs: integer, lane No.--></laneNo>
<plateCategory><!--optional, xs:string, license plate type--></plateCategory>
<country><!--optional, xs:string, country/region--></country>
<area><!--optional, xs:integer, area--></area>
<effectiveTime><!--optional, xs:date, effective date of the blocklist and allowlist--></effectiveTime>
<countryIndex><!--optional, xs:integer, country/region index--></countryIndex>
<cardID><!--optional, xs:string, card ID (Wiegand protocol), the maximum string size is 9 bytes--></cardID>
<effectiveDateTime><!--optional, xs:datetime, effective date and time of the blocklist and allowlist--></
effectiveDateTime>
<effectiveStartDate><!--optional, xs:string, start date of the effective period--></effectiveStartDate>
</LicensePlateInfo>
</LicensePlateInfoList>
</LPListAuditSearchResult>

282
Device Network SDK (ANPR) Developer Guide

B.11 XML_ResponseStatus
XML message about response status
<?xml version="1.0" encoding="utf-8"?>
<ResponseStatus version="2.0" xmlns="http://www.std-cgi.org/ver20/XMLSchema">
<requestURL>
<!--required, read-only, xs:string, request URL-->
</requestURL>
<statusCode>
<!--required, read-only, xs:integer, status code: 0,1-OK, 2-Device Busy, 3-Device Error, 4-Invalid Operation, 5-Invalid
XML Format, 6-Invalid XML Content, 7-Reboot Required, 9-Additional Error-->
</statusCode>
<statusString>
<!--required, read-only, xs:string, status description: OK, Device Busy, Device Error, Invalid Operation, Invalid XML
Format, Invalid XML Content, Reboot, Additional Error-->
</statusString>
<subStatusCode>
<!--required, read-only, xs:string, describe the error reason in detail-->
</subStatusCode>
<MErrCode>
<!--optional, xs:string, error code categorized by functional modules, e.g., 0x12345678-->
</MErrCode>
<MErrDevSelfEx>
<!--optional, xs:string, extension field of MErrCode. It is used to define the custom error code, which is categorized
by functional modules-->
</MErrDevSelfEx>
</ResponseStatus>

B.12 XML_SubscribeEvent
SubscribeEvent message in XML format
<SubscribeEvent version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema" >
<heartbeat>
<!--optional, xs:integer, heartbeat interval, unit: second, the default value is 30s-->
</heartbeat>
<eventMode>
<!--required, xs:string, "all"-upload all alarms/events, "list"-upload specified alarm/event-->
</eventMode>
<EventList>
<Event><!--uploading mode of specified alarm/event, this node exists only when eventMode is "list"-->
<type>
<!--required, xs:string, alarm/event types, which are obtained from the capability, refer to Alarm/Event Types for
Subscription for its values-->
</type>
<minorAlarm>
<!--opt, xs:string, minor alarm type: "0x400,0x401,0x402,0x403", see details in Access Control Event Type. This
node is required when type is "AccessControllerEvent"-->

283
Device Network SDK (ANPR) Developer Guide

</minorAlarm>
<minorException>
<!--opt, xs:string, minor exception type: "0x400,0x401,0x402,0x403", see details in Access Control Event Type.
This node is required when type is "AccessControllerEvent"-->
</minorException>
<minorOperation>
<!--opt, xs:string, minor operation type: "0x400,0x401,0x402,0x403", see details in Access Control Event Type.
This node is required when type is "AccessControllerEvent"-->
</minorOperation>
<minorEvent>
<!--opt, xs:string, minor event type: "0x01,0x02,0x03,0x04", see details in Access Control Event Type. This node is
required when type is "AccessControllerEvent"-->
</minorEvent>
<pictureURLType>
<!--opt, xs:string, alarm picture format: "binary"-binary, "localURL"-device local URL, "cloudStorageURL"-cloud
storage URL-->
</pictureURLType>
</Event>
</EventList>
<channels>
<!--optional, xs:string, event linked channel information, and multiple channels can be linked, each channel is
separated by comma, e.g., "1,2,3,4…"-->
</channels>
<channels>
<!--optional, xs:string, specify channels (each channel is separated by comma, e.g., "1,2,3,4…") to be armed, this
node does not exist if you want to arm all channels, and if this node exists, the sub node <channels> in the node
<Event> is invalid-->
</channels>
<identityKey max="64"/>
<!--opt, xs: string, interaction command of subscription, supports subscribing comparison results of face picture
library (importing with this command), the maximum length is 64-->
</SubscribeEvent>

B.13 XML_TrafficChannelCap
Traffic channel capability message in XML format
<TrafficChannelCap version="1.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<deviceTypeSupport>
<!--optional, xs: integer, device type: 0-video monitoring, 1-loop detection, 2-video analysis, 3-reserved, 4-video
analysis (event + traffic enforcement + traffic data collection), 5-video analysis + capture (event + traffic enforcement +
traffic data collection), 6-video structurization, 7-speed dome for dynamic tracking and capture, 8-speed dome for non-
dynamic tracking and capture-->
</deviceTypeSupport>
<isPTZSupport><!--optional, xs:boolean, whether it supports configuring PTZ type, PTZ address, PTZ control speed,
and zooming speed--><isPTZSupport>
<isEvidenceGettingSupport>
<!--optional, xs: boolean, whether it supports violation enforcement, setting scenes, and scene auto-switch-->
</isEvidenceGettingSupport>
<isBasicSupport>

284
Device Network SDK (ANPR) Developer Guide

<!--optional, xs: boolean, whether it supports setting basic parameters-->


</isBasicSupport>
<isImageMergeSupport>
<!--optional, xs: boolean, whether it supports picture overlay-->
</isImageMergeSupport>
<isOverlapSupport>
<!--optional, xs: boolean, whether it supports text overlay-->
</isOverlapSupport>
<isEdfAlgSupport>
<!--optional, xs: boolean, whether it supports setting analysis parameters-->
</isEdfAlgSupport>
<isAutoTraceSupport>
<!--required, xs: boolean, whether it supports auto-tracking-->
</isAutoTraceSupport>
<isEdfManualItsCapSupport>
<!--optional, xs: boolean, whether it supports setting manual enforcement parameters-->
</isEdfManualItsCapSupport>
<isViolationTypeStdSupport>
<!--optional, xs: boolean, whether it supports violation code-->
</isViolationTypeStdSupport>
<isEDFRemoteHostSupport>
<!--optional, xs: boolean, whether it supports remote host-->
</isEDFRemoteHostSupport>
<isANRSupport>
<!--optional, xs: boolean, whether it supports ANR-->
</isANRSupport>
<isvoiceTriggerSupport>
<!--optional, xs: boolean, whether it supports audible linkage-->
</isvoiceTriggerSupport>
<uploadDataTypesSupport>
<!--optional, xs: string, uploaded data types:
"illegalParking,wrongDirection,crossLane,congestion,parkingEvidence,crossLaneEvidence,wrongDirectionEvidence,lane
Change,turnRound,laneChangeEvidence,turnRoundEvidence,vehicleexist,vehicleexistEvidence,edfManualEvidence,obj
ectDroppedDown,smoke"-->
</uploadDataTypesSupport>
<aidTypeSupport>
<!--optional, xs:string, traffic incident types:
"illegalParking,wrongDirection,crossLane,laneChange,turnRound,congestion,vehicleexist,pedestrian,objectDroppedDo
wn,smoke,edfManual,trafficAccident,construction,roadBlock,abandonedObject,fogDetection"-->
</aidTypeSupport>
<isIntellMonitorSupport>
<!--optional, xs: boolean, whether it supports smart monitoring-->
</isIntellMonitorSupport>
<isVCRSupport>
<!--optional, xs: boolean, whether it supports vehicle statistics-->
</isVCRSupport>
<isEdfManualTrackSupport>
<!--optional, xs: boolean, whether it support manual tracking and enforcement-->
</isEdfManualTrackSupport>
<videoEvidenceTypeSupport
opt="illegalParking,wrongDirection,crossLane,laneChange,turnRound,vehicleexist,edfManualEvidence">
<!--optional, xs: string, uploaded video evidence types-->

285
Device Network SDK (ANPR) Developer Guide

</videoEvidenceTypeSupport>
<isRecordParamSupport>
<!--optional, xs: boolean, whether it supports setting recording parameters-->
</isRecordParamSupport>
<AIDEventSupport opt="abandonedObject, pedestrian, congestion, roadBlock, construction, trafficAccident,
fogDetection, wrongDirection, illegalParking, SSharpDriving, lowSpeed, dragRacing">
<!--optional, xs: string, supported traffic incident type: "abandonedObject"-objects dropped down, "pedestrian"-
pedestrian, "congestion"-congestion, "roadBlock"-roadblock, "construction"-construction, "trafficAccident"-traffic
accident, "fogDetection"-fog, "wrongDirection"-wrong-way driving, "illegalParking"-illegal parking, "SSharpDriving"-
slalom driving, "lowSpeed"-driving in low speed, "dragRacing"-street racing-->
</AIDEventSupport>
<TFSEventSupport opt="illegalParking, wrongDirection, crossLane, laneChange, vehicleExist, turnRound,
parallelParking, notKeepDistance, notSlowZebraCrossing, overtakeRightSide, lowSpeed, dragRacing,
changeLaneContinuously, SSharpDriving, largeVehicleOccupyLine, jamCrossLine">
<!--optional, xs: string, supported enforcement event type: "illegalParking"-illegal parking, "wrongDirection"-wrong-
way driving, "crossLane"-driving on the lane line, "laneChange"-illegal lane change, "vehicleExist"-motor vehicle on
non-motor vehicle lane, "turnRound"-illegal U-turn, "parallelParking"-parallel parking, "notKeepDistance"-not keeping
vehicle distance, "notSlowZebraCrossing"-not slowing down at zebra corssing, "overtakeRightSide"-overtaking on the
right, "lowSpeed"-driving in low speed, "dragRacing"-street racing, "changeLaneContinuously"-continuous lane
change, "SSharpDriving"-slalom driving, "largeVehicleOccupyLine"-lane occupation by large-sized vehicle,
"jamCrossLine"-queue jumping-->
</TFSEventSupport>
<isVehicleStatisticsSupport>
<!--optional, xs: boolean, whether it supports setting parameters for traffic data collection-->
</isVehicleStatisticsSupport>
<isLaneRuleSupport>
<!--optional, xs: boolean, whether it supports setting lane rules-->
</isLaneRuleSupport>
<isSupportPlateListEvidence>
<!--optional, xs: boolean, whether it supports setting parameters for blocklist and allowlist ANPR enforcement-->
</isSupportPlateListEvidence>
<isSupportMixedTargetDetection>
<!--optional, xs: boolean, whether it supports multi-target-type detection-->
</isSupportMixedTargetDetection>
<isSupportVideoOverlays>
<!--optional, xs: boolean, whether it supports overlaying information on video-->
</isSupportVideoOverlays>
<isSupportAddrInfo>
<!--optional, xs:boolean, whether it supports overlaying address information-->
</isSupportAddrInfo>
<VehiclePositionControl><!--optional, whether it supports vehicle direction control-->
<license min="0" max="16"><!--required, xs:string, license plate number--></license>
<intervalTime min="0" max="65535" def="1"><!--required, xs:integer, upload interval, unit: s, by default it is 1--></
intervalTime>
</VehiclePositionControl>
<isSupportLicensePlateExposure><!--optional, xs:boolean, whether it supports license plate exposure, return "true" if
it supports, and this node will not be returned if the device does not supports this function--></
isSupportLicensePlateExposure>
<isSupportFiltration><!--optional, xs:boolean, whether it supports filtering duplicated license plate, return "true" if it
supports, and this node will not be returned if the device does not support the function--></isSupportFiltration>
</TrafficChannelCap>

286
Device Network SDK (ANPR) Developer Guide

Example
TrafficChannelCap Message Example
<TrafficChannelCap version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<isEvidenceGettingSupport>false</isEvidenceGettingSupport>
<isBasicSupport>true</isBasicSupport>
<isImageMergeSupport>true</isImageMergeSupport>
<isOverlapSupport>true</isOverlapSupport>
<isEdfAlgSupport>true</isEdfAlgSupport>
<isEdfManualItsCapSupport>false</isEdfManualItsCapSupport>
<isEDFRemoteHostSupport>true</isEDFRemoteHostSupport>
<isANRSupport>true</isANRSupport>
<isvoiceTriggerSupport>false</isvoiceTriggerSupport>
<uploadDataTypesSupport></uploadDataTypesSupport>

<aidTypeSupport>wrongDirection,turnRound,vehicleexist,congestion,crossLane,laneChange,pedestrian,roadBlock,aba
ndonedObject,construction,trafficAccident,fogDetection</aidTypeSupport>
<isIntellMonitorSupport>false</isIntellMonitorSupport>
<isVCRSupport>false</isVCRSupport>
<isEdfManualTrackSupport>false</isEdfManualTrackSupport>
<videoEvidenceTypeSupport></videoEvidenceTypeSupport>
<TFSEventSupport>wrongDirection,turnRound,vehicleexist,crossLane,laneChange</TFSEventSupport>
<AIDEventSupport>congestion,pedestrian,roadBlock,abandonedObject,construction,trafficAccident,fogDetection</
AIDEventSupport>
<isVehicleStatisticsSupport>true</isVehicleStatisticsSupport>
<isLaneRuleSupport>true</isLaneRuleSupport>
<isSupportPlateListEvidence>true</isSupportPlateListEvidence>
</TrafficChannelCap>

287
Device Network SDK (ANPR) Developer Guide

Appendix C. Appendixes

C.1 Device Network SDK Errors


The errors that may occur during the device network SDK integration are listed here for reference.
You can search for the error descriptions according to the error codes or names returned by a
specific API (NET_DVR_GetLastError or NET_DVR_GetErrorMsg).

General Errors

Error Name Error Code Error Description


NET_DVR_NOERROR 0 No error.
NET_DVR_PASSWORD_ERROR 1 Incorrect user name or password.
NET_DVR_NOENOUGHPRI 2 No permission.
NET_DVR_NOINIT 3 Uninitialized.
NET_DVR_CHANNEL_ERROR 4 Incorrect channel No.
NET_DVR_OVER_MAXLINK 5 No more device can be connected.
NET_DVR_VERSIONNOMATCH 6 Version mismatches.
NET_DVR_NETWORK_FAIL_CONNECT 7 Connecting to device failed. The
device is offline or network
connection timed out.
NET_DVR_NETWORK_SEND_ERROR 8 Sending data to device failed.
NET_DVR_NETWORK_RECV_ERROR 9 Receiving data from device failed.
NET_DVR_NETWORK_RECV_TIMEOUT 10 Receiving data from device timed out.
NET_DVR_NETWORK_ERRORDATA 11 The data sent to the device is illegal,
or the data received from the device
error. E.g. The input data is not
supported by the device for remote
configuration.
NET_DVR_ORDER_ERROR 12 API calling order error.
NET_DVR_OPERNOPERMIT 13 No permission for this operation.
NET_DVR_COMMANDTIMEOUT 14 Executing device command timed out.
NET_DVR_ERRORSERIALPORT 15 Incorrect serial port No. The specified
serial port does not exist.

288
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERRORALARMPORT 16 Alarm port No. error. The alarm input
or output port of the specified device
does not exist.
NET_DVR_PARAMETER_ERROR 17 Incorrect parameter. The input or
output parameters of the SDK API is
empty, or the parameter value or
format is invalid.
NET_DVR_CHAN_EXCEPTION 18 Device channel is in exception status.
NET_DVR_NODISK 19 No HDD in the device.
NET_DVR_ERRORDISKNUM 20 Incorrect HDD No.
NET_DVR_DISK_FULL 21 HDD full.
NET_DVR_DISK_ERROR 22 HDD error.
NET_DVR_NOSUPPORT 23 Device does not support this function.
NET_DVR_BUSY 24 Device is busy.
NET_DVR_MODIFY_FAIL 25 Failed to edit device parameters.
NET_DVR_PASSWORD_FORMAT_ 26 Invalid password format.
ERROR
NET_DVR_DISK_FORMATING 27 HDD is formatting. Failed to startup.
NET_DVR_DVRNORESOURCE 28 Insufficient device resources.
NET_DVR_DVROPRATEFAILED 29 Device operation failed.
NET_DVR_OPENHOSTSOUND_FAIL 30 Failed to collect local audio data or
open audio output during two-way
audio and broadcast.
NET_DVR_DVRVOICEOPENED 31 Two-way audio channel is occupied.
NET_DVR_TIMEINPUTERROR 32 Incorrect time input.
NET_DVR_NOSPECFILE 33 No video file for playback.
NET_DVR_CREATEFILE_ERROR 34 Failed to create a file during local
recording, saving picture, getting
configuration file or downloading
video file remotely.
NET_DVR_FILEOPENFAIL 35 Failed to open a file. The file does not
exist or directory error.

289
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_OPERNOTFINISH 36 Operation conflicted.
NET_DVR_GETPLAYTIMEFAIL 37 Failed to get the current played time.
NET_DVR_PLAYFAIL 38 Failed to play.
NET_DVR_FILEFORMAT_ERROR 39 Invalid file format.
NET_DVR_DIR_ERROR 40 File directory error.
NET_DVR_ALLOC_RESOURCE_ERROR 41 Allocating resources failed.
NET_DVR_AUDIO_MODE_ERROR 42 Invalid sound card mode error. The
opened sound play mode and
configured mode mismatched.
NET_DVR_NOENOUGH_BUF 43 Insufficient buffer for receiving data
or saving picture.
NET_DVR_CREATESOCKET_ERROR 44 Failed to create SOCKET.
NET_DVR_SETSOCKET_ERROR 45 Failed to set SOCKET.
NET_DVR_MAX_NUM 46 No more registrations and live views
can be connected.
NET_DVR_USERNOTEXIST 47 The user doest not exist. The user ID
is logged out or unavailable.
NET_DVR_WRITEFLASHERROR 48 Writing FLASH error during device
upgrade.
NET_DVR_UPGRADEFAIL 49 Failed to upgrade device. Network
problem or language mismatches.
NET_DVR_CARDHAVEINIT 50 The decoding card is already
initialized.
NET_DVR_PLAYERFAILED 51 Failed to call the function of player
SDK.
NET_DVR_MAX_USERNUM 52 No more users can log in to.
NET_DVR_GETLOCALIPANDMACFAIL 53 Failed to get the IP address or physical
address of local PC.
NET_DVR_NOENCODEING 54 The decoding function of this channel
is not enabled.
NET_DVR_IPMISMATCH 55 IP address mismatches.

290
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_MACMISMATCH 56 MAC address mismatches.
NET_DVR_UPGRADELANGMISMATCH 57 The language of upgrade file
mismatches.
NET_DVR_MAX_PLAYERPORT 58 No more channels can be started to
play.
NET_DVR_NOSPACEBACKUP 59 Insufficient space to back up file.
NET_DVR_NODEVICEBACKUP 60 No backup device found.
NET_DVR_PICTURE_BITS_ERROR 61 Picture pixel bit mismatches. Only 24
bits are allowed.
NET_DVR_PICTURE_DIMENSION_ 62 Too large picture. The height*width
ERROR should be less than 128x256.
NET_DVR_PICTURE_SIZ_ERROR 63 Too large picture. The picture size
should be smaller than 100K.
NET_DVR_LOADPLAYERSDKFAILED 64 Failed to load the player(PlayCtrl.dll,
SuperRender.dll, AudioRender.dll) to
the current directory.
NET_DVR_LOADPLAYERSDKPROC_ 65 Failed to find the function in player
ERROR SDK.
NET_DVR_LOADDSSDKFAILED 66 Failed to load the DS SDK to the
current directory.
NET_DVR_LOADDSSDKPROC_ERROR 67 Failed to find the function in the DS
SDK.
NET_DVR_DSSDK_ERROR 68 Failed to call the API in the hardware
decoding library.
NET_DVR_VOICEMONOPOLIZE 69 The sound card is exclusive.
NET_DVR_JOINMULTICASTFAILED 70 Failed to join to multicast group.
NET_DVR_CREATEDIR_ERROR 71 Failed to create log file directory.
NET_DVR_BINDSOCKET_ERROR 72 Failed to bind socket.
NET_DVR_SOCKETCLOSE_ERROR 73 Socket disconnected. Network
disconnected or the destination is
unreachable.

291
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_USERID_ISUSING 74 Operation is executing. Failed to log
out.
NET_DVR_SOCKETLISTEN_ERROR 75 Failed to listen.
NET_DVR_PROGRAM_EXCEPTION 76 Program exception.
NET_DVR_WRITEFILE_FAILED 77 Failed to write file during local
recording, downloading file remotely
or saving picture.
NET_DVR_FORMAT_READONLY 78 The HDD is read-only. Formatting is
forbidden.
NET_DVR_WITHSAMEUSERNAME 79 The user name already exists.
NET_DVR_DEVICETYPE_ERROR 80 Device model mismatches when
importing parameters.
NET_DVR_LANGUAGE_ERROR 81 Language mismatches when
importing parameters.
NET_DVR_PARAVERSION_ERROR 82 Software version mismatches when
importing parameters.
NET_DVR_IPCHAN_NOTALIVE 83 The external IP channel is offline live
view.
NET_DVR_RTSP_SDK_ERROR 84 Failed to load StreamTransClient.dll.
NET_DVR_CONVERT_SDK_ERROR 85 Failed to load SystemTransform.dll.
NET_DVR_IPC_COUNT_OVERFLOW 86 No more IP channels can access to.
NET_DVR_MAX_ADD_NUM 87 No more video tags can be added.
NET_DVR_PARAMMODE_ERROR 88 Invalid parameter mode of image
enhancement.
NET_DVR_CODESPITTER_OFFLINE 89 Code distributer is offline.
NET_DVR_BACKUP_COPYING 90 Device is backing up.
NET_DVR_CHAN_NOTSUPPORT 91 This operation is not supported by the
channel.
NET_DVR_CALLINEINVALID 92 The height line is too concentrated, or
the length line is not inclined enough.

292
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_CALCANCELCONFLICT 93 Cancel calibration conflict, if the rule
and global actual size filter are
configured.
NET_DVR_CALPOINTOUTRANGE 94 The calibration point is out of
limitation.
NET_DVR_FILTERRECTINVALID 95 The size filter does not meet the
requirement.
NET_DVR_DDNS_DEVOFFLINE 96 Device has not registered to DDNS.
NET_DVR_DDNS_INTER_ERROR 97 DDNS internal error.
NET_DVR_FUNCTION_NOT_ 98 This function is not supported by this
SUPPORT_OS Operating system.
NET_DVR_DEC_CHAN_REBIND 99 Decoding channel binding display
output is limited.
NET_DVR_INTERCOM_SDK_ERROR 100 Failed to load the two-way audio SDK
of the current directory.
NET_DVR_NO_CURRENT_UPDATEFILE 101 No correct upgrade packet.
NET_DVR_USER_NOT_SUCC_LOGIN 102 Login failed.
NET_DVR_USE_LOG_SWITCH_FILE 103 The log switch file is under using.
NET_DVR_POOL_PORT_EXHAUST 104 No port can be bound in the port
pool.
NET_DVR_PACKET_TYPE_NOT_ 105 Incorrect stream packaging format.
SUPPORT
NET_DVR_IPPARA_IPID_ERROR 106 Incorrect IPID for IP access
configuration.
NET_DVR_LOAD_HCPREVIEW_SDK_ 107 Failed to load the live view
ERROR component.
NET_DVR_LOAD_HCVOICETALK_SDK_ 108 Failed to load the audio component.
ERROR
NET_DVR_LOAD_HCALARM_SDK_ 109 Failed to load the alarm component.
ERROR
NET_DVR_LOAD_HCPLAYBACK_SDK_ 110 Failed to load the playback
ERROR component.

293
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_LOAD_HCDISPLAY_SDK_ 111 Failed to load the display component.
ERROR
NET_DVR_LOAD_HCINDUSTRY_SDK_ 112 Failed to load application component.
ERROR
NET_DVR_LOAD_ 113 Failed to load the general
HCGENERALCFGMGR_SDK_ERROR configuration management
component.
NET_DVR_CORE_VER_MISMATCH 121 Component version and core version
mismatched when loading the
component singly.
NET_DVR_CORE_VER_MISMATCH_ 122 Live view component version and core
HCPREVIEW version mismatched.
NET_DVR_CORE_VER_MISMATCH_ 123 Audio component version and the
HCVOICETALK core version mismatched.
NET_DVR_CORE_VER_MISMATCH_ 124 Alarm component version and the
HCALARM core version mismatched.
NET_DVR_CORE_VER_MISMATCH_ 125 Playback component version and the
HCPLAYBACK core version mismatched.
NET_DVR_CORE_VER_MISMATCH_ 126 Display component version and the
HCDISPLAY core version mismatched.
NET_DVR_CORE_VER_MISMATCH_ 127 Application component version and
HCINDUSTRY the core version mismatched.
NET_DVR_CORE_VER_MISMATCH_ 128 General configuration management
HCGENERALCFGMGR component version and the core
version mismatched.
NET_DVR_COM_VER_MISMATCH_ 136 Live view component version and SDK
HCPREVIEW version mismatched.
NET_DVR_COM_VER_MISMATCH_ 137 Audio component version and SDK
HCVOICETALKy version mismatched.
NET_DVR_COM_VER_MISMATCH_ 138 Alarm component version and SDK
HCALARM version mismatched.
NET_DVR_COM_VER_MISMATCH_ 139 Playback component version and SDK
HCPLAYBACK version mismatched.

294
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_COM_VER_MISMATCH_ 140 Display component version and SDK
HCDISPLAY version mismatched.
NET_DVR_COM_VER_MISMATCH_ 141 Application component version and
HCINDUSTRY SDK version mismatched.
NET_DVR_COM_VER_MISMATCH_ 142 General configuration management
HCGENERALCFGMGR component version and SDK version
mismatched.
NET_DVR_ALIAS_DUPLICATE 150 Duplicated alias(for HiDDNS
configuration).
NET_DVR_USERNAME_NOT_EXIST 152 User name does not exist (error code
of network camera and network
speed dome with version from 5.1.7
to 5.3.1).
NET_ERR_USERNAME_LOCKED 153 The user name is locked.
NET_DVR_INVALID_USERID 154 Invalid user ID.
NET_DVR_LOW_LOGIN_VERSION 155 The version is too low.
NET_DVR_LOAD_LIBEAY32_DLL_ 156 Failed to load libeay32.dl.l
ERROR
NET_DVR_LOAD_SSLEAY32_DLL_ 157 Failed to load ssleay32.dll.
ERROR
NET_ERR_LOAD_LIBICONV 158 Failed to load libiconv.dll.
NET_ERR_SSL_CONNECT_FAILED 159 Connecting to SSL failed.
NET_DVR_TEST_SERVER_FAIL_ 165 Failed to connect to test server.
CONNECT
NET_DVR_NAS_SERVER_INVALID_DIR 166 Failed to load NAS server to the
directory, Invalid directory, or
incorrect user name and password.
NET_DVR_NAS_SERVER_ 167 Failed to load NAS server th the
NOENOUGH_PRI directory. No permission.
NET_DVR_EMAIL_SERVER_NOT_ 168 The server uses domain name
CONFIG_DNS without configuring DNS, the domain
name may be invalid.

295
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_EMAIL_SERVER_NOT_ 169 No gateway configured. Sending email
CONFIG_GATEWAY may be failed.
NET_DVR_TEST_SERVER_PASSWORD_ 170 Incorrect user name or password of
ERROR test server.
NET_DVR_EMAIL_SERVER_CONNECT_ 171 Interaction exception between device
EXCEPTION_WITH_SMTP and SMTP server.
NET_DVR_FTP_SERVER_FAIL_ 172 FTP server creating directory failed.
CREATE_DIR
NET_DVR_FTP_SERVER_NO_WRITE_ 173 FTP server has no wirting permission.
PIR
NET_DVR_IP_CONFLICT 174 IP conflicted.
NET_DVR_INSUFFICIENT_ 175 Storage pool space is full.
STORAGEPOOL_SPACE
NET_DVR_STORAGEPOOL_INVALID 176 Invalid cloud storage pool. No storage
pool configured or incorrect storage
pool ID.
NET_DVR_EFFECTIVENESS_REBOOT 177 Restart to take effect.
NET_ERR_ANR_ARMING_EXIST 178 The ANR arming connection already
exists( the error will be returned
when arming with ANR function if the
private SDK protocol arming
connection is established).
NET_ERR_UPLOADLINK_EXIST 179 The ANR uploading connection
already exists( the error will be
returned when EHome protocol and
private SDK protocol do not support
ANR at the same time).
NET_ERR_INCORRECT_FILE_FORMAT 180 The imported file format is incorrect.
NET_ERR_INCORRECT_FILE_CONTENT 181 The imported file content is incorrect.
NET_ERR_MAX_HRUDP_LINK 182 No more HRUDP can be connected to
device.
NET_ERR_MAX_PORT_MULTIPLEX 183 Maximum number of multiplexed
ports reaches.
NET_ERR_CREATE_PORT_MULTIPLEX 184 Creating port multiplier failed.

296
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_NONBLOCKING_CAPTURE_ 185 Non-blocking picture capture is not
NOTSUPPORT supported.
NET_SDK_ERR_FUNCTION_INVALID 186 Invalid function. The asynchronous
mode is enabled.
NET_SDK_ERR_MAX_PORT_ 187 Maximum number of multiplex ports
MULTIPLEX reached.
NET_DVR_INVALID_LINK 188 Link has not been created or the link
is invalid.
NET_DVR_NAME_NOT_ONLY 200 This name already exists.
NET_DVR_OVER_MAX_ARRAY 201 The number of RAID reaches the
upper-limit.
NET_DVR_OVER_MAX_VD 202 The number of virtual disk reaches
the upper-limit.
NET_DVR_VD_SLOT_EXCEED 203 The virtual disk slots are full.
NET_DVR_PD_STATUS_INVALID 204 The physical disk for rebuilding RAID
is error.
NET_DVR_PD_BE_DEDICATE_SPARE 205 The physical disk for rebuilding RAID
is specified as hot spare.
NET_DVR_PD_NOT_FREE 206 The physical disk for rebuilding RAID
is busy.
NET_DVR_CANNOT_MIG2NEWMODE 207 Failed to migrate the current RAID
type to the new type.
NET_DVR_MIG_PAUSE 208 Migration is paused.
NET_DVR_MIG_ABOUTED 209 Migration is cancelled.
NET_DVR_EXIST_VD 210 Failed to delete RAID. Virtual disk
exists in the RAID.
NET_DVR_TARGET_IN_LD_ 211 Target physical disk is a part of the
FUNCTIONAL virtual disk and it is working normally.
NET_DVR_HD_IS_ASSIGNED_ 212 The specified physical disk is allocated
ALREADY as virtual disk.
NET_DVR_INVALID_HD_COUNT 213 The number of physical disks and
specified RAID level mismatched.

297
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_LD_IS_FUNCTIONAL 214 The RAID is normal. Failed to rebuild.
NET_DVR_BGA_RUNNING 215 Background task is executing.
NET_DVR_LD_NO_ATAPI 216 Failed to create virtual disk by ATAPI
disk.
NET_DVR_MIGRATION_NOT_NEED 217 There is no need to migrate the RAID.
NET_DVR_HD_TYPE_MISMATCH 218 The physical disk type is not allowed.
NET_DVR_NO_LD_IN_DG 219 No virtual disk. Operation failed.
NET_DVR_NO_ROOM_FOR_SPARE 220 Insufficient disk space. Failed to
allocate the disk as hot spare.
NET_DVR_SPARE_IS_IN_MULTI_DG 221 The disk is already allocated as the
hot spare of one RAID.
NET_DVR_DG_HAS_MISSING_PD 222 No disk in the RAID.
NET_DVR_NAME_EMPTY 223 The name is empty.
NET_DVR_INPUT_PARAM 224 Incorrect input parameters.
NET_DVR_PD_NOT_AVAILABLE 225 The physical disk is not available.
NET_DVR_ARRAY_NOT_AVAILABLE 226 The RAID is not available.
NET_DVR_PD_COUNT 227 Incorrect number of physical disks.
NET_DVR_VD_SMALL 228 Insufficient virtual disk space.
NET_DVR_NO_EXIST 229 Not exist.
NET_DVR_NOT_SUPPORT 230 This operation is not supported.
NET_DVR_NOT_FUNCTIONAL 231 The RAID status is exception.
NET_DVR_DEV_NODE_NOT_FOUND 232 The device node of virtual disk does
not exist.
NET_DVR_SLOT_EXCEED 233 No more slots are allowed.
NET_DVR_NO_VD_IN_ARRAY 234 No virtual disk exists in the RAID.
NET_DVR_VD_SLOT_INVALID 235 Invalid virtual disk slot.
NET_DVR_PD_NO_ENOUGH_SPACE 236 Insufficient physical disk space.
NET_DVR_ARRAY_NONFUNCTION 237 Only the RAID in normal status
supports to be migrated.

298
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_ARRAY_NO_ENOUGH_ 238 Insufficient RAID space.
SPACE
NET_DVR_STOPPING_SCANNING_ 239 Pulling disk out safely or rescanning.
ARRAY
NET_DVR_NOT_SUPPORT_16T 240 Creating RAID with size larger than
16T is not supported.
NET_DVR_ERROR_DEVICE_NOT_ 250 The device is not activated (login
ACTIVATED failed.)
NET_DVR_ERROR_RISK_PASSWORD 251 Risky password.
NET_DVR_ERROR_DEVICE_HAS_ 252 The device is already activated.
ACTIVATED
NET_DVR_ID_ERROR 300 The configured ID is invalid.
NET_DVR_POLYGON_ERROR 301 Invalid polygon shape.
NET_DVR_RULE_PARAM_ERROR 302 Invalid rule parameters.
NET_DVR_RULE_CFG_CONFLICT 303 Configured information conflicted.
NET_DVR_CALIBRATE_NOT_READY 304 No calibration information.
NET_DVR_CAMERA_DATA_ERROR 305 Invalid camera parameters.
NET_DVR_CALIBRATE_DATA_UNFIT 306 Invalid inclination angle for
calibration.
NET_DVR_CALIBRATE_DATA_ 307 Calibration error.
CONFILICT
NET_DVR_CALIBRATE_CALC_FAIL 308 Failed to calculate calibration
parameter values of camera.
NET_DVR_CALIBRATE_LINE_OUT_ 309 The inputted calibration line exceeds
RECT the external sample rectangle.
NET_DVR_ENTER_RULE_NOT_READY 310 No region entrance is configured.
NET_DVR_AID_RULE_NO_INCLUDE_ 311 No lane configured in the traffic event
LANE rull(especially for traffic jam or driving
against the traffic).
NET_DVR_LANE_NOT_READY 312 Lane not configured.
NET_DVR_RULE_INCLUDE_TWO_WAY 313 Two different directions are contained
in event rule.

299
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_LANE_TPS_RULE_CONFLICT 314 Lane and data rule conflicted.
NET_DVR_NOT_SUPPORT_EVENT_ 315 This event type is not supported.
TYPE
NET_DVR_LANE_NO_WAY 316 The lane has no direction.
NET_DVR_SIZE_FILTER_ERROR 317 Invalid size of filter frame.
NET_DVR_LIB_FFL_NO_FACE 318 No face picture exists in the image
inputted when positioning feature
point.
NET_DVR_LIB_FFL_IMG_TOO_SMALL 319 The inputted image is too small when
positioning feature point.
NET_DVR_LIB_FD_IMG_NO_FACE 320 No face picture exists in the image
inputted when detecting single face
picture.
NET_DVR_LIB_FACE_TOO_SMALL 321 Face picture is too small when
building model.
NET_DVR_LIB_FACE_QUALITY_TOO_ 322 The face picture quality is too poor
BAD when building model.
NET_DVR_KEY_PARAM_ERR 323 The configured advanced parameter
is incorrect.
NET_DVR_CALIBRATE_DATA_ERR 324 Calibration sample number error, or
data value error, or the sample points
are beyond the horizontal line.
NET_DVR_CALIBRATE_DISABLE_FAIL 325 Canceling calibration is not allowed
for configured rules.
NET_DVR_VCA_LIB_FD_SCALE_ 326 The minimum width and height of
OUTRANGE maximum filter frame are twice or
more larger than the maximum width
and height of minimum filter frame.
NET_DVR_LIB_FD_REGION_TOO_ 327 Too large detection region. The
LARGE maximum region should be 2/3 of the
image.
NET_DVR_TRIAL_OVERDUE 328 Trial period is ended.
NET_DVR_CONFIG_FILE_CONFLICT 329 Device type and configuration file
conflicted.

300
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_FR_FPL_FAIL 330 Failed to positioning face feature
points.
NET_DVR_FR_IQA_FAIL 331 Failed to test face picture quality.
NET_DVR_FR_FEM_FAIL 332 Failed to extract the face feature
points.
NET_DVR_FPL_DT_CONF_TOO_LOW 333 The face detection validity is too low
when positioning face feature points.
NET_DVR_FPL_CONF_TOO_LOW 334 The validity of feature points
positionong is too low.
NET_DVR_E_DATA_SIZE 335 Data size mismatches.
NET_DVR_FR_MODEL_VERSION_ERR 336 Incorrect model version in face model
library.
NET_DVR_FR_FD_FAIL 337 Failed to detect face in the face
recognition library.
NET_DVR_FA_NORMALIZE_ERR 338 Failed to normalize face attribute.
NET_DVR_DOG_PUSTREAM_NOT_ 339 Dongle type and camera type
MATCH mismatched.
NET_DVR_DEV_PUSTREAM_NOT_ 340 Camera version mismatches.
MATCH
NET_DVR_PUSTREAM_ALREADY_ 341 This camera is already added to other
EXISTS channels of devices.
NET_DVR_SEARCH_CONNECT_FAILED 342 Failed to connect to face retrieval
server.
NET_DVR_INSUFFICIENT_DISK_SPACE 343 Insufficient storage space.
NET_DVR_DATABASE_CONNECTION_ 344 Failed to connect to database.
FAILED
NET_DVR_DATABASE_ADM_PW_ 345 Incorrect database user name and
ERROR password.
NET_DVR_DECODE_YUV 346 Decoding failed.
NET_DVR_IMAGE_RESOLUTION_ 347 Invalid picture resolution
ERROR

301
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_CHAN_WORKMODE_ 348 Invalid channel working mode.
ERROR
NET_ERROR_TRUNK_LINE 711 Sub system is configured as the trunk
line.
NET_ERROR_MIXED_JOINT 712 Mixed joint is not supported.
NET_ERROR_DISPLAY_SWITCH 713 Switch of display channel is not
supported.
NET_ERROR_USED_BY_BIG_SCREEN 714 Decoded resource is occupied by the
big screen.
NET_ERROR_USE_OTHER_DEC_ 715 Using resources of other sub system is
RESOURCE not allowed.
NET_ERROR_SCENE_USING 717 The scene is being used.
NET_ERR_NO_ENOUGH_DEC_ 718 Insufficient resources for decoding.
RESOURCE
NET_ERR_NO_ENOUGH_FREE_ 719 Insufficient resources for display.
SHOW_RESOURCE
NET_ERR_NO_ENOUGH_VIDEO_ 720 Insufficient video storage resources.
MEMORY
NET_ERR_MAX _VIDEO_NUM 721 Insufficient resources for multiple
channels.
NET_ERR_WINDOW_COVER_FREE_ 722 Windows cover free display output
SHOW_AND_NORMAL channel and normal output channel.
NET_ERR_FREE_SHOW_WINDOW_ 723 Window division is not supported for
SPLIT free display windows.
NET_ERR_INAPPROPRIATE_ 724 For the windows whose number is not
WINDOW_FREE_SHOW integral multiple of the number of
output channels, free display is not
supported.
NET_DVR_TRANSPARENT_WINDOW_ 725 For windows whose transparency
NOT_SUPPORT_SPLIT configuration is enabled, window
division is not supported.
NET_DVR_SPLIT_WINDOW_NOT_ 726 For windows whose window division
SUPPORT_TRANSPARENT is enabled, transparency configuration
is not supported.

302
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_ERR_TERMINAL_BUSY 780 The terminal busy.
NET_DVR_FUNCTION_RESOURCE_ 791 Failed to enable this function. The
USAGE_ERROR resources is occupied by other
functions.
NET_DVR_DEV_NET_OVERFLOW 800 Network traffic is out of the
limitation.
NET_DVR_STATUS_RECORDFILE_ 801 Failed to lock. The video file is
WRITING_NOT_LOCK recording.
NET_DVR_STATUS_CANT_FORMAT_ 802 Failed to format HDD. The HDD space
LITTLE_DISK is too small.
NET_SDK_ERR_REMOTE_DISCONNEC 803 Failed to connect to the remote
terminal.
NET_SDK_ERR_RD_ADD_RD 804 Spare server cannot be added to
spare server.
NET_SDK_ERR_BACKUP_DISK_EXCEPT 805 Backup disk exception.
NET_SDK_ERR_RD_LIMIT 806 No more spare server can be added.
NET_SDK_ERR_ADDED_RD_IS_WD 807 The added spare server is a working
server.
NET_SDK_ERR_ADD_ORDER_WRONG 808 Adding flow error.
NET_SDK_ERR_WD_ADD_WD 809 Working server cannot be added to
working server.
NET_SDK_ERR_WD_SERVICE_EXCETP 810 CVR service exception (For N+1 mode,
it refers to CVR working server
exception).
NET_SDK_ERR_RD_SERVICE_EXCETP 811 Spare CVR server exception.
NET_SDK_ERR_ADDED_WD_IS_RD 812 The added working server is spare
server.
NET_SDK_ERR_PERFORMANCE_LIMIT 813 The performance reaches the upper-
limit.
NET_SDK_ERR_ADDED_DEVICE_EXIST 814 This device already exists.
NET_SDK_ERR_INQUEST_RESUMING 815 Inquest resuming.
NET_SDK_ERR_RECORD_BACKUPING 816 Inquest video backing up.

303
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_SDK_ERR_DISK_PLAYING 817 Playing.
NET_SDK_ERR_INQUEST_STARTED 818 Inquest started.
NET_SDK_ERR_LOCAL_OPERATING 819 Locally operating.
NET_SDK_ERR_INQUEST_NOT_START 820 Inquest is not started.
NET_SDK_ERR_CHAN_AUDIO_BIND 821 The channel is not bound or binding
two-way audio failed.
NET_DVR_N_PLUS_ONE_MODE 822 Ddevice is in N+1 mode. Cloud
storage is not supported.
NET_DVR_CLOUD_STORAGE_OPENED 823 Cloud storage mode is enbaled.
NET_DVR_ERR_OPER_NOT_ALLOWED 824 Operation failed. The device is in N+0
taken over status.
NET_DVR_ERR_NEED_RELOCATE 825 The device is in N+0 taken over status.
Get re-​positioning information and try
again.
NET_SDK_ERR_IR_PORT_ERROR 830 IR output error.
NET_SDK_ERR_IR_CMD_ERROR 831 IR output port command number
error
NET_SDK_ERR_NOT_INQUESTING 832 Device is not in inquest status.
NET_SDK_ERR_INQUEST_NOT_ 833 Device is not in paused status.
PAUSED
NET_DVR_CHECK_PASSWORD_ 834 Incorrect verification code.
MISTAKE_ERROR
NET_DVR_CHECK_PASSWORD_NULL_ 835 Verification code is required.
ERROR
NET_DVR_UNABLE_CALIB_ERROR 836 Failed to calibrate.
NET_DVR_PLEASE_CALIB_ERROR 837 Calibration first.
NET_DVR_ERR_PANORAMIC_CAL_ 838 Panoramic calibration is empty in
EMPTY Flash.
NET_DVR_ERR_CALIB_FAIL_ 839 Calibration failed, please try again.
PLEASEAGAIN

304
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_DETECTION_LINE 840 Rule line configuration error. Please
try again and make sure the line is
within the red region.
NET_DVR_EXCEED_FACE_IMAGES_ 843 No more face pictures can be added.
ERROR
NET_DVR_ANALYSIS_FACE_IMAGES_ 844 Picture recognition failed.
ERROR
NET_ERR_ALARM_INPUT_OCCUPIED 845 A<-1 alarm number is used for
triggering vehicle capture.
NET_DVR_FACELIB_DATABASE_ERROR 846 Database version in face picture
library mismatched.
NET_DVR_FACELIB_DATA_ERROR 847 Face picture library data error.
NET_DVR_FACE_DATA_ID_ERROR 848 Invalid face data PID.
NET_DVR_FACELIB_ID_ERROR 849 Invalid face picture library ID.
NET_DVR_EXCEED_FACE_LIBARY_ 850 No more face picture libraries can be
ERROR established..
NET_DVR_PIC_ANALYSIS_NO_ 851 No target recognized in the picture.
TARGET_ERROR
NET_DVR_SUBPIC_ANALYSIS_ 852 Sub picture modeling failed.
MODELING_ERROR
NET_DVR_PIC_ANALYSIS_NO_ 853 No VCA engine supports picture
RESOURCE_ERROR secondary recognition.
NET_DVR_ANALYSIS_ENGINES_NO_ 854 No VCA engine.
RESOURCE_ERROR
NET_DVR_ANALYSIS_ENGINES_ 855 Overload. The engine CPU reached
USAGE_EXCEED_ERROR 100%.
NET_DVR_EXCEED_HUMANMISINFO_ 856 No more false alarm channel can be
FILTER_ENABLED_ERROR enabled.
NET_DVR_NAME_ERROR 857 Name error.
NET_DVR_NAME_EXIST_ERROR 858 The name already exists.
NET_DVR_FACELIB_PIC_IMPORTING_ 859 The pictures is importing to face
ERROR picture library.

305
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_PIC_FORMAT_ERROR 864 Invalid picture format.
NET_DVR_PIC_RESOLUTION_ 865 Invalid picture resolution.
INVALID_ERROR
NET_DVR_PIC_SIZE_EXCEED_ERROR 866 The picture size is too large.
NET_DVR_PIC_ANALYSIS_TARGRT_ 867 Too many targets in the picture.
NUM_EXCEED_ERROR
NET_DVR_ANALYSIS_ENGINES_ 868 Initializing analysis engine.
LOADING_ERROR
NET_DVR_ANALYSIS_ENGINES_ 869 Analysis engine exception.
ABNORMA_ERROR
NET_DVR_ANALYSIS_ENGINES_ 870 Analysis engine is importing pictures
FACELIB_IMPORTING to face picture library.
NET_DVR_NO_DATA_FOR_ 871 No data for modeling.
MODELING_ERROR
NET_DVR_FACE_DATA_MODELING_ 872 Device is modeling picture.
ERROR Concurrent processing is not
supported.
NET_ERR_FACELIBDATA_OVERLIMIT 873 No more face picture can be added to
the device (the data of imported face
picture library)
NET_DVR_ANALYSIS_ENGINES_ 874 Channel is linked to the analysis
ASSOCIATED_CHANNEL engine.
NET_DVR_ERR_CUSTOMID_LEN 875 The minimum length of upper layer
custom ID is 32 bytes.
NET_DVR_ERR_CUSTOMFACELIBID_ 876 The applied custom face picture
REPEAT library ID is duplicated
NET_DVR_ERR_CUSTOMHUMANID_ 877 The applied custom person ID is
REPEAT duplicated.
NET_DVR_ERR_URL_DOWNLOAD_ 878 URL download failed.
FAIL
NET_DVR_ERR_URL_DOWNLOAD_ 879 URL download has not started.
NOTSTART

306
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_CFG_FILE_SECRETKEY_ 880 The security verification key of
ERROR configuration file is error.
NET_DVR_THERMOMETRY_REGION_ 883 Invalid thermometry region
OVERSTEP_ERROR
NET_DVR_ERR_TOO_SHORT_ 894 Too short time for calibration.
CALIBRATING_TIME
NET_DVR_ERR_AUTO_CALIBRATE_ 895 Auto calibration failed.
FAILED
NET_DVR_ERR_VERIFICATION_FAILED 896 Verification failed.
NET_DVR_NO_TEMP_SENSOR_ERROR 897 No temperature sensor.
NET_DVR_PUPIL_DISTANCE_ 898 The pupil distance is too large.
OVERSIZE_ERROR
NET_ERR_WINCHAN_IDX 901 Window channel index error.
NET_ERR_WIN_LAYER 902 Window layer number error(the
count of window layers on a single
screen exceeds the max number).
NET_ERR_WIN_BLK_NUM 903 Window block number error(the
count of screens that single window
overlays exceeds the max number).
NET_ERR_OUTPUT_RESOLUTION 904 The output resolution error.
NET_ERR_LAYOUT 905 Layout index error.
NET_ERR_INPUT_RESOLUTION 906 The input resolution is not supported.
NET_ERR_SUBDEVICE_OFFLINE 907 The sub-device is off-line.
NET_ERR_NO_DECODE_CHAN 908 There is no free decoding channel.
NET_ERR_MAX_WINDOW_ABILITY 909 The upper limit of window number.
NET_ERR_ORDER_ERROR 910 Calling order error.
NET_ERR_PLAYING_PLAN 911 Be playing plan.
NET_ERR_DECODER_USED 912 Decoder board is being used.
NET_ERR_OUTPUT_BOARD_DATA_ 913 Output board data overflow
OVERFLOW
NET_ERR_SAME_USER_NAME 914 Duplicate user name

307
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_ERR_INVALID_USER_NAME 915 Invalid user name
NET_ERR_MATRIX_USING 916 Input matrix is in use.
NET_ERR_DIFFERENT_CHAN_TYPE 917 Different channel type (the type of
matrix output channel mismatches
that of the controller input channel)
NET_ERR_INPUT_CHAN_BINDED 918 Input channel has been bound by
other matrix
NET_ERR_BINDED_OUTPUT_CHAN_ 919 The matrix output channels in use
OVERFLOW exceeded the number bound by
matrix and controller
NET_ERR_MAX_SIGNAL_NUM 920 Number of input signals reached
upper limit
NET_ERR_INPUT_CHAN_USING 921 Input channel is in use
NET_ERR_MANAGER_LOGON 922 Administrator has logged in,
operation failed
NET_ERR_USERALREADY_LOGON 923 The user has logged in, operation
failed
NET_ERR_LAYOUT_INIT 924 Scene is initializing, operation failed
NET_ERR_BASEMAP_SIZE_NOT_ 925 Base image size does not match
MATCH
NET_ERR_WINDOW_OPERATING 926 Window is in other operation,
operation failed
NET_ERR_SIGNAL_UPLIMIT 927 Number of signal source window
reached upper limit
NET_ERR_WINDOW_SIZE_OVERLIMIT 943 The window size exceeds the limit.
NET_ERR_MAX_WIN_OVERLAP 951 The number of windows overlap has
reached the maximum limit.
NET_ERR_STREAMID_CHAN_BOTH_ 952 stream ID and channel number are
VALID both valid.
NET_ERR_NO_ZERO_CHAN 953 The device has no zero channel.
NEED_RECONNECT 955 Need redirection (for transcoding
system)

308
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_ERR_NO_STREAM_ID 956 The stream ID does not exist.
NET_DVR_TRANS_NOT_START 957 The transcoding has not been started.
NET_ERR_MAXNUM_STREAM_ID 958 The number of stream ID has reached
the maximum limit.
NET_ERR_WORKMODE_MISMATCH 959 The work mode does not match with
the requirement.
NET_ERR_MODE_IS_USING 960 It Has been working in current mode.
NET_ERR_DEV_PROGRESSING 961 The device is in processing
NET_ERR_PASSIVE_TRANSCODING 962 It is in transcoding.
NET_DVR_ERR_WINDOW_SIZE_ 975 Wrong window position.
PLACE
NET_DVR_ERR_RGIONAL_ 976 Screen distance exceeds the limit.
RESTRICTIONS
NET_DVR_ERR_CLOSE_WINDOWS 984 Operation failed. Close the window
first.
NET_DVR_ERR_MATRIX_LOOP_ 985 Beyond the cycle decoding capacity.
ABILITY
NET_DVR_ERR_MATRIX_LOOP_TIME 986 Invalid cycle decoding time.
NET_DVR_ERR_LINKED_OUT_ABILITY 987 No more linked camera can be added.
NET_ERR_RESOLUTION_NOT_ 990 The resolution is not supported (odd
SUPPORT_ODD_VOUT No.).
NET_ERR_RESOLUTION_NOT_ 991 The resolution is not supported (even
SUPPORT_EVEN_VOUT No.).
NET_​ERR_​UnitConfig_​Failed 998 Unit configuration failed.
XML_ABILITY_NOTSUPPORT 1000 Getting capability node is not
supported
XML_ANALYZE_NOENOUGH_BUF 1001 Not enough output memory
XML_ANALYZE_FIND_LOCALXML_ 1002 Failed to find related local xml
ERROR
XML_ANALYZE_LOAD_LOCALXML_ 1003 Loading local xml error
ERROR

309
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


XML_NANLYZE_DVR_DATA_FORMAT_ 1004 Device capability data format error
ERROR
XML_ANALYZE_TYPE_ERROR 1005 Capability set type error
XML_ANALYZE_XML_NODE_ERROR 1006 XML capability node format error
XML_INPUT_PARAM_ERROR 1007 Input capability XML node value error
XML_VERSION_MISMATCH 1008 XML version does not match
NET_ERR_TRANS_CHAN_START 1101 Transparent channel has been open,
operation failed
NET_ERR_DEV_UPGRADING 1102 Device is upgrading
NET_ERR_MISMATCH_UPGRADE_ 1103 Upgrade pack type does not match
PACK_TYPE
NET_ERR_DEV_FORMATTING 1104 Device is formatting
NET_ERR_MISMATCH_UPGRADE_ 1105 Upgrade pack version does not match
PACK_VERSION
NET_ERR_PT_LOCKED 1106 PT is locked.
NET_DVR_ERR_ILLEGAL_ 1111 Illegal verification code. Change the
VERIFICATION_CODE verification code.
NET_DVR_ERR_LACK_VERIFICATION_ 1112 No verification code. Enter the
CODE verification code.
NET_DVR_ERR_FORBIDDEN_IP 1113 The IP address cannot be configured.
NET_DVR_ERR_HTTP_BKN_EXCEED_ 1125 Up to one channel's ANR function can
ONE be enabled.
NET_DVR_ERR_FORMATTING_FAILED 1131 Formatting HDD failed.
NET_DVR_ERR_ENCRYPTED_ 1132 Formatting encrypted HDD failed.
FORMATTING_FAILED
NET_DVR_ERR_WRONG_PASSWORD 1133 Verifying password of SD card failed.
Incorrect password.
NET_ERR_SEARCHING_MODULE 1201 Searching peripherals.
NET_ERR_REGISTERING_MODULE 1202 Registering external module
NET_ERR_GETTING_ZONES 1203 Getting arming region parameter
NET_ERR_GETTING_TRIGGERS 1204 Getting trigger

310
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_ERR_ARMED_STATUS 1205 System is in arming status
NET_ERR_PROGRAM_MODE_STATUS 1206 System is in programming mode
NET_ERR_WALK_TEST_MODE_STATUS 1207 System is in pacing measuring mode
NET_ERR_BYPASS_STATUS 1208 Bypass status
NET_ERR_DISABLED_MODULE_ 1209 Function not enabled
STATUS
NET_ERR_NOT_SUPPORT_OPERATE_ 1210 Operation is not supported by arming
ZONE region
NET_ERR_NOT_SUPPORT_MOD_ 1211 Module address cannot be modified
MODULE_ADDR
NET_ERR_UNREGISTERED_MODULE 1212 Module is not registered
NET_ERR_PUBLIC_SUBSYSTEM_ 1213 Public sub system associate with its
ASSOCIATE_SELF self
NET_ERR_EXCEEDS_ASSOCIATE_ 1214 Number of associated public sub
SUBSYSTEM_NUM system reached upper limit
NET_ERR_BE_ASSOCIATED_BY_ 1215 Sub system is associated by other
PUBLIC_SUBSYSTEM public sub system
NET_ERR_ZONE_FAULT_STATUS 1216 Arming region is in failure status
NET_ERR_SAME_EVENT_TYPE 1217 Same event type exists in enable
event trigger alarm output and
disable event trigger alarm output
NET_ERR_ZONE_ALARM_STATUS 1218 Arming region is in alarm status
NET_ERR_EXPANSION_BUS_SHORT_ 1219 Extension bus short-circuit
CIRCUIT
NET_ERR_PWD_CONFLICT 1220 Password conflict, e.g., lock password
is identical with duress password
NET_ERR_DETECTOR_GISTERED_BY_ 1221 Detector has been registered by other
OTHER_ZONE arming regions
NET_ERR_DETECTOR_GISTERED_BY_ 1222 Detector has been registered by other
OTHER_PU hosts
NET_ERR_DETECTOR_DISCONNECT 1223 Detector offline
NET_ERR_CALL_BUSY 1224 Device in call

311
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_ERR_FILE_NAME 1357 File name error, empty or invalid
NET_ERR_BROADCAST_BUSY 1358 Device in broadcast
NET_DVR_ERR_LANENUM_EXCEED 1400 Over the number of lanes.
NET_DVR_ERR_PRAREA_EXCEED 1401 Recognition area is too large.
NET_DVR_ERR_LIGHT_PARAM 1402 Signal lamp access parameters error.
NET_DVR_ERR_LANE_LINE_INVALID 1403 Lane configuration error.
NET_DVR_ERR_STOP_LINE_INVALID 1404 Stop line configuration error.
NET_DVR_ERR_LEFTORRIGHT_LINE_ 1405 Turn left / right boundary
INVALID configuration error.
NET_DVR_ERR_LANE_NO_REPEAT 1406 Overlay lane number repetition.
NET_DVR_ERR_PRAREA_INVALID 1407 The polygon does not meet the
requirements.
NET_DVR_ERR_LIGHT_NUM_EXCEED 1408 Video detection of traffic light signal
exceeds the maximum number of.
NET_DVR_ERR_SUBLIGHT_NUM_ 1409 Video detection of traffic signal lamp
INVALID lights are not legitimate
NET_DVR_ERR_LIGHT_AREASIZE_ 1410 The size of the video detection of
INVALID traffic light input signal lamp is not
valid.
NET_DVR_ERR_LIGHT_COLOR_ 1411 The color of the video detection of
INVALID traffic light input signal lamp color is
not legitimate.
NET_DVR_ERR_LIGHT_DIRECTION_ 1412 The direction property of the video
INVALID detection of traffic light input light is
not valid.
NET_DVR_ERR_LACK_IOABLITY 1413 Lack of IO ablity.
NET_DVR_ERR_FTP_PORT 1414 FTP port error.
NET_DVR_ERR_FTP_CATALOGUE 1415 FTP catalogue error.
NET_DVR_ERR_FTP_UPLOAD_TYPE 1416 FTP upload type error.
NET_DVR_ERR_FLASH_PARAM_ 1417 Setting param flash write error.
WRITE

312
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_FLASH_PARAM_READ 1418 Getting param flash read error.
NET_DVR_ERR_PICNAME_DELIMITER 1419 Pic name delimiter error.
NET_DVR_ERR_PICNAME_ITEM 1420 Pic name item error.
NET_DVR_ERR_PLATE_RECOGNIZE_ 1421 Plate recognize type error.
TYPE
NET_DVR_ERR_CAPTURE_TIMES 1422 Capture times error.
NET_DVR_ERR_LOOP_DISTANCE 1423 Loop distance error.
NET_DVR_ERR_LOOP_INPUT_STATUS 1424 Loop input status error.
NET_DVR_ERR_RELATE_IO_CONFLICT 1425 Related IO conflict.
NET_DVR_ERR_INTERVAL_TIME 1426 Interval time error.
NET_DVR_ERR_SIGN_SPEED 1427 Sign speed error.
NET_DVR_ERR_PIC_FLIP 1428 Flip is used.
NET_DVR_ERR_RELATE_LANE_ 1429 Related lane number error.
NUMBER
NET_DVR_ERR_TRIGGER_MODE 1430 Trigger mode error.
NET_DVR_ERR_DELAY_TIME 1431 Delay time error.
NET_DVR_ERR_EXCEED_RS485_ 1432 Exceed RS485 count.
COUNT
NET_DVR_ERR_RADAR_TYPE 1433 Radar type error.
NET_DVR_ERR_RADAR_ANGLE 1434 Radar angle error.
NET_DVR_ERR_RADAR_SPEED_ 1435 Radar speed valid time error.
VALID_TIME
NET_DVR_ERR_RADAR_LINE_ 1436 Radar line correct error.
CORRECT
NET_DVR_ERR_RADAR_CONST_ 1437 Radar const correct error.
CORRECT
NET_DVR_ERR_RECORD_PARAM 1438 Record param error.
NET_DVR_ERR_LIGHT_WITHOUT_ 1439 Light number and other param error.
COLOR_AND_DIRECTION

313
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_LIGHT_WITHOUT_ 1440 Light number and detection region
DETECTION_REGION error.
NET_DVR_ERR_RECOGNIZE_ 1441 Plate recognize Province param error.
PROVINCE_PARAM
NET_DVR_ERR_SPEED_TIMEOUT 1442 IO Speed TimeOut Param error.
NET_DVR_ERR_NTP_TIMEZONE 1443 NTP TimeZone Param error.
NET_DVR_ERR_NTP_INTERVAL_TIME 1444 NTP Interval Time error.
NET_DVR_ERR_NETWORK_CARD_ 1445 Network Card Num error.
NUM
NET_DVR_ERR_DEFAULT_ROUTE 1446 Default Route error.
NET_DVR_ERR_BONDING_WORK_ 1447 Banding Work Mode error.
MODE
NET_DVR_ERR_SLAVE_CARD 1448 Sub-Card error.
NET_DVR_ERR_PRIMARY_CARD 1449 Primary Card error.
NET_DVR_ERR_DHCP_PPOE_WORK 1450 DHCP and PPOE not Meanwhile start.
NET_DVR_ERR_NET_INTERFACE 1451 Net Interface invalid.
NET_DVR_ERR_MTU 1452 Invalid MTU parameters.
NET_DVR_ERR_NETMASK 1453 Netmask address invalid.
NET_DVR_ERR_IP_INVALID 1454 IP address invalid.
NET_DVR_ERR_MULTICAST_IP_ 1455 Multicast IP address invalid.
INVALID
NET_DVR_ERR_GATEWAY_INVALID 1456 Gateway address invalid.
NET_DVR_ERR_DNS_INVALID 1457 DNS Param invalid.
NET_DVR_ERR_ALARMHOST_IP_ 1458 AlarmHost IP invalid.
INVALID
NET_DVR_ERR_IP_CONFLICT 1459 IP address Conflict.
NET_DVR_ERR_NETWORK_SEGMENT 1460 IP not support Multi Network
segment.
NET_DVR_ERR_NETPORT 1461 NetPort error.
NET_DVR_ERR_PPPOE_NOSUPPORT 1462 PPPoE is not supported.

314
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_DOMAINNAME_ 1463 Not Support Domain Name.
NOSUPPORT
NET_DVR_ERR_NO_SPEED 1464 Speed Not Enabled.
NET_DVR_ERR_IOSTATUS_INVALID 1465 IO Status invalid.
NET_DVR_ERR_BURST_INTERVAL_ 1466 Burst Interval invalid.
INVALID
NET_DVR_ERR_RESERVE_MODE 1467 Reserve Mode invalid.
NET_DVR_ERR_LANE_NO 1468 Lane No error.
NET_DVR_ERR_COIL_AREA_TYPE 1469 Coil Area Type error.
NET_DVR_ERR_TRIGGER_AREA_ 1470 Trigger Area Param error.
PARAM
NET_DVR_ERR_SPEED_LIMIT_PARAM 1471 Speed Limit Param error.
NET_DVR_ERR_LANE_PROTOCOL_ 1472 Lane Protocol Type error.
TYPE
NET_DVR_ERR_INTERVAL_TYPE 1473 Capture Interval Type error.
NET_DVR_ERR_INTERVAL_DISTANCE 1474 Capture Interval Distance error.
NET_DVR_ERR_RS485_ASSOCIATE_ 1475 Rs485 Associate DevType error.
DEVTYPE
NET_DVR_ERR_RS485_ASSOCIATE_ 1476 Rs485 Associate LaneNo error.
LANENO
NET_DVR_ERR_LANENO_ASSOCIATE_ 1477 LaneNo Associate MulitRs485 error.
MULTIRS485
NET_DVR_ERR_LIGHT_DETECTION_ 1478 Light Detection Region error.
REGION
NET_DVR_ERR_DN2D_NOSUPPORT 1479 UnSupport Capture Frame 2D Noise
Reduction.
NET_DVR_ERR_IRISMODE_ 1480 UnSupport scene Mode.
NOSUPPORT
NET_DVR_ERR_WB_NOSUPPORT 1481 UnSupport White Balance Mode.
NET_DVR_ERR_IO_EFFECTIVENESS 1482 IO Effectiveness invalid.

315
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_LIGHTNO_MAX 1483 Access Detector Lights Red / Yellow
Overrun.
NET_DVR_ERR_LIGHTNO_CONFLICT 1484 Access Detector Lights Red / Yellow
Conflict.
NET_DVR_ERR_CANCEL_LINE 1485 Trigger straight line error.
NET_DVR_ERR_STOP_LINE 1486 Subject line area stop line error.
NET_DVR_ERR_RUSH_REDLIGHT_LINE 1487 Red light trigger lines error.
NET_DVR_ERR_IOOUTNO_MAX 1488 IO out port error.
NET_DVR_ERR_IOOUTNO_ 1489 IO out ahead time error.
AHEADTIME_MAX
NET_DVR_ERR_IOOUTNO_ 1490 IO out inwork time error.
IOWORKTIME
NET_DVR_ERR_IOOUTNO_ 1491 IO out frequency multiplication error.
FREQMULTI
NET_DVR_ERR_IOOUTNO_DUTYRATE 1492 IO out duty rate error.
NET_DVR_ERR_VIDEO_WITH_ 1493 IO out work mode error.
EXPOSURE
NET_DVR_ERR_PLATE_BRIGHTNESS_ 1494 Plate enable in plate compensate
WITHOUT_FLASHDET mode on.
NET_DVR_ERR_RECOGNIZE_TYPE_ 1495 Recognize Type error.
PARAM
NET_DVR_ERR_PALTE_RECOGNIZE_ 1496 Plate Recognize Area Param error.
AREA_PARAM
NET_DVR_ERR_PORT_CONFLICT 1497 Port Conflict.
NET_DVR_ERR_LOOP_IP 1498 IP cannot be the loopback address.
NET_DVR_ERR_DRIVELINE_SENSITIVE 1499 Driveline sensitivity error.
NET_ERR_VQD_TIME_CONFLICT 1500 The time period conflict.
NET_ERR_VQD_PLAN_NO_EXIST 1501 The diagnostic plan of VQD dese not
exist.
NET_ERR_VQD_CHAN_NO_EXIST 1502 The channel dese not exist.

316
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_ERR_VQD_CHAN_MAX 1503 The total number of VQD plans
exceeds the max limit.
NET_ERR_VQD_TASK_MAX 1504 The total number of VQD tasks
exceeds the max limit.
NET_DVR_ERR_EXCEED_MAX_ 1600 Capture times exceed 2 in flash mode.
CAPTURE_TIMES
NET_DVR_ERR_REDAR_TYPE_ 1601 Radar type conflict.
CONFLICT
NET_DVR_ERR_LICENSE_PLATE_NULL 1602 The license plate is null.
NET_DVR_ERR_WRITE_DATABASE 1603 Failed to write data into the database.
NET_DVR_ERR_LICENSE_EFFECTIVE_ 1604 The effective time of license plate
TIME error.
NET_DVR_ERR_PRERECORDED_ 1605 The pre recorded start time is greater
STARTTIME_LONG than the number of illegal capture.
NET_DVR_ERR_TRIGGER_RULE_LINE 1606 Trigger rule line error.
NET_DVR_ERR_LEFTRIGHT_ 1607 Left and right trigger line is not
TRIGGERLINE_NOTVERTICAL vertical.
NET_DVR_ERR_FLASH_LAMP_MODE 1608 Flash lamp mode error.
NET_DVR_ERR_ILLEGAL_SNAPSHOT_ 1609 Illegal capture number error.
NUM
NET_DVR_ERR_ILLEGAL_DETECTION_ 1610 Illegal detection type error.
TYPE
NET_DVR_ERR_POSITIVEBACK_ 1611 Positive back to trigger line height
TRIGGERLINE_HIGH error.
NET_DVR_ERR_MIXEDMODE_ 1612 Mixed mode only supports capture
CAPTYPE_ALLTARGETS type all targets.
NET_DVR_ERR_CARSIGNSPEED_ 1613 Car sign speed greater than speed
GREATERTHAN_LIMITSPEED limit value.
NET_DVR_ERR_BIGCARSIGNSPEED_ 1614 Big car sign speed limit greater than
GREATERTHAN_LIMITSPEED speed limit value.
NET_DVR_ERR_BIGCARSIGNSPEED_ 1615 Big car sign speed limit is greater than
GREATERTHAN_CARSIGNSPEED the car sign speed limit value.

317
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_BIGCARLIMITSPEED_ 1616 Big car speed limit value is greater
GREATERTHAN_CARLIMITSPEED than the car speed limit value.
NET_DVR_ERR_ 1617 Big car low speed limit value is greater
BIGCARLOWSPEEDLIMIT_ than the car low speed limit value.
GREATERTHAN_CARLOWSPEEDLIMIT
NET_DVR_ERR_CARLIMITSPEED_ 1618 Car speed limit greater than exception
GREATERTHAN_EXCEPHIGHSPEED high speed value.
NET_DVR_ERR_BIGCARLIMITSPEED_ 1619 Big car speed limit greater than
GREATERTHAN_EXCEPHIGHSPEED exception high speed value.
NET_DVR_ERR_STOPLINE_ 1620 Stopping more than straight lines
MORETHAN_TRIGGERLINE trigger lines.
NET_ERR_TIME_OVERLAP 1900 Time periods overlap
NET_ERR_HOLIDAY_PLAN_OVERLAP 1901 Holiday plan overlap
NET_ERR_CARDNO_NOT_SORT 1902 Card number is not sorted
NET_ERR_CARDNO_NOT_EXIST 1903 Card number does not exist
NET_ERR_ILLEGAL_CARDNO 1904 Card number error
NET_ERR_ZONE_ALARM 1905 Arming region is in arming status
(parameter cannot be modified)
NET_ERR_ZONE_OPERATION_NOT_ 1906 Arming region does not support the
SUPPORT operation
NET_ERR_INTERLOCK_ANTI_ 1907 Interlock and anti-passback
CONFLICT configuration conflict
NET_ERR_DEVICE_CARD_FULL 1908 Card full (return after card reached
10,000)
NET_ERR_HOLIDAY_GROUP_ 1909 Failed to download holiday group
DOWNLOAD
NET_ERR_LOCAL_CONTROL_OFF 1910 Distributed access controller offline
NET_ERR_LOCAL_CONTROL_DISADD 1911 Distributed access controller is not
added
NET_ERR_LOCAL_CONTROL_HASADD 1912 Distributed access controller is added
NET_ERR_LOCAL_CONTROL_ 1913 Conflict with added distributed access
DOORNO_CONFLICT controller

318
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_ERR_LOCAL_CONTROL_ 1914 Distributed access controller
COMMUNICATION_FAIL communication failed
NET_ERR_OPERAND_INEXISTENCE 1915 Operation object does not exist
(operation to door, alarm output,
alarm input, return when the object is
not added)
NET_ERR_LOCAL_CONTROL_OVER_ 1916 Distributed access controller
LIMIT exceeded device capability upper limit
NET_ERR_DOOR_OVER_LIMIT 1917 Door exceeded device capability
upper limit
NET_ERR_ALARM_OVER_LIMIT 1918 Alarm input and output exceeded
device capability upper limit
NET_ERR_LOCAL_CONTROL_ 1919 Distributed access controller address
ADDRESS_INCONFORMITY_TYPE does not match with type
NET_ERR_NOT_SUPPORT_ONE_ 1920 not support one person multi-card
MORE_CARD
NET_ERR_DELETE_NO_EXISTENCE_ 1921 The face picture does not exist.
FACE
NET_ERR_DOOR_SPECIAL_ 1922 Repeated door door duress code, the
PASSWORD_REPEAT super password, or the dismiss code.
NET_ERR_AUTH_CODE_REPEAT 1923 Repeated device authentication code
NET_ERR_DEPLOY_EXCEED_MAX 1924 No more devices can be armed.
NET_ERR_NOT_SUPPORT_DEL_FP_ 1925 The fingerprint module does not
BY_ID support deleting fingerprint by finger
ID.
NET_ERR_TIME_RANGE 1926 Invalid range of the effective period.
NET_ERR_CAPTURE_TIMEOUT 1927 Collection timed out.
NET_ERR_LOW_SCORE 1928 Low quality of collected data.
NET_ERR_OFFLINE_CAPTURING 1929 The device is collecting data offline
and cannot respond.
NET_DVR_ERR_OUTDOOR_ 1950 Communication exception with
COMMUNICATION outdoor terminal

319
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_ROOMNO_ 1951 Room number is not set
UNDEFINED
NET_DVR_ERR_NO_CALLING 1952 No call
NET_DVR_ERR_RINGING 1953 Ringing
NET_DVR_ERR_IS_CALLING_NOW 1954 Call in progress
NET_DVR_ERR_LOCK_PASSWORD_ 1955 Incorrect smart lock password
WRONG
NET_DVR_ERR_CONTROL_LOCK_ 1956 Lock control failure
FAILURE
NET_DVR_ERR_CONTROL_LOCK_ 1957 Lock control timed out
OVERTIME
NET_DVR_ERR_LOCK_DEVICE_BUSY 1958 Smart lock device busy
NET_DVR_ERR_UNOPEN_REMOTE_ 1959 Remote lock control not enabled
LOCK_FUNCTION
NET_DVR_ERR_FILE_NOT_COMPLETE 2100 Downloaded file is incomplete
NET_DVR_ERR_IPC_EXIST 2101 The camera already exists
NET_DVR_ERR_ADD_IPC 2102 Camera has been added to the
channel
NET_DVR_ERR_OUT_OF_RES 2103 Not enough network bandwidth
NET_DVR_ERR_CONFLICT_TO_ 2104 IP address of camera conflicts with
LOCALIP that of DVR
NET_DVR_ERR_IP_SET 2105 Invalid IP address
NET_DVR_ERR_PORT_SET 2106 Invalid port number
NET_ERR_WAN_NOTSUPPORT 2107 Not in the same LAN, cannot set
security question or export GUID file
NET_ERR_MUTEX_FUNCTION 2108 Mutually exclusive function
NET_ERR_QUESTION_CONFIGNUM 2109 Error in number of security question
configurations
NET_ERR_FACECHAN_NORESOURCE 2110 All the face VCA channels are
occupied.
NET_ERR_DATA_CALLBACK 2111 Data is calling back.

320
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_ERR_ATM_VCA_CHAN_IS_ 2112 The VCA channel is already linked.
RELATED
NET_ERR_ATM_VCA_CHAN_IS_ 2113 The VCA channel is already overlayed.
OVERLAPED
NET_ERR _FACE_CHAN_UNOVERLAP_ 2114 The face channels cannot be
EACH_OTHER overlayed.
NET_DVR_SMD_ENCODING_ 2116 Insufficient SMD encoding resource
NORESOURSE
NET_DVR_SMD_DECODING_ 2117 Insufficient SMD decoding resource
NORESOURSE
NET_DVR_FACELIB_DATA_ 2118 Face picture library data is in
PROCESSING processing
NET_DVR_ERR_LARGE_TIME_ 2119 There is a great time difference
DIFFRENCE between device and server.
NET_DVR_NO_SUPPORT_WITH_ 2120 It is not supported. Playback is
PLAYBACK enabled.
NET_DVR_CHANNEL_NO_SUPPORT_ 2121 It is not supported. SMD of channel is
WITH_SMD enabled.
NET_DVR_CHANNEL_NO_SUPPORT_ 2122 It is not supported. Face capture of
WITH_FD channel is enabled.
NET_DVR_ILLEGAL_PHONE_NUMBER 2123 Invalid telephone number
NET_DVR_ILLEGAL_CERITIFICATE_ 2124 Invalid ID No.
NUMBER
NET_DVR_ERR_CHANNEL_ 2125 The channel resolution is not
RESOLUTION_NO_SUPPORT supported
NET_DVR_ERR_CHANNEL_ 2126 The channel encoding format is not
COMPRESSION_NO_SUPPORT supported
NET_DVR_ERR_CLUSTER_DEVICE_ 2127 Deleting is not allowed. The number
TOO_LESS of devices is not enough
NET_DVR_ERR_CLUSTER_DEL_ 2128 Deleting is not allowed. The device is
DEVICE_CM_PLAYLOAD cluster host.
NET_DVR_ERR_CLUSTER_DEVNUM_ 2129 No more devices can be added.
OVER_UPPER_LIMIT

321
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_CLUSTER_DEVICE_ 2130 Device type mismatched.
TYPE_INCONFORMITY
NET_DVR_ERR_CLUSTER_DEVICE_ 2131 Device version mismatched.
VERSION_INCONFORMITY
NET_DVR_ERR_CLUSTER_IP_ 2132 Cluster system IP address conflict:
CONFLICT ipv4 address conflict, invalid ipv6.
NET_DVR_ERR_CLUSTER_IP_INVALID 2133 Invalid cluster system IP address:
invalid ipv4, invalid ipv6.
NET_DVR_ERR_CLUSTER_PORT_ 2134 Cluster system port conflict
CONFLICT
NET_DVR_ERR_CLUSTER_PORT_ 2135 Invalid cluster system port
INVALID
NET_DVR_ERR_CLUSTER_ 2136 Invalid user name or password
USERNAEM_OR_PASSWORD_INVALID
NET_DVR_ERR_CLUSTER_DEVICE_ 2137 The device already exists.
ALREADY_EXIST
NET_DVR_ERR_CLUSTER_DEVICE_ 2138 The device does not exist.
NOT_EXIST
NET_DVR_ERR_CLUSTER_NON_ 2139 The device working mode is not the
CLUSTER_MODE cluster mode .
NET_DVR_ERR_CLUSTER_IP_NOT_ 2140 IP addresses are in different LAN.
SAME_LAN Building cluster or extending capacity
for NVRs in different LAN is not
allowed.
NET_DVR_ERR_IDENTITY_KEY 2147 Incorrect interaction password
NET_DVR_MISSING_IDENTITY_KEY 2148 Interaction password is missing
NET_DVR_ERR_CAPTURE_PACKAGE_ 2141 Capturing packets failed.
FAILED
NET_DVR_ERR_CAPTURE_PACKAGE_ 2142 Capturing packet.
PROCESSING
NET_DVR_ERR_SAFETY_HELMET_NO_ 2143 No enough hard hat detection
RESOURCE resource.

322
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_NO_SUPPORT_WITH_ 2144 This function is not supported. Video
ABSTRACT synopsis is already enabled.
NET_DVR_INSUFFICIENT_DEEP_ 2146 No more deep learning resources can
LEARNING_RESOURCES be added.
NET_DVR_NO_SUPPORT_WITH_ 2149 People gathering density is enabled, it
PERSON_DENSITY_DETECT is not supported
NET_DVR_IPC_RESOLUTION_ 2150 The network camera resolution is too
OVERFLOW large
NET_DVR_IPC_BITRATE_OVERFLOW 2151 The network camera bitrate is too
large
NET_DVR_ERR_INVALID_TASKID 2152 Invalid taskID
NET_DVR_PANEL_MODE_NOT_ 2153 The ATM panel mode is not
CONFIG configured.
NET_DVR_NO_HUMAN_ENGINES_ 2154 No enough engine resource
RESOURCE
NET_DVR_ERR_TASK_NUMBER_ 2155 No more task data is allowed
OVERFLOW
NET_DVR_ERR_COLLISION_TIME_ 2156 Collision time is over the limit
OVERFLOW
NET_DVR_ERR_EVENT_NOTSUPPORT 2159 Subscribing alarm/event is not
supported.
NET_DVR_IPC_NUM_REACHES_LIMIT 2184 The max. number of network camera
channels reached.
NET_DVR_IOT_NUM_REACHES_LIMIT 2185 The max. number of IoT channels
reached
NET_DVR_IOT_CHANNEL_DEVICE_ 2186 Device of the IoT channel already
EXIST exists.
NET_DVR_IOT_CHANNEL_DEVICE_ 2187 Device of the IoT channel does not
NOT_EXIST exist.
NET_DVR_INVALID_IOT_PROTOCOL_ 2188 Invalid IoT protocol type
TYPE
NET_DVR_INVALID_EZVIZ_SECRET_ 2189 Invalid verification code
KEY

323
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_DUPLICATE_IOT_DEVICE 2190 Duplicated IoT device
NET_DVR_ERROR_NEED_DOUBLE_ 2206 Double verification is required
VERIFICATION
NET_DVR_NO_DOUBLE_ 2207 No double verification user
VERIFICATION_USER
NET_DVR_TIMESPAN_NUM_OVER_ 2209 Max. number of time buckets reached
LIMIT
NET_DVR_CHANNEL_NUM_OVER_ 2210 Max. number of channels reached
LIMIT
NET_DVR_NO_SEARCH_ID_ 2211 Insufficient searchID resources
RESOURCE
NET_DVR_SWITCH_TIMEDIFF_LESS_ 2249 Time difference between power on
LIMIT and off should be less than 10
minutes.
NET_DVR_NO_SUPPORT_DELETE_ 2262 Deleting stranger library is not
STRANGER_LIB supported
NET_DVR_NO_SUPPORT_CREATE_ 2263 Creating stranger library is not
STRANGER_LIB supported
NET_DVR_SSD_FILE_SYSTEM_ERROR 2266 SSD file system error
NET_DVR_INSUFFICIENT_SSD__FOR_ 2267 Insufficient SSD space for person
FPD frequency detection
NET_DVR_SMRDISK_NOT_SUPPORT_ 2269 SMR disk does not support RAID.
RAID
NET_DVR_ERR_NOTSUPPORT_ 3001 Device does not support deicing
DEICING function under current status.(Deicing
function is only supported under the
power status of POE+, AC24V, and
DC12V).
NET_DVR_ERR_THERMENABLE_ 3002 Temperature measurement function
CLOSE is not enabled. (The enable function
in NET_DVR_THERMOMETRY_
BASICPARAM is not turned on)
NET_DVR_ERR_PANORAMIC_LIMIT_ 3004 Panoramic map and limit cannot be
OPERATED operated at same time

324
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_ERR_SMARTH264_ROI_ 3005 SmartH264 and ROI cannot be
OPERATED enabled at the same time.
NET_DVR_ERR_RULENUM_LIMIT 3006 No more rules can be added.
NET_DVR_ERR_LASER_DEICING_ 3007 Laser and deicing function cannot be
OPERATED enabled at the same time.
NET_DVR_ERR_OFFDIGITALZOOM_ 3008 Please disable the digital zoom
OR_MINZOOMLIMIT function or set the zoom limit to the
minimum value. Otherwise, when
enabling smoke and fire detection,
abnormal event detection, ship
detection, defective point correction,
temperature measurement, smoke
and fire shielding function, this error
code will be prompted.
NET_DVR_SYNCHRONIZEFOV_ERROR 3010 Field of view synchronization failed.
NET_DVR_RULE_SHIELDMASK_ 3013 The rule region conflicts with the
CONFLICT_ERROR shielded area.
NET_DVR_ERR_NO_SAFETY_HELMET_ 3501 The hard hat detection area is not
REGION configured.
NET_DVR_ERR_UNCLOSED_SAFETY_ 3502 The hard hat detection is enabled.
HELMET
NET_DVR_UPLOAD_HBDLIBID_ERROR 3504 Incorrect ID of human body picture
library (incorrect HBDID or
customHBDID)

RTSP Communication Library Related Errors

Error Name Error Code Error Description


NET_DVR_RTSP_ERROR_ 401 Authentication failed: if server
NOENOUGHPRI returns 401, it will change to this
error code
NET_DVR_RTSP_ERROR_ALLOC_ 402 Failed to allocate the resource
RESOURCE
NET_DVR_RTSP_ERROR_PARAMETER 403 Parameter error

325
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_DVR_RTSP_ERROR_NO_URL 404 The assigned URL does not exist:
when the server returns 404, SDK
turns to this error code. E.g. the
channel is not available, or the
channel does not support sub
stream
NET_DVR_RTSP_ERROR_FORCE_STOP 406 The user forces to exit midway
NET_DVR_RTSP_GETPORTFAILED 407 RTSP port getting error.
NET_DVR_RTSP_DESCRIBERROR 410 RTSP DECRIBE communicate error
NET_DVR_RTSP_ 411 Sending "RTSP DECRIBE" is timeout.
DESCRIBESENDTIMEOUT
NET_DVR_RTSP_DESCRIBESENDERROR 412 Failed to send "RTSP DECRIBE".
NET_DVR_RTSP_ 413 Receiving "RTSP DECRIBE" is
DESCRIBERECVTIMEOUT timeout.
NET_DVR_RTSP_ 414 Receiving data of "RTSP DECRIBE"
DESCRIBERECVDATALOST error.
NET_DVR_RTSP_DESCRIBERECVERROR 415 Failed to receive "RTSP DECRIBE".
NET_DVR_RTSP_DESCRIBESERVERERR 416 "RTSP DECRIBE, the device returns
the error code: 501 (failed to
allocate the resource in the device)
NET_DVR_RTSP_SETUPERROR 420 (or 419), RTSP SETUP interaction
error. Generally, it is that the
address(URL) returned by the
device is not accessible, or it is
rejected by the server
NET_DVR_RTSP_SETUPSENDTIMEOUT 421 Sending "RTSP SETUP" is timeout.
NET_DVR_RTSP_SETUPSENDERROR 422 Sending "RTSP SETUP" error.
NET_DVR_RTSP_SETUPRECVTIMEOUT 423 Receiving "RTSP SETUP" is timeout.
NET_DVR_RTSP_SETUPRECVDATALOST 424 Receiving data of "RTSP SETUP"
error.
NET_DVR_RTSP_SETUPRECVERROR 425 Failed to receive "RTSP SETUP".
NET_DVR_RTSP_OVER_MAX_CHAN 426 "RTSP SETUP" device returns the
error that values 401 or 501. It

326
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


exceeds the max connection
number.
NET_DVR_RTSP_PLAYERROR 430 RTSP PLAY interaction error.
NET_DVR_RTSP_PLAYSENDTIMEOUT 431 Sending "RTSP PLAY" is timeout.
NET_DVR_RTSP_PLAYSENDERROR 432 Sending "RTSP PLAY" error.
NET_DVR_RTSP_PLAYRECVTIMEOUT 433 Receiving "RTSP PLAY" is timeout.
NET_DVR_RTSP_PLAYRECVDATALOST 434 Receiving data of "RTSP PLAY" error.
NET_DVR_RTSP_PLAYRECVERROR 435 Failed to receive "RTSP PLAY".
NET_DVR_RTSP_PLAYSERVERERR 436 "RTSP PLAY" device returns the
error that values 401 or 501.
NET_DVR_RTSP_TEARDOWNERROR 440 RTSP TEARDOWN interaction error.
NET_DVR_RTSP_ 441 Sending "RTSP TEARDOWN" is
TEARDOWNSENDTIMEOUT timeout.
NET_DVR_RTSP_ 442 Sending "RTSP TEARDOWN" error.
TEARDOWNSENDERROR
NET_DVR_RTSP_ 443 Receiving "RTSP TEARDOWN" is
TEARDOWNRECVTIMEOUT timeout.
NET_DVR_RTSP_ 444 Receiving data of "RTSP
TEARDOWNRECVDATALOST TEARDOWN" error.
NET_DVR_RTSP_ 445 Failed to receive "RTSP
TEARDOWNRECVERROR TEARDOWN".
NET_DVR_RTSP_ 446 "RTSP TEARDOWN" device returns
TEARDOWNSERVERERR the error that values 401 or 501.

Software Decoding Library Related Errors

Error Name Error Code Error Description


NET_PLAYM4_NOERROR 500 No error.
NET_PLAYM4_PARA_OVER 501 Input parameter is invalid.
NET_PLAYM4_ORDER_ERROR 502 API calling order error.
NET_PLAYM4_TIMER_ERROR 503 Failed to create multimedia clock.

327
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_PLAYM4_DEC_VIDEO_ERROR 504 Failed to decode video data.
NET_PLAYM4_DEC_AUDIO_ERROR 505 Failed to decode audio data.
NET_PLAYM4_ALLOC_MEMORY_ 506 Failed to allocate memory.
ERROR
NET_PLAYM4_OPEN_FILE_ERROR 507 Failed to open the file.
NET_PLAYM4_CREATE_OBJ_ERROR 508 Failed to create thread event.
NET_PLAYM4_CREATE_DDRAW_ 509 Failed to create DirectDraw object.
ERROR
NET_PLAYM4_CREATE_OFFSCREEN_ 510 Failed to create backstage cache for
ERROR OFFSCREEN mode.
NET_PLAYM4_BUF_OVER 511 Buffer overflow, failed to input stream.
NET_PLAYM4_CREATE_SOUND_ 512 Failed to create audio equipment.
ERROR
NET_PLAYM4_SET_VOLUME_ 513 Failed to set the volume.
ERROR
NET_PLAYM4_SUPPORT_FILE_ONLY 514 This API can be called only for file
playback mode.
NET_PLAYM4_SUPPORT_STREAM_ 515 This API can be called only when playing
ONLY stream.
NET_PLAYM4_SYS_NOT_SUPPORT 516 Not support by the system. Decoder can
only work on the system above Pentium
3.
NET_PLAYM4_FILEHEADER_ 517 There is no file header.
UNKNOWN
NET_PLAYM4_VERSION_ 518 The version mismatch between decoder
INCORRECT and encoder.
NET_PLAYM4_INIT_DECODER_ 519 Failed to initialize the decoder.
ERROR
NET_PLAYM4_CHECK_FILE_ERROR 520 The file is too short, or the stream data
is unknown.
NET_PLAYM4_INIT_TIMER_ERROR 521 Failed to initialize multimedia clock.
NET_PLAYM4_BLT_ERROR 522 BLT failure.

328
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_PLAYM4_UPDATE_ERROR 523 Failed to update overlay surface
NET_PLAYM4_OPEN_FILE_ERROR_ 524 Failed to open video & audio stream
MULTI file.
NET_PLAYM4_OPEN_FILE_ERROR_ 525 Failed to open video stream file.
VIDEO
NET_PLAYM4_JPEG_COMPRESS_ 526 JPEG compression error.
ERROR
NET_PLAYM4_EXTRACT_NOT_ 527 Don't support the version of this file.
SUPPORT
NET_PLAYM4_EXTRACT_DATA_ 528 Extract video data failed.
ERROR

Container Format Conversion Library Related Errors

Error Name Error Code Error Description


NET_CONVERT_ERROR_NOT_ 581 This container format is not supported.
SUPPORT

Two Way Audio Library Related Errors

Error Name Error Code Error Description


NET_AUDIOINTERCOM_OK 600 No error.
NET_AUDIOINTECOM_ERR_NOTSUPORT 601 Not support.
NET_AUDIOINTECOM_ERR_ALLOC_MEMERY 602 Memory allocation error.
NET_AUDIOINTECOM_ERR_PARAMETER 603 Parameter error.
NET_AUDIOINTECOM_ERR_CALL_ORDER 604 API calling order error.
NET_AUDIOINTECOM_ERR_FIND_DEVICE 605 No audio device
NET_AUDIOINTECOM_ERR_OPEN_DEVICE 606 Failed to open the audio device
NET_AUDIOINTECOM_ERR_NO_CONTEXT 607 Context error.
NET_AUDIOINTECOM_ERR_NO_WAVFILE 608 WAV file error.
NET_AUDIOINTECOM_ERR_INVALID_TYPE 609 The type of WAV parameter is
invalid

329
Device Network SDK (ANPR) Developer Guide

Error Name Error Code Error Description


NET_AUDIOINTECOM_ERR_ENCODE_FAIL 610 Failed to encode data
NET_AUDIOINTECOM_ERR_DECODE_FAIL 611 Failed to decode data
NET_AUDIOINTECOM_ERR_NO_PLAYBACK 612 Failed to play audio
NET_AUDIOINTECOM_ERR_DENOISE_FAIL 613 Failed to denoise
NET_AUDIOINTECOM_ERR_UNKOWN 619 Unknown

QoS Stream Control Library Related Errors

Error Name Error Code Error Description


NET_QOS_ERR_SCHEDPARAMS_BAD_ 678 Incorrect predefined minimum
MINIMUM_INTERVAL interval.
NET_QOS_ERR_SCHEDPARAMS_BAD_ 679 Incorrect predefined score.
FRACTION
NET_QOS_ERR_SCHEDPARAMS_INVALID_ 680 Invalid predefined bandwidth.
BANDWIDTH
NET_QOS_ERR_PACKET_TOO_BIG 687 The packet size is too large.
NET_QOS_ERR_PACKET_LENGTH 688 Invalid packet size.
NET_QOS_ERR_PACKET_VERSION 689 Incorrect packet versio
information.
NET_QOS_ERR_PACKET_UNKNOW 690 Unknown packet.
NET_QOS_ERR_OUTOFMEM 695 Out of memory.
NET_QOS_ERR_LIB_NOT_INITIALIZED 696 The library is not initialized.
NET_QOS_ERR_SESSION_NOT_FOUND 697 No session found.
NET_QOS_ERR_INVALID_ARGUMENTS 698 Invalid parameters.
NET_QOS_ERROR 699 QoS Stream Control Library
error.
NET_QOS_OK 700 No error.

330
Device Network SDK (ANPR) Developer Guide

NPQ (Network Protocol Quality) Related Error

Error Name Error Code Error Description


NET_ERR_NPQ_PARAM 8001 NPQ library: Incorrect parameter.
NET_ERR_NPQ_SYSTEM 8002 NPQ library: Operating system error.
NET_ERR_NPQ_GENRAL 8003 NPQ library: Internal error.
NET_ERR_NPQ_PRECONDITION 8004 NPQ library: Calling sequence error.
NET_ERR_NPQ_NOTSUPPORT 8005 NPQ library: This function is not
supported.
NET_ERR_NPQ_NOTCALLBACK 8100 No data is called back.
NET_ERR_NPQ_LOADLIB 8101 Loading NPQ library failed.
NET_ERR_NPQ_STEAM_CLOSE 8104 The NPQ function of this stream is not
enabled.
NET_ERR_NPQ_MAX_LINK 8110 No more streaming channel's NPQ
function can be enabled.
NET_ERR_NPQ_STREAM_CFG_ 8111 The configured encoding parameters
CONFLICT conflicted.

C.2 Response Codes of Text Protocol


The response codes returned during the text protocol integration is based on the status codes of
HTTP. 7 kinds of status codes are predefined, including 1 (OK), 2 (Device Busy), 3 (Device Error), 4
(Invalid Operation), 5 (Invalid Message Format), 6 (Invalid Message Content), and 7 (Reboot
Required). Each kind of status code contains multiple sub status codes, and the response codes are
in a one-to-one correspondence with the sub status codes.

StatusCode=1

SubStatusCode Error Code Description


ok 0x1 Operation completed.
riskPassword 0x10000002 Risky password.
armProcess 0x10000005 Arming process.

331
Device Network SDK (ANPR) Developer Guide

StatusCode=2

Sub Status Code Error Code Description


noMemory 0x20000001 Insufficient memory.
serviceUnavailable 0x20000002 The service is not available.
upgrading 0x20000003 Upgrading.
deviceBusy 0x20000004 The device is busy or no
response.
reConnectIpc 0x20000005 The video server is
reconnected.
transferUpgradePackageFailed 0x20000006 Transmitting device upgrade
data failed.
startUpgradeFailed 0x20000007 Starting upgrading device
failed.
getUpgradeProcessfailed. 0x20000008 Getting upgrade status failed.
certificateExist 0x2000000B The Authentication certificate
already exists.

StatusCode=3

Sub Status Code Error Code Description


deviceError 0x30000001 Hardware error.
badFlash 0x30000002 Flash operation error.
28181Uninitialized 0x30000003 The 28181 configuration is not
initialized.
socketConnectError 0x30000005 Connecting to socket failed.
receiveError 0x30000007 Receive response message
failed.
deletePictureError 0x3000000A Deleting picture failed.
pictureSizeExceedLimit 0x3000000C Too large picture size.
clearCacheError 0x3000000D Clearing cache failed.
updateDatabasError 0x3000000F Updating database failed.

332
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


searchDatabaseError 0x30000010 Searching in the database
failed.
writeDatabaseError 0x30000011 Writing to database failed.
deleteDatabaseError 0x30000012 Deleting database element
failed.
searchDatabaseElementError 0x30000013 Getting number of database
elements failed.
cloudAutoUpgradeException 0x30000016 Downloading upgrade packet
from cloud and upgrading
failed.
HBPException 0x30001000 HBP exception.
UDEPException 0x30001001 UDEP exception
elasticSearchException 0x30001002 Elastic exception.
kafkaException 0x30001003 Kafka exception.
HBaseException 0x30001004 Hbase exception.
sparkException 0x30001005 Spark exception.
yarnException 0x30001006 Yarn exception.
cacheException 0x30001007 Cache exception.
trafficException 0x30001008 Monitoring point big data
server exception.
faceException 0x30001009 Human face big data server
exception.
SSDFileSystemIsError 0x30001013 SSD file system error (Error
occurs when it is non-Ext4 file
system)
insufficientSSDCapacityForFPD 0x30001014 Insufficient SSD space for
person frequency detection.
wifiException 0x3000100A Wi-Fi big data server exception
structException 0x3000100D Video parameters structure
server exception.
noLinkageResource 0x30001015 Insufficient linkage resources.

333
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


engineAbnormal 0x30002015 Engine exception.
engineInitialization 0x30002016 Initializing the engine.
algorithmLoadingFailed 0x30002017 Loading the model failed.
algorithmDownloadFailed 0x30002018 Downloading the model failed.
algorithmDecryptionFailed 0x30002019 Decrypting the model failed.
unboundChannel 0x30002020 Delete the linked channel to
load the new model.
unsupportedResolution 0x30002021 Invalid resolution.
unsupportedSteamType 0x30002022 Invalid stream type.
insufficientDecRes 0x30002023 Insufficient decoding resources.
insufficientEnginePerformance 0x30002024 Insufficient engine
performance (The number of
channels to be analyzed
exceeds the engine's
capability).
improperResolution 0x30002025 Improper resolution (The
maximum resolution allowed is
4096×4096).
improperPicSize 0x30002026 Improper picture size (The
maximum size allowed is 5MB).
URLDownloadFailed 0x30002027 Downloading the picture via
the URI failed.
unsupportedImageFormat 0x30002028 Invalid picture format (Only JPG
is supported currently).
unsupportedPollingIntervalTim 0x30002029 Invalid polling interval (The
e interval should be more than
10s).
exceedImagesNumber 0x30002030 The number of pictures
exceeds the limit (The platform
can apply 1 to 100 picture URIs
per time, the maximum
number allowed is 100).

334
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


unsupportedMPID 0x30002031 The applied MPID does not
exist in the device, so updating
this MPID is not supported.
modelPackageNotMatchLabel 0x30002032 The model and the description
file mismatch.
modelPackageNotMatchTask 0x30002033 The task and the model type
mismatch.
insufficientSpace 0x30002034 Insufficient space (When the
number of model packages
does not reach the maximum
number allowed but their size
together exceeds the free
space, the model packages
cannot be added).
engineUnLoadingModelPackag 0x30002035 Applying the task failed. This
e engine is not linked to a model
package (Canceling the linkage
failed, this engine is not linked
to a model package).
engineWithModelPackage 0x30002036 Linking the engine to this
model package failed. The
engine has been linked to
another model package. Please
cancel their linkage first.
modelPackageDelete 0x30002037 Linking the model package
failed. The model package has
been deleted.
deleteTaskFailed 0x30002038 Deleting the task failed (It is
returned when the user fails to
end a task).
modelPackageNumberslimited 0x30002039 Adding the model package
failed. The number of model
package has reached the
maximum number allowed.
modelPackageDeleteFailed 0x30002040 Deleting the model package
failed.

335
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


noArmingResource 0x30001016 Insufficient arming resources.
calibrationTimeout 0x30002051 Calibration timed out.
captureTimeout 0x30006000 Data collection timed out.
lowScore 0x30006001 Low quality of collected data.
uploadingFailed 0x30007004 Uploading failed.

StatusCode=4

Sub Status Code Error Code Description


notSupport 0x40000001 Not supported.
lowPrivilege 0x40000002 No permission.
badAuthorization 0x40000003 Authentication failed.
methodNotAllowed 0x40000004 Invalid HTTP method.
notSetHdiskRedund 0x40000005 Setting spare HDD failed.
invalidOperation 0x40000006 Invalid operation.
notActivated 0x40000007 Inactivated.
hasActivated 0x40000008 Activated.
certificateAlreadyExist 0x40000009 The certificate already exists.
operateFailed 0x4000000F Operation failed.
USBNotExist 0x40000010 USB device is not connected.
upgradePackageMoret 0x40001000 Up to 2GB upgrade package is allowed to be
han2GB uploaded.
IDNotexist 0x40001001 The ID does not exist.
interfaceOperationErro 0x40001002 API operation failed.
r
synchronizationError 0x40001003 Synchronization failed.
synchronizing 0x40001004 Synchronizing.
importError 0x40001005 Importing failed.
importing 0x40001006 Importing.

336
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


fileAlreadyExists 0x40001007 The file already exists.
invalidID 0x40001008 Invalid ID.
backupnodeNotAllowe 0x40001009 Accessing to backup node is not allowed.
Log
exportingError 0x4000100A Exporting failed.
exporting 0x4000100B Exporting.
exportEnded 0x4000100C Exporting stopped.
exported 0x4000100D Exported.
IPOccupied 0x4000100E The IP address is already occupied.
IDAlreadyExists 0x4000100F The ID already exists.
exportItemsExceedLimi 0x40001010 No more items can be exported.
t
noFiles 0x40001011 The file does not exist.
beingExportedByAnoth 0x40001012 Being exported by others.
erUser
needReAuthentication 0x40001013 Authentication is needed after upgrade.
unitAddNotOnline 0x40001015 The added data analysis server is offline.
unitControl 0x40001016 The data analysis server is already added.
analysis unitFull 0x40001017 No more data analysis server can be added.
unitIDError 0x40001018 The data analysis server ID does not exist.
unitExit 0x40001019 The data analysis server already exists in the
list.
unitSearch 0x4000101A Searching data analysis server in the list failed.
unitNotOnline 0x4000101B The data analysis server is offline.
unitInfoEror 0x4000101C Getting data analysis server information failed.
unitGetNodeInfoError 0x4000101D Getting node information failed.
unitGetNetworkInfoErr 0x4000101E Getting the network information of data
or analysis server failed
unitSetNetworkInfoErr 0x4000101F Setting the network information of data analysis
or server failed

337
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


setSmartNodeInfoError 0x40001020 Setting node information failed.
setUnitNetworkInfoErr 0x40001021 Setting data analysis server network
or information failed.
unitRestartCloseError 0x40001022 Rebooting or shutting down data analysis server
failed.
virtualIPnotAllowed 0x40001023 Adding virtual IP address is not allowed.
unitInstalled 0x40001024 The data analysis server is already installed.
badSubnetMask 0x40001025 Invalid subnet mask.
uintVersionMismatche 0x40001026 Data analysis server version mismatches.
d
deviceMOdelMismatch 0x40001027 Adding failed. Device model mismatches.
ed
unitAddNotSelf 0x40001028 Adding peripherals is not allowed.
noValidUnit 0x40001029 No valid data analysis server.
unitNameDuplicate 0x4000102A Duplicated data analysis server name.
deleteUnitFirst 0x4000102B Delete the added data analysis server of the
node first.
getLocalInfoFailed 0x4000102C Getting the server information failed.
getClientAddedNodeFa 0x4000102D Getting the added node information of data
iled analysis server failed.
taskExit 0x4000102E The task already exists.
taskInitError 0x4000102F Initializing task failed.
taskSubmitError 0x40001030 Submiting task failed.
taskDelError 0x40001031 Deleting task failed.
taskPauseError 0x40001032 Pausing task failed.
taskContinueError 0x40001033 Starting task failed.
taskSeverNoCfg 0x40001035 Full-text search server is not configured.
taskPicSeverNoCfg 0x40001036 The picture server is not configured.
taskStreamError 0x40001037 Streaming information exception.
taskRecSDK 0x40001038 History recording is not supported.

338
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


taskCasaError 0x4000103A Cascading is not supported.
taskVCARuleError 0x4000103B Invalid VCA rule.
taskNoRun 0x4000103C The task is not executed.
unitLinksNoStorageNo 0x4000103D No node is linked with the data analysis server.
de Configure the node first.
searchFailed 0x4000103E Searching video files failed.
searchNull 0x4000103F No video clip.
userScheOffline 0x40001040 The task scheduler service is offline.
updateTypeUnmatche 0x40001041 The upgrade package type mismatches.
d
userExist 0x40001043 The user already exists.
userCannotDelAdmin 0x40001044 The administrator cannot be deleted.
userInexistence 0x40001045 The user name does not exist.
userCannotCreatAdmi 0x40001046 The administrator cannot be created.
n
monitorCamExceed 0x40001048 Up to 3000 cameras can be added.
monitorCunitOverLimit 0x40001049 Adding failed. Up to 5 lower-levels are
supported by the control center.
monitorReginOverLimit 0x4000104A Adding failed. Up to 5 lower-levels are
supported by the area.
monitorArming 0x4000104B The camera is already armed. Disarm the
camera and try again.
monitorSyncCfgNotSet 0x4000104C The system parameters are not configured.
monitorFdSyncing 0x4000104E Synchronizing. Try again after completing the
synchronization.
monitorParseFailed 0x4000104F Parsing camera information failed.
monitorCreatRootFaile 0x40001050 Creating resource node failed.
d
deleteArmingInfo 0x40001051 The camera is already . Disarm the camera and
try again.
cannotModify 0x40001052 Editing is not allowed. Select again.

339
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


cannotDel 0x40001053 Deletion is not allowed. Select again.
deviceExist 0x40001054 The device already exists.
IPErrorConnectFailed 0x40001056 Connection failed. Check the network port.
cannotAdd 0x40001057 Only the capture cameras can be added.
serverExist 0x40001058 The server already exists.
fullTextParamError 0x40001059 Incorrect full-text search parameters.
storParamError 0x4000105A Incorrect storage server parameters.
picServerFull 0x4000105B The storage space of picture storage server is
full.
NTPUnconnect 0x4000105C Connecting to NTP server failed. Check the
parameters.
storSerConnectFailed 0x4000105D Connecting to storage server failed. Check the
network port.
storSerLoginFailed 0x4000105E Logging in to storage server failed. Check the
user name and password.
searchSerConnectFaile 0x4000105F Connecting to full-text search server failed.
d Check the network port.
searchSerLoginFailed 0x40001060 Logging in to full-text search server failed.
Check the user name and password.
kafkaConnectFailed 0x40001061 Connecting to Kafka failed. Check the network
port.
mgmtConnectFailed 0x40001062 Connecting to system failed. Check the network
port.
mgmtLoginFailed 0x40001063 Logging in to system failed. Check the user
name and password.
TDAConnectFailed 0x40001064 Connecting to traffic data access server failed.
Checking the server status.
86sdkConnectFailed 0x40001065 Connecting to listening port of iVMS-8600
System failed. Check the parameters.
nameExist 0x40001066 Duplicated server name.
batchProcessFailed 0x40001067 Processing in batch failed.

340
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


IDNotExist 0x40001068 The server ID does not exist.
serviceNumberReache 0x40001069 No more service can be added.
sLimit
invalidServiceType. 0x4000106A Invalid service type.
clusterGetInfo 0x4000106B Getting cluster group information failed.
clusterDelNode 0x4000106C Deletion node failed.
clusterAddNode 0x4000106D Adding node failed.
clusterInstalling 0x4000106E Creating cluster…Do not operate.
clusterUninstall 0x4000106F Reseting cluster…Do not operate.
clusterInstall 0x40001070 Creating cluster failed.
clusterIpError 0x40001071 Invalid IP address of task scheduler server.
clusterNotSameSeg 0x40001072 The main node and sub node must be in the
same network segment.
clusterVirIpError 0x40001073 Automatically getting virtual IP address failed.
Enter manually.
clusterNodeUnadd 0x40001074 The specified main (sub) node is not added.
clusterNodeOffline 0x40001075 The task scheduler server is offline.
nodeNotCurrentIP 0x40001076 The analysis node of the current IP address is
required when adding main and sub nodes.
addNodeNetFailed 0x40001077 Adding node failed. The network disconnected.
needTwoMgmtNode 0x40001078 Two management nodes are required when
adding main and sub nodes.
ipConflict 0x40001079 The virtual IP address and data analysis server's
IP address conflicted.
ipUsed 0x4000107A The virtual IP address has been occupied.
cloudAlalyseOnline 0x4000107B The cloud analytic server is online.
virIP&mainIPnotSame 0x4000107C The virtual IP address is not in the same
NetSegment network segment with the IP address of main/
sub node.
getNodeDispatchInfoFa 0x4000107D Getting node scheduler information failed.
iled

341
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


unableModifyManage 0x4000107E Editing management network interface failed.
mentNetworkIP The analysis board is in the cluster.
notSpecifyVirtualIP 0x4000107F Virtual IP address should be specified for main
and sub cluster.
armingFull 0x40001080 No more device can be armed.
armingNoFind 0x40001081 The arming information does not exist.
disArming 0x40001082 Disarming failed.
getArmingError 0x40001084 Getting arming information failed.
refreshArmingError 0x40001085 Refreshing arming information failed.
ArmingPlateSame 0x40001086 The license plate number is repeatedly armed.
ArmingParseXLSError 0x40001087 Parsing arming information file failed.
ArmingTimeError 0x40001088 Invalid arming time period.
ArmingSearchTimeErro 0x40001089 Invalid search time period.
r
armingRelationshipRea 0x4000108A No more relation can be created.
chesLimit
duplicateAarmingNam 0x4000108B The relation name already exists.
e
noMoreArmingListAdd 0x4000108C No more blocklist library can be armed.
ed
noMoreCamerasAdded 0x4000108D No more camera can be armed.
noMoreArmingListAdd 0x4000108E No more library can be linked to the camera.
edWithCamera
noMoreArmingPeriodA 0x4000108F No more time period can be added to the
dded arming schedule.
armingPeriodsOverlap 0x40001090 The time periods in the arming schedule are
ped overlapped.
noArmingAlarmInfo 0x40001091 The alarm information does not exist.
armingAlarmUnRead 0x40001092 Getting number of unread alarms failed.
getArmingAlarmError 0x40001093 Getting alarm information failed.

342
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


searchByPictureTimed 0x40001094 Searching picture by picture timeout. Search
Out again.
comparisonTimeRange 0x40001095 Comparison time period error.
Error
selectMonitorNumber 0x40001096 No more monitoring point ID can be filtered.
UpperLimit
noMoreComparisonTas 0x40001097 No more comparison task can be executed at
ksAdded the same time.
GetComparisonResultF 0x40001098 Getting comparison result failed.
ailed
comparisonTypeError 0x40001099 Comparison type error.
comparisonUnfinished 0x4000109A The comparison is not completed.
facePictureModelInvali 0x4000109B Invalid face model.
d
duplicateLibraryName. 0x4000109C The library name already exists.
noRecord 0x4000109D No record found.
countingRecordsFailed. 0x4000109E Calculate the number of records failed.
getHumanFaceFrameF 0x4000109F Getting face thumbnail from the picture failed.
ailed
modelingFailed. 0x400010A0 Modeling face according to picture URL failed.
1V1FacePictureCompar 0x400010A1 Comparison 1 VS 1 face picture failed.
isonFailed
libraryArmed 0x400010A2 The blocklist library is armed.
licenseExeedLimit 0x400010A3 Dongle limited.
licenseExpired 0x400010A4 Dongle expired.
licenseDisabled 0x400010A5 Unavailable dongle.
licenseNotExist 0x400010A6 The dongle does not exist.
SessionExpired 0x400010A7 Session expired .
beyondConcurrentLimi 0x400010A8 Out of concurrent limit.
t
stopSync 0x400010A9 Synchronization stopped.

343
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


getProgressFaild 0x400010AA Getting progress failed.
uploadExtraCaps 0x400010AB No more files can be uploaded.
timeRangeError 0x400010AC Time period error.
dataPortNotConnected 0x400010AD The data port is not connected.
addClusterNodeFailed 0x400010AE Adding to the cluster failed. The device is
already added to other cluster.
taskNotExist 0x400010AF The task does not exist.
taskQueryFailed 0x400010B0 Searching task failed.
modifyTimeRuleFailed 0x400010B2 The task already exists. Editing time rule is not
allowed.
modifySmartRuleFailed 0x400010B3 The task already exists. Editing VAC rule is not
allowed.
queryHistoryVideoFaile 0x400010B4 Searching history video failed.
d
addDeviceFailed 0x400010B5 Adding device failed.
addVideoFailed 0x400010B6 Adding video files failed.
deleteAllVideoFailed 0x400010B7 Deleting all video files failed.
createVideoIndexFailed 0x400010B8 Indexing video files failed.
videoCheckTypeFailed 0x400010B9 Verifying video files types failed.
configStructuredAddre 0x400010BA Configuring IP address of structured server
ssFailed failed.
configPictureServerAd 0x400010BB Configuring IP address of picture storaged
dressFailed server failed.
storageServiceIPNotExi 0x400010BD The storage server IP address does not exist.
st
syncBackupDatabaseFa 0x400010BE Synchronizing sub database failed. Try again.
iled
syncBackupNTPTimeFa 0x400010BF Synchronizing NTP time of sub server failed.
iled
clusterNotSelectLoopb 0x400010C0 Loopbacl address is not supported by the main
ackAddress or sub cluster.

344
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


addFaceRecordFailed 0x400010C1 Adding face record failed.
deleteFaceRecordFaile 0x400010C2 Deleting face record failed.
d
modifyFaceRecordFaile 0x400010C3 Editing face record failed.
d
queryFaceRecordFailed 0x400010C4 Searching face record failed.
faceDetectFailed 0x400010C5 Detecting face failed.
libraryNotExist 0x400010C6 The library does not exist.
blackListQueryExportin 0x400010C7 Exporting matched blocklists.
g
blackListQueryExporte 0x400010C8 The matched blocklists are exported.
d
blackListQueryStopExp 0x400010C9 Exporting matched blocklists is stopped.
orting
blackListAlarmQueryEx 0x400010CA Exporting matched blocklist alarms.
porting
blackListAlarmQueryEx 0x400010CB The matched blocklists alarms are exported.
ported
blackListAlarmQuerySt 0x400010CC Exporting matched blocklist alarms is stopped.
opExporting
getBigDataCloudAnalys 0x400010CD Getting big data cloud analytic information
isFailed failed.
setBigDataCloudAnalys 0x400010CE Configuring big data cloud analytic failed.
isFailed
submitMapSearchFaile 0x400010CF Submitting search by picture task failed.
d
controlRelationshipNot 0x400010D0 The relation does not exist.
Exist
getHistoryAlarmInfoFai 0x400010D1 Getting history alarm information failed.
led
getFlowReportFailed 0x400010D2 Getting people counting report failed.
addGuardFailed 0x400010D3 Adding arming configuration failed.

345
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


deleteGuardFailed 0x400010D4 Deleting arming configuration failed.
modifyGuardFailed 0x400010D5 Editing arming configuration failed.
queryGuardFailed 0x400010D6 Searching arming configurations failed.
uploadUserSuperCaps 0x400010D7 No more user information can be uploaded.
bigDataServerConnect 0x400010D8 Connecting to big data server failed.
Failed
microVideoCloudRequ 0x400010D9 Adding response information of micro video
estInfoBuildFailed cloud failed.
microVideoCloudRespo 0x400010DA Parsing response information of micro video
nseInfoBuildFailed cloud failed.
transcodingServerRequ 0x400010DB Adding response information of transcoding
estInfoBuildFailed server failed.
transcodingServerResp 0x400010DC Parsing response information of transcoding
onseInfoParseFailed server failed.
transcodingServerOffli 0x400010DD Transcoding server is offline.
ne
microVideoCloudOfflin 0x400010DE Micro video cloud is offline.
e
UPSServerOffline 0x400010DF UPS monitor server is offline.
statisticReportRequestI 0x400010E0 Adding response information of statistics report
nfoBuildFailed failed.
statisticReportRespons 0x400010E1 Parsing response information of statistics report
eInfoParseFailed failed.
DisplayConfigInfoBuild 0x400010E2 Adding display configuration information failed.
Failed
DisplayConfigInfoParse 0x400010E3 Parsing display configuration information failed.
Failed
DisplayConfigInfoSaveF 0x400010E4 Saving display configuration information failed.
ailed
notSupportDisplayConf 0x400010E5 The display configuration type is not supported.
igType
passError 0x400010E7 Incorrect password.

346
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


upgradePackageLarge 0x400010EB Too large upgrade package.
sesssionUserReachesLi 0x400010EC No more user can log in via session.
mit
ISO 0x400010ED Invalid ISO8601 time format.
8601TimeFormatError
clusterDissolutionFaile 0x400010EE Deleting cluster failed.
d
getServiceNodeInfoFail 0x400010EF Getting service node information failed.
ed
getUPSInfoFailed 0x400010F0 Getting UPS configuration information failed.
getDataStatisticsRepor 0x400010F1 Getting data statistic report failed.
tFailed
getDisplayConfigInfoFai 0x400010F2 Getting display configuration failed.
led
namingAnalysisBoardN 0x400010F3 Renaming analysis board is not allowed.
otAllowed
onlyDrawRegionsOfCo 0x400010F4 Only drawing convex polygon area is supported.
nvexPolygon
bigDataServerRespons 0x400010F5 Parsing response message of big data service
eInfoParseFailed failed.
bigDataServerReturnFa 0x400010F6 No response is returned by big data service.
iled
microVideoReturnFaile 0x400010F7 No response is returned by micro video cloud
d service.
transcodingServerRetu 0x400010F8 No response is returned by transcoding service.
rnFailed
UPSServerReturnFailed 0x400010F9 No response is returned by UPS monitoring
service.
forwardingServer 0x400010FA No response is returned by forwarding service.
ReturnFailed
storageServer 0x400010FB No response is returned by storage service.
ReturnFailed

347
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


cloudAnalysisServerRet 0x400010FC No response is returned by cloud analytic
urnFailed service.
modelEmpty 0x400010FD No model is obtained.
mainAndBackupNodeC 0x400010FE Editing the management interface IP address of
annotModifyManagem main node and backup node is not allowed.
entNetworkInterfaceIP
IDTooLong 0x400010FF The ID is too long.
pictureCheckFailed 0x40001100 Detecting picture failed.
pictureModelingFailed 0x40001101 Modeling picture failed.
setCloudAnalsisDefault 0x40001102 Setting default province of cloud analytic
ProvinceFailed service failed.
InspectionAreasNumbe 0x40001103 No more detection regions can be added.
rExceedLimit
picturePixelsTooLarge 0x40001105 The picture resolution is too high.
picturePixelsTooSmall 0x40001106 The picture resolution is too low.
storageServiceIPEmpty 0x40001107 The storage server IP address is required.
bigDataServerRequestI 0x40001108 Creating request message of big data service
nfoBuildFail failed.
analysiTimedOut 0x40001109 Analysis time out.
high- 0x4000110A Please enable high-performance mode.
performanceModeDisa
bled.
configuringUPSMonito 0x4000110B Configurating the UPS monitoring server time
ringServerTimedOut out. Check IP address.
cloudAnalysisRequestI 0x4000110C Creating request message of cloud analytic
nformationBuildFailed service failed.
cloudAnalysisResponse 0x4000110D Parsing response message of cloud analytic
InformationParseFailed service failed.
allCloudAnalysisInterfa 0x4000110E Calling API for cloud analytic service failed.
ceFailed
cloudAnalysisModelCo 0x4000110F Model comparison of cloud analytic service
mpareFailed failed.

348
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


cloudAnalysisFacePictu 0x40001110 Getting face quality grading of cloud analytic
reQualityRatingFailed service failed.
cloudAnalysisExtractFe 0x40001111 Extracting feature of cloud analytic service
aturePointsFailed failed.
cloudAnalysisExtractPr 0x40001112 Extracting property of cloud analytic service
opertyFailed failed.
getAddedNodeInformat 0x40001113 Getting the added nodes information of data
ionFailed analysis server failed.
noMoreAnalysisUnitsA 0x40001114 No more data analysis servers can be added.
dded
detectionAreaInvalid 0x40001115 Invalid detection region.
shieldAreaInvalid 0x40001116 Invalid shield region.
noMoreShieldAreasAd 0x40001117 No more shield region can be drawn.
ded
onlyAreaOfRectangleS 0x40001118 Only drawing rectangle is allowed in detection
hapeAllowed area.
numberReachedLlimit 0x40001119 Number reached the limit.
wait1~3MinutesGetIPAf 0x4000111A Wait 1 to 3 minutes to get IP address after
terSetupDHCP configuring DHCP.
plannedTimeMustbeH 0x4000111B Schedule must be half an hour.
alfAnHour
oneDeviceCannotBuild 0x4000111C Creating main and backup cluster requires at
Cluster least two devices.
updatePackageFileNot 0x4000111E Upgrade package is not uploaded.
Uploaded
highPerformanceTasks 0x4000111F Drawing detection area is not allowed under
NotSupportDrawingDe high-performance mode.
tectionRegions
controlCenterIDDoesN 0x40001120 The control center ID does not exist.
otExist
regionIDDoesNotExist 0x40001121 The area ID does not exist.
licensePlateFormatErro 0x40001122 Invalid license plate format.
r

349
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


managementNodeDoe 0x40001123 The operation is not supported.
sNotSupportThisOperat
ion
searchByPictureResour 0x40001124 The conditions for searching picture by picture
ceNotConfiged are not configured.
videoFileEncapsulation 0x40001125 The video container format is not supported.
FormatNotSupported
videoPackageFailure 0x40001126 Converting video container format failed.
videoCodingFormatNot 0x40001127 Video coding format is not supported.
Supported
monitorOfDeviceArmin 0x40001129 The camera is armed. Disarm it and try again.
gdeleteArmingInfo
getVideoSourceTypeFai 0x4000112A Getting video source type failed.
led
smartRulesBuildFailed 0x4000112B Creating VAC rule failed.
smartRulesParseFailed 0x4000112C Parsing VAC rule failed.
timeRulesBuildFailed 0x4000112D Creating time rule failed.
timeRulesParseFailed 0x4000112E Parsing time rule failed.
monitoInfoInvalid 0x4000112F Invalid camera information.
addingFailedVersionMi 0x40001130 Adding failed. The device version mismatches.
smatches
theInformationReturne 0x40001131 No response is returned by the cloud analytic
dAfterCloudAnalysisIsE service.
mpty
selectingIpAddressOfH 0x40001132 Setting IP address for main node and backup
ostAndSpareNodeFaile node failed. Check the node status.
dCheckTheStatus
theSearchIdDoesNotEx 0x40001133 The search ID does not exist.
ist
theSynchronizationIdD 0x40001134 The synchronization ID does not exist.
oesNotExist
theUserIdDoesNotExist 0x40001136 The user ID does not exist.

350
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


theIndexCodeDoesNot 0x40001138 The index code does not exist.
Exist
theControlCenterIdDoe 0x40001139 The control center ID does not exist.
sNotExist
theAreaIdDoesNotExist 0x4000113A The area ID does not exist.
theArmingLinkageIdDo 0x4000113C The arming relationship ID does not exist.
esNotExist
theListLibraryIdDoesNo 0x4000113D The list library ID does not exist.
tExist
invalidCityCode 0x4000113E Invalid city code.
synchronizingThePass 0x4000113F Synchronizing backup system password failed.
wordOfSpareServerFail
ed
editingStreamingTypeIs 0x40001140 Editing streaming type is not supported.
NotSupported
switchingScheduledTas 0x40001141 Switching scheduled task to temporary task is
kToTemporaryTaskIsNo not supported.
tSupported
switchingTemporaryTas 0x40001142 Switching temporary task to scheduled task is
kToScheduledTaskIsNot not supported.
Supported
theTaskIsNotDispatche 0x40001143 The task is not dispatched or is updating.
dOrItIsUpdating
thisTaskDoesNotExist 0x40001144 This task does not exist in the cloud analytic
serice.
duplicatedSchedule 0x40001145 Schedule period cannot be overlapped.
continuousScheduleWi 0x40001146 The continuous schedule periods with same
thSameAlgorithmType algorithm type should be merged.
ShouldBeMerged
invalidStreamingTimeR 0x40001147 Invalid streaming time period.
ange
invalidListLibraryType 0x40001148 Invalid list library type.

351
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


theNumberOfMatched 0x40001149 The number of search results should be larger
ResultsShouldBeLarger than 0.
Than0
invalidValueRangeOfSi 0x4000114A Invalid similarity range.
milarity
invalidSortingType 0x4000114B Invalid sorting type.
noMoreListLibraryCanB 0x4000114C No more lists can be added to one device.
eLinkedToTheDevice
InvalidRecipientAddres 0x4000114D Invalid address format of result receiver.
sFormat
creatingClusterFailedT 0x4000114E Insert the dongle before creating cluster.
heDongleIsNotPlugged
In
theURLIsTooLong 0x4000114F No schedule configured for the task.
noScheduleIsConfigure 0x40001150 No schedule configured for the task.
dForTheTask
theDongleIsExpiried 0x40001151 Dongle has expired.
dongleException 0x40001152 Dongle exception.
invalidKey 0x40001153 Invalid authorization service key.
decryptionFailed 0x40001154 Decrypting authorization service failed.
encryptionFailed 0x40001155 Encrypting authorization service failed.
AuthorizeServiceRespo 0x40001156 Authorization service response exception.
nseError
incorrectParameter 0x40001157 Authorization service parameters error.
operationFailed 0x40001158 Operating authorization service error.
noAnalysisResourceOr 0x40001159 No cloud analytic resources or no data in the list
NoDataInTheListLibrary library.
calculationException 0x4000115A Calculation exception.
allocatingList 0x4000115B Allocating list.
thisOperationIsNotSup 0x4000115C This operation is not supported by the cloud
portedByTheCloudAnal analytic serice.
ytics

352
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


theCloudAnalyticsIsInt 0x4000115D The operation of cloud analytic serice is
errupted interrupted.
theServiceIsNotReady 0x4000115E The service is not ready.
searchingForExternalA 0x4000115F Searching external interfaces failed.
piFailed
noOnlineNode 0x40001160 No node is online.
noNodeAllocated 0x40001161 No allocated node.
noMatchedList 0x40001162 No matched list.
allocatingFailedTooMa 0x40001163 Allocation failed. Too many lists of big data
nyFacePictureLists service.
searchIsNotCompleted 0x40001164 Current searching is not completed. Search
SearchAgain again.
allocatingListIsNotCom 0x40001165 Allocating list is not completed.
pleted
searchingForCloudAnal 0x40001166 Searching cloud analytic serice overtime.
yticsResultsFailed
noDataOfTheCurrentLi 0x40001167 No data in the current library. Make sure there
braryFound is data in the Hbase.
noFacePictureLibraryIs 0x40001168 No face picture library is armed for big data
Armed service.
noAvailableDataSlicing 0x40001169 Invalid standard version information.
VersionInformationAr
mFirstAndSliceTheData
duplicatedOperationDa 0x4000116A Slicing failed. Duplicated operation.
taSlicingIsExecuting
slicinDataFailedNoArm 0x4000116B Slicing failed. No arming information in the face
edFacePictureLibrary big data.
GenerateBenchmarkFil 0x4000116C Generating sliced file failed. Slice again.
eFailedSlicingAgain
NonprimaryNodeIsPro 0x4000116D Slicing is not allowed by the backup node.
hibitedFromSlcingData
NoReadyNodeToCluste 0x4000116E Creating the cluster failed. No ready node.
rServers

353
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


NodeManagementServ 0x4000116F The node management server is offline.
iceIsOffline
theCamera(s)OfTheCo 0x40001170 Some cameras in control center are already
ntrolCenterAreAlready armed. Disarm them and try again.
Armed.DisarmThemFir
st
theCamera(s)OfTheAre 0x40001171 Some cameras in this area are already armed.
aAreAlreadyArmed.Dis Disarm them and try again.
armThemFirst
configuringHigh- 0x40001172 Configuring high frequency people detection
frequencyPeopleDetect failed.
ionFailed
searchingForHigh- 0x40001173 Searching detection event logs of high-
frequencyPeopleDetect frequency people detection failed.
ionLogsFailed.
gettingDetailsOfSearch 0x40001174 Getting the search result details of frequently
edHigh- appeared person alarms failed.
frequencyPeopleDetect
ionLogsFailed.
theArmedCamerasAlre 0x40001175 Some cameras in control center are already
adyExistInTheControlC armed.
enter
disarmingFailedTheCa 0x40001177 Disarming failed. The camera is not armed.
meraIsNotArmed
noDataReturned 0x40001178 No response is returned by the big data service.
preallocFailure 0x40001179 Pre-​allocating algorithm resource failed.
overDogLimit 0x4000117A Configuration failed. No more resources can be
pre-allocated.
analysisServicesDoNot 0x4000117B Not supported.
Support
commandAndDispatch 0x4000117C Scheduling service of cloud analytic serice error.
ServiceError
engineModuleError 0x4000117D Engine module of cloud analytic serice error.

354
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


streamingServiceError 0x4000117E Streaming component of cloud analytic serice
error.
faceAnalysisModuleErr 0x4000117F Face analysis module of cloud analytic serice
or error.
vehicleAnalysisModule 0x40001180 Vehicle pictures analytic module of cloud
Error analytic serice error.
videoStructuralAnalysis 0x40001181 Video structuring module of cloud analytic
ModuleError serice error.
postprocessingModule 0x40001182 Post-processing module of cloud analytic serice
Error error.
frequentlyAppearedPe 0x40001183 Frequently appeared person alarm is already
rsonAlarmIsAlreadyCo armed for blocklist library.
nfiguredForListLibrary
creatingListLibraryFaile 0x40001184 Creating list library failed.
d
invalidIdentiryKeyOfLis 0x40001185 Invalid identity key of list library.
tLibrary
noMoreDevicesCanBe 0x40001186 No more camera can be added.
Armed
settingAlgorithmTypeF 0x40001187 Allocating task resource failed.
orDeviceFailed
gettingHighFrequencyP 0x40001188 Setting frequently appeared person alarm
ersonDetectionAlarmIn failed.
formationFailed
invalidSearchConfition 0x40001189 Invalid result.
theTaskIsNotComplete 0x4000118B The task is not completed.
d
resourceOverRemainLi 0x4000118C No more resource can be pre-allocated.
mit
frequentlyAppearedPe 0x4000118D The frequently appeared person alarm of this
rsonAlarmIs camera is configured. Delete the arming
AlreadyConfiguredForT information and try again.
heCameraDisarmFirstA
ndTryAgain

355
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


switchtimedifflesslimit 0x4000123b Time difference between power on and off
should be less than 10 minutes.
associatedFaceLibNum 0x40001279 Maximum number of linked face picture
OverLimit libraries reached.
noMorePeopleNumCh 0x4000128A Maximum number of people number changing
angeRulesAdded rules reached.
noMoreViolentMotion 0x4000128D Maximum number of violent motion rules
RulesAdded reached.
noMoreLeavePositionR 0x4000128E Maximum number of leaving position rules
ulesAdded reached.
SMRDiskNotSupportRa 0x40001291 SMR disk does not support RAID.
id
OnlySupportHikAndCus 0x400012A3 IPv6 camera can only be added via Device
tomProtocol Network SDK or custom protocols.
vehicleEnginesNoReso 0x400012A6 Insufficient vehicle engine resources.
urce
noMoreRunningRulesA 0x400012A9 Maximum number of running rules reached.
dded
noMoreGroupRulesAd 0x400012AA Maximum number of people gathering rules
ded reached.
noMoreFailDownRules 0x400012AB Maximum number of people falling down rules
Added reached.
noMorePlayCellphone 0x400012AC Maximum number of playing cellphone rules
RulesAdded reached.
ruleEventTypeDuplicat 0x400012C8 Event type duplicated.
e
noMoreRetentionRules 0x400015AD Maximum number of people retention rules
Added reached.
noMoreSleepOnDutyR 0x400015AE Maximum number of sleeping on duty rules
ulesAdded reached.
polygonNotAllowCrossi 0x400015C2 Polygons are not allowed to cross.
ng

356
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


configureRuleBeforeAd 0x400015F8 Advanced parameters fail to be configured as
vanceParam no rule is configured, please configure rule
information first.
behaviorCanNotPackTo 0x40001603 The behavior model cannot be packaged as a
Pic picture algorithm.
noCluster 0x40001608 No cluster created.
NotAssociatedWithOw 0x400019C1 Current channel is not linked.
nChannel
AITargetBPCaptureFail 0x400019C5 Capturing reference picture for AI target
comparison failed.
AITargetBPToDSPFail 0x400019C6 Sending reference picture to DSP for AI target
comparison failed.
AITargetBPDuplicateNa 0x400019C7 Duplicated name of reference picture for AI
me target comparison.
audioFileNameWrong 0x400019D0 Incorrect audio file name.
audioFileImportFail 0x400019D1 Importing audio file failed.
NonOperationalStandb 0x400019F0 Non-​operational hot spare.
yMachine
MaximumNumberOfD 0x400019F1 The maximum number of devices reached.
evices
StandbyMmachineCan 0x400019F2 The hot spare cannot be deleted.
notBeDeleted
alreadyRunning 0x40002026 The application program is running.
notRunning 0x40002027 The application program is stopped.
packNotFound 0x40002028 The software packet does not exist.
alreadyExist 0x40002029 The application program already exists.
noMemory 0x4000202A Insufficient memory.
invalLicense 0x4000202B Invalid License.
noClientCertificate 0x40002036 The client certificate is not installed.
noCACertificate 0x40002037 The CA certificate is not installed.

357
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


authenticationFailed 0x40002038 Authenticating certificate failed. Check the
certificate.
clientCertificateExpired 0x40002039 The client certificate is expired.
clientCertificateRevocat 0x4000203A The client certificate is revoked.
ion
CACertificateExpired 0x4000203B The CA certificate is expired.
CACertificateRevocatio 0x4000203C The CA certificate is revoked.
n
connectFail 0x4000203D Connection failed.
loginNumExceedLimit 0x4000203F No more user can log in.
HDMIResolutionIllegal 0x40002040 The HDMI video resolution cannot be larger
than that of main and sub stream.
hdFormatFail 0x40002049 Formatting HDD failed.
formattingFailed 0x40002056 Formatting HDD failed.
encryptedFormattingFa 0x40002057 Formatting encrypted HDD failed.
iled
wrongPassword 0x40002058 Verifying password of SD card failed. Incorrect
password.
audioIsPlayingPleaseW 0x40002067 Audio is playing. Please wait.
ait
twoWayAudioInProgre 0x40002068 Two-way audio in progress. Please wait.
ssPleaseWait
calibrationPointNumFu 0x40002069 The maximum number of calibration points
ll reached.
completeTheLevelCalib 0x4000206A The level calibration is not set.
rationFirst
completeTheRadarCam 0x4000206B The radar-camera calibration is not set.
eraCalibrationFirst
pointsOnStraightLine 0x4000209C Calibrating failed. The calibration points cannot
be one the same line.
TValueLessThanOrEqua 0x4000209D Calibration failed. The T value of the calibration
lZero points should be larger than 0.

358
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


HBDLibNumOverLimit 0x40002092 The number of human body picture libraries
reaches the upper limit
theShieldRegionError 0x40002093 Saving failed. The shielded area should be the
ground area where the shielded object is
located.
theDetectionAreaError 0x40002094 Saving failed. The detection area should only
cover the ground area.
invalidLaneLine 0x40002096 Saving failed. Invalid lane line.
enableITSFunctionOfTh 0x400020A2 Enable ITS function of this channel first.
isChannelFirst
noCloudStorageServer 0x400020C5 No cloud storage server
NotSupportWithVideo 0x400020F3 This function is not supported.
Task
noDetectionArea 0x400050df No detection area
armingFailed 0x40008000 Arming failed.
disarmingFailed 0x40008001 Disarming failed.
clearAlarmFailed 0x40008002 Clearing alarm failed.
bypassFailed 0x40008003 Bypass failed.
bypassRecoverFailed 0x40008004 Bypass recovery failed.
outputsOpenFailed 0x40008005 Opening relay failed.
outputsCloseFailed 0x40008006 Closing relay failed.
registerTimeOut 0x40008007 Registering timed out.
registerFailed 0x40008008 Registering failed.
addedByOtherHost 0x40008009 The peripheral is already added by other
security control panel.
alreadyAdded 0x4000800A The peripheral is already added.
armedStatus 0x4000800B The partition is armed.
bypassStatus 0x4000800C Bypassed.
zoneNotSupport 0x4000800D This operation is not supported by the zone.
zoneFault 0x4000800E The zone is in fault status.

359
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


pwdConflict 0x4000800F Password conflicted.
audioTestEntryFailed 0x40008010 Enabling audio test mode failed.
audioTestRecoveryFaile 0x40008011 Disabling audio test mode failed.
d
addCardMode 0x40008012 Adding card mode.
searchMode 0x40008013 Search mode.
addRemoterMode 0x40008014 Adding keyfob mode.
registerMode 0x40008015 Registration mode.
exDevNotExist 0x40008016 The peripheral does not exist.
theNumberOfExDevLi 0x40008017 No peripheral can be added.
mited
sirenConfigFailed 0x40008018 Setting siren failed.
chanCannotRepeatedB 0x40008019 This channel is already linked by the zone.
inded
inProgramMode 0x4000801B The keypad is in programming mode.
inPaceTest 0x4000801C In pacing mode.
arming 0x4000801D Arming.
masterSlaveIsEnable 0x4000802c The main-sub relationship has taken effect, the
sub radar does not support this operation.
forceTrackNotEnabled 0x4000802d Mandatory tracking is disabled.
isNotSupportZoneConfi 0x4000802e This area does not support the zone type.
gByLocalArea
alarmLineCross 0x4000802f Trigger lines are overlapped.
zoneDrawingOutOfRan 0x40008030 The drawn zone is out of detection range.
ge
alarmLineDrawingOut 0x40008031 The drawn alarm trigger line is out of detection
OfRange range.
hasTargetInWarningAr 0x40008032 The warning zone already contains targets.
ea Whether to enable mandatory arming?
radarMoudleConnectF 0x40008033 Radar module communication failed.
ail

360
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


importCfgFilePassword 0x40008034 Incorrect password for importing configuration
Err files.
overAudioFileNumLimi 0x40008038 The number of audio files exceeds the limit.
t
audioFileNameIsLong 0x40008039 The audio file name is too long.
audioFormatIsWrong 0x4000803a The audio file format is invalid.
audioFileIsLarge 0x4000803b The size of the audio file exceeds the limit.
pircamCapTimeOut 0x4000803c Capturing of pircam timed out.
pircamCapFail 0x4000803d Capturing of pircam failed.
pircamIsCaping 0x4000803e The pircam is capturing.
audioFileHasExisted 0x4000803f The audio file already exists.
subscribeTypeErr 0x4000a016 This metadata type is not supported to be
subscribed.
EISError 0x4000A01C Electronic image stabilization failed. The smart
event function is enabled.
jpegPicWithAppendDat 0x4000A01D Capturing the thermal graphic failed. Check if
aError the temperature measurement parameters
(emissivity, distance, reflective temperature) are
configured correctly.
startAppFail / Starting running application program failed.
yuvconflict / The raw video stream conflicted.
overMaxAppNum / No more application program can be uploaded.
noFlash / Insufficient flash.
platMismatch / The platform mismatches.
emptyEventName 0x400015E0 Event name is empty.
sameEventName 0x400015E1 A same event name already exists.
emptyEventType 0x400015E2 Event type is required.
sameEventType 0x400015E3 A same event type already exists.
maxEventNameReache 0x400015E4 Maximum of events reached.
d

361
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


hotSpareNotAllowedEx 0x400015FC External storage is not allowed when hot spare
ternalStorage is enabled.
sameCustomProtocolN 0x400015FD A same protocol name already exists.
ame
maxPTZTriggerChannel 0x400015FE Maximum of channels linked with PTZ reached.
Reached
POSCanotAddHolidayPl 0x400015FF No POS events during holidays.
an
eventTypeIsTooLong 0x40001600 Event type is too long.
eventNameIsTooLong 0x40001601 Event name is too long.
PerimeterEnginesNoRe 0x40001602 No more perimeter engines.
source
invalidProvinceCode 0x40001607 Invalid province code.

StatusCode=5

Sub Status Code Error Code Description


badXmlFormat 0x50000001 Invalid XML format.

StatusCode=6

Sub Status Code Error Code Description


badParameters 0x60000001 Invalid parameter.
badHostAddress 0x60000002 Invalid host IP address.
badXmlContent 0x60000003 Invalid XML content.
badIPv4Address 0x60000004 Invalid IPv4 address.
badIPv6Address 0x60000005 Invalid IPv6 address.
conflictIPv4Address 0x60000006 IPv4 address conflicted.
conflictIPv6Address 0x60000007 IPv6 address conflicted.
badDomainName 0x60000008 Invalid domain name.
connectSreverFail 0x60000009 Connecting to server failed.

362
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


conflictDomainName 0x6000000A Domain name conflicted.
badPort 0x6000000B Port number conflicted.
portError 0x6000000C Port error.
exportErrorData 0x6000000D Importing data failed.
badNetMask 0x6000000E Invalid sub-net mask.
badVersion 0x6000000F Version mismatches.
badDevType 0x60000010 Device type mismatches.
badLanguage 0x60000011 Language mismatches.
incorrentUserNameOrPasswor 0x600000012 Incorrect user name or
d password.
invalidStoragePoolOfCloudServ 0x600000013 Invalid storage pool. The
er storage pool is not configured
or incorrect ID.
noFreeSpaceOfStoragePool 0x600000014 Storage pool is full.
riskPassword 0x600000015 Risky password.
UnSupportCapture 0x600000016 Capturing in 4096*2160 or
3072*2048 resolution is not
supported when H.264+ is
enabled.
userPwdLenUnder8 0x60000023 At least two kinds of
characters, including digits,
letters, and symbols, should be
contained in the password.
userPwdNameSame 0x60000025 Duplicated password.
userPwdNameMirror 0x60000026 The password cannot be the
reverse order of user name.
beyondARGSRangeLimit 0x60000027 The parameter value is out of
limit.
DetectionLineOutofDetectionR 0x60000085 The rule line is out of region.
egion

363
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


DetectionRegionError 0x60000086 Rule region error. Make sure
the rule region is convex
polygon.
DetectionRegionOutOfCountin 0x60000087 The rule region must be
gRegion marked as red frame.
PedalAreaError 0x60000088 The pedal area must be in the
rule region.
DetectionAreaABError 0x60000089 The detection region A and B
must be in the a rule frame.
ABRegionCannotIntersect 0x6000008a Region A and B cannot be
overlapped.
customHBPIDError 0x6000008b Incorrect ID of custom human
body picture library
customHBPIDRepeat 0x6000008c Duplicated ID of custom human
body picture library
dataVersionsInHBDLibMismatc 0x6000008d Database versions mismatches
hes of human body picture library
invalidHBPID 0x6000008e Invalid human body picture PID
invalidHBDID 0x6000008f Invalid ID of human body
picture library
humanLibraryError 0x60000090 Error of human body picture
library
humanLibraryNumError 0x60000091 No more human body picture
library can be added
humanImagesNumError 0x60000092 No more human body picture
can be added
noHumanInThePicture 0x60000093 Modeling failed, no human
body in the picture
analysisEnginesNoResourceErr 0x60001000 No analysis engine.
or
analysisEnginesUsageExcced 0x60001001 The engine usage is
overloaded.

364
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


PicAnalysisNoResourceError 0x60001002 No analysis engine provided for
picture secondary recognition.
analysisEnginesLoadingError 0x60001003 Initializing analysis engine.
analysisEnginesAbnormaError 0x60001004 Analysis engine exception.
analysisEnginesFacelibImportin 0x60001005 Importing pictures to face
g picture library. Failed to edit
analysis engine parameters.
analysisEnginesAssociatedChan 0x60001006 The analysis engine is linked to
nel channel.
smdEncodingNoResource 0x60001007 Insufficient motion detection
encoding resources.
smdDecodingNoResource 0x60001008 Insufficient motion detection
decoding resources.
diskError 0x60001009 HDD error.
diskFull 0x6000100a HDD full.
facelibDataProcessing 0x6000100b Handling face picture library
data.
capturePackageFailed 0x6000100c Capturing packet failed.
capturePackageProcessing 0x6000100d Capturing packet.
noSupportWithPlaybackAbstra 0x6000100e This function is not supported.
ct Playback by video synopsis is
enabled.
insufficientNetworkBandwidth 0x6000100f Insufficient network
bandwidth.
tapeLibNeedStopArchive 0x60001010 Stop the filing operation of
tape library first.
identityKeyError 0x60001011 Incorrect interaction command.
identityKeyMissing 0x60001012 The interaction command is
lost.
noSupportWithPersonDensityD 0x60001013 This function is not supported.
etect The people density detection is
enabled.

365
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


ipcResolutionOverflow 0x60001014 The configured resolution of
network camera is invalid.
ipcBitrateOverflow 0x60001015 The configured bit rate of
network camera is invalid.
tooGreatTimeDifference 0x60001016 Too large time difference
between device and server.
noSupportWithPlayback 0x60001017 This function is not supported.
Playback is enabled.
channelNoSupportWithSMD 0x60001018 This function is not supported.
Motion detection is enabled.
channelNoSupportWithFD 0x60001019 This function is not supported.
Face capture is enabled.
illegalPhoneNumber 0x6000101a Invalid phone number.
illegalCertificateNumber 0x6000101b Invalid certificate No.
linkedCameraOutLimit 0x6000101c Connecting camera timed out.
achieveMaxChannelLimit 0x6000101e No more channels are allowed.
humanMisInfoFilterEnabledCha 0x6000101f No more channels are allowed
nNumError to enable preventing false
alarm.
humanEnginesNoResource 0x60001020 Insufficient human body
analysis engine resources.
taskNumberOverflow 0x60001021 No more tasks can be added.
collisionTimeOverflow 0x60001022 No more comparison duration
can be configured.
invalidTaskID 0x60001023 Invalid task ID.
eventNotSupport 0x60001024 Event subscription is not
supported.
invalidEZVIZSecretKey 0x60001034 Invalid verification code for Hik-
Connect.
needDoubleVerification 0x60001042 Double verification required
noDoubleVerificationUser 0x60001043 No double verification user

366
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


timeSpanNumOverLimit 0x60001044 Max. number of time buckets
reached
channelNumOverLimit 0x60001045 Max. number of channels
reached
noSearchIDResource 0x60001046 Insufficient searchID resources
noSupportDeleteStrangerLib 0x60001051 Deleting stranger library is not
supported
noSupportCreateStrangerLib 0x60001052 Creating stranger library is not
supported
behaviorAnalysisRuleInfoError 0x60001053 Abnormal event detection rule
parameters error.
safetyHelmetParamError 0x60001054 Hard hat parameters error.
OneChannelOnlyCanBindOneE 0x60001077 No more engines can be
ngine bound.
engineTypeMismatch 0x60001079 Engine type mismatched.
badUpgradePackage 0x6000107A Invalid upgrade package.
AudioFileNameDuplicate 0x60001135 Duplicated audio file name.
CurrentAudioFileAIRuleInUseAl 0x60001136 The AI rule linkage related to
readyDelete current audio file has been
deleted.
TransitionUseEmmc 0x60002000 Starting device failed. The
EMMC is overused.
AdaptiveStreamNotEnabled 0x60002001 The stream self-​adaptive
function is not enabled.
AdaptiveStreamAndVariableBit 0x60002002 Stream self-​adptive and
rateEnabled variable bitrate function cannot
be enabled at the same time.
noSafetyHelmetRegion 0x60002023 The hard hat detection area is
not configured (if users save
their settings without
configuring the arming area,
they should be prompted to
configure one).

367
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


unclosedSafetyHelmet 0x60002024 The hard hat detection is
enabled (If users save their
settings after deleting the
arming area, they should be
prompted to disable hard hat
detection first and then delete
the arming area).
width/ 0x6000202C The width/height ratio of the
heightRatioOfPictureError uploaded picture should be in
the range from 1:2 to 2:1.
PTZNotInitialized 0x6000202E PTZ is not initialized.
PTZSelfChecking 0x6000202F PTZ is self-checking.
PTZLocked 0x60002030 PTZ is locked.
advancedParametersError 0x60002031 Auto-switch interval in
advanced parameters cannot
be shorter than parking
tolerance for illegal parking
detection in speed dome rule
settings.
resolutionError 0x60005003 Invalid resolution
deployExceedMax 0x60006018 The arming connections exceed
the maximum number.
detectorTypeMismatch 0x60008000 The detector type mismatched.
nameExist 0x60008001 The name already exists.
uploadImageSizeError 0x60008016 The size of the uploaded
picture is larger than 5 MB.
laneAndRegionOverlap / The lanes are overlapped.
unitConfigurationNotInEffect / Invalid unit parameter.
ruleAndShieldingMaskConflict / The line-rule region overlaps
with the shielded area.
wholeRuleInShieldingMask / There are complete
temperature measurement
rules in the shielded area.

368
Device Network SDK (ANPR) Developer Guide

Sub Status Code Error Code Description


LogDiskNotSetReadOnlyInGrou 0x60001100 The log HDD in the HDD group
pMode cannot be set to read-only.
LogDiskNotSetReDundancyInGr 0x60001101 The log HDD in the HDD group
oupMode cannot be set to redundancy.
holidayNameContainChineseOr 0x60001080 No Chinese and special
SpecialChar characters allowed in holiday
name.
genderValueError 0x60001081 Invalid gender.
certificateTypeValueError 0x60001082 Invalid identification type.
personInfoExtendValueIsTooLo 0x60001083 The length of customized tags
ng exceeds limit.
personInfoExtendValueContain 0x60001084 Invalid characters are not
sInvalidChar allowed in customized tags of
the face picture library.
excelHeaderError 0x60001085 Excel header error.
intelligentTrafficMutexWithHig 0x60008014 Please disable all functions of
hFrames traffic incident detection,
violation enforcement, and
traffic data collection, or adjust
the video frame rate to that
lower than 50 fps.
intelligentTrafficMutexWithHig 0x60008018 Please disable all functions of
hFramesEx traffic incident detection,
violation enforcement, traffic
data collection, and vehicle
detection, or adjust the video
frame rate to that lower than
50 fps.

StatusCode=7

SubStatusCode Error Code Description


rebootRequired 0x70000001 Reboot to take effect.

369
Device Network SDK (ANPR) Developer Guide

C.3 Error Codes Categorized by Functional Modules


The error codes returned during the text protocol integration is categorized by different functional
modules. See the error codes, error descriptions, and debugging suggestions in the table below.

Public Function Module (Error Codes Range: 0x00000000, from 0x00100001 to


0x001fffff)

Error String Error Code Description Debugging Suggestion


success 0x00000000 Succeeded.
deviceNotActivate 0x00100001 The device is not activated. Activate the device.
d
deviceNoPermissi 0x00100002 Device operation failed. No Update user's permission.
on permission.
deviceNotSupport 0x00100003 This function is not Check the device capability
supported. set and call the API
corresponding to supported
function.
deviceResourceN 0x00100004 Insufficient resources. Release resources.
otEnough
dataFormatError 0x00100005 Invalid message format.
resetError 0x00100006 Restoring to factory settings
failed. Reactivating device is
required after the device is
reboot as the Reset button
may be stuck.
parameterError 0x00100007 Incorrect parameter
0x00100100 Invalid channel Check if the channel is valid.
0x00100101 NPQ live view is not Replace streaming mode for
supported for stream stream encryption.
encryption.
0x00100102 No more channels are Reduce NPQ streaming
allowed for NPQ streaming. channels and try again.
0x00100103 The stream type is not Check the requested stream
supported. type.

370
Device Network SDK (ANPR) Developer Guide

Error String Error Code Description Debugging Suggestion


0x00100104 The number of connections Reduce the number of
exceeded limit. streaming clients and try
again.
0x00100105 Not enough bandwidth. Reduce the number of
remote streaming channels.

User Function Module (Error Codes Range: from 0x00200001 to 0x002fffff)

Error String Error Code Description Debugging Suggestion


passwordError 0x00200001 Incorrect user name or Check if the password is
password. correct.
userNameNotExi 0x00200002 The account does not Check if the account exists, or
st exist. add the account.
userNameLocked 0x00200003 The account is locked. Wait for the device to unlock.
userNumLimited 0x00200004 The number of users Log out.
allowed to log in exceeded
the upper limit.
lowPrivilege 0x00200005 No permissions for this For users operations, check
operation the following situations:
● Deleting your own account

is not allowed.
● Editing your own level or

permission is not allowed.


● Getting information about

users with higher


permission is not allowed.
● Elevating the user's level or

permission is not allowed.


For other operations, check
according to the following
measures: If operations
unrelated to user's permission
configuration failed, you can
check the user type and
permission, if not solved,
contact the developers.

371
Device Network SDK (ANPR) Developer Guide

Error String Error Code Description Debugging Suggestion


incorrentUserNa 0x00200006 Incorrect user name or Check if the configured user
meOrPassword password name and password are
matched. If not, contact the
administrator to configure
again. If the administrator
forgets the password, reset
the password of the device.
riskPassword 0x00200007 Risk password Low password strength.
Change password again.
passwordMustCo 0x00200008 The password length must Check if the password length is
ntainMorethan8C be greater than or equal to greater than or equal to 8. If
haracters 8. not, change password again.
passwordLenNo 0x00200009 The password length Check if the password length is
MoreThan16 cannot be greater than 16. greater than16. If yes, change
password again.
adminUserNotAll 0x0020000a Editing admin information Check if the edited account is
owedModify is not allowed. admin.
confirmPassword 0x0020000b Incorrect confirm Check the confirm password.
Error password.
passwordMustCo 0x0020000c The password must Check if the configured
ntainMorethan2T contain at least two or password conforms the
ypes more of followings: requirements.
numbers, lowercase,
uppercase, and special
characters.
passwordContain 0x0020000d The password cannot Check if the password contains
UserName contain the user name. the user name.
userPwdNameMi 0x0020000e The password cannot be Check if the password is
rror reversed user name. reversed user name.

372
Device Network SDK (ANPR) Developer Guide

Time Function Module (Error Codes Range: from 0x00300001 to 0x003fffff)

Error String Error Code Description Debugging Suggestion


manualAdjustmen 0x00300001 Time synchronization failed.
tFailed
NTPError 0x00300002 Invalid NTP server address. Check if the NTP server
address is valid.
timeFormatError 0x00300003 Incorrect time format Incorrect message format or
during time calibration. incorrect time format.
For example, the time in ISO
8601 format should be
"2018-02-01T19:54:04", but
the applied time is "2018-
02-01 19:54:04".
beyondTimeRang 0x00300004 The calibration time is not Get the device capability
eLimit within the time range and check if the configured
supported by the device. time is within the time
range supported by the
device.
endtimeEarlierTha 0x00300005 The start time of the validity Check if the start time and
nBegintime period cannot be later than end time are valid.
the end time.

Network Function Module (Error Codes Range: from 0x00400001 to 0x004fffff)

Error String Error Code Description Debugging Suggestion


domainNamePars 0x00400001 Parsing domain name failed.
eFailed
PPPOEConnected 0x00400002 Connecting PPPOE to the
Failed network failed.
FTPConnectedFail 0x00400003 The FTP server is
ed disconnected.
deviceIPConflicted 0x00400004 IP addresses of devices
conflicted.
libraryConnectedF 0x00400005 The image and video library
ailed is disconnected.

373
Device Network SDK (ANPR) Developer Guide

Error String Error Code Description Debugging Suggestion


fileUploadFailed 0x00400006 Uploading failed. Check if the network
connection is normal. If yes,
contact after-​sales.
storSerDownloadF 0x00400007 Downloading failed. Check if the network
ileFailed connection is normal. If yes,
contact after-​sales.
storSerDownloadF 0x00400008 The size of file downloaded Check if the network
ileSizeZero from the storage service is connection is normal. If yes,
0. contact after-​sales.
storSerNotConfig 0x00400009 Storage service is not Check if the configuration is
configured. correct.
badHostAddress 0x0040000a Host address error Check if the configuration is
correct.
badIPv4Address 0x0040000b Incorrect IPv4 address. Check if the configuration is
correct.
badIPv6Address 0x0040000c Incorrect IPv6 address. Check if the configuration is
correct.
conflictIPv4Addre 0x0040000d IPv4 address conflict. Check the configuration
ss status of IPV4 in the
network.
conflictIPv6Addre 0x0040000e IPv6 address conflict Check the configuration
ss status of IPV6 in the
network.
badDomainName 0x0040000f Incorrect domain name. Check if the configuration is
correct.
connectSreverFail 0x00400010 Connecting to server failed. Check if the network is
normal and check if the
configuration is correct.
conflictDomainNa 0x00400011 Domain name conflict. Check if the configuration is
me correct.
badPort 0x00400012 Port conflict. Check if the configuration is
correct.
portError 0x00400013 Port error Check if the configuration is
correct.

374
Device Network SDK (ANPR) Developer Guide

Error String Error Code Description Debugging Suggestion


badNetMask 0x00400014 Subnet mask error Check if the configuration is
correct.
badVersion 0x00400015 Version mismatch Check if the version is
correct.
badDns 0x00400016 DNS error Check if the configuration is
correct.
badMTU 0x00400017 MTU error Check if the configuration is
correct.
badGateway 0x00400018 Wrong gateway Check if the configuration is
correct.
urlDownloadFail 0x00400019 Downloading via URL failed. Check if the network is
normal and check if the URL
is correct.
deployExceedMax 0x0040001a The number of armed Get the supported
channels exceeds the maximum number of
maximum number of arming and the number of
connections. armed channels.

Maintenance Function Module (Error Codes Range: from 0x00500001 to 0x005fffff)

Error String Error Code Description Debugging Suggestion


upgradeXMLForm 0x00500001 Incorrect XML upgrading Check if the upgrade file is
atError request. correct. If the file is correct,
try the local upgrade.
upgradeContentEr 0x00500002 Incorrect upgrading request Check if the upgrade file is
ror content. correct. If the file is correct,
try the local upgrade.
noUpgradePermis 0x00500003 No upgrade permission. Switch to admin account or
sion ask admin for advanced
operation permission.
upgrading 0x00500004 Upgrading… Wait for the upgrade to
complete.
receiveUpgradePa 0x00500005 Receiving upgrade package Check if the network is
ckageError failed. normal.

375
Device Network SDK (ANPR) Developer Guide

Error String Error Code Description Debugging Suggestion


upgradePackageL 0x00500006 Upgrade package language Check the language type of
anguageMismatch mismatch. upgrade package and the
device.
upgradePackageM 0x00500007 Upgrade file does not match Check the type of upgrade
ismatch with the device type. package and device.
OEMCodeMismat 0x00500008 Upgrade package error. The Contact after-​sales to get
ch OEM code mismatch. the correct upgrade
package.
versionMismatch 0x00500009 Upgrade file version Contact after-​sales to get
mismatch. the correct upgrade
package.
upgradeHalfFailed 0x0050000c Error occurred in the
halfway of device
upgrading. Flash error or
cache error.
deviceParameterI 0x0050000d Importing device
mportFailed parameters failed. Device
model, version, or platform
mismatches.
deviceEncryptionE 0x0050000e Upgrade package
rror mismatches. Device
encryption error.
SDCardFormatErr 0x00500025 Formatting SD card failed.
or
SDCardLoadFailed 0x00500026 Loading page failed after
the SD card is inserted.
NASFailed 0x00500027 Mounting NAS failed.
hardDiskError 0x00500028 HDD exception (possible
reasons: HDD does not
exist, incompatible,
encrypted, insufficient
capacity, formatting
exception, array exception,
array incompatible, etc.)
upgradeError 0x00500030 Upgrade error

376
Device Network SDK (ANPR) Developer Guide

Error String Error Code Description Debugging Suggestion


upgradePackageSi 0x00500032 Mismatch between the
zeMismath actual size of the
downloaded upgrade
package and the size in the
upgrading request.
upgradePackageSi 0x00500033 The size of the package
zeExceeded exceeded that of the
partition.
domainNamePars 0x00500034 Parsing the domain name of
eFailedForDownlo the address for
ad downloading failed.
netWorkUnstable 0x00500035 Unstable network.
Downloading timed out or
the maximum number of
attempts reached.
digestValueMisma 0x00500036 Mismatched digest value.
tch
signatureVerifyFai 0x00500037 Verifying the signature
led failed.
innerFormatError 0x00500038 Incorrect inner format of
the upgrade package.
memoryNotEnoug 0x00500039 Insufficient memory.
h
burnFailed 0x0050003a Burning firmware failed.
unknownError 0x0050003b Unknown error occurred in
the underlying APIs.
userCancel 0x0050003c User requested cancel of
current operation.
systemResume 0x0050003d Upgrading failed. You can
resume via the backup
system or minimum system.
0x00500080 Upgrade file is not found. Check if the upgrade
package path is too long or
if there is a correct upgrade

377
Device Network SDK (ANPR) Developer Guide

Error String Error Code Description Debugging Suggestion


package under the upgrade
package path.
0x00500081 Upgrade file does not match Select the upgrade package
with the engine type. matched with the device
engine type.
0x00500082 Parsing camera domain Confirm if the device is
name failed. correctly configured DNS
service and if the camera
domain is valid.
0x00500083 Camera network is Confirm if the local network
unreachable. can access the network
where the added channel
located.

Live View Module (Error Codes Range: from 0x00600001 to 0x006fffff)

Error String Error Code Description Debugging Suggestion


liveViewFailed 0x00600001 Live view failed. The
number of streaming
channels exceeded limit.
0x00600002 Request packaging format Check the packaging format
exception. of requested live view.
0x00600003 NPQ will be unavailable When EHome 2.x is enable,
after enabling EHome 2.x. use other live view mode.
0x00600005 NPQ live view is not User other live view mode
supported for channel-zero. for channel-zero.
0x00600007 Only virtual stream Switch to virtual strem.
supports NPQ live view.
0x0060000A The IP channel is offline. Check if the IP channel is
online and try again.
0x0060000B Live view transcoding is not Use other stream type for
supported by the device. live view.
0x0060000C Channel-zero is not Enable channel-zero before
enabled. starting live view of
channel-zero.

378
Device Network SDK (ANPR) Developer Guide

Error String Error Code Description Debugging Suggestion


0x0060000D Transcoding capability Reduce camera resolution
exceeded limit. or the number of
transcoding channels.
0x00600010 The channel does not have Use main stream mode for
sub-stream. live view.
0x00600011 NPQ live view is not Switch to other live view
supported by the device. mode.
0x00600012 NPQ function is disabled. Enable NPQ function or
switch to other live view
mode.

Playback Module (Error Codes Range: from 0x00700001 to 0x007fffff)

Error String Error Code Description Debugging Suggestion


0x00700001 Playback failed. Up to one
channel's playback is
supported.
0x00700002 The speed of playback Reduce the playback speed.
displayed on video wall is
not supported.
0x00700003 The transmission rate of Reduce the transmission
playback stream is too high. rate of playback stream.
0x00700004 The encoding type of Provide the stream with
playback stream is not encoding type supported by
supported. device.
0x00700005 The container format of Provide the stream with
playback stream is not container format supported
supported. by device.
0x00700007 Exception occurred when
decoding playback stream
Possible reasons: displaying
on video wall exception,
image exception, display
exception, decoding
exception, image is stuck,

379
Device Network SDK (ANPR) Developer Guide

Error String Error Code Description Debugging Suggestion


black screen, invalid stream
type, live view is stuck,
audio decoding exception,
and blurred screen.
0x00700008 Playback video does not Search again or check if
exit, or searching failed. HDD is normal.
0x00700009 Playback time parameter Check if the time period of
error. searched video is correct
and try again.
0x0070000A Invalid video type. Select the correct video
type to search.
0x0070000B Invalid time type. Select the correct time type
to search.
0x0070000C Invalid event parameter. Select the correct event
parameter to search.
0x0070000D Invalid event type. Select the correct event
type to search.
0x0070000E The device does not Select the non smart search
support smart search. mode to search.
0x0070000F Invalid smart event type. Select the correct smart
event type to search.
0x00700010 Invalid dynamic analysis Select the correct sensitivity
sensitivity. to search video.
0x00700011 Reverse playback is not Select the correct playback
supported. mode.
0x00700012 Invalid file status. Select the correct file status
to search.
0x00700013 Invalid searching start Use the correct searching
position. start position to search.
0x00700014 Invalid maximum number of Use the correct maximum
searching. number of searching to
search.

380
Device Network SDK (ANPR) Developer Guide

Capture Module (Error Codes Range: from 0x00800001 to 0x008fffff)

Error String Error Code Description Debugging Suggestion


0x00800001 Manual capture failed.

Two-Way Audio Module (Error Codes Range: from 0x00900001 to 0x009fffff)

Error String Error Code Description Debugging Suggestion


startFailed 0x00900001 Starting two-way audio
failed. Audio loss or driver
error.
codingFormatNot 0x00900002 The encoding format of the Check or capture the
Match intercom is inconsistent, packets on the platform,
and the negotiation fails then analyze if the audio
encoding formats
negotiated by both sides
are consistent.
dialedIsBusy 0x00900003 The intercom party is Check if the intercom party
already in the intercom and is already in the intercom, if
can no longer respond to not, get the protocol
the intercom message and analyze the
response message.
destinationLongN 0x00900004 The requested destination Check or capture the
umberError long number is wrong packets on the platform,
then analyze the long
number.

Video Storage Module (Error Codes Range: from 0x00a00001 to 0x00afffff)

Error String Error Code Description Debugging Suggestion


videoSearchFailed 0x00a00001 Searching videos failed. No resource stored in the
device.
notFindStorageM 0x00a00002 No storage medium found.
edium
videoDownloadFa 0x00a00003 Downloading videos failed.
iled

381
Device Network SDK (ANPR) Developer Guide

Picture Storage Module (Error Codes Range: from 0x00b00001 to 0x00bfffff)

Error String Error Code Description Debugging Suggestion


0x00b00001 Searching pictures failed. No picture resource.

IO Function Modele (Error Codes Range: from 0x00c00001 to 0x00cfffff)

Error String Error Code Description Debugging Suggestion


0x00c00001 Invalid alarm input No.
0x00c00002 Invalid alarm output No.

Event Function Module (Error Codes Range: from 0x00d00001 to 0x00dfffff)

Error String Error Code Description Debugging Suggestion


0x00d00001 Incorrect event rule. Refer to the manual for
correct configuration.

Parking Service Module (Error Codes Range: from 0x00e00001 to 0x00efffff)

Error String Error Code Description Debugging Suggestion


0x00e00001 The vehicle with parking Parking pass is created by
pass already exists. license plate, you need to
check if the parking pass for
this license plate already
created.
0x00e00002 The license plate number is
required.

General Function Module (Error Codes Range: from 0x00f00001 to 0x00ffffff)

Error String Error Code Description Debugging Suggestion


noMemory 0x00f00001 Insufficient device memory Check the free memory
(heap space allocation and send logs to the
failed). developer for analysis.
deviceBusy 0x00f00002 The device is busy or the Send logs to the developers
device is not responding. for analysis.

382
Device Network SDK (ANPR) Developer Guide

Error String Error Code Description Debugging Suggestion


For fingerprint collection,
face collection, file
application, and file
uploading services, check if
the last operation is
completed.
notSupport 0x00f00003 The URL is not supported by Capture the packets, check
the device. if the applied URL exists in
the PMP platform. If yes,
send the URL to the
developer for analysis.
methodNotAllowe 0x00f00004 HTTP method is not allowed. Capture the packets, check
d the method corresponding
to the URL in the PMP
platform.
invalidOperation 0x00f00005 Invalid operation of API
command.
IDNotexist 0x00f00006 The ID does not exist (the Capture the packets and
URL should contain ID, but check if the ID included in
the actual URL does not the URL is correct.
contain the ID).
invalidID 0x00f00007 Invalid ID (the ID in the URL Capture the packets and
exceeds the capability set or check if the ID included in
the ID format is invalid). the URL is correct.
Get the capabilities of URL
and check the ID range.
invalidIURL 0x00f00008 The content after the "? " in Capture the packets and
the URL is wrong. check if the URL is correct.
deviceAckTimeOu 0x00f00009 Device response timed out. If the communication with
t the external module timed
out, check if the external
module is offline.
When the above situation
is eliminated, send logs to
the developer for analysis.
badXmlFormat 0x00f0000a XML format error

383
Device Network SDK (ANPR) Developer Guide

Error String Error Code Description Debugging Suggestion


badJsonFormat 0x00f0000b JSON format error
badURLFormat 0x00f0000c URL format error Get the URL and check if it
is correct.
badXmlContent 0x00f0000d XML message error:
● The message contains

only URL but no message


body
● The required node is not

configured.
● Node value exceeds the

range limit (incorrect node


value).
badJsonContent 0x00f0000e JSON message error:
● The message contains

only URL but no message


body
● The required node is not

configured.
● Node value exceeds the

range limit (incorrect node


value).
messageParamete 0x00f0000f The required node does not
rsLack exists.
invalidSearchCond 0x00f00010 Invalid search condition, Check if searchID is correct.
itions search again.
operObjectNotExi 0x00f00011 The object does not exist Check if door lock is
st (for the operations about connected.
door, alarm IO, the object is
not added).

384
Device Network SDK (ANPR) Developer Guide

Door Control Module (Error Codes Range: from 0x01000001 to 0x010ffffff)

Error String Error Code Description Debugging Suggestion


multiAuthenticati 0x01000001 Multi-​factor authentication
on Failed status operation failed.
securityModuleOff 0x01000002 The safety door control Check if the safety door
line module is offline and fails to control is offline.
open the door.

Schedule Template Module (Error Codes Range: from 0x01100001 to 0x011fffff)

Error String Error Code Description Debugging Suggestion


planNumberConfli 0x01100001 Plan number conflict.
ct
timeOverlap 0x01100002 Time period conflict. Check the message to find
out if there is a time overlap
of different time periods in
one day.

Person Information Module (Error Codes Range: from 0x01200001 to 0x012fffff)

Error String Error Code Description Debugging Suggestion

Certificate Module (Error Codes Range: from 0x01300001 to 0x013fffff)

Error String Error Code Description Debugging Suggestion

Security Function Module (Error Codes Range: from 0x01400001 to 0x014fffff)

Error String Error Code Description Debugging Suggestion


decryptFailed 0x01400001 Decryption failed, when The import secret key
decrypting sensitive should be consistent with
the export.

385
Device Network SDK (ANPR) Developer Guide

Error String Error Code Description Debugging Suggestion


information fields or
importing data files.
certificateNotmat 0x01400003 Certificates mismatched, The public and private keys
ch SSL/TLS public and private need to be generated at the
keys need to be matched in same time.
pairs.
notActivated 0x01400004 Device is not activated. Activate the device by tools
such as SADP before use.
hasActivated 0x01400005 Device has been activated.
forbiddenIP 0x01400006 IP address is banned IP address is banned when
illegal login attempts exceed
the upper limit.
bondMacAddress 0x01400007 The MAC address does not Check if the specific MAC
NotMatch match the user. address has linked to the
user.
bondIpAddressNo 0x01400008 IP address does not match Check if the specific IP
tMatch the user. address has linked to the
user.
badAuthorization 0x01400009 Triggered by illegal login Incorrect password
triggered the illegal login.

Advertising Function Module (Error Codes Range: from 0x01500001 to 0x015fffff)

Error String Error Code Description Debugging Suggestion


materialDownloa 0x01500001 Material download failed. ● Check if the network
dFailed connection is normal.
● Check if the device is
running normally.
● Check the log print.
materialNumberIs 0x01500002 The number of materials in Check if the number of
Over the program list reached materials in applied
the upper limit. program list exceeded the
limit.

386
Device Network SDK (ANPR) Developer Guide

C.4 Region Code


Here is the code list of the regions that are supported by the algorithm library for license plate
recognition.

region (Region Code) Description


ER Russian Region
EU Europe Region
EUandCIS EU&CIS
ME Middle East
other Other
APAC Asia-​Pacific Region
AFandAM Africa and America
THAandLA Thailand and Laos
HKandMO Hong Kong and Macao
India India
All All regions

C.5 Country/Region Code


Here is the code list of the countries and regions that are supported by the algorithm library for
license plate recognition.

CRIndex (Country/Region Code) Description


0 Not supported by the algorithm
1 Czech Republic
2 France
3 Germany
4 Spain
5 Italy
6 Netherlands
7 Poland

387
Device Network SDK (ANPR) Developer Guide

CRIndex (Country/Region Code) Description


8 Slovakia
9 Belarus
10 Moldova
11 Russia
12 Ukraine
13 Belgium
14 Bulgaria
15 Denmark
16 Finland
17 United Kingdom
18 Greece
19 Croatia
20 Hungary
21 Israel
22 Luxembourg
23 Macedonia (changed to North Macedonia in 2018)
24 Norway
25 Portuga
26 Romania
27 Serbia
28 Azerbaijan
29 Georgia
30 Kazakhstan
31 Lithuania
32 Turkmenistan
33 Uzbekistan
34 Latvia
35 Estonia

388
Device Network SDK (ANPR) Developer Guide

CRIndex (Country/Region Code) Description


36 Albania
37 Austria
38 Bosnia and Herzegovina
39 Ireland
40 Iceland
41 Vatican
42 Malta
43 Sweden
44 Switzerland
45 Cyprus
46 Turkey
47 Slovenia
48 Montenegro
49 Kosovo
50 Andorra
51 Armenia
52 Monaco
53 Liechtenstein
54 San Marino
55 Reserved
56 Reserved
57 Reserved
58 Reserved
59 China
60 Bahrain
61 South Korea
62 Lebanon
63 Nepal

389
Device Network SDK (ANPR) Developer Guide

CRIndex (Country/Region Code) Description


64 Thailand
65 Pakistan
66 United Arab Emirates
67 Bhutan
68 Oman
69 North Korea
70 Philippines
71 Cambodia
72 Qatar
73 Kyrgyzstan
74 Maldives
75 Malaysia
76 Mongolia
77 Saudi Arabia
78 Brunei
79 Laos
80 Japan
81 Turkey
82 Palestinian
83 Tajikistan
84 Kuwait
85 Syria
86 India
87 Indonesia
88 Afghanistan
89 Sri Lanka
90 Iraq
91 Vietnam

390
Device Network SDK (ANPR) Developer Guide

CRIndex (Country/Region Code) Description


92 Iran
93 Yemen
94 Jordan
95 Myanmar
96 Sikkim
97 Bangladesh
98 Singapore
99 Democratic Republic of Timor-Leste
100 Reserved
101 Reserved
102 Reserved
103 Reserved
104 Egypt
105 Libya
106 Sudan
107 Tunisia
108 Algeria
109 Morocco
110 Ethiopia
111 Eritrea
112 Somalia Democratic
113 Djibouti
114 Kenya
115 Tanzania
116 Uganda
117 Rwanda
118 Burundi
119 Seychelles

391
Device Network SDK (ANPR) Developer Guide

CRIndex (Country/Region Code) Description


120 Chad
121 Central African
122 Cameroon
123 Equatorial Guinea
124 Gabon
125 Congo
126 Democratic Republic of the Congo
127 Sao Tome and Principe
128 Mauritania
129 Western Sahara
130 Senegal
131 Gambia
132 Mali
133 Burkina Faso
134 Guinea
135 Guinea-Bissau
136 Cape Verde
137 Sierra Leone
138 Liberia
139 Ivory Coast
140 Ghana
141 Togo
142 Benin
143 Niger
144 Zambia
145 Angola
146 Zimbabwe
147 Malawi

392
Device Network SDK (ANPR) Developer Guide

CRIndex (Country/Region Code) Description


148 Mozambique
149 Botswana
150 Namibia
151 South Africa
152 Swaziland
153 Lesotho
154 Madagasca
155 Comoros
156 Mauritius
157 Nigeria
158 South Sudan
159 Saint Helena
160 Mayotte
161 Reunion
162 Canary Islands
163 AZORES
164 Madeira
165 Reserved
166 Reserved
167 Reserved
168 Reserved
169 Canada
170 Greenland Nuuk
171 Pierre and Miquelon
172 United State
173 Bermuda
174 Mexico
175 Guatemala

393
Device Network SDK (ANPR) Developer Guide

CRIndex (Country/Region Code) Description


176 Belize
177 El Salvador
178 Honduras
179 Nicaragua
180 Costa Rica
181 Panama
182 Bahamas
183 Turks and Caicos Islands
184 Cuba
185 Jamaica
186 Cayman Islands
187 Haiti
188 Dominican
189 Puerto Rico
190 United States Virgin Islands
191 British Virgin Islands
192 Anguilla
193 Antigua and Barbuda
194 Collectivité de Saint-​Martin
195 Autonomous country
196 Saint-Barthélemy
197 Saint Kitts and Nevis
198 Montserrat
199 Guadeloupe
200 Dominica
201 Martinique
202 St. Lucia
203 Saint Vincent and the Grenadines

394
Device Network SDK (ANPR) Developer Guide

CRIndex (Country/Region Code) Description


204 Grenada
205 Barbados
206 Trinidad and Tobago
207 Curaçao
208 Aruba
209 Netherlands Antilles
210 Colombia
211 Venezuela
212 Guyana
213 Suriname
214 Guyane Francaise
215 Ecuador
216 Peru
217 Bolivia
218 Paraguay
219 Chile
220 Brazil
221 Uruguay
222 Argentina
223 Reserved
224 Reserved
225 Reserved
226 Reserved
227 Australia
228 New Zealand
229 Papua New Guinea
230 Salomonen
231 Vanuatu

395
Device Network SDK (ANPR) Developer Guide

CRIndex (Country/Region Code) Description


232 New Caledonia
233 Palau
234 Federated States of Micronesia
235 Marshall Island
236 Northern Mariana Islands
237 Guam
238 Nauru
239 Kiribati
240 Fidschi
241 Tonga
242 Tuvalu
243 Wallis et Futuna
244 Samoa
245 Eastern Samoa
246 Tokelau
247 Niue
248 Cook Islands
249 French Polynesia
250 Pitcairn Islands
251 Hawaii State
252 Reserved
253 Reserved
254 Unrecognized
255 ALL
256 Taiwan (China)
257 Hong Kong (China)
258 Macau (China)

396

You might also like