OpenCV  4.2.0
Open Source Computer Vision
Classes | Namespaces | Typedefs | Functions
facemark_train.hpp File Reference
#include "opencv2/face/facemark.hpp"
#include "opencv2/objdetect.hpp"
#include <vector>
#include <string>

Classes

struct  cv::face::CParams
 
class  cv::face::FacemarkTrain
 Abstract base class for trainable facemark models. More...
 

Namespaces

 cv
 "black box" representation of the file storage associated with a file on disk.
 
 cv::face
 

Typedefs

typedef bool(* cv::face::FN_FaceDetector) (InputArray, OutputArray, void *userData)
 

Functions

void cv::face::drawFacemarks (InputOutputArray image, InputArray points, Scalar color=Scalar(255, 0, 0))
 Utility to draw the detected facial landmark points. More...
 
bool cv::face::getFaces (InputArray image, OutputArray faces, CParams *params)
 Default face detector This function is mainly utilized by the implementation of a Facemark Algorithm. End users are advised to use function Facemark::getFaces which can be manually defined and circumvented to the algorithm by Facemark::setFaceDetector. More...
 
bool cv::face::getFacesHAAR (InputArray image, OutputArray faces, const String &face_cascade_name)
 
bool cv::face::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. More...
 
bool cv::face::loadFacePoints (String filename, OutputArray points, float offset=0.0f)
 A utility to load facial landmark information from a given file. More...
 
bool cv::face::loadTrainingData (String filename, std::vector< String > &images, OutputArray facePoints, char delim=' ', float offset=0.0f)
 A utility to load facial landmark dataset from a single file. More...
 
bool cv::face::loadTrainingData (String imageList, String groundTruth, std::vector< String > &images, OutputArray facePoints, float offset=0.0f)
 A utility to load facial landmark information from the dataset. More...
 
bool cv::face::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 name and landmarks. The first file in each file should give the path of the image whose landmarks are being described in the file. Then in the subsequent lines there should be coordinates of the landmarks in the image i.e each line should be of the form x,y where x represents the x coordinate of the landmark and y represents the y coordinate of the landmark. More...