File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ namespace dest {
44
44
public:
45
45
FaceDetector ();
46
46
~FaceDetector ();
47
+ FaceDetector (const FaceDetector &other);
48
+ FaceDetector &operator =(const FaceDetector &other);
47
49
48
50
/* *
49
51
Load classifier from trained file.
Original file line number Diff line number Diff line change @@ -35,6 +35,18 @@ namespace dest {
35
35
FaceDetector::~FaceDetector ()
36
36
{}
37
37
38
+ FaceDetector::FaceDetector (const FaceDetector &other)
39
+ :_data(new data())
40
+ {
41
+ *_data = *other._data ;
42
+ }
43
+
44
+ FaceDetector &FaceDetector::operator =(const FaceDetector &other)
45
+ {
46
+ *_data = *other._data ;
47
+ return *this ;
48
+ }
49
+
38
50
bool FaceDetector::loadClassifiers (const std::string &frontalFaceClassifier, const std::string &eyeClassifier)
39
51
{
40
52
FaceDetector::data &data = *_data;
You can’t perform that action at this time.
0 commit comments