Sample to operate omron HVC-P2 on GR-PEACH.

Dependencies:   AsciiFont

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers STBPeValidValue.h Source File

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