Skip to content

Commit fbaa1a1

Browse files
committed
Merge pull request #1592 from berak:landmarks
2 parents d5fe83e + 51e96d8 commit fbaa1a1

21 files changed

+590
-457
lines changed

modules/face/include/opencv2/face.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ class CV_EXPORTS_W FaceRecognizer : public Algorithm
375375

376376
#include "opencv2/face/facerec.hpp"
377377
#include "opencv2/face/facemark.hpp"
378+
#include "opencv2/face/facemark_train.hpp"
378379
#include "opencv2/face/facemarkLBF.hpp"
379380
#include "opencv2/face/facemarkAAM.hpp"
380381
#include "opencv2/face/face_alignment.hpp"

modules/face/include/opencv2/face/face_alignment.hpp

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
#ifndef __OPENCV_FACE_ALIGNMENT_HPP__
55
#define __OPENCV_FACE_ALIGNMENT_HPP__
66

7-
#include "facemark.hpp"
7+
#include "opencv2/face/facemark_train.hpp"
88

99
namespace cv{
1010
namespace face{
11-
class CV_EXPORTS_W FacemarkKazemi : public Algorithm
11+
class CV_EXPORTS_W FacemarkKazemi : public Facemark
1212
{
1313
public:
1414
struct CV_EXPORTS Params
@@ -39,8 +39,6 @@ class CV_EXPORTS_W FacemarkKazemi : public Algorithm
3939
static Ptr<FacemarkKazemi> create(const FacemarkKazemi::Params &parameters = FacemarkKazemi::Params());
4040
virtual ~FacemarkKazemi();
4141

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;
4442
/** @brief This function is used to train the model using gradient boosting to get a cascade of regressors
4543
*which can then be used to predict shape.
4644
*@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
5149
*@returns A boolean value. The function returns true if the model is trained properly or false if it is not trained.
5250
*/
5351
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+
6453
/// set the custom face detector
6554
virtual bool setFaceDetector(bool(*f)(InputArray , OutputArray, void*), void* userData)=0;
6655
/// get faces using the custom detector

0 commit comments

Comments
 (0)