Skip to content

NET_SDK_FACE_INFO_ADD

Structure Definition

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
typedef struct _net_sdk_face_info_add_
{
    NET_SDK_FACE_INFO_LIST_ITEM sFaceInfoItem;                   
    unsigned int imgNum;                                         
    NET_SDK_FACE_IMG_INFO_CH sFaceImgInfo[DD_MAX_FACE_INFO_IMG]; 
    unsigned int haveImgData;                                    
    unsigned int imgWidth;                                       
    unsigned int imgHeight;                                      
    unsigned int imgLen;                                         
    unsigned char* imgData;                                      
} NET_SDK_FACE_INFO_ADD;
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct NET_SDK_FACE_INFO_ADD
{
    public NET_SDK_FACE_INFO_LIST_ITEM sFaceInfoItem;
    public UInt32 imgNum;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.Struct, SizeConst = 5)]
    public NET_SDK_FACE_IMG_INFO_CH[] sFaceImgInfo;
    public UInt32 haveImgData;
    public UInt32 imgWidth;
    public UInt32 imgHeight;
    public UInt32 imgLen;
    public IntPtr imgData;
}

Function Description

NVR adds face comparison target.

Member Description

Member Type Remark
sFaceInfoItem NET_SDK_FACE_INFO_LIST_ITEM Facial feature information.
imgNum unsigned int The number of images in sFaceImgInfo.
sFaceImgInfo NET_SDK_FACE_IMG_INFO_CH[DD_MAX_FACE_INFO_IMG] Channel image information, maximum 5 images.
haveImgData unsigned int Whether there is externally transmitted image data, 0: no, 1: yes.
imgWidth unsigned int The width of the image transmitted externally. It is valid when haveImgData is 1.
imgHeight unsigned int The image height transmitted is valid when haveImgData is 1.
imgLen unsigned int The size of the image transmitted externally. This parameter is valid when haveImgData is 1.
imgData unsigned char* Image data, valid when haveImgData is 1.
Error Code