visageSDK

VisageLivenessBlink.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_VISAGELIVENESSBLINK_H
16 #define VSDK_VISAGELIVENESSBLINK_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
37 namespace VisageSDK
38 {
56 class VISAGE_DECLSPEC VisageLivenessBlink : public VisageLivenessAction {
57
58 public:
59
63 VisageLivenessBlink();
64
68 ~VisageLivenessBlink();
69
70
79 int update(const FaceData *faceData, VsImage *frame);
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
109 private:
110
111 void resetInternal();
112
113 int counterForInit;
114
115 bool faceNotFrontal;
116
117 bool HeadStable;
118
119 bool actionDone;
120
121 SignalProcessor *SPLeft;
122 SignalProcessor *SPRight;
123
124 };
125 }
126
127 #endif //VSDK_VISAGELIVENESSBLINK_H
VisageSDK::VisageLivenessAction
VisageLivenessAction is an abstract class that can be used to implement algorithm which searches for ...
Definition: VisageLivenessAction.h:50
VisageSDK::VisageLivenessBlink
VisageLivenessBlink is a class that detects whether the person on the live video stream has blinked...
Definition: VisageLivenessBlink.h:56
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