Sample to operate omron HVC-P2 on GR-PEACH.
Dependencies: AsciiFont
STBTrTypedef.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 __STBTRTYPEDEF_H__ 00018 #define __STBTRTYPEDEF_H__ 00019 00020 #include "STBTypedefOutput.h" 00021 #include "STBCommonType.h" 00022 #include "STBCommonDef.h" 00023 00024 /*----------------------------------------------------------------------------*/ 00025 /* Struct */ 00026 /*----------------------------------------------------------------------------*/ 00027 00028 /*----------------------------------------------------------------------------*/ 00029 /* Detection result (Tracking input infomation) */ 00030 /*----------------------------------------------------------------------------*/ 00031 typedef struct{ 00032 STB_INT32 posX ; /* Center x-coordinate */ 00033 STB_INT32 posY ; /* Center y-coordinate */ 00034 STB_INT32 size ; /* Size */ 00035 STB_INT32 conf ; /* Degree of confidence */ 00036 }ROI_DET; 00037 /*----------------------------------------------------------------------------*/ 00038 /* Result data (Tracking input infomation) */ 00039 /*----------------------------------------------------------------------------*/ 00040 typedef struct{ 00041 STB_INT32 fcNum ; /*a number of detected face*/ 00042 ROI_DET * fcDet ; /* face rectangle data */ 00043 STB_INT32 bdNum ; /*a number of body detection*/ 00044 ROI_DET * bdDet ; /*Body rectangular data*/ 00045 }STB_TR_DET; 00046 /*----------------------------------------------------------------------------*/ 00047 /* Tracking object result (Tracking output infomation) */ 00048 /*----------------------------------------------------------------------------*/ 00049 typedef struct { 00050 STB_INT32 nDetID ; /*previous detected result ID*/ 00051 STB_INT32 nTraID ; /*Tracking ID*/ 00052 STB_POS pos ; /* Stabilization of coordinates */ 00053 STB_INT32 size ; /*Stabilization of face size*/ 00054 STB_INT32 conf ; /*tracking confidence*/ 00055 } STB_TR_RES; 00056 /*----------------------------------------------------------------------------*/ 00057 /* Faces tracking result (Tracking output infomation) */ 00058 /*----------------------------------------------------------------------------*/ 00059 typedef struct { 00060 STB_INT32 cnt ; /*a number of facial information during tracking*/ 00061 STB_TR_RES* face ; /*the facial information during tracking */ 00062 } STB_TR_RES_FACES; 00063 /*----------------------------------------------------------------------------*/ 00064 /* Faces tracking result (Tracking output infomation) */ 00065 /*----------------------------------------------------------------------------*/ 00066 typedef struct { 00067 STB_INT32 cnt ; /*a number of human body during tracking*/ 00068 STB_TR_RES* body ; /*the human body information during tracking*/ 00069 } STB_TR_RES_BODYS; 00070 00071 00072 00073 #endif /*__STBTRTYPEDEF_H__*/
Generated on Fri Jul 15 2022 01:15:47 by 1.7.2