Skip to content

NET_SDK_IVE_EventData_T

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
typedef struct
{
    unsigned int type;                     
    unsigned int status;                   
    unsigned int width;                    
    unsigned int height;                   
    unsigned int dataLen;                  
    unsigned int targetCnt;                
    unsigned int targetDataLen[40];        
    LONGLONG releativePts;                 
    unsigned char extendFlag;              
    unsigned char reserve1[3];             
    unsigned int globalEnterCarCounter;    
    unsigned int globalEnterPersonCounter; 
    unsigned int globalEnterBikeCounter;   
    unsigned int globalLeaveCarCounter;    
    unsigned int globalLeavePersonCounter; 
    unsigned int globalLeaveBikeCounter;   
    unsigned char reserve[36];             
} NET_SDK_IVE_EventData_T;
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct NET_SDK_IVE_EventData_T
{
    public UInt32 type;
    public UInt32 status;
    public UInt32 width;
    public UInt32 height;
    public UInt32 dataLen;
    public UInt32 targetCnt;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U4, SizeConst = 40)]
    public UInt32[] targetDataLen;
    public Int64 releativePts;
    public byte extendFlag;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 3)]
    public byte[] reserve1;
    public UInt32 globalEnterCarCounter;
    public UInt32 globalEnterPersonCounter;
    public UInt32 globalEnterBikeCounter;
    public UInt32 globalLeaveCarCounter;
    public UInt32 globalLeavePersonCounter;
    public UInt32 globalLeaveBikeCounter;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 36)]
    public byte[] reserve;
}

Function Description

Event data original image structure.

Member Description

Member Type Remark
type unsigned int Image encoding type, 0: JPG; 1: YUV.
status unsigned int Status, 0: invalid; 1: valid; 2: saved.
width unsigned int Image width.
height unsigned int Image height.
dataLen unsigned int Image data length.
targetCnt unsigned int Number of targets.
targetDataLen unsigned int[40] The length of each target.
releativePts LONGLONG Relative timestamp.
extendFlag unsigned char 0 indicates the old protocol does not support the global counter, and 1 indicates that the global counter is supported.
reserve1 unsigned char[3] Reserved.
globalEnterCarCounter unsigned int The total number of vehicles entering is accumulated.
globalEnterPersonCounter unsigned int The total number of people entering is accumulated.
globalEnterBikeCounter unsigned int The total number enters non-number and keeps accumulating.
globalLeaveCarCounter unsigned int The total number of vehicles leaving the site is accumulated.
globalLeavePersonCounter unsigned int The total number of vehicles leaving the site is accumulated.
globalLeaveBikeCounter unsigned int The total number of vehicles leaving the site is accumulated.
reserve unsigned char[36] Reserved field.
Error Code