02-14-2019, 01:33 AM
There is also this, but how do you get the region where the motion occurred?
VENC_IndexParamMotionDetectEnable,
/**< reference type: MotionParam(write only) */
VENC_IndexParamMotionDetectStatus,
/**< reference type: int(read only) */
typedef struct MotionParam {
int nMotionDetectEnable;
int nMotionDetectRatio; /* 0~12, advise set 0 */
int nStaticDetectRatio; /* 0~12, should be larger than
nMotionDetectRatio, advise set 2 */
int nMaxNumStaticFrame; /* advise set 4 */
double nStaticBitsRatio; /* advise set 0.2~0.3 at daytime, set 0.1
at night */
double nMV64x64Ratio; /* advise set 0.01 */
short nMVXTh; /* advise set 6 */
short nMVYTh; /* advise set 6 */
}MotionParam;
VENC_IndexParamMotionDetectEnable,
/**< reference type: MotionParam(write only) */
VENC_IndexParamMotionDetectStatus,
/**< reference type: int(read only) */
typedef struct MotionParam {
int nMotionDetectEnable;
int nMotionDetectRatio; /* 0~12, advise set 0 */
int nStaticDetectRatio; /* 0~12, should be larger than
nMotionDetectRatio, advise set 2 */
int nMaxNumStaticFrame; /* advise set 4 */
double nStaticBitsRatio; /* advise set 0.2~0.3 at daytime, set 0.1
at night */
double nMV64x64Ratio; /* advise set 0.01 */
short nMVXTh; /* advise set 6 */
short nMVYTh; /* advise set 6 */
}MotionParam;