4
4
#ifndef __OPENCV_FACE_ALIGNMENT_HPP__
5
5
#define __OPENCV_FACE_ALIGNMENT_HPP__
6
6
7
- #include " facemark .hpp"
7
+ #include " opencv2/face/facemark_train .hpp"
8
8
9
9
namespace cv {
10
10
namespace face {
11
- class CV_EXPORTS_W FacemarkKazemi : public Algorithm
11
+ class CV_EXPORTS_W FacemarkKazemi : public Facemark
12
12
{
13
13
public:
14
14
struct CV_EXPORTS Params
@@ -39,8 +39,6 @@ class CV_EXPORTS_W FacemarkKazemi : public Algorithm
39
39
static Ptr<FacemarkKazemi> create (const FacemarkKazemi::Params ¶meters = FacemarkKazemi::Params());
40
40
virtual ~FacemarkKazemi ();
41
41
42
- // / @brief training the facemark model, input are the file names of image list and landmark annotation
43
- virtual void training (String imageList, String groundTruth)=0;
44
42
/* * @brief This function is used to train the model using gradient boosting to get a cascade of regressors
45
43
*which can then be used to predict shape.
46
44
*@param images A vector of type cv::Mat which stores the images which are used in training samples.
@@ -51,16 +49,7 @@ class CV_EXPORTS_W FacemarkKazemi : public Algorithm
51
49
*@returns A boolean value. The function returns true if the model is trained properly or false if it is not trained.
52
50
*/
53
51
virtual bool training (std::vector<Mat>& images, std::vector< std::vector<Point2f> >& landmarks,std::string configfile,Size scale,std::string modelFilename = " face_landmarks.dat" )=0;
54
- /* * @brief This function is used to load the trained model..
55
- *@param filename A variable of type cv::String which stores the name of the file in which trained model is stored.
56
- */
57
- virtual void loadModel (String filename)=0;
58
- /* * @brief This functions retrieves a centered and scaled face shape, according to the bounding rectangle.
59
- *@param image A variable of type cv::InputArray which stores the image whose landmarks have to be found
60
- *@param faces A variable of type cv::InputArray which stores the bounding boxes of faces found in a given image.
61
- *@param landmarks A variable of type cv::InputOutputArray which stores the landmarks of all the faces found in the image
62
- */
63
- virtual bool fit ( InputArray image, InputArray faces, InputOutputArray landmarks )=0;// !< from many ROIs
52
+
64
53
// / set the custom face detector
65
54
virtual bool setFaceDetector (bool (*f)(InputArray , OutputArray, void *), void* userData)=0;
66
55
// / get faces using the custom detector
0 commit comments