Skip to content

Commit 98ded86

Browse files
committed
Merge pull request #1270 from LaurentBerger:Face
2 parents 6848eb6 + 26c2d02 commit 98ded86

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

modules/face/include/opencv2/face/facerec.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class CV_EXPORTS_W LBPHFaceRecognizer : public FaceRecognizer
151151

152152
/**
153153
@param radius The radius used for building the Circular Local Binary Pattern. The greater the
154-
radius, the
154+
radius, the smoother the image but more spatial information you can get.
155155
@param neighbors The number of sample points to build a Circular Local Binary Pattern from. An
156156
appropriate value is to use `8` sample points. Keep in mind: the more sample points you include,
157157
the higher the computational cost.

modules/face/src/eigen_faces.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ class Eigenfaces : public EigenFaceRecognizer
4747

4848
// Send all predict results to caller side for custom result handling
4949
void predict(InputArray src, Ptr<PredictCollector> collector) const;
50+
String getDefaultName() const
51+
{
52+
return "opencv_eigenfaces";
53+
}
5054
};
5155

5256
//------------------------------------------------------------------------------

modules/face/src/fisher_faces.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ class Fisherfaces: public FisherFaceRecognizer
4242

4343
// Send all predict results to caller side for custom result handling
4444
void predict(InputArray src, Ptr<PredictCollector> collector) const;
45+
String getDefaultName() const
46+
{
47+
return "opencv_fisherfaces";
48+
}
4549
};
4650

4751
// Removes duplicate elements in a given vector.

modules/face/src/lbph_faces.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ class LBPH : public LBPHFaceRecognizer
103103
bool empty() const {
104104
return (_labels.empty());
105105
}
106+
String getDefaultName() const
107+
{
108+
return "opencv_lbphfaces";
109+
}
106110

107111
CV_IMPL_PROPERTY(int, GridX, _grid_x)
108112
CV_IMPL_PROPERTY(int, GridY, _grid_y)

0 commit comments

Comments
 (0)