MPP Programming Interface Reference Manual  jpl-r3.17.16
mpi_iva.h File Reference

MPI for IVA OD (object detection) More...

#include <sys/time.h>
#include "mpi_index.h"

Data Structures

struct  MPI_IVA_OD_PARAM_S
 Structure for the parameters of object detection. More...
 
struct  MPI_IVA_OD_MOTOR_PARAM_S
 Structure for the parameters of camera motor. More...
 
struct  MPI_IVA_OBJ_ATTR_S
 Struct for object attributes. More...
 
struct  MPI_IVA_OBJ_LIST_S
 Struct for object list. More...
 

Macros

#define MPI_IVA_MAX_OBJ_NUM   10
 
#define MPI_IVA_OD_MAX_QUA   63
 
#define MPI_IVA_OD_MIN_QUA   0
 
#define MPI_IVA_OD_MAX_TRACK_REFINE   63
 
#define MPI_IVA_OD_MIN_TRACK_REFINE   0
 
#define MPI_IVA_OD_MAX_OBJ_SIZE   255
 
#define MPI_IVA_OD_MIN_OBJ_SIZE   0
 
#define MPI_IVA_OD_MAX_SEN   255
 
#define MPI_IVA_OD_MIN_SEN   0
 
#define MPI_IVA_OD_MAX_LIFE   160
 
#define MPI_IVA_OD_ENABLE_STOP_DET   1
 
#define MPI_IVA_OD_DISABLE_STOP_DET   0
 
#define MPI_IVA_OD_ENABLE_GMV_DET   1
 
#define MPI_IVA_OD_DISABLE_GMV_DET   0
 
#define MPI_IVA_OD_MOTOR_ENABLE   1
 
#define MPI_IVA_OD_MOTOR_DISABLE   0
 

Functions

INT32 MPI_IVA_enableObjDet (MPI_WIN idx)
 Enable OD (object detection) on specified video window. More...
 
INT32 MPI_IVA_disableObjDet (MPI_WIN idx)
 Disable OD on specified video window. More...
 
INT32 MPI_IVA_setObjParam (MPI_WIN idx, const MPI_IVA_OD_PARAM_S *param)
 Set OD (object detection) parameters. More...
 
INT32 MPI_IVA_getObjParam (MPI_WIN idx, MPI_IVA_OD_PARAM_S *param)
 Get OD parameters. More...
 
INT32 MPI_IVA_setObjMotorParam (MPI_WIN idx, const MPI_IVA_OD_MOTOR_PARAM_S *param)
 Set OD (object detection) motor parameters. More...
 
INT32 MPI_IVA_getObjMotorParam (MPI_WIN idx, MPI_IVA_OD_MOTOR_PARAM_S *param)
 Get OD motor parameters. More...
 
INT32 MPI_IVA_getObjList (MPI_WIN idx, MPI_IVA_OBJ_LIST_S *list)
 Get current object list. More...
 
INT32 MPI_IVA_getBitStreamObjList (MPI_WIN idx, UINT32 timestamp, MPI_IVA_OBJ_LIST_S *list)
 Get object list for specific frame index. More...
 

Detailed Description

MPI for IVA OD (object detection)

Macro Definition Documentation

#define MPI_IVA_MAX_OBJ_NUM   10

Max object number.

#define MPI_IVA_OD_DISABLE_GMV_DET   0

Disable OD global motion vector detection.

#define MPI_IVA_OD_DISABLE_STOP_DET   0

Disable OD stop detect of object.

#define MPI_IVA_OD_ENABLE_GMV_DET   1

Enable OD global motion vector detection.

#define MPI_IVA_OD_ENABLE_STOP_DET   1

Enable OD stop detect of object.

#define MPI_IVA_OD_MAX_LIFE   160

Max OD life of object.

#define MPI_IVA_OD_MAX_OBJ_SIZE   255

Max OD object size(percentage in a frame size).

#define MPI_IVA_OD_MAX_QUA   63

Max OD quality index.

#define MPI_IVA_OD_MAX_SEN   255

Max OD sensitivity.

#define MPI_IVA_OD_MAX_TRACK_REFINE   63

Max OD track refinement index.

#define MPI_IVA_OD_MIN_OBJ_SIZE   0

Min OD object size(percentage in a frame size).

#define MPI_IVA_OD_MIN_QUA   0

Min OD quality index.

#define MPI_IVA_OD_MIN_SEN   0

Min OD sensitivity.

#define MPI_IVA_OD_MIN_TRACK_REFINE   0

Min OD track refinement index.

#define MPI_IVA_OD_MOTOR_DISABLE   0

Disable OD camera motor when gmv detection is enabled.

#define MPI_IVA_OD_MOTOR_ENABLE   1

Enable OD camera motor when gmv detection is enabled.

Function Documentation

INT32 MPI_IVA_disableObjDet ( MPI_WIN  idx)

Disable OD on specified video window.

Parameters
[in]idxIndex of the video window that is to be configured.
Returns
The execution result
Return values
MPI_SUCCESSsuccess.
MPI_ERR_DEV_INVALID_WINinvalid video window index.
MPI_ERR_DEV_INVALID_CHNinvalid video channel index.
MPI_ERR_DEV_INVALID_DEVinvalid device index.
MPI_ERR_DEV_NOT_EXISTdevice/channel not exist.
MPI_ERR_DEV_NOT_PERMobject detection hasn't been enabled.
MPI_ERR_DEV_CONFLICTobject detection run on another video window.
MPI_FAILUREunexpected fail.
Note
See also
MPI_IVA_enableObjDet()
INT32 MPI_IVA_enableObjDet ( MPI_WIN  idx)

Enable OD (object detection) on specified video window.

Parameters
[in]idxIndex of the video window that is to be configured.
Returns
The execution result
Return values
MPI_SUCCESSsuccess.
MPI_ERR_DEV_INVALID_WINinvalid video window index.
MPI_ERR_DEV_INVALID_CHNinvalid video channel index.
MPI_ERR_DEV_INVALID_DEVinvalid device index.
MPI_ERR_DEV_NOT_EXISTdevice/channel not exist.
MPI_ERR_DEV_BUSYobject detection has been enabled.
MPI_FAILUREunexpected fail.
Note
See also
MPI_IVA_disableObjDet()
INT32 MPI_IVA_getBitStreamObjList ( MPI_WIN  idx,
uint32_t  timestamp,
MPI_IVA_OBJ_LIST_S obj_list 
)

Get object list for specific frame index.

Parameters
[in]idxIndex of the video window that is to retrieve OD result.
[in]timestamptime stamp from bit-stream.
[out]listobject list.
Returns
The execution result.
Return values
MPI_SUCCESSsuccess.
MPI_ERR_DEV_NULL_POINTERinput pointer is NULL.
MPI_ERR_DEV_INVALID_WINinvalid video window index.
MPI_ERR_DEV_INVALID_CHNinvalid video channel index.
MPI_ERR_DEV_INVALID_DEVinvalid device index.
MPI_ERR_DEV_NOT_EXISTdevice/channel not exist.
MPI_ERR_DEV_NOT_PERMOD hasn't been enabled.
MPI_ERR_DEV_CONFLICTOD run on another video window.
MPI_ERR_DEV_INVALID_PARAMframe count difference is too large.
MPI_FAILUREunexpected fail.
Note
See also
MPI_DEV_waitWin()
MPI_IVA_enableObjDet()
MPI_IVA_getObjList()
INT32 MPI_IVA_getObjList ( MPI_WIN  idx,
MPI_IVA_OBJ_LIST_S obj_list 
)

Get current object list.

Parameters
[in]idxIndex of the video window that is to retrieve OD result.
[out]listobject list.
Returns
The execution result.
Return values
MPI_SUCCESSsuccess.
MPI_ERR_DEV_NULL_POINTERinput pointer is NULL.
MPI_ERR_DEV_INVALID_WINinvalid video window index.
MPI_ERR_DEV_INVALID_CHNinvalid video channel index.
MPI_ERR_DEV_INVALID_DEVinvalid device index.
MPI_ERR_DEV_NOT_EXISTdevice/channel not exist.
MPI_ERR_DEV_NOT_PERMOD hasn't been enabled.
MPI_ERR_DEV_CONFLICTOD run on another video window.
MPI_FAILUREunexpected fail.
See also
MPI_IVA_enableObjDet()
MPI_IVA_getBitStreamObjList()
INT32 MPI_IVA_getObjMotorParam ( MPI_WIN  idx,
MPI_IVA_OD_MOTOR_PARAM_S param 
)

Get OD motor parameters.

Parameters
[in]idxIndex of the video window that is to retrieve attributes.
[out]paramOD motor parameters.
Returns
The execution result.
Return values
MPI_SUCCESSsuccess.
MPI_ERR_DEV_NULL_POINTERinput pointer is NULL.
MPI_ERR_DEV_INVALID_WINinvalid video window index.
MPI_ERR_DEV_INVALID_CHNinvalid video channel index.
MPI_ERR_DEV_INVALID_DEVinvalid device index.
MPI_ERR_DEV_NOT_EXISTdevice/channel not exist.
MPI_FAILUREunexpected fail.
See also
MPI_IVA_setObjMotorParam()
INT32 MPI_IVA_getObjParam ( MPI_WIN  idx,
MPI_IVA_OD_PARAM_S param 
)

Get OD parameters.

Parameters
[in]idxIndex of the video window that is to retrieve attributes.
[out]paramOD parameters.
Returns
The execution result.
Return values
MPI_SUCCESSsuccess.
MPI_ERR_DEV_NULL_POINTERinput pointer is NULL.
MPI_ERR_DEV_INVALID_WINinvalid video window index.
MPI_ERR_DEV_INVALID_CHNinvalid video channel index.
MPI_ERR_DEV_INVALID_DEVinvalid device index.
MPI_ERR_DEV_NOT_EXISTdevice/channel not exist.
MPI_FAILUREunexpected fail.
See also
MPI_IVA_setObjParam()
INT32 MPI_IVA_setObjMotorParam ( MPI_WIN  idx,
const MPI_IVA_OD_MOTOR_PARAM_S param 
)

Set OD (object detection) motor parameters.

Parameters
[in]idxIndex of the video window that is to be configured.
[in]paramOD motor parameters.
Returns
The execution result.
Return values
MPI_SUCCESSsuccess.
MPI_ERR_DEV_NULL_POINTERinput pointer is NULL.
MPI_ERR_DEV_INVALID_WINinvalid video window index.
MPI_ERR_DEV_INVALID_CHNinvalid video channel index.
MPI_ERR_DEV_INVALID_DEVinvalid device index.
MPI_ERR_DEV_INVALID_PARAMinvalid parameters.
MPI_ERR_DEV_NOT_EXISTdevice/channel not exist.
MPI_FAILUREunexpected fail.
See also
MPI_IVA_getObjMotorParam()
INT32 MPI_IVA_setObjParam ( MPI_WIN  idx,
const MPI_IVA_OD_PARAM_S param 
)

Set OD (object detection) parameters.

Parameters
[in]idxIndex of the video window that is to be configured.
[in]paramOD parameters.
Returns
The execution result.
Return values
MPI_SUCCESSsuccess.
MPI_ERR_DEV_NULL_POINTERinput pointer is NULL.
MPI_ERR_DEV_INVALID_WINinvalid video window index.
MPI_ERR_DEV_INVALID_CHNinvalid video channel index.
MPI_ERR_DEV_INVALID_DEVinvalid device index.
MPI_ERR_DEV_INVALID_PARAMinvalid parameters.
MPI_ERR_DEV_NOT_EXISTdevice/channel not exist.
MPI_FAILUREunexpected fail.
See also
MPI_IVA_getObjParam()