Core feature-lib for foreground detection. More...
Data Structures | |
struct | VFTR_FGD_PARAM_S |
Struct for foreground detection parameter. More... | |
struct | VFTR_FGD_STATUS_S |
Structure for the result of foreground detection. More... | |
struct | VFTR_FGD_INPUT_S |
Structure for the foreground detection video features. More... | |
Macros | |
#define | VFTR_FGD_TIME_BUFFER_SIZE_MIN 16 |
#define | VFTR_FGD_ROI_AREA_MIN 16 |
#define | VFTR_FGD_PATH_LEN_MAX 128 |
Typedefs | |
typedef struct vftr_fgd_instance | VFTR_FGD_INSTANCE_S |
Type alias. | |
Enumerations | |
enum | VFTR_FGD_DATA_CTRL_E { VFTR_FGD_DATA_NONE = 0, VFTR_FGD_DATA_SAVE, VFTR_FGD_DATA_LOAD, VFTR_FGD_DATA_CTRL_NUM } |
Enum for data control. | |
enum | VFTR_FGD_EVENT_TYPE_E { VFTR_FGD_OBJECT_MONITOR = 0, VFTR_FGD_EVENT_NUM } |
Enum for event type. | |
enum | VFTR_FGD_OBJECT_EVENT_E { VFTR_FGD_OBJECT_ABSENT = 0, VFTR_FGD_OBJECT_PRESENT, VFTR_FGD_OBJECT_BOUNDARY, VFTR_FGD_OBJECT_ENTERING, VFTR_FGD_OBJECT_LEAVING, VFTR_FGD_OBJECT_EVENT_NUM } |
Enum for object monitor event. | |
Functions | |
VFTR_FGD_INSTANCE_S * | VFTR_FGD_newInstance (void) |
Construct new foreground detection instance. More... | |
int | VFTR_FGD_deleteInstance (VFTR_FGD_INSTANCE_S **instance) |
Destruct target foreground detection instance. More... | |
int | VFTR_FGD_checkParam (const VFTR_FGD_PARAM_S *param) |
Check whether the parameter is valid. More... | |
int | VFTR_FGD_setParam (VFTR_FGD_INSTANCE_S *instance, const VFTR_FGD_PARAM_S *param) |
Set foreground detection parameters. More... | |
int | VFTR_FGD_getParam (const VFTR_FGD_INSTANCE_S *instance, VFTR_FGD_PARAM_S *param) |
Get foreground detection parameters. More... | |
int | VFTR_FGD_detect (VFTR_FGD_INSTANCE_S *instance, const VFTR_FGD_INPUT_S *input, VFTR_FGD_STATUS_S *status) |
Detect foreground object. More... | |
int | VFTR_FGD_getStat (const VFTR_FGD_INSTANCE_S *instance, VFTR_FGD_STATUS_S *status) |
Get foreground detection status. More... | |
int | VFTR_FGD_reset (VFTR_FGD_INSTANCE_S *instance) |
Reset foreground detection history. More... | |
int | VFTR_FGD_saveModel (const VFTR_FGD_INSTANCE_S *instance, const char *fpath) |
int | VFTR_FGD_loadModel (VFTR_FGD_INSTANCE_S *instance, const char *fpath) |
Core feature-lib for foreground detection.
#define VFTR_FGD_ROI_AREA_MIN 16 |
Minimum area of RoI in unit square pixels.
#define VFTR_FGD_TIME_BUFFER_SIZE_MIN 16 |
Minimum size of time buffer.
int VFTR_FGD_checkParam | ( | const VFTR_FGD_PARAM_S * | param | ) |
Check whether the parameter is valid.
[in] | param | pointer to parameter |
0 | Valid input. |
-EFAULT | Received NULL pointer as input. |
-EINVAL | Invalid input. |
int VFTR_FGD_deleteInstance | ( | VFTR_FGD_INSTANCE_S ** | instanceRef | ) |
Destruct target foreground detection instance.
[in] | instanceRef | address of pointer to instance |
0 | success. |
-EFAULT | Received NULL pointer as input. |
int VFTR_FGD_detect | ( | VFTR_FGD_INSTANCE_S * | instance, |
const VFTR_FGD_INPUT_S * | input, | ||
VFTR_FGD_STATUS_S * | status | ||
) |
Detect foreground object.
[in] | instance | pointer to instance |
[in] | input | foreground detection input. |
[out] | status | foreground detection status. |
0 | success. |
-EFAULT | null pointer input. |
int VFTR_FGD_getParam | ( | const VFTR_FGD_INSTANCE_S * | instance, |
VFTR_FGD_PARAM_S * | param | ||
) |
Get foreground detection parameters.
[in] | instance | pointer to instance |
[out] | param | foreground detection parameters. |
0 | success. |
-EFAULT | null pointer input. |
int VFTR_FGD_getStat | ( | const VFTR_FGD_INSTANCE_S * | instance, |
VFTR_FGD_STATUS_S * | status | ||
) |
Get foreground detection status.
[in] | instance | pointer to instance |
[out] | status | foreground detection status. |
0 | success. |
-EFAULT | null pointer input. |
VFTR_FGD_INSTANCE_S* VFTR_FGD_newInstance | ( | void | ) |
Construct new foreground detection instance.
Not | NULL Pointer to instance. |
NULL | Not enough memory to create new instance. |
int VFTR_FGD_reset | ( | VFTR_FGD_INSTANCE_S * | instance | ) |
Reset foreground detection history.
[in] | instance | pointer to instance |
0 | success. |
-EFAULT | received NULL pointer. |
int VFTR_FGD_setParam | ( | VFTR_FGD_INSTANCE_S * | instance, |
const VFTR_FGD_PARAM_S * | param | ||
) |
Set foreground detection parameters.
[in] | instance | pointer to instance |
[in] | param | foreground detection parameters. |
0 | success. |
-EFAULT | Received NULL pointer as input. |
-ENOMEM | Allocated memory failure. |
-EINVAL | Invalid FGD parameters. |