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

# NET_SDK_AVPSTORE_FACE_ABSTRACT_INFO

### 结构体定义

C++C#

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    typedef struct _net_sdk_tag_avp_store_face_abstract_info
    {
        char szName[32];
        unsigned int dwBirth;
        char szNativePlace[16];
        char szNote[16];
        unsigned char byPicNum;
        unsigned char byTypeCredential;
        unsigned char bySex;
        unsigned char byGroupCount;
        unsigned char byGroupID[4];
        union
        {
            struct
            {
                unsigned int dwStartTime;
                unsigned int dwReserve[3];
                unsigned int dwEndTime;
                unsigned char byReserve[11];
                unsigned char byContentType;
            } PeriodV1;
            struct
            {
                unsigned int byWeekOrDate;
                unsigned int dwReserve[3];
                unsigned short wStartTime;
                unsigned short wEndTime;
                unsigned short wReserve[5];
                unsigned char byMode;
                unsigned char byContentType;
            } PeriodV2;
            struct
            {
                unsigned char dwReserve[31];
                unsigned char byContentType;
            } PlaceHolder;
        } TimeCycle;
        char szCredential[32];
        unsigned char byPhoneNum[16];
        unsigned char byIDParam[16];
    } NET_SDK_AVPSTORE_FACE_ABSTRACT_INFO;

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct NET_SDK_AVPSTORE_FACE_ABSTRACT_INFO
    {
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 32)]
        public byte[] szName;
        public UInt32 dwBirth;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] szNativePlace;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] szNote;
        public byte byPicNum;
        public byte byTypeCredential;
        public byte bySex;
        public byte byGroupCount;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 4)]
        public byte[] byGroupID;
        [StructLayout(LayoutKind.Explicit)]
        public struct NET_SDK_AVPSTORE_FACE_ABSTRACT_INFO_TimeCycle
        {
            [StructLayout(LayoutKind.Explicit)]
            public struct TimeCyclePeriodV1
            {
                [FieldOffset(0)]
                public UInt32 dwStartTime;
                [FieldOffset(16)]
                public UInt32 dwEndTime;
                [FieldOffset(31)]
                public byte byContentType;
            }
            [FieldOffset(0)]
            public TimeCyclePeriodV1 PeriodV1;
            [StructLayout(LayoutKind.Explicit)]
            public struct TimeCyclePeriodV2
            {
                [FieldOffset(0)]
                public UInt32 byWeekOrDate;
                [FieldOffset(16)]
                public UInt16 wStartTime;
                [FieldOffset(18)]
                public UInt16 wEndTime;
                [FieldOffset(30)]
                public byte byMode;
                [FieldOffset(31)]
                public byte byContentType;
            }
            [FieldOffset(0)]
            public TimeCyclePeriodV2 PeriodV2;
            [StructLayout(LayoutKind.Explicit)]
            public struct TimeCyclePlaceHolder
            {
                [FieldOffset(31)]
                public byte byContentType;
            }
            [FieldOffset(0)]
            public TimeCyclePlaceHolder PlaceHolder;
        }
        public NET_SDK_AVPSTORE_FACE_ABSTRACT_INFO_TimeCycle TimeCycle;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 32)]
        public byte[] szCredential;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] byPhoneNum;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 16)]
        public byte[] byIDParam;
    }

### 功能描述

人脸特征库摘要信息。

### 成员说明

成员 | 类型 | 说明
--- | --- | ---
szName | char[32] | 名称。
dwBirth | unsigned int | 出生日期,如19991234。
szNativePlace | char[16] | 籍贯。
szNote | char[16] | 备注。
byPicNum | unsigned char | 图片数量，最大5张。
byTypeCredential | unsigned char | 证件类型。
bySex | unsigned char | 性别，0：male；1：female。
byGroupCount | unsigned char | 组数量。
byGroupID | unsigned char[4] | 所属组ID。
TimeCycle |
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    union
    {
        struct
        {
            unsigned int dwStartTime;// 开始时间。
            unsigned int dwReserve[3]; // 保留字段。
            unsigned int dwEndTime; // 结束时间。
            unsigned char byReserve[11]; // 保留字段。
            unsigned char byContentType; // 内容类型。
        } PeriodV1;  //  PeriodV1

        struct
        {
            unsigned int byWeekOrDate; // 周或日期。
            unsigned int dwReserve[3]; // 保留字段。
            unsigned short wStartTime; // 开始时间。
            unsigned short wEndTime;    // 结束时间。
            unsigned short wReserve[5]; // 保留字段。
            unsigned char byMode;  // 录像模式。
            unsigned char byContentType; // 录像内容类型。
        } PeriodV2;  //  V2.0

        struct
        {
            unsigned char dwReserve[31]; // 预留
            unsigned char byContentType; // 内容类型。
        } PlaceHolder;  //  占位。
    } TimeCycle;
| 时间周期。
szCredential | char[32] | 证件号码, '\0' 结束，具有唯一性。
byPhoneNum | unsigned char[16] | 手机号码。
byIDParam | unsigned char[16] | ID，具有唯一性。

错误码