Skip to content

NET_SDK_IVE_TRAFFIC_INFO_T

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
typedef struct
{
    unsigned int eventId;                 
    unsigned char status;                 
    unsigned char eventDirection;         
    unsigned char reserve[2];             
    unsigned int targetId;                
    NET_SDK_IVE_RULE_BOUNDARY_T boundary; 
    NET_SDK_IVE_RECT_T rect;              
} NET_SDK_IVE_TRAFFIC_INFO_T;
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct NET_SDK_IVE_TRAFFIC_INFO_T
{
    public UInt32 eventId;
    public byte status;
    public byte eventDirection;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 2)]
    public byte[] reserve;
    public UInt32 targetId;
    public NET_SDK_IVE_RULE_BOUNDARY_T boundary;
    public NET_SDK_IVE_RECT_T rect;
}

Function Description

Traffic statistics analysis results.

Member Description

Member Type Remark
eventId unsigned int Event ID.
status unsigned char Alarm status, 0: none; 1: start; 2: end; 3: procedure.
eventDirection unsigned char Event direction, 1: entering; 2: leaving.
reserve unsigned char[2] Reserved field.
targetId unsigned int Target ID.
boundary NET_SDK_IVE_RULE_BOUNDARY_T Regional entry rule information.
rect NET_SDK_IVE_RECT_T The target rectangle.
Error Code