Core feature-lib for shaking object detection (SHD) More...
Data Structures | |
struct | VFTR_SHD_LT_OBJ_ATTR_S |
Struct for shd long term attributes. More... | |
struct | VFTR_SHD_LONGTERM_LIST_S |
Struct for shd long term list. More... | |
struct | VFTR_SHD_PARAM_S |
Struct for object shaking detection parameter. More... | |
struct | VFTR_SHD_STATUS_S |
Struct for shaking object status. More... | |
struct | VFTR_SHD_INSTANCE_S |
Macros | |
#define | VFTR_SHD_LONGTERM_NUM (10) |
#define | IVA_JIF_HZ (100) |
#define | VFTR_SHD_MIN_OBJ_LIFE_TH (0) |
#define | VFTR_SHD_MAX_OBJ_LIFE_TH (MPI_IVA_OD_MAX_LIFE) |
#define | VFTR_SHD_MAX_SEN_MIN_TH (1) |
#define | VFTR_SHD_MAX_SEN_MAX_TH (100) |
#define | VFTR_SHD_MAX_QUA_MIN_TH (1) |
#define | VFTR_SHD_MAX_QUA_MAX_TH (100) |
#define | VFTR_SHD_MAX_LONGTERM_ACTIVE_MIN_TH (1) |
Core feature-lib for shaking object detection (SHD)
#define IVA_JIF_HZ (100) |
IVA jiffer time (in Hz)
#define VFTR_SHD_LONGTERM_NUM (10) |
Support long term object number
INT32 VFTR_SHD_deleteInstance | ( | VFTR_SHD_INSTANCE_S ** | instance | ) |
Delete shaking object detector instance.
[in,out] | instance | pointer to object instance pointer |
0 | success |
-EFAULT | pointer of SHD instance is NULL |
INT32 VFTR_SHD_detectShake | ( | VFTR_SHD_INSTANCE_S * | instance, |
const MPI_IVA_OBJ_LIST_S * | obj_list, | ||
VFTR_SHD_STATUS_S * | status | ||
) |
Detect shaking objects.
[in,out] | instance | The pointer to shaking object detector instance. |
[in] | obj_list | object list. |
[out] | status | shd status. |
0 | success. |
-EFAULT | input pointer is NULL. |
-EINVAL | invalid input parameters. |
When object_i is detected as shaking:
status->shaking[i] is false, and status->shake_rect[i] is not modified.
INT32 VFTR_SHD_getParam | ( | const VFTR_SHD_INSTANCE_S * | instance, |
VFTR_SHD_PARAM_S * | param | ||
) |
Get shd parameters.
[in] | instance | The pointer to shaking object detector instance. |
[out] | param | shd parameters. |
0 | success. |
-EFAULT | input pointer is NULL. |
INT32 VFTR_SHD_getStat | ( | const VFTR_SHD_INSTANCE_S * | instance, |
VFTR_SHD_STATUS_S * | status | ||
) |
Detect object shaking properties.
[in] | instance | The pointer to shaking object detector instance. |
[out] | status | shd status. |
0 | success. |
-EFAULT | input pointer is NULL. |
INT32 VFTR_SHD_getUserLongTermList | ( | const VFTR_SHD_INSTANCE_S * | instance, |
VFTR_SHD_LONGTERM_LIST_S * | lt_list | ||
) |
Retrieve user long term list configuration.
[in] | instance | Pointer to shaking ojbect detector instance. |
[out] | lt_list | pointer to user long term list |
0 | success. |
-EFAULT | input pointer is NULL. |
-EINVAL | invalid input parameters. |
VFTR_SHD_INSTANCE_S* VFTR_SHD_newInstance | ( | void | ) |
Create shaking object detector instance.
Default value of SHD parameter is as following
NULL | fail to create instance |
Not NULL | success to create instance |
< long term life dec
< long term life dec
< long term life dec
< long term life active threshold
INT32 VFTR_SHD_setParam | ( | VFTR_SHD_INSTANCE_S * | instance, |
const VFTR_SHD_PARAM_S * | param | ||
) |
Set shd parameters.
[in] | instance | The pointer to shaking object detector instance. |
[in] | param | shd parameters. |
0 | success. |
-EFAULT | input pointer is NULL. |
-EINVAL | invalid parameters. |
After configured SHD instance, it restarts to initial state.
INT32 VFTR_SHD_setUserLongTermList | ( | VFTR_SHD_INSTANCE_S * | instance, |
const VFTR_SHD_LONGTERM_LIST_S * | lt_list | ||
) |
Configure user long term list.
[in] | instance | Pointer to shaking ojbect detector instance. |
[in] | lt_list | pointer to user long term list |
0 | success. |
-EFAULT | input pointer is NULL. |
-EINVAL | invalid input parameters. |