Sample to operate omron HVC-P2 on GR-PEACH.
Dependencies: AsciiFont
STBAPI.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_STB_H_ ) 00018 #define _SDK_STB_H_ 00019 #include "STBTypedefInput.h" 00020 #include "STBTypedefOutput.h" 00021 00022 00023 00024 #if !defined( STB_DEF_HANDLE ) 00025 #define STB_DEF_HANDLE 00026 typedef VOID* HSTB ; 00027 #endif 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00033 /*Create/Delete handle*/ 00034 STB_INT32 STB_GetVersion(STB_INT8* pnMajorVersion, STB_INT8* pnMinorVersion); 00035 HSTB STB_CreateHandle(STB_UINT32 unUseFuncFlag); 00036 VOID STB_DeleteHandle(HSTB hSTB); 00037 00038 /*set frame information*/ 00039 STB_INT32 STB_SetFrameResult(HSTB hSTB, const STB_FRAME_RESULT *stFrameResult); 00040 STB_INT32 STB_ClearFrameResults(HSTB hSTB); 00041 /*Main process execution*/ 00042 STB_INT32 STB_Execute(HSTB hSTB); 00043 /*get the result*/ 00044 STB_INT32 STB_GetFaces(HSTB hSTB, STB_UINT32 *punFaceCount, STB_FACE stFace[]); 00045 STB_INT32 STB_GetBodies(HSTB hSTB, STB_UINT32 *punBodyCount, STB_BODY stBody[]); 00046 00047 /*Setting / Getting Function for tracking*/ 00048 STB_INT32 STB_SetTrRetryCount(HSTB hSTB, STB_INT32 nMaxRetryCount); 00049 STB_INT32 STB_GetTrRetryCount(HSTB hSTB, STB_INT32 *pnMaxRetryCount); 00050 STB_INT32 STB_SetTrSteadinessParam(HSTB hSTB, STB_INT32 nPosSteadinessParam, STB_INT32 nSizeSteadinessParam); 00051 STB_INT32 STB_GetTrSteadinessParam(HSTB hSTB, STB_INT32 *pnPosSteadinessParam, STB_INT32 *pnSizeSteadinessParam); 00052 /*Setting / Getting Function for property*/ 00053 STB_INT32 STB_SetPeThresholdUse(HSTB hSTB, STB_INT32 nThreshold); 00054 STB_INT32 STB_GetPeThresholdUse(HSTB hSTB, STB_INT32 *pnThreshold); 00055 STB_INT32 STB_SetPeAngleUse(HSTB hSTB, STB_INT32 nMinUDAngle, STB_INT32 nMaxUDAngle, STB_INT32 nMinLRAngle, STB_INT32 nMaxLRAngle); 00056 STB_INT32 STB_GetPeAngleUse(HSTB hSTB, STB_INT32 *pnMinUDAngle, STB_INT32 *pnMaxUDAngle, STB_INT32 *pnMinLRAngle, STB_INT32 *pnMaxLRAngle); 00057 STB_INT32 STB_SetPeCompleteFrameCount(HSTB hSTB, STB_INT32 nFrameCount); 00058 STB_INT32 STB_GetPeCompleteFrameCount(HSTB hSTB, STB_INT32 *pnFrameCount); 00059 /*Setting / Getting Function for recognition*/ 00060 STB_INT32 STB_SetFrThresholdUse(HSTB hSTB, STB_INT32 nThreshold); 00061 STB_INT32 STB_GetFrThresholdUse(HSTB hSTB, STB_INT32 *pnThreshold); 00062 STB_INT32 STB_SetFrAngleUse(HSTB hSTB, STB_INT32 nMinUDAngle, STB_INT32 nMaxUDAngle, STB_INT32 nMinLRAngle, STB_INT32 nMaxLRAngle); 00063 STB_INT32 STB_GetFrAngleUse(HSTB hSTB, STB_INT32 *pnMinUDAngle, STB_INT32 *pnMaxUDAngle, STB_INT32 *pnMinLRAngle, STB_INT32 *pnMaxLRAngle); 00064 STB_INT32 STB_SetFrCompleteFrameCount(HSTB hSTB, STB_INT32 nFrameCount); 00065 STB_INT32 STB_GetFrCompleteFrameCount(HSTB hSTB, STB_INT32 *pnFrameCount); 00066 STB_INT32 STB_SetFrMinRatio(HSTB hSTB, STB_INT32 nMinRatio); 00067 STB_INT32 STB_GetFrMinRatio(HSTB hSTB, STB_INT32 *pnMinRatio); 00068 00069 00070 #ifdef __cplusplus 00071 } 00072 #endif 00073 00074 #endif
Generated on Fri Jul 15 2022 01:15:47 by 1.7.2