Sample to operate omron HVC-P2 on GR-PEACH.
Dependencies: AsciiFont
SdkSTBPe.c
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 #include "SdkSTBPe.h" 00018 #include "PeInterface.h" 00019 00020 /*This layer only defines the API function */ 00021 00022 /*Create/Delete handle*/ 00023 STB_PE_HANDLE STB_Pe_CreateHandle( const STBExecFlg* execFlg ,const STB_INT32 nTraCntMax ){ 00024 return (STB_PE_HANDLE)PeCreateHandle( execFlg , nTraCntMax ); 00025 } 00026 00027 STB_INT32 STB_Pe_DeleteHandle(STB_PE_HANDLE handle){ 00028 return PeDeleteHandle((PEHANDLE)handle); 00029 } 00030 00031 /*set frame information*/ 00032 STB_INT32 STB_Pe_SetDetect(STB_PE_HANDLE handle,const STB_PE_DET *stbPeDet){ 00033 return PeSetDetect((PEHANDLE)handle,stbPeDet); 00034 } 00035 00036 /*Main process execution*/ 00037 STB_INT32 STB_Pe_Execute(STB_PE_HANDLE handle){ 00038 return PeExecute((PEHANDLE)handle); 00039 } 00040 00041 /*get the result*/ 00042 STB_INT32 STB_Pe_GetResult(STB_PE_HANDLE handle, STB_PE_RES* peResult){ 00043 return PeGetResult((PEHANDLE)handle,peResult); 00044 } 00045 STB_INT32 STB_Pe_Clear ( STB_PE_HANDLE handle ) 00046 { 00047 return PeClear((PEHANDLE)handle ); 00048 } 00049 00050 00051 00052 /* FaceDirMinMax */ 00053 STB_INT32 STB_Pe_SetFaceDirMinMax ( STB_PE_HANDLE handle , STB_INT32 nMinUDAngle , STB_INT32 nMaxUDAngle ,STB_INT32 nMinLRAngle , STB_INT32 nMaxLRAngle ) 00054 { 00055 return PeSetFaceDirMinMax((PEHANDLE)handle,nMinUDAngle,nMaxUDAngle,nMinLRAngle,nMaxLRAngle ); 00056 } 00057 STB_INT32 STB_Pe_GetFaceDirMinMax ( STB_PE_HANDLE handle , STB_INT32 *pnMinUDAngle, STB_INT32 *pnMaxUDAngle ,STB_INT32 *pnMinLRAngle, STB_INT32 *pnMaxLRAngle) 00058 { 00059 return PeGetFaceDirMinMax((PEHANDLE)handle,pnMinUDAngle,pnMaxUDAngle, pnMinLRAngle,pnMaxLRAngle); 00060 } 00061 /* FaceDirThreshold */ 00062 STB_INT32 STB_Pe_SetFaceDirThreshold ( STB_PE_HANDLE handle , STB_INT32 threshold ) 00063 { 00064 return PeSetFaceDirThreshold((PEHANDLE)handle,threshold ); 00065 } 00066 STB_INT32 STB_Pe_GetFaceDirThreshold ( STB_PE_HANDLE handle , STB_INT32* threshold ) 00067 { 00068 return PeGetFaceDirThreshold((PEHANDLE)handle,threshold ); 00069 } 00070 00071 /* FrameCount */ 00072 STB_INT32 STB_Pe_SetFrameCount ( STB_PE_HANDLE handle , STB_INT32 nFrameCount ) 00073 { 00074 return PeSetFrameCount((PEHANDLE)handle,nFrameCount ); 00075 } 00076 STB_INT32 STB_Pe_GetFrameCount ( STB_PE_HANDLE handle , STB_INT32* nFrameCount ) 00077 { 00078 return PeGetFrameCount((PEHANDLE)handle,nFrameCount ); 00079 } 00080
Generated on Fri Jul 15 2022 01:15:47 by 1.7.2