visageSDK

VisageLivenessSmile.h
1 //
3 // (c) Visage Technologies AB 2002 - 2023 All rights reserved.
4 //
5 // This file is part of visage|SDK(tm).
6 // Unauthorized copying of this file, via any medium is strictly prohibited.
7 //
8 // No warranty, explicit or implicit, provided.
9 //
10 // This is proprietary software. No part of this software may be used or
11 // reproduced in any form or by any means otherwise than in accordance with
12 // any written license granted by Visage Technologies AB.
13 //
15 #ifndef VSDK_VISAGELIVENESSSMILE_H
16 #define VSDK_VISAGELIVENESSSMILE_H
17
18 #ifdef VISAGE_STATIC
19 #define VISAGE_DECLSPEC
20 #else
21
22 #ifdef VISAGE_EXPORTS
23 #define VISAGE_DECLSPEC __declspec(dllexport)
24 #else
25 #define VISAGE_DECLSPEC __declspec(dllimport)
26 #endif
27
28 #endif
29
30
31
32
33 #include "VisageLivenessAction.h"
34 #include "FaceData.h"
35
36 namespace VisageSDK
37 {
38
58 class VISAGE_DECLSPEC VisageLivenessSmile : public VisageLivenessAction {
59 public:
60
64 VisageLivenessSmile();
65
69 ~VisageLivenessSmile();
70
79 int update(const FaceData *faceData, VsImage*);
80
84 void reset();
85
90 static const int STATE_WAIT_FOR_FRONTAL = 1;
91
96 static const int STATE_ACTION_INITIALIZING = 2;
97
101 static const int STATE_WAIT_FOR_STABLE = 3;
102
106 static const int STATE_WAIT_FOR_ACTION = 4;
107
108 private:
109
110 void resetInternal();
111
112 int counterForInit;
113
114 bool faceNotFrontal;
115
116 bool HeadStable;
117
118 bool actionDone;
119
120 SignalProcessor *SPLeft;
121 };
122 }
123
124 #endif //VSDK_VISAGELIVENESSSMILE_H
VisageSDK::VisageLivenessAction
VisageLivenessAction is an abstract class that can be used to implement algorithm which searches for ...
Definition: VisageLivenessAction.h:50
VisageSDK::VisageLivenessSmile
VisageLivenessSmile is a class that detects whether the person on the live video stream has smiled...
Definition: VisageLivenessSmile.h:58
VisageSDK
Namespace.
Definition: linux_header.h:1
VisageSDK::FaceData
Face data structure, used as container for all face tracking and detection results.
Definition: FaceData.h:259
VsImage
Image store container.
Definition: vs_core_types_c.h:460