OpenCV453
クラス | 公開メンバ関数 | 静的公開メンバ関数 | 全メンバ一覧
cv::face::FacemarkKazemi クラスabstract

cv::face::Facemarkを継承しています。

クラス

struct  Params
 

公開メンバ関数

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
 This function is used to train the model using gradient boosting to get a cascade of regressors which can then be used to predict shape. [詳解]
 
virtual bool setFaceDetector (bool(*f)(InputArray, OutputArray, void *), void *userData)=0
 set the custom face detector
 
virtual bool getFaces (InputArray image, OutputArray faces)=0
 get faces using the custom detector
 
- 基底クラス cv::face::Facemark に属する継承公開メンバ関数
virtual CV_WRAP void loadModel (String model)=0
 A function to load the trained model before the fitting process. [詳解]
 
virtual CV_WRAP bool fit (InputArray image, InputArray faces, OutputArrayOfArrays landmarks)=0
 Detect facial landmarks from an image. [詳解]
 
- 基底クラス cv::Algorithm に属する継承公開メンバ関数
virtual CV_WRAP void clear ()
 Clears the algorithm state [詳解]
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage [詳解]
 
CV_WRAP void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 simplified API for language bindings これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
 
virtual CV_WRAP void read (const FileNode &fn)
 Reads algorithm parameters from a file storage [詳解]
 
virtual CV_WRAP bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read [詳解]
 
virtual CV_WRAP void save (const String &filename) const
 
virtual CV_WRAP String getDefaultName () const
 

静的公開メンバ関数

static Ptr< FacemarkKazemicreate (const FacemarkKazemi::Params &parameters=FacemarkKazemi::Params())
 
- 基底クラス cv::Algorithm に属する継承静的公開メンバ関数
template<typename _Tp >
static Ptr< _Tp > read (const FileNode &fn)
 Reads algorithm from the file node [詳解]
 
template<typename _Tp >
static Ptr< _Tp > load (const String &filename, const String &objname=String())
 Loads algorithm from the file [詳解]
 
template<typename _Tp >
static Ptr< _Tp > loadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String [詳解]
 

その他の継承メンバ

- 基底クラス cv::Algorithm に属する継承限定公開メンバ関数
void writeFormat (FileStorage &fs) const
 

関数詳解

◆ training()

virtual bool cv::face::FacemarkKazemi::training ( std::vector< Mat > &  images,
std::vector< std::vector< Point2f > > &  landmarks,
std::string  configfile,
Size  scale,
std::string  modelFilename = "face_landmarks.dat" 
)
pure virtual

This function is used to train the model using gradient boosting to get a cascade of regressors which can then be used to predict shape.

引数
imagesA vector of type cv::Mat which stores the images which are used in training samples.
landmarksA vector of vectors of type cv::Point2f which stores the landmarks detected in a particular image.
scaleA size of type cv::Size to which all images and landmarks have to be scaled to.
configfileA variable of type std::string which stores the name of the file storing parameters for training the model.
modelFilenameA variable of type std::string which stores the name of the trained model file that has to be saved.
戻り値
A boolean value. The function returns true if the model is trained properly or false if it is not trained.

このクラス詳解は次のファイルから抽出されました: