Mar. 14. 2018

Dependencies:   GraphicsFramework GR-PEACH_video LCD_shield_config AsciiFont R_BSP USBHost_custom

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SdkSTBTr.c Source File

SdkSTBTr.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 "SdkSTBTr.h"
00018 #include "TrInterface.h"
00019 
00020 /*This layer only defines the API function */
00021 
00022 /*Create/Delete handle*/
00023 STB_TR_HANDLE STB_Tr_CreateHandle( const STBExecFlg* execFlg ,const STB_INT32 nDetCntMax, const STB_INT32 nTraCntMax){
00024     return (STB_TR_HANDLE)TrCreateHandle( execFlg , nDetCntMax,  nTraCntMax );
00025 }
00026 
00027 STB_INT32 STB_Tr_DeleteHandle(STB_TR_HANDLE handle){
00028     return TrDeleteHandle((TRHANDLE)handle);
00029 }
00030 
00031 /*set frame information*/
00032 STB_INT32 STB_Tr_SetDetect(STB_TR_HANDLE handle,const STB_TR_DET *stbTrDet){
00033     return TrSetDetect((TRHANDLE)handle,stbTrDet);
00034 }
00035 
00036 /*Main process execution*/
00037 STB_INT32 STB_Tr_Execute(STB_TR_HANDLE handle){
00038     return TrExecute((TRHANDLE)handle);
00039 }
00040 
00041 /*get the result*/
00042 STB_INT32 STB_Tr_GetResult(STB_TR_HANDLE handle,STB_TR_RES_FACES* fcResult,STB_TR_RES_BODYS* bdResult){
00043     return TrGetResult((TRHANDLE)handle,fcResult,bdResult);
00044 }
00045 
00046 /*Clear*/
00047 STB_INT32 STB_Tr_Clear(  STB_TR_HANDLE handle  ){
00048     return TrClear((TRHANDLE)handle);
00049 }
00050 
00051 /*RetryCount*/
00052 STB_INT32 STB_Tr_SetRetryCount(STB_TR_HANDLE handle , STB_INT32 nRetryCount){
00053     return TrSetRetryCount((TRHANDLE)handle,nRetryCount);
00054 }
00055 STB_INT32 STB_Tr_GetRetryCount        ( STB_TR_HANDLE handle , STB_INT32* nRetryCount )
00056 {
00057     return TrGetRetryCount((TRHANDLE)handle,nRetryCount);
00058 }
00059 /* Stediness */
00060 STB_INT32 STB_Tr_SetStedinessParam    ( STB_TR_HANDLE handle , STB_INT32    nStedinessPos , STB_INT32  nStedinessSize )
00061 {
00062     return TrSetStedinessParam ((TRHANDLE)handle,nStedinessPos,nStedinessSize);
00063 }
00064 STB_INT32 STB_Tr_GetStedinessParam    ( STB_TR_HANDLE handle , STB_INT32*    nStedinessPos , STB_INT32* nStedinessSize )
00065 {
00066     return TrGetStedinessParam((TRHANDLE)handle,nStedinessPos,nStedinessSize);
00067 }
00068