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

# NET_SDK_FACE_MATCH_ALARM_TRIGGER

### 结构体定义

C++C#

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    typedef struct _net_sdk_face_match_alarm_trigger_
    {
        unsigned char guid[48];
        unsigned int groupId;
        unsigned char groupSwitch;
        unsigned char alarmOutSwitch;
        unsigned char alarmOut[16];
        unsigned char recSwitch;
        unsigned int recCH[128];
        unsigned char snapSwitch;
        unsigned int snapCH[128];
        unsigned int popVideo;
        unsigned char msgPushSwitch;
        unsigned char buzzerSwitch;
        unsigned char popMsgSwitch;
        unsigned char emailSwitch;
    } NET_SDK_FACE_MATCH_ALARM_TRIGGER;

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct NET_SDK_FACE_MATCH_ALARM_TRIGGER
    {
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 48)]
        public byte[] guid;
        public UInt32 groupId;
        public byte groupSwitch;
        public byte alarmOutSwitch;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] alarmOut;
        public byte recSwitch;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U4, SizeConst = 128)]
        public UInt32[] recCH;
        public byte snapSwitch;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U4, SizeConst = 128)]
        public UInt32[] snapCH;
        public UInt32 popVideo;
        public byte msgPushSwitch;
        public byte buzzerSwitch;
        public byte popMsgSwitch;
        public byte emailSwitch;
    }

### 功能描述

目标组人脸比对报警联动信息。

### 成员说明

成员 | 类型 | 说明
--- | --- | ---
guid | unsigned char[48] | 组GUID。
groupId | unsigned int | 组ID。
groupSwitch | unsigned char | 是否启用。
alarmOutSwitch | unsigned char | 是否开启联动报警输出。
alarmOut | unsigned char[16] | 联动报警输出默认最多16个，下标从1开始。
recSwitch | unsigned char | 录像。
recCH | unsigned int[128] | 联动录像通道，下标从1开始。
snapSwitch | unsigned char | 抓图。
snapCH | unsigned int[128] | 联动抓图通道，下标从1开始。
popVideo | unsigned int | 视频弹出。
msgPushSwitch | unsigned char | 联动消息推送。
buzzerSwitch | unsigned char | 联动蜂鸣器。
popMsgSwitch | unsigned char | 联动弹出消息。
emailSwitch | unsigned char | 联动邮件。

错误码