Sample to operate omron HVC-P2 on GR-PEACH.
Dependencies: AsciiFont
Interface.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( _INTERFACE_H_ ) 00018 #define _INTERFACE_H_ 00019 #include "STBTypedefInput.h" 00020 #include "STBHandle.h" 00021 00022 #define VERSION_MAJOR ( 1 ) 00023 #define VERSION_MINOR ( 1 ) 00024 00025 #define DETECT_CNT_MAX ( 35 ) /*A maximum number of detected(input) people*/ 00026 #define TRACK_CNT_MAX ( 35 ) /*A maximum number of tracking(output) people*/ 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 /*-------------------------------------------------------------------------------------------------------------------*/ 00033 STB_INT32 GetVersion (STB_INT8* pnMajorVersion , STB_INT8* pnMinorVersion ); 00034 STBHANDLE CreateHandle (STB_UINT32 stbExecFlg ); 00035 STB_INT32 DeleteHandle (STBHANDLE handle); 00036 STB_INT32 SetFrameResult (STBHANDLE handle,const STB_FRAME_RESULT *stbINPUTResult); 00037 STB_INT32 Execute (STBHANDLE handle); 00038 /*-------------------------------------------------------------------------------------------------------------------*/ 00039 STB_INT32 GetFaces (STBHANDLE handle, STB_UINT32 *face_count, STB_FACE face[35]); 00040 STB_INT32 GetBodies (STBHANDLE handle, STB_UINT32 *body_count, STB_BODY body[35]); 00041 STB_INT32 Clear (STBHANDLE handle); 00042 /*-------------------------------------------------------------------------------------------------------------------*/ 00043 STB_INT32 SetTrackingRetryCount (STBHANDLE handle, STB_INT32 nMaxRetryCount ); 00044 STB_INT32 GetTrackingRetryCount (STBHANDLE handle, STB_INT32 *pnMaxRetryCount ); 00045 STB_INT32 SetTrackingSteadinessParam (STBHANDLE handle, STB_INT32 nPosSteadinessParam , STB_INT32 nSizeSteadinessParam ); 00046 STB_INT32 GetTrackingSteadinessParam (STBHANDLE handle, STB_INT32 *pnPosSteadinessParam , STB_INT32 *pnSizeSteadinessParam ); 00047 /*-------------------------------------------------------------------------------------------------------------------*/ 00048 STB_INT32 SetPropertyThreshold (STBHANDLE handle, STB_INT32 nThreshold ); 00049 STB_INT32 GetPropertyThreshold (STBHANDLE handle, STB_INT32 *pnThreshold ); 00050 STB_INT32 SetPropertyAngle (STBHANDLE handle, STB_INT32 nMinUDAngle , STB_INT32 nMaxUDAngle ,STB_INT32 nMinLRAngle , STB_INT32 nMaxLRAngle ); 00051 STB_INT32 GetPropertyAngle (STBHANDLE handle, STB_INT32 *pnMinUDAngle , STB_INT32 *pnMaxUDAngle ,STB_INT32 *pnMinLRAngle, STB_INT32 *pnMaxLRAngle ); 00052 STB_INT32 SetPropertyFrameCount (STBHANDLE handle, STB_INT32 nFrameCount ); 00053 STB_INT32 GetPropertyFrameCount (STBHANDLE handle, STB_INT32 *pnFrameCount ); 00054 /*-------------------------------------------------------------------------------------------------------------------*/ 00055 STB_INT32 SetRecognitionThreshold (STBHANDLE handle, STB_INT32 nThreshold ); 00056 STB_INT32 GetRecognitionThreshold (STBHANDLE handle, STB_INT32 *pnThreshold ); 00057 STB_INT32 SetRecognitionAngle (STBHANDLE handle, STB_INT32 nMinUDAngle , STB_INT32 nMaxUDAngle ,STB_INT32 nMinLRAngle , STB_INT32 nMaxLRAngle ); 00058 STB_INT32 GetRecognitionAngle (STBHANDLE handle, STB_INT32 *pnMinUDAngle , STB_INT32 *pnMaxUDAngle ,STB_INT32 *pnMinLRAngle, STB_INT32 *pnMaxLRAngle ); 00059 STB_INT32 SetRecognitionFrameCount (STBHANDLE handle, STB_INT32 nFrameCount ); 00060 STB_INT32 GetRecognitionFrameCount (STBHANDLE handle, STB_INT32 *pnFrameCount ); 00061 STB_INT32 SetRecognitionRatio (STBHANDLE handle, STB_INT32 nFrameShare ); 00062 STB_INT32 GetRecognitionRatio (STBHANDLE handle, STB_INT32 *pnFrameShare ); 00063 /*-------------------------------------------------------------------------------------------------------------------*/ 00064 #ifdef __cplusplus 00065 } 00066 #endif 00067 00068 #endif
Generated on Fri Jul 15 2022 01:15:47 by 1.7.2