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.
Make sure you have called NET_DVR_Init to initialize the integration environment.
Make sure you have called NET_DVR_Login_V40 to log in to the device.
Figure 1 Programming Flow of
Configuring ANPR AlarmYou 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>.
The triggering mode parameters are returned by the output buffer (lpOutBuffer) in the structure of NET_ITC_TRIGGERCFG.
The arming schedule parameters are returned by the output buffer (lpOutBuffer) in the structure of NET_DVR_GUARD_CFG.
You can also configure the triggering mode and arming schedule for ANPR alarm by logging in to device via web browser.
The overlay parameters are returned by the output buffer (lpOutBuffer) in the structure of NET_ITS_OVERLAP_CFG_V50.
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".
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.
Call NET_DVR_Logout and NET_DVR_Cleanup to log out from device and release resources.