visageSDK
VisageLivenessBrowRaise.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_VISAGELIVENESSBROWRAISE_H
16 #define VSDK_VISAGELIVENESSBROWRAISE_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 #include "VisageLivenessAction.h"
32 #include "FaceData.h"
33 
34 namespace VisageSDK
35 {
56  class VISAGE_DECLSPEC VisageLivenessBrowRaise : public VisageLivenessAction {
57  public:
58 
63 
68 
77  int update(const FaceData *faceData, VsImage*);
78 
82  void reset();
83 
88  static const int STATE_WAIT_FOR_FRONTAL = 1;
89 
94  static const int STATE_ACTION_INITIALIZING = 2;
95 
99  static const int STATE_WAIT_FOR_STABLE = 3;
100 
104  static const int STATE_WAIT_FOR_ACTION = 4;
105 
106 
107  private:
108 
109  void resetInternal();
110 
111  int counterForInit;
112 
113  bool faceNotFrontal;
114 
115  bool HeadStable;
116 
117  bool actionDone;
118 
119  SignalProcessor *SPLeft;
120 
121  SignalProcessor *SPRight;
122 
123  };
124 }
125 
126 #endif //VSDK_VISAGELIVENESSBROWRAISE_H
VisageLivenessAction is an abstract class that can be used to implement algorithm which searches for ...
VisageLivenessBrowRaise is a class that detects whether the person on the live video stream has raise...
Namespace.
Definition: linux_header.h:1
Face data structure, used as container for all face tracking and detection results.
Definition: FaceData.h:259
Image store container.