Sample to operate omron HVC-P2 on GR-PEACH.

Dependencies:   AsciiFont

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SdkSTBPe.h Source File

SdkSTBPe.h

00001 /*---------------------------------------------------------------------------*/
00002 /* Copyright(C)  2017  OMRON Corporation                                     */
00003 /*                                                                           */
00004 /* Licensed under the Apache License, Version 2.0 (the "License");           */
00005 /* you may not use this file except in compliance with the License.          */
00006 /* You may obtain a copy of the License at                                   */
00007 /*                                                                           */
00008 /*     http://www.apache.org/licenses/LICENSE-2.0                            */
00009 /*                                                                           */
00010 /* Unless required by applicable law or agreed to in writing, software       */
00011 /* distributed under the License is distributed on an "AS IS" BASIS,         */
00012 /* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  */
00013 /* See the License for the specific language governing permissions and       */
00014 /* limitations under the License.                                            */
00015 /*---------------------------------------------------------------------------*/
00016 
00017 #if !defined( _SDK_STBPE_H_ )
00018 #define _SDK_STBPE_H_
00019 #include "STBPeTypedef.h"
00020 
00021 #if !defined( STB_DEF_PE_HANDLE )
00022     #define     STB_DEF_PE_HANDLE
00023     typedef  VOID*  STB_PE_HANDLE;
00024 #endif
00025 
00026 STB_PE_HANDLE    STB_Pe_CreateHandle        ( const STBExecFlg* execFlg ,const STB_INT32 nTraCntMax    );/*Create/Delete handle*/
00027 STB_INT32        STB_Pe_DeleteHandle        ( STB_PE_HANDLE handle                                    );/*Create/Delete handle*/
00028 STB_INT32        STB_Pe_SetDetect        ( STB_PE_HANDLE handle, const STB_PE_DET *stbPeDet        );/*Frame information settings*/
00029 STB_INT32        STB_Pe_Execute            ( STB_PE_HANDLE handle                                    );/*Main process execution*/
00030 STB_INT32        STB_Pe_GetResult        ( STB_PE_HANDLE handle, STB_PE_RES* peResult            );/*Get result*/
00031 
00032 /*parameter*/
00033 STB_INT32        STB_Pe_SetFaceDirMinMax        ( STB_PE_HANDLE handle , STB_INT32 nMinUDAngle    , STB_INT32 nMaxUDAngle        ,STB_INT32 nMinLRAngle    , STB_INT32 nMaxLRAngle    );/* FaceDirMinMax */
00034 STB_INT32        STB_Pe_GetFaceDirMinMax        ( STB_PE_HANDLE handle , STB_INT32 *pnMinUDAngle, STB_INT32 *pnMaxUDAngle    ,STB_INT32 *pnMinLRAngle, STB_INT32 *pnMaxLRAngle);
00035 STB_INT32        STB_Pe_Clear                ( STB_PE_HANDLE handle                                );/* Clear */
00036 STB_INT32        STB_Pe_SetFaceDirThreshold    ( STB_PE_HANDLE handle , STB_INT32    threshold        );/* FaceDirThreshold */
00037 STB_INT32        STB_Pe_GetFaceDirThreshold    ( STB_PE_HANDLE handle , STB_INT32*    threshold        );
00038 STB_INT32        STB_Pe_SetFrameCount        ( STB_PE_HANDLE handle , STB_INT32    nFrameCount        );
00039 STB_INT32        STB_Pe_GetFrameCount        ( STB_PE_HANDLE handle , STB_INT32*    nFrameCount        );
00040 
00041 #endif