Sample to operate omron HVC-P2 on GR-PEACH.
Dependencies: AsciiFont
STBTypedefInput.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 __STB_OKOA_RESULT_H__ 00018 #define __STB_OKOA_RESULT_H__ 00019 00020 #ifndef VOID 00021 #define VOID void 00022 #endif 00023 00024 typedef signed char STB_INT8 ; /*8-bit signed integer*/ 00025 typedef unsigned char STB_UINT8 ; /*8-bit unsigned integer*/ 00026 typedef signed short STB_INT16 ; /*16-bit signed integer*/ 00027 typedef unsigned short STB_UINT16 ; /*16-bit unsigned integer*/ 00028 typedef int STB_INT32 ; /*32 bit signed integer*/ 00029 typedef unsigned int STB_UINT32 ; /*32 bit unsigned integer*/ 00030 typedef float STB_FLOAT32 ; /*32-bit floating point number*/ 00031 typedef double STB_FLOAT64 ; /*64-bit floating point number*/ 00032 00033 typedef enum { 00034 STB_Expression_Neutral, 00035 STB_Expression_Happiness, 00036 STB_Expression_Surprise, 00037 STB_Expression_Anger, 00038 STB_Expression_Sadness, 00039 STB_Expression_Max 00040 } STB_OKAO_EXPRESSION; 00041 00042 typedef struct { 00043 STB_INT32 nX; 00044 STB_INT32 nY; 00045 } STB_POINT; 00046 00047 /*Face direction estimation*/ 00048 typedef struct { 00049 STB_INT32 nLR; 00050 STB_INT32 nUD; 00051 STB_INT32 nRoll; 00052 STB_INT32 nConfidence; 00053 } STB_FRAME_RESULT_DIRECTION; 00054 00055 /*Age estimation*/ 00056 typedef struct { 00057 STB_INT32 nAge; 00058 STB_INT32 nConfidence; 00059 } STB_FRAME_RESULT_AGE; 00060 00061 /*Gender estimation*/ 00062 typedef struct { 00063 STB_INT32 nGender; 00064 STB_INT32 nConfidence; 00065 } STB_FRAME_RESULT_GENDER; 00066 00067 /*Gaze estimation*/ 00068 typedef struct { 00069 STB_INT32 nLR; 00070 STB_INT32 nUD; 00071 } STB_FRAME_RESULT_GAZE; 00072 00073 /*Blink estimation*/ 00074 typedef struct { 00075 STB_INT32 nLeftEye; 00076 STB_INT32 nRightEye; 00077 } STB_FRAME_RESULT_BLINK; 00078 00079 /*estimation of facial expression*/ 00080 typedef struct { 00081 STB_INT32 anScore[STB_Expression_Max] ; 00082 STB_INT32 nDegree; 00083 } STB_FRAME_RESULT_EXPRESSION; 00084 00085 /*Face recognition*/ 00086 typedef struct { 00087 STB_INT32 nUID; 00088 STB_INT32 nScore; 00089 } STB_FRAME_RESULT_RECOGNITION; 00090 00091 /*One detection result*/ 00092 typedef struct { 00093 STB_POINT center; 00094 STB_INT32 nSize; 00095 STB_INT32 nConfidence ; 00096 } STB_FRAME_RESULT_DETECTION; 00097 00098 /*Face detection and post-processing result (1 person)*/ 00099 typedef struct { 00100 STB_POINT center; 00101 STB_INT32 nSize; 00102 STB_INT32 nConfidence; 00103 STB_FRAME_RESULT_DIRECTION direction; 00104 STB_FRAME_RESULT_AGE age; 00105 STB_FRAME_RESULT_GENDER gender; 00106 STB_FRAME_RESULT_GAZE gaze; 00107 STB_FRAME_RESULT_BLINK blink; 00108 STB_FRAME_RESULT_EXPRESSION expression; 00109 STB_FRAME_RESULT_RECOGNITION recognition; 00110 } STB_FRAME_RESULT_FACE; 00111 00112 /*One human body detection result*/ 00113 typedef struct { 00114 STB_INT32 nCount; 00115 STB_FRAME_RESULT_DETECTION body[35]; 00116 } STB_FRAME_RESULT_BODYS; 00117 00118 /*Face detection and post-processing result (1 frame)*/ 00119 typedef struct { 00120 STB_INT32 nCount; 00121 STB_FRAME_RESULT_FACE face[35]; 00122 } STB_FRAME_RESULT_FACES; 00123 00124 00125 /*FRAME result (1 frame)*/ 00126 typedef struct { 00127 STB_FRAME_RESULT_BODYS bodys; 00128 STB_FRAME_RESULT_FACES faces; 00129 } STB_FRAME_RESULT; 00130 00131 #endif /*__HVCW_RESULT_H__*/
Generated on Fri Jul 15 2022 01:15:47 by 1.7.2