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

Dependencies:   AsciiFont

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers recognition_proc.h Source File

recognition_proc.h

00001 #ifndef RECOGNITION_PROCESSING_H
00002 #define RECOGNITION_PROCESSING_H
00003 
00004 #include "DisplayBace.h"
00005 #include "HVCApi.h"
00006 #include "HVCDef.h"
00007 #include "HVCExtraUartFunc.h"
00008 
00009 #define BODY_THRESHOLD_DEFAULT             500            /* Threshold for Human Body Detection */
00010 #define FACE_THRESHOLD_DEFAULT             500            /* Threshold for Face Detection */
00011 #define HAND_THRESHOLD_DEFAULT             500            /* Threshold for Hand Detection */
00012 #define REC_THRESHOLD_DEFAULT              500            /* Threshold for Face Recognition */
00013 
00014 #define BODY_SIZE_RANGE_MIN_DEFAULT        180            /* Human Body Detection minimum detection size */
00015 #define BODY_SIZE_RANGE_MAX_DEFAULT       1000            /* Human Body Detection maximum detection size */
00016 #define HAND_SIZE_RANGE_MIN_DEFAULT        100            /* Hand Detection minimum detection size */
00017 #define HAND_SIZE_RANGE_MAX_DEFAULT       1000            /* Hand Detection maximum detection size */
00018 #define FACE_SIZE_RANGE_MIN_DEFAULT        100            /* Face Detection minimum detection size */
00019 #define FACE_SIZE_RANGE_MAX_DEFAULT       1000            /* Face Detection maximum detection size */
00020 
00021 #define FACE_POSE_DEFAULT                    0            /* Face Detection facial pose (frontal face)*/
00022 #define FACE_ANGLE_DEFAULT                   0            /* Face Detection roll angle (±15°)*/
00023 
00024 /* STB */
00025 #define STB_RETRYCOUNT_DEFAULT               5            /* Retry Count for STB */
00026 #define STB_POSSTEADINESS_DEFAULT           30            /* Position Steadiness for STB */
00027 #define STB_SIZESTEADINESS_DEFAULT          30            /* Size Steadiness for STB */
00028 #define STB_PE_FRAME_DEFAULT                10            /* Complete Frame Count for property estimation in STB */
00029 #define STB_PE_ANGLEUDMIN_DEFAULT          -15            /* Up/Down face angle minimum value for property estimation in STB */
00030 #define STB_PE_ANGLEUDMAX_DEFAULT           20            /* Up/Down face angle maximum value for property estimation in STB */
00031 #define STB_PE_ANGLELRMIN_DEFAULT          -20            /* Left/Right face angle minimum value for property estimation in STB */
00032 #define STB_PE_ANGLELRMAX_DEFAULT           20            /* Left/Right face angle maximum value for property estimation in STB */
00033 #define STB_PE_THRESHOLD_DEFAULT           300            /* Threshold for property estimation in STB */
00034 
00035 typedef struct {
00036     INT32         execFlag;
00037     HVC_THRESHOLD threshold;
00038     HVC_SIZERANGE sizeRange;
00039     INT32         pose;
00040     INT32         angle;
00041 } recognition_setting_t;
00042 
00043 extern void recognition_task(DisplayBase * p_display);
00044 
00045 extern recognition_setting_t * GetRecognitionSettingPointer(void);
00046 extern void SetRegistrationrReq(void);
00047 extern void SetSettingReq(void);
00048 
00049 #endif