mw::hgr::HGRcgProcessInit Function

Syntax

#include <mw/hgr/hgr.h>

s32 HGRcgProcessInit(
     HGConfig *hgConfig,
     u8       *pExtBuf
);

Parameters

Name Description
in hgConfig Specifies the image size, rectangular region targeted for processing, recognition movement mode, 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 HGRcgGetWorkSize function, allocate that memory in the application, and set the address for the working memory.
If you set an appropriate value for hgConfig and call the HGRcgProcessInit function, the recognition engine is initialized. After this function exits normally, you can recognize hand gestures by calling the HGRcgProcessExec function repeatedly.

Revision History

2014/05/28
Initial version.

CONFIDENTIAL