mw::mgr::MGRcgProcessInit Function

Syntax

#include <mw/mgr/mgr.h>

s32 MGRcgProcessInit(
     MGConfig *mgConfig,
     u8       *pExtBuf
);

Parameters

Name Description
in mgConfig Specifies the image size, rectangular region for processing, recognition mode, difference sensitivity between frames, and speed sensitivity parameters.
in pExtBuf Specifies the starting address of the working memory.

Return Values

Value Description
PSERR_TRUE Success.
PSERR_MEMR Insufficient memory.
PSERR_ARGU Argument error.
PSERR_IMAG Abnormal image.
PSERR_PROC Processing is impossible.

Description

Performs the initialization process for the recognition engine.

This function must be called prior to recognition operations.
Get the required working memory size to set in pExtBuf with the MGRcgGetWorkSize function, allocate that memory in the application, and set the address for the working memory.
If you set an appropriate value for mgConfig and call the MGRcgProcessInit function, the recognition engine is initialized. After this function exits normally, you can recognize motion gestures by calling the MGRcgProcessExec function repeatedly.

Revision History

2014/05/28
Initial version.

CONFIDENTIAL