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