#include <face_detector.h>
Public Member Functions | |
| virtual unsigned long | detectColorFaces (std::vector< cv::Mat > &heads_color_images, const std::vector< cv::Mat > &heads_depth_images, std::vector< std::vector< cv::Rect > > &face_coordinates) |
| FaceDetector (void) | |
| Constructor. | |
| virtual unsigned long | init (std::string directory, double faces_increase_search_scale, int faces_drop_groups, int faces_min_search_scale_x, int faces_min_search_scale_y, bool reason_about_3dface_size, double face_size_max_m, double face_size_min_m, double max_face_z_m, bool debug) |
| ~FaceDetector (void) | |
| Destructor. | |
Protected Attributes | |
| bool | m_debug |
| enables some debug outputs | |
| CvHaarClassifierCascade * | m_face_cascade |
| Haar-Classifier for face-detection. | |
| double | m_face_size_max_m |
| the maximum feasible face diameter [m] if reason_about_3dface_size is enabled | |
| double | m_face_size_min_m |
| the minimum feasible face diameter [m] if reason_about_3dface_size is enabled | |
| int | m_faces_drop_groups |
| Minimum number (minus 1) of neighbor rectangles that makes up an object. | |
| double | m_faces_increase_search_scale |
| The factor by which the search window is scaled between the subsequent scans. | |
| int | m_faces_min_search_scale_x |
| Minimum search scale x. | |
| int | m_faces_min_search_scale_y |
| Minimum search scale y. | |
| bool | m_initialized |
| indicates whether the class was already initialized | |
| double | m_max_face_z_m |
| maximum distance [m] of detected faces to the sensor | |
| bool | m_reason_about_3dface_size |
| if true, the 3d face size is determined and only faces with reasonable size are accepted | |
| CvMemStorage * | m_storage |
| Storage for face and eye detection. | |
Definition at line 75 of file face_detector.h.
| FaceDetector::FaceDetector | ( | void | ) |
| FaceDetector::~FaceDetector | ( | void | ) |
Destructor.
Definition at line 105 of file face_detector.cpp.
| unsigned long FaceDetector::detectColorFaces | ( | std::vector< cv::Mat > & | heads_color_images, |
| const std::vector< cv::Mat > & | heads_depth_images, | ||
| std::vector< std::vector< cv::Rect > > & | face_coordinates | ||
| ) | [virtual] |
Function to detect the faces on color image The function detects the faces in an given image
| heads_color_images | Color images of the regions that supposedly contain a head |
| heads_depth_images | Depth images of the regions that supposedly contain a head |
| face_coordinates | Vector of same size as heads_color_images, each entry becomes filled with another vector with the coordinates of detected faces in color image, i.e. outer index corresponds with index of heads_color_images |
Definition at line 112 of file face_detector.cpp.
| unsigned long FaceDetector::init | ( | std::string | directory, |
| double | faces_increase_search_scale, | ||
| int | faces_drop_groups, | ||
| int | faces_min_search_scale_x, | ||
| int | faces_min_search_scale_y, | ||
| bool | reason_about_3dface_size, | ||
| double | face_size_max_m, | ||
| double | face_size_min_m, | ||
| double | max_face_z_m, | ||
| bool | debug | ||
| ) | [virtual] |
Initialization function.
| directory | The directory for data files |
| faces_increase_search_scale | The factor by which the search window is scaled between the subsequent scans |
| faces_drop_groups | Minimum number (minus 1) of neighbor rectangles that makes up an object. |
| faces_min_search_scale_x | Minimum search scale x |
| faces_min_search_scale_y | Minimum search scale y |
| reason_about_3dface_size | if true, the 3d face size is determined and only faces with reasonable size are accepted |
| face_size_max_m | the maximum feasible face diameter [m] if reason_about_3dface_size is enabled |
| face_size_min_m | the minimum feasible face diameter [m] if reason_about_3dface_size is enabled |
| max_face_z_m | maximum distance [m] of detected faces to the sensor |
| debug | enables some debug outputs |
Definition at line 79 of file face_detector.cpp.
bool ipa_PeopleDetector::FaceDetector::m_debug [protected] |
enables some debug outputs
Definition at line 118 of file face_detector.h.
CvHaarClassifierCascade* ipa_PeopleDetector::FaceDetector::m_face_cascade [protected] |
Haar-Classifier for face-detection.
Definition at line 121 of file face_detector.h.
double ipa_PeopleDetector::FaceDetector::m_face_size_max_m [protected] |
the maximum feasible face diameter [m] if reason_about_3dface_size is enabled
Definition at line 115 of file face_detector.h.
double ipa_PeopleDetector::FaceDetector::m_face_size_min_m [protected] |
the minimum feasible face diameter [m] if reason_about_3dface_size is enabled
Definition at line 116 of file face_detector.h.
int ipa_PeopleDetector::FaceDetector::m_faces_drop_groups [protected] |
Minimum number (minus 1) of neighbor rectangles that makes up an object.
Definition at line 111 of file face_detector.h.
double ipa_PeopleDetector::FaceDetector::m_faces_increase_search_scale [protected] |
The factor by which the search window is scaled between the subsequent scans.
Definition at line 110 of file face_detector.h.
int ipa_PeopleDetector::FaceDetector::m_faces_min_search_scale_x [protected] |
Minimum search scale x.
Definition at line 112 of file face_detector.h.
int ipa_PeopleDetector::FaceDetector::m_faces_min_search_scale_y [protected] |
Minimum search scale y.
Definition at line 113 of file face_detector.h.
bool ipa_PeopleDetector::FaceDetector::m_initialized [protected] |
indicates whether the class was already initialized
Definition at line 123 of file face_detector.h.
double ipa_PeopleDetector::FaceDetector::m_max_face_z_m [protected] |
maximum distance [m] of detected faces to the sensor
Definition at line 117 of file face_detector.h.
bool ipa_PeopleDetector::FaceDetector::m_reason_about_3dface_size [protected] |
if true, the 3d face size is determined and only faces with reasonable size are accepted
Definition at line 114 of file face_detector.h.
CvMemStorage* ipa_PeopleDetector::FaceDetector::m_storage [protected] |
Storage for face and eye detection.
Definition at line 120 of file face_detector.h.