#include "..\ftnoir_tracker_base\ftnoir_tracker_base.h" #include "ui_FTNoIR_SMClientcontrols.h" #include "sm_api_qt.h" #include #include #include "Windows.h" #include "math.h" using namespace std; //using namespace sm::faceapi::samplecode; using namespace sm::faceapi; using namespace sm::faceapi::qt; class FTNoIR_Tracker_SM : public ITracker { public: FTNoIR_Tracker_SM(); ~FTNoIR_Tracker_SM(); void Release(); void Initialize(); void StartTracker(); void StopTracker(); bool GiveHeadPoseData(THeadPoseData *data); // Returns true if confidence is good void loadSettings(); bool setParameterValue(const int index, const float newvalue); private: /** face api variables **/ APIScope *faceapi_scope; QSharedPointer _engine; smEngineHandle _engine_handle; //parameter list for the filter-function(s) enum { kPortAddress=0, // Index in QList kNumFilterParameters // Indicate number of parameters used }; QList> parameterRange; QList parameterValueAsFloat; };