-
-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathFace.h
More file actions
77 lines (62 loc) · 1.71 KB
/
Face.h
File metadata and controls
77 lines (62 loc) · 1.71 KB
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
#ifndef CFACE_H
#define CFACE_H
#include <QObject>
#include <QMetaClassInfo>
#include "facerecognizer_export.h"
#include "Detector.h"
#include "Tracker.h"
#include "Landmarker.h"
#include "Recognizer.h"
#include "FaceTools.h"
#include "database/Database.h"
/*!
* \~english Face recognition plug-in interface. Implemented by plugins.
*
* \~chinese
* \brief 人脸识别插件接口。由插件实现。
*
* \~
* \see CFactoryFace
* \ingroup API_INTERNAL
*/
class FACERECOGNIZER_EXPORT CFace : public QObject
{
Q_OBJECT
Q_CLASSINFO("Author", "Kang Lin <kl222@126.com>")
Q_PROPERTY(QString name READ GetName)
Q_PROPERTY(QString descritp READ GetDescript)
Q_PROPERTY(int level READ GetLevel)
public:
explicit CFace(QObject *parent = nullptr);
virtual ~CFace();
virtual int Initialize();
virtual int Clean();
virtual QString GetName();
virtual QString GetDescript();
enum LEVEL
{
HEIGHT = 1,
NORMAL = 0,
LOWER = -1
};
virtual int GetLevel();
bool IsValid();
virtual CDetector* GetDector();
virtual CTracker* GetTracker();
virtual CLandmarker* GetLandmarker();
virtual CRecognizer* GetRecognizer();
virtual CFaceTools* GetFaceTools();
virtual CDatabase* GetDatabase();
virtual const QString Detail() const;
protected:
CDetector* m_pDetector;
CTracker* m_pTracker;
CLandmarker* m_pLandmarker;
CRecognizer* m_pRecognizer;
CFaceTools* m_pFaceTools;
private:
CDatabase* m_pDatabase;
};
#define FACE_IID "KangLinStudio.Rabbit.FaceRecognizer.Plugs.Interface.CFace"
Q_DECLARE_INTERFACE(CFace, FACE_IID)
#endif // CFACE_H