-
Notifications
You must be signed in to change notification settings - Fork 82
/
Context.hpp
91 lines (61 loc) · 2.09 KB
/
Context.hpp
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/**
@file Context.hpp
@author David Hirvonen
@brief Public API for continuous face filter.
\copyright Copyright 2014-2018 Elucideye, Inc. All rights reserved.
\license{This project is released under the 3 Clause BSD License.}
This file contains the public API of the Context class. This class
will store and allocate internal state necessary for real time
face tracking.
*/
#ifndef __drishti_drishti_Context_hpp__
#define __drishti_drishti_Context_hpp__
#include <drishti/drishti_sdk.hpp>
#include <drishti/drishti_gl.hpp>
#include <drishti/Image.hpp>
#include <drishti/Sensor.hpp>
#include <memory>
_DRISHTI_SDK_BEGIN
class DRISHTI_EXPORT Context
{
public:
struct Impl;
explicit Context(drishti::sdk::SensorModel& sensor);
~Context();
Context(const Context&) = delete;
Context(Context&&) = delete;
Context& operator=(const Context&) = delete;
Context& operator=(Context&&) = delete;
Impl* get() { return impl.get(); }
void updateGL();
void setDoSingleFace(bool flag);
bool getDoSingleFace() const;
void setMinDetectionDistance(float value);
float getMinDetectionDistance() const;
void setMaxDetectionDistance(float value);
float getMaxDetectionDistance() const;
void setFaceFinderInterval(float value);
float getFaceFinderInterval() const;
void setAcfCalibration(float value);
float getAcfCalibration() const;
void setRegressorCropScale(float value);
float getRegressorCropScale() const;
void setMinTrackHits(int hits);
int getMinTrackHits() const;
void setMaxTrackMisses(int hits);
int getMaxTrackMisses() const;
void setMinFaceSeparation(float value);
float getMinFaceSeparation() const;
void setDoOptimizedPipeline(bool flag);
bool getDoOptimizedPipeline() const;
void setDoCpuACF(bool flag);
bool getDoCpuACF() const;
void setDoAnnotation(bool flag);
bool getDoAnnotation() const;
void setGLContext(void *context);
void* getGLContext() const;
protected:
std::unique_ptr<Impl> impl;
};
_DRISHTI_SDK_END
#endif // __drishti_drishti_Context_hpp__