跳转至
本 SDK 仅适用于过去 3 年内发布的设备。我们定期优化和更新 SDK，以确保兼容性和性能。对于超过 3 年的旧设备，我们不保证兼容性，也不会提供技术支持。

# NET_SDK_IVE_BINOCULARCOUNT_INFO_T

### 结构体定义

C++C#

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    typedef struct
    {
        unsigned int eventId;
        unsigned char status;
        unsigned char eventDirection;
        unsigned char type;
        unsigned char targetType;
        unsigned int targetId;
        RECT_16 rect;
        unsigned int ruleId;
    }NET_SDK_IVE_BINOCULARCOUNT_INFO_T;

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct NET_SDK_IVE_BINOCULARCOUNT_INFO_T
    {
        public UInt32 eventId;
        public byte status;
        public byte eventDirection;
        public byte type;
        public byte targetType;
        public UInt32 targetId;
        public RECT_16 rect;
        public UInt32 ruleId;
    }

### 功能描述

双目统计事件信息。

### 成员说明

成员 | 类型 | 说明
--- | --- | ---
eventId | unsigned int | 事件ID
status | unsigned char | 报警状态, 0:none, 1:start, 2:end, 3:procedure
eventDirection | unsigned char | 事件方向, 1:进入，2:离开
type | unsigned char | 报警类型
targetType | unsigned char | 1:成人,2:儿童
targetId | unsigned int | 目标ID
rect | `RECT_16` | 目标矩形框
ruleId | unsigned int | 规则ID

错误码