0% found this document useful (0 votes)
44 views4 pages

How To Integrate With Smart IPC LPR (Main Function)

The document provides instructions for configuring and using the Hikvision SDK for license plate recognition functions. It describes how to get and set configuration parameters, download pictures containing license plates, and set a callback function to receive license plate data.

Uploaded by

Andres
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)
44 views4 pages

How To Integrate With Smart IPC LPR (Main Function)

The document provides instructions for configuring and using the Hikvision SDK for license plate recognition functions. It describes how to get and set configuration parameters, download pictures containing license plates, and set a callback function to receive license plate data.

Uploaded by

Andres
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/ 4

HIKVISION EUROPE B.V.

HIKVISION SDK User Guide

Smart IPC LPR

European Technical Support Hotline +31 235542770


HIKVISION EUROPE B.V.

Parameters Configuration .................................................................................................................................................. 2


LPR picture download ......................................................................................................................................................... 3
Setting callback function for license plate data.................................................................................................................. 3

Parameters Configuration

NET_DVR_GetDeviceConfig() -- Using for getting Parameters.


NET_DVR_SetDeviceConfig () -- Using for setting parameters.

The Definition of NET_DVR_GetDeviceConfig() as below:


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

The definition of NET_DVR_SetDeviceConfig () as below:

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

dwCommand of above APIs:


NET_DVR_GET_TRIGGEREX_CFG //Getting LRP parameters
NET_DVR_SET_TRIGGEREX_CFG //Setting LPR parameters

lpInBuffer of above APIs need to input condition data, the structure of data as below:

European Technical Support Hotline +31 235542770


HIKVISION EUROPE B.V.

typedef struct tagNET_DVR_TRIGGER_COND


{
DWORD dwSize;
DWORD dwChannel; //channel number
DWORD dwTriggerMode;//Trigger mode,refer to ITC_TRIGGERMODE_TYPE
BYTE byDetSceneID; //Detection scene ID [1,4], IP Camera set to 0
BYTE byRes[63]; //reserved.
}NET_DVR_TRIGGER_COND,*LPNET_DVR_TRIGGER_COND;

lpOutBuffer of NET_DVR_GetDeviceConfig and lpInParamBuffer of NET_DVR_SetDeviceConfig


need to define a structure variable.
The structure as below, for setting or getting parameters of heat map.

typedef struct tagNET_ITC_TRIGGERCFG


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

The definition of NET_ITC_SINGLE_TRIGGERCFG, please refer to “How to integrate with


Hikvision LPR function via SDK.pdf”

LPR picture download


NET_DVR_FindPicture()
NET_DVR_FindNextPicture()
NET_DVR_CloseFindPicture()

The definition of NET_DVR_FindPicture() and NET_DVR_FindNextPicture() as below:

LONG NET_DVR_FindPicture(
LONG lUserID,
LPNET_DVR_FIND_PICTURE_PARAM pFindParam
);

LONG NET_DVR_FindNextPicture(
LONG lFindHandle,
LPNET_DVR_FIND_PICTURE lpFindData
);

In LPNET_DVR_FIND_PICTURE_PARAM, support to setting the License plate number, to


download relevant snapshot. The definition of LPNET_DVR_FIND_PICTURE_PARAM, please
refer to “How to integrate with Hikvision LPR function via SDK.pdf”.
NET_DVR_FindNextPicture is used for saving snapshot. lpFindData is the pointer variable
for snapshot.
NET_DVR_CloseFindPicture is used for close picture finding.

Setting callback function for license plate data

European Technical Support Hotline +31 235542770


HIKVISION EUROPE B.V.

Enable uploading to notify the surveillance center, you can call


NET_DVR_SetDVRMessageCallBack to set call back function to LPR data when Vehicle is
detected.

The lCommand of callback function is COMM_ITS_PLATE_RESULT

lCommand pAlarmer pAlarmInfo dwBufLen

COMM_ITS_PLATE_RESULT NET_DVR_ALARMER NET_ITS_PLATE_RESULT Size of


(NET_ITS_PLATE_RESULT)

The structure of received data is NET_ITS_PLATE_RESULT, The definition please refer to


“How to integrate with Hikvision LPR function via SDK.pdf”.

European Technical Support Hotline +31 235542770

You might also like