#include <abstract_face_recognizer.h>
Public Member Functions | |
AbstractFaceRecognizer (void) | |
Constructor. | |
virtual unsigned long | loadRecognitionModel (std::vector< std::string > &identification_labels_to_recognize)=0 |
virtual unsigned long | recognizeFaces (std::vector< cv::Mat > &color_images, std::vector< std::vector< cv::Rect > > &face_coordinates, std::vector< std::vector< std::string > > &identification_labels) |
virtual unsigned long | recognizeFaces (std::vector< cv::Mat > &color_images, std::vector< cv::Mat > &depth_images, std::vector< std::vector< cv::Rect > > &face_coordinates, std::vector< std::vector< std::string > > &identification_labels) |
virtual unsigned long | saveRecognitionModel ()=0 |
virtual unsigned long | trainRecognitionModel (std::vector< std::string > &identification_labels_to_train)=0 |
~AbstractFaceRecognizer (void) | |
Destructor. | |
Protected Member Functions | |
virtual unsigned long | recognizeFace (cv::Mat &color_image, std::vector< cv::Rect > &face_coordinates, std::vector< std::string > &identification_labels)=0 |
virtual unsigned long | recognizeFace (cv::Mat &color_image, cv::Mat &depth_image, std::vector< cv::Rect > &face_coordinates, std::vector< std::string > &identification_labels)=0 |
Definition at line 75 of file abstract_face_recognizer.h.
Destructor.
Definition at line 81 of file abstract_face_recognizer.cpp.
virtual unsigned long ipa_PeopleDetector::AbstractFaceRecognizer::loadRecognitionModel | ( | std::vector< std::string > & | identification_labels_to_recognize | ) | [pure virtual] |
Loads a model for the recognition of a given set of faces.
identification_labels_to_recognize | List of labels whose corresponding faces shall be available for recognition |
Implemented in ipa_PeopleDetector::FaceRecognizer.
virtual unsigned long ipa_PeopleDetector::AbstractFaceRecognizer::recognizeFace | ( | cv::Mat & | color_image, |
std::vector< cv::Rect > & | face_coordinates, | ||
std::vector< std::string > & | identification_labels | ||
) | [protected, pure virtual] |
Function to Recognize faces The function recognize the faces
color_image | source color image |
face_coordinates | Bounding boxes of detected faces (input parameter) |
identification_labels | Vector of labels of classified faces, indices correspond with bounding boxes in color_face_coordinates |
Implemented in ipa_PeopleDetector::FaceRecognizer.
virtual unsigned long ipa_PeopleDetector::AbstractFaceRecognizer::recognizeFace | ( | cv::Mat & | color_image, |
cv::Mat & | depth_image, | ||
std::vector< cv::Rect > & | face_coordinates, | ||
std::vector< std::string > & | identification_labels | ||
) | [protected, pure virtual] |
Implemented in ipa_PeopleDetector::FaceRecognizer.
unsigned long AbstractFaceRecognizer::recognizeFaces | ( | std::vector< cv::Mat > & | color_images, |
std::vector< std::vector< cv::Rect > > & | face_coordinates, | ||
std::vector< std::vector< std::string > > & | identification_labels | ||
) | [virtual] |
Function to Recognize faces The function recognize the faces
color_images | Source color images |
face_coordinates | Bounding boxes of detected faces (input parameter, local coordinates wrt. to respective image patch), outer index corresponds to color_image index |
identification_labels | Vector of labels of classified faces, both indices correspond with face_coordinates |
Definition at line 85 of file abstract_face_recognizer.cpp.
unsigned long AbstractFaceRecognizer::recognizeFaces | ( | std::vector< cv::Mat > & | color_images, |
std::vector< cv::Mat > & | depth_images, | ||
std::vector< std::vector< cv::Rect > > & | face_coordinates, | ||
std::vector< std::vector< std::string > > & | identification_labels | ||
) | [virtual] |
Definition at line 102 of file abstract_face_recognizer.cpp.
virtual unsigned long ipa_PeopleDetector::AbstractFaceRecognizer::saveRecognitionModel | ( | ) | [pure virtual] |
Saves the currently trained model for the recognition of a given set of faces.
Implemented in ipa_PeopleDetector::FaceRecognizer.
virtual unsigned long ipa_PeopleDetector::AbstractFaceRecognizer::trainRecognitionModel | ( | std::vector< std::string > & | identification_labels_to_train | ) | [pure virtual] |
Trains a model for the recognition of a given set of faces.
identification_labels_to_train | List of labels whose corresponding faces shall be trained. |
Implemented in ipa_PeopleDetector::FaceRecognizer.