12
#ifndef __OPENCV_FACELANDMARKTRAIN_HPP__
 
13
#define __OPENCV_FACELANDMARKTRAIN_HPP__
 
21
#include "opencv2/face/facemark.hpp"
 
22
#include "opencv2/objdetect.hpp"
 
33
typedef
bool(*FN_FaceDetector)(InputArray, OutputArray,
void* userData);
 
76CV_EXPORTS_W
bool
getFacesHAAR(InputArray image,
OutputArray
faces,
const
String& face_cascade_name);
 
94
String annotationList,
 
95
std::vector<String> & images,
 
96
std::vector<String> & annotations);
 
125
char
delim =
' ',
float
offset = 0.0f);
 
164
std::vector<String> & images,
 
166
float
offset = 0.0f);
 
184
CV_EXPORTS_W
bool
loadTrainingData(std::vector<String> filename,std::vector< std::vector<Point2f> >
 
185
&trainlandmarks,std::vector<String> & trainimages);
 
213
float
offset = 0.0f);
 
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition:
mat.hpp:295
 
Cascade classifier class for object detection.
Definition:
objdetect.hpp:225
 
Template class for specifying the size of an image or rectangle.
Definition:
core/types.hpp:316
 
Abstract base class for all facemark models
Definition:
facemark.hpp:48
 
Abstract base class for trainable facemark models
Definition:
facemark_train.hpp:263
 
virtual bool getData(void *items=0)=0
Get data from an algorithm
 
virtual bool setFaceDetector(FN_FaceDetector detector, void *userData=0)=0
Set a user defined face detector for the Facemark algorithm.
 
virtual bool getFaces(InputArray image, OutputArray faces)=0
Detect faces from a given image using default or user defined face detector. Some Algorithm might not...
 
virtual void training(void *parameters=0)=0
Trains a Facemark algorithm using the given dataset. Before the training process, training samples sh...
 
virtual bool addTrainingSample(InputArray image, InputArray landmarks)=0
Add one training sample to the trainer.
 
CV_EXPORTS_W bool loadFacePoints(String filename, OutputArray points, float offset=0.0f)
A utility to load facial landmark information from a given file.
 
CV_EXPORTS_W bool loadTrainingData(std::vector< String > filename, std::vector< std::vector< Point2f > > &trainlandmarks, std::vector< String > &trainimages)
This function extracts the data for training from .txt files which contains the corresponding image n...
 
CV_EXPORTS_W bool loadDatasetList(String imageList, String annotationList, std::vector< String > &images, std::vector< String > &annotations)
A utility to load list of paths to training image and annotation file.
 
CV_EXPORTS_W void drawFacemarks(InputOutputArray image, InputArray points, Scalar color=Scalar(255, 0, 0))
Utility to draw the detected facial landmark points
 
CV_EXPORTS bool getFaces(InputArray image, OutputArray faces, CParams *params)
Default face detector This function is mainly utilized by the implementation of a Facemark Algorithm....
 
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75
 
Definition:
facemark_train.hpp:35
 
int minNeighbors
Parameter specifying how many neighbors each candidate rectangle should have to retain it.
Definition:
facemark_train.hpp:38
 
Size minSize
Minimum possible object size.
Definition:
facemark_train.hpp:39
 
String cascade
the face detector
Definition:
facemark_train.hpp:36
 
double scaleFactor
Parameter specifying how much the image size is reduced at each image scale.
Definition:
facemark_train.hpp:37
 
Size maxSize
Maximum possible object size.
Definition:
facemark_train.hpp:40