Skip to content

NET_SDK_AVPSTORE_FACE_ABSTRACT_INFO

Structure Definition

 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;
}

Function Description

Summary information of face feature library.

Member Description

MemberTypeRemark
szNamechar[32]Name.
dwBirthunsigned intDate of birth, such as 19991234.
szNativePlacechar[16]Place of origin.
szNotechar[16]Remark.
byPicNumunsigned charThe maximum number of pictures is 5.
byTypeCredentialunsigned charDocument type.
bySexunsigned charGender, 0: male; 1: female.
byGroupCountunsigned charNumber of groups.
byGroupIDunsigned char[4]The ID of the group to which the user belongs.
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;// Start time.
        unsigned int dwReserve[3]; // Reserved fields.
        unsigned int dwEndTime; // End time.
        unsigned char byReserve[11]; // Reserved fields.
        unsigned char byContentType; // Content type.
    } PeriodV1;  // PeriodV1

    struct
    {
        unsigned int byWeekOrDate; // Week or date.
        unsigned int dwReserve[3]; // Reserved fields.
        unsigned short wStartTime; // Start time.
        unsigned short wEndTime;    // End time.
        unsigned short wReserve[5]; // Reserved fields.
        unsigned char byMode;  // Video recording mode.
        unsigned char byContentType; // Video content type.
    } PeriodV2;  // V2.0

    struct
    {
        unsigned char dwReserve[31]; // Reserve
        unsigned char byContentType; // Content type.
    } PlaceHolder;  // Placeholder.
} TimeCycle;
Time period.
szCredentialchar[32]The certificate number ends with '\0' and is unique.
byPhoneNumunsigned char[16]Phone number.
byIDParamunsigned char[16]ID, which is unique.
Error Code