blob: 1edc612fabd492de6414fe2855e2a7d421a4a706 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#include "..\ftnoir_tracker_base\ftnoir_tracker_base.h"
#include "..\ftnoir_tracker_base\ftnoir_tracker_sm_types.h"
#include "ui_FTNoIR_SMClientcontrols.h"
#include <QMessageBox>
#include <QSettings>
#include <QProcess>
#include "Windows.h"
#include "math.h"
using namespace std;
class FTNoIR_Tracker_SM : public ITracker
{
public:
FTNoIR_Tracker_SM();
~FTNoIR_Tracker_SM();
void Release();
void Initialize( QFrame *videoframe );
void StartTracker( HWND parent_window );
void StopTracker( bool exit );
bool GiveHeadPoseData(THeadPoseData *data); // Returns true if confidence is good
void loadSettings();
bool SMCreateMapping();
bool setParameterValue(const int index, const float newvalue);
private:
/** face api variables **/
//APIScope *faceapi_scope;
// QSharedPointer<EngineBase> _engine;
//VideoDisplayWidget *_display;
//QVBoxLayout *l;
//MainWindow *main_window;
//parameter list for the filter-function(s)
//
// global variables
//
HANDLE hSMMemMap;
SMMemMap *pMemData;
HANDLE hSMMutex;
// smEngineHeadPoseData new_head_pose;
QProcess *faceAPI;
enum
{
kPortAddress=0, // Index in QList
kNumFilterParameters // Indicate number of parameters used
};
QList<std::pair<float,float>> parameterRange;
QList<float> parameterValueAsFloat;
};
|