Core feature-lib for left-object detection. More...
Data Structures | |
| struct | VFTR_LOD_REG_STAT_S |
| struct | VFTR_LOD_PARAM_S |
| Struct for left-object detection parameter. More... | |
| struct | VFTR_LOD_STATUS_S |
| Structure for the result of left-object detection. More... | |
| struct | VFTR_LOD_INPUT_S |
| Structure for the left-object detection video features. More... | |
Macros | |
| #define | VFTR_LOD_ROI_AREA_MIN 16 |
| #define | VFTR_LOD_MAX_NOISE_LEVEL 7 |
| #define | VFTR_LOD_MAX_REG_NUM 10 |
Typedefs | |
| typedef struct vftr_lod_instance | VFTR_LOD_INSTANCE_S |
| Type alias. | |
Enumerations | |
| enum | VFTR_LOD_EVENT_TYPE_E { VFTR_LOD_OBJECT_MONITOR = 0, VFTR_LOD_EVENT_NUM } |
| Enum for event type. More... | |
| enum | VFTR_LOD_OBJECT_EVENT_E { VFTR_LOD_OBJECT_IDLE = 0, VFTR_LOD_OBJECT_IN, VFTR_LOD_OBJECT_OUT, VFTR_LOD_OBJECT_EVENT_NUM } |
| Enum for object monitor event. More... | |
Functions | |
| VFTR_LOD_INSTANCE_S * | VFTR_LOD_newInstance (void) |
| Construct new left-object detection instance. More... | |
| int | VFTR_LOD_deleteInstance (VFTR_LOD_INSTANCE_S **instance) |
| Destruct target left-object detection instance. More... | |
| int | VFTR_LOD_checkParam (const VFTR_LOD_PARAM_S *param) |
| Check whether the parameter is valid. More... | |
| int | VFTR_LOD_setParam (VFTR_LOD_INSTANCE_S *instance, const VFTR_LOD_PARAM_S *param) |
| Set left-object detection parameters. More... | |
| int | VFTR_LOD_getParam (const VFTR_LOD_INSTANCE_S *instance, VFTR_LOD_PARAM_S *param) |
| Get left-object detection parameters. More... | |
| int | _VFTR_LOD_dump (VFTR_LOD_INSTANCE_S *instance, const VFTR_LOD_INPUT_S *input, VFTR_LOD_STATUS_S *status) |
| Dump LOD debuging info. More... | |
| int | _VFTR_LOD_detect (VFTR_LOD_INSTANCE_S *instance, const VFTR_LOD_INPUT_S *input, VFTR_LOD_STATUS_S *status) |
| Detect left object. More... | |
| int | VFTR_LOD_getStat (const VFTR_LOD_INSTANCE_S *instance, VFTR_LOD_STATUS_S *status) |
| Get left-object detection status. More... | |
| int | VFTR_LOD_reset (VFTR_LOD_INSTANCE_S *instance) |
| Reset left-object detection history. More... | |
| FORCE_INLINE INT32 | VFTR_LOD_detect (VFTR_LOD_INSTANCE_S *instance, const VFTR_LOD_INPUT_S *input, VFTR_LOD_STATUS_S *status) |
| An inline function. If variable vftr_dump_en is true, then call dump function for debugging. More... | |
Core feature-lib for left-object detection.
| #define VFTR_LOD_ROI_AREA_MIN 16 |
Minimum area of RoI in unit square pixels.
Enum for object monitor event.
| Enumerator | |
|---|---|
| VFTR_LOD_OBJECT_IDLE |
No left object detected. |
| VFTR_LOD_OBJECT_IN |
Left object detected. |
| VFTR_LOD_OBJECT_OUT |
Left object leaving. |
| VFTR_LOD_OBJECT_EVENT_NUM |
Number of events. |
| int _VFTR_LOD_detect | ( | VFTR_LOD_INSTANCE_S * | instance, |
| const VFTR_LOD_INPUT_S * | input, | ||
| VFTR_LOD_STATUS_S * | status | ||
| ) |
Detect left object.
| [in] | instance | pointer to instance |
| [in] | input | left-object detection input. |
| [out] | status | left-object detection status. |
| 0 | success. |
| -EINVAL | invalid parameters, maybe algorithm parameters are not configured before. |
| -EFAULT | received NULL pointer. |
| int _VFTR_LOD_dump | ( | VFTR_LOD_INSTANCE_S * | instance, |
| const VFTR_LOD_INPUT_S * | input, | ||
| VFTR_LOD_STATUS_S * | status | ||
| ) |
Dump LOD debuging info.
| [in] | instance | Pointer to left-object detection instance. |
| [in] | input | Pointer to left-object detection input. |
| [out] | status | Pointer to left-object detection result. |
| 0 | success. |
| -EFAULT | input pointer is NULL. |
| int VFTR_LOD_checkParam | ( | const VFTR_LOD_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_LOD_deleteInstance | ( | VFTR_LOD_INSTANCE_S ** | instanceRef | ) |
Destruct target left-object detection instance.
| [in] | instanceRef | address of pointer to instance |
| 0 | success. |
| -EFAULT | Received NULL pointer as input. |
| FORCE_INLINE INT32 VFTR_LOD_detect | ( | VFTR_LOD_INSTANCE_S * | instance, |
| const VFTR_LOD_INPUT_S * | input, | ||
| VFTR_LOD_STATUS_S * | status | ||
| ) |
An inline function. If variable vftr_dump_en is true, then call dump function for debugging.
| int VFTR_LOD_getParam | ( | const VFTR_LOD_INSTANCE_S * | instance, |
| VFTR_LOD_PARAM_S * | param | ||
| ) |
Get left-object detection parameters.
| [in] | instance | pointer to instance |
| [out] | param | left-object detection parameters. |
| 0 | success. |
| -EFAULT | received NULL pointer. |
| int VFTR_LOD_getStat | ( | const VFTR_LOD_INSTANCE_S * | instance, |
| VFTR_LOD_STATUS_S * | status | ||
| ) |
Get left-object detection status.
| [in] | instance | pointer to instance |
| [out] | status | left-object detection status. |
| 0 | success. |
| -EFAULT | received NULL pointer. |
| VFTR_LOD_INSTANCE_S* VFTR_LOD_newInstance | ( | void | ) |
Construct new left-object detection instance.
| Not | NULL Pointer to instance. |
| NULL | Not enough memory to create new instance. |
| int VFTR_LOD_reset | ( | VFTR_LOD_INSTANCE_S * | instance | ) |
Reset left-object detection history.
| [in] | instance | pointer to instance |
| 0 | success. |
| -EFAULT | received NULL pointer. |
| int VFTR_LOD_setParam | ( | VFTR_LOD_INSTANCE_S * | instance, |
| const VFTR_LOD_PARAM_S * | param | ||
| ) |
Set left-object detection parameters.
| [in] | instance | pointer to instance |
| [in] | param | left-object detection parameters. |
| 0 | success. |
| -EFAULT | Received NULL pointer as input. |
| -ENOMEM | Allocated memory failure. |
| -EINVAL | Invalid LOD parameters. |