Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# DD_MOTION_AREA

### Structure Definition

C++C#

    1
    2
    3
    4
    5
    6
    7
    typedef struct _dd_motion_area_
    {
        unsigned int sensitivity;
        unsigned short widthNum;
        unsigned short heightNum;
        unsigned char area[DD_MAX_MOTION_AREA_HIGHT_NUM][DD_MAX_MOTION_AREA_WIDTH_NUM];
    } DD_MOTION_AREA;

    1
    2
    3
    4
    5
    6
    7
    8
    9
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct DD_MOTION_AREA
    {
        public UInt32 sensitivity;
        public UInt16 widthNum;
        public UInt16 heightNum;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 68)]
        public byte[] area;
    }

### Function Description

Move the region structure.

### Member Description

Member | Type | Remark
--- | --- | ---
sensitivity | unsigned int | Sensitivity (0~7), the larger the number, the higher the sensitivity.
widthNum | unsigned short | The number of horizontal grid cells in the region.
heightNum | unsigned short | The number of vertical grid cells in the region.
area | unsigned char[DD_MAX_MOTION_AREA_HIGHT_NUM] | The raster mask data of the region, compatible with 1920x1080, each block is 8X8 in size.

Error Code