Interface of shaking object detection module. More...
Interface of shaking object detection module.
| 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. |