Sample to operate omron HVC-P2 on GR-PEACH.
Dependencies: AsciiFont
STBValidValue.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 STBVALIDVALUE_H__ 00018 #define STBVALIDVALUE_H__ 00019 00020 #include "STBTypedefInput.h" 00021 #include "STBCommonDef.h" 00022 #include "STBCommonType.h" 00023 00024 /*-------------------------------------------------------------------*/ 00025 /*Threshold for checking input value*/ 00026 /*-------------------------------------------------------------------*/ 00027 #define STB_BODY_CNT_MIN 0 // body 00028 #define STB_BODY_CNT_MAX 35 00029 #define STB_BODY_XY_MIN 0 00030 #define STB_BODY_XY_MAX 8191 00031 #define STB_BODY_SIZE_MIN 20 00032 #define STB_BODY_SIZE_MAX 8192 00033 #define STB_BODY_CONF_MIN 0 00034 #define STB_BODY_CONF_MAX 1000 00035 #define STB_FACE_CNT_MIN 0 // face 00036 #define STB_FACE_CNT_MAX 35 00037 #define STB_FACE_XY_MIN 0 00038 #define STB_FACE_XY_MAX 8191 00039 #define STB_FACE_SIZE_MIN 20 00040 #define STB_FACE_SIZE_MAX 8192 00041 #define STB_FACE_CONF_MIN 0 00042 #define STB_FACE_CONF_MAX 1000 00043 #define STB_FACE_DIR_LR_MIN -180 00044 #define STB_FACE_DIR_LR_MAX 179 00045 #define STB_FACE_DIR_UD_MIN -180 00046 #define STB_FACE_DIR_UD_MAX 179 00047 #define STB_FACE_DIR_ROLL_MIN -180 00048 #define STB_FACE_DIR_ROLL_MAX 179 00049 #define STB_FACE_DIR_CONF_MIN 0 00050 #define STB_FACE_DIR_CONF_MAX 1000 00051 #define STB_FACE_AGE_VAL_MIN 0 00052 #define STB_FACE_AGE_VAL_MAX 75 00053 #define STB_FACE_AGE_CONF_MIN 0 00054 #define STB_FACE_AGE_CONF_MAX 1000 00055 #define STB_FACE_GEN_VAL_MIN 0 00056 #define STB_FACE_GEN_VAL_MAX 1 00057 #define STB_FACE_GEN_CONF_MIN 0 00058 #define STB_FACE_GEN_CONF_MAX 1000 00059 #define STB_FACE_GAZE_LR_MIN -90 00060 #define STB_FACE_GAZE_LR_MAX 90 00061 #define STB_FACE_GAZE_UD_MIN -90 00062 #define STB_FACE_GAZE_UD_MAX 90 00063 #define STB_FACE_BLI_L_MIN 1 00064 #define STB_FACE_BLI_L_MAX 1000 00065 #define STB_FACE_BLI_R_MIN 1 00066 #define STB_FACE_BLI_R_MAX 1000 00067 #define STB_FACE_EXP_SCORE_MIN 0 00068 #define STB_FACE_EXP_SCORE_MAX 100 /* not 1000 */ 00069 #define STB_FACE_EXP_DEG_MIN -100 00070 #define STB_FACE_EXP_DEG_MAX 100 00071 #define STB_FACE_FR_UID_MIN 0 00072 #define STB_FACE_FR_UID_MAX 499 00073 #define STB_FACE_FR_SCORE_MIN 0 00074 #define STB_FACE_FR_SCORE_MAX 1000 00075 00076 /*-------------------------------------------------------------------*/ 00077 /*Permitted input value*/ 00078 /*-------------------------------------------------------------------*/ 00079 #define STB_ERR_PE_CANNOT -128 /*Estimation is not possible.*/ 00080 #define STB_ERR_FR_CANNOT -128 /*Recognition impossible*/ 00081 #define STB_ERR_FR_NOID -1 /*No corresponding ID*/ 00082 #define STB_ERR_FR_NOALBUM -127 /*Not-registered in Album*/ 00083 /*-------------------------------------------------------------------*/ 00084 /*For collaboration with child library*/ 00085 /*-------------------------------------------------------------------*/ 00086 #define STB_ERR_DIR_CANNOT -256 /*Unable to angle estimation*/ 00087 00088 /*-------------------------------------------------------------------*/ 00089 /* Func */ 00090 /*-------------------------------------------------------------------*/ 00091 STB_INT32 STB_IsValidValue(const STB_FRAME_RESULT *input, STBExecFlg *execFlg); 00092 00093 #endif /* COMMONDEF_H__ */ 00094
Generated on Fri Jul 15 2022 01:15:47 by 1.7.2