|
xWRL6432 MMWAVE-L-SDK
05.04.00.01
|
|
Go to the documentation of this file. 1 #ifndef PRESENCE_DETECTION_H_
2 #define PRESENCE_DETECTION_H_
4 #define _USE_MATH_DEFINES
14 #include <datapath/dpif/dpif_pointcloud.h>
17 #include <alg/gtrack/gtrack.h>
18 #include <alg/gtrack/common/gtrack_int.h>
29 #define DPU_MPDPROC_EINVAL (DP_ERRNO_MPD_PROC_BASE-1)
34 #define DPU_MPDPROC_ENOMEM (DP_ERRNO_MPD_PROC_BASE-2)
39 #define DPU_MPDPROC_EINTERNAL (DP_ERRNO_MPD_PROC_BASE-3)
61 typedef struct mpdProc_SceneryParams_t
73 typedef struct mpdProc_ClusterParamCfg_t
95 typedef struct mpdProc_MotionModeStateParamCfg_t
145 typedef struct mpdProc_Histbuffer_t
154 typedef struct mpdProc_MotionTracker_t
177 typedef struct DPU_MpdProc_OutParams_t
196 typedef struct DPU_MpdProc_StaticConfig_t
221 typedef struct DPU_MpdProc_HW_Resources_t
248 typedef struct DPU_MpdProc_Config_t
269 typedef struct MPDProcObj_t
286 void gtrack_censor2world(GTRACK_cartesian_position *c_in, GTRACK_worldTransformParams *wt, GTRACK_cartesian_position *c_out);
uint8_t * mpdZoneState
2-bit presence detect state for each zone from LSB to MSB. 0th index indicates no of zones
Definition: mpdproc.h:180
float sum
Definition: mpdproc.h:148
Motion Presence Detection configuration.
Definition: mpdproc.h:249
void gtrack_censor2world(GTRACK_cartesian_position *c_in, GTRACK_worldTransformParams *wt, GTRACK_cartesian_position *c_out)
mpdProc_MotionModeStateParamCfg majorStateParamCfg
Application level parameters.
Definition: mpdproc.h:205
void * DPU_MpdProc_Handle
mpdProc DPU Handle
Definition: mpdproc.h:284
GTRACK Scenery Parameters.
Definition: mpdproc.h:62
int32_t DPU_MpdProc_deinit(DPU_MpdProc_Handle handle)
mpdProc_Histbuffer snrHistBufferMajor
Definition: mpdproc.h:161
int latest
Definition: mpdproc.h:149
mpdProc_MotionTracker * zones
state and history buffers for each zone
Definition: mpdproc.h:237
DPU_MpdProc_StaticConfig staticCfg
MpdProc static configuration.
Definition: mpdproc.h:251
float maxDistance
The radius (in meters) of the neighborhood around a point (i.e., epsilon in DBSCAN algorithm).
Definition: mpdproc.h:86
Base error codes for the data path Modules.
uint8_t numBoundaryBoxes
Number of scene boundary boxes. If defined (numBoundaryBoxes > 0), only points within the boundary bo...
Definition: mpdproc.h:68
mpdProc_Histbuffer snrHistBufferMinor
Definition: mpdproc.h:164
DPU_MpdProc_Handle DPU_MpdProc_init(int32_t *errCode)
float minMpdCentroid
Nearest cluster centroid in presence detected.
Definition: mpdproc.h:183
uint16_t minPoints
Definition: mpdproc.h:91
int32_t DPU_MpdProc_config(DPU_MpdProc_Handle handle, DPU_MpdProc_Config *pConfigIn)
Definition: mpdproc.h:155
float snrHistThre2
Minimum total SNR (linear) of detected points (in a frame history buffer) in a zone to enter the moti...
Definition: mpdproc.h:131
uint8_t motionMode
Application level parameters.
Definition: mpdproc.h:199
int bufferSize
Definition: mpdproc.h:151
int32_t DPU_MpdProc_process(DPU_MpdProc_Handle handle, DPU_MpdProc_OutParams *outParams)
uint16_t pointHistThre2
Number of detected points (in a frame history buffer) needed in a zone to enter the motion/presence s...
Definition: mpdproc.h:125
float snrThre2
Minimum total SNR (linear) of detected points (in a single frame) in a zone to enter the motion/prese...
Definition: mpdproc.h:113
mpdProc_Histbuffer pointHistBufferMajor
Definition: mpdproc.h:160
int oldest
Definition: mpdproc.h:150
uint16_t stateExitThre
A motion status is preserved if it recorded at least one motion detection in the last major2minorThre...
Definition: mpdproc.h:141
int state
Definition: mpdproc.h:156
uint16_t pointThre2
Number of detected points (in a single frame) needed in a zone to enter the motion/presence state....
Definition: mpdproc.h:107
DPIF_PointCloudCartesianExt * detObjMajor
Detected objects input list - major.
Definition: mpdproc.h:231
#define MAX_HISTORY_BUFFER_SIZE
Definition: define.h:7
int major2minorCount
Definition: mpdproc.h:157
DPU_MpdProc_StaticConfig staticCfg
MpdProc static configuration.
Definition: mpdproc.h:272
uint16_t histBufferSize
Size of the frame history buffer size (in frames) used in pointHistThre1, pointHistThre2,...
Definition: mpdproc.h:136
GTRACK_sensorPosition sensorPosition
Sensor position, set to (0.f, 0.f) for 2D, set to (0.f, 0.f, H) for 3D. Where H is sensor height,...
Definition: mpdproc.h:64
TrackerProc DPU Hardware resources.
Definition: mpdproc.h:222
mpdProc_MotionModeStateParamCfg minorStateParamCfg
Application level parameters.
Definition: mpdproc.h:207
mpdProc_ClusterParamCfg clusterParams
Application level parameters.
Definition: mpdproc.h:203
DPU_MpdProc_HW_Resources res
Hardware resources.
Definition: mpdproc.h:254
uint16_t pointHistThre1
Number of detected points (in a frame history buffer) needed in a zone to enter the motion/presence s...
Definition: mpdproc.h:119
uint16_t * numDetMinor
Number of minor points.
Definition: mpdproc.h:228
int minor2emptyCount
Definition: mpdproc.h:158
#define MAX_ZONES
Definition: define.h:8
mpdProc_Histbuffer pointHistBufferMinor
Definition: mpdproc.h:163
MpdProc static configuration.
Definition: mpdproc.h:197
mpdProc_SceneryParams sceneryParams
Application level parameters.
Definition: mpdproc.h:201
DPIF_PointCloudCartesianExt * detObjMinor
Detected objects input list - minor.
Definition: mpdproc.h:234
MpdProc DPU Object.
Definition: mpdproc.h:270
uint16_t pointThre1
Number of detected points (in a single frame) needed in a zone to enter the motion/presence state....
Definition: mpdproc.h:101
uint16_t * numDetMajor
Number of major points.
Definition: mpdproc.h:225
Definition: mpdproc.h:146
uint16_t enabled
Configure clustering logic. 0 - disabled 1 – enabled.
Definition: mpdproc.h:81
MpdProc output parameter structure.
Definition: mpdproc.h:178
GTRACK_sensorOrientation sensorOrientation
Sensor orientation, set to (0.f, 0.f) for 2D, (AzimTilt, ElevTilt) for 3D. Where AzimTilt and ElevTil...
Definition: mpdproc.h:66
DPU_MpdProc_HW_Resources res
Hardware resources.
Definition: mpdproc.h:275