Public Member Functions | Protected Attributes
ipa_PeopleDetector::FaceDetector Class Reference

#include <face_detector.h>

List of all members.

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.

Detailed Description

Definition at line 76 of file face_detector.h.


Constructor & Destructor Documentation

Constructor.

Constructor

Definition at line 75 of file face_detector.cpp.

Destructor.

Definition at line 107 of file face_detector.cpp.


Member Function Documentation

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

Parameters:
heads_color_imagesColor images of the regions that supposedly contain a head
heads_depth_imagesDepth images of the regions that supposedly contain a head
face_coordinatesVector 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
Returns:
Return code

Definition at line 114 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.

Parameters:
directoryThe directory for data files
faces_increase_search_scaleThe factor by which the search window is scaled between the subsequent scans
faces_drop_groupsMinimum number (minus 1) of neighbor rectangles that makes up an object.
faces_min_search_scale_xMinimum search scale x
faces_min_search_scale_yMinimum search scale y
reason_about_3dface_sizeif true, the 3d face size is determined and only faces with reasonable size are accepted
face_size_max_mthe maximum feasible face diameter [m] if reason_about_3dface_size is enabled
face_size_min_mthe minimum feasible face diameter [m] if reason_about_3dface_size is enabled
max_face_z_mmaximum distance [m] of detected faces to the sensor
debugenables some debug outputs
Returns:
Return code

Definition at line 81 of file face_detector.cpp.


Member Data Documentation

enables some debug outputs

Definition at line 119 of file face_detector.h.

CvHaarClassifierCascade* ipa_PeopleDetector::FaceDetector::m_face_cascade [protected]

Haar-Classifier for face-detection.

Definition at line 122 of file face_detector.h.

the maximum feasible face diameter [m] if reason_about_3dface_size is enabled

Definition at line 116 of file face_detector.h.

the minimum feasible face diameter [m] if reason_about_3dface_size is enabled

Definition at line 117 of file face_detector.h.

Minimum number (minus 1) of neighbor rectangles that makes up an object.

Definition at line 112 of file face_detector.h.

The factor by which the search window is scaled between the subsequent scans.

Definition at line 111 of file face_detector.h.

Minimum search scale x.

Definition at line 113 of file face_detector.h.

Minimum search scale y.

Definition at line 114 of file face_detector.h.

indicates whether the class was already initialized

Definition at line 124 of file face_detector.h.

maximum distance [m] of detected faces to the sensor

Definition at line 118 of file face_detector.h.

if true, the 3d face size is determined and only faces with reasonable size are accepted

Definition at line 115 of file face_detector.h.

Storage for face and eye detection.

Definition at line 121 of file face_detector.h.


The documentation for this class was generated from the following files:


cob_people_detection
Author(s): Richard Bormann , Thomas Zwölfer
autogenerated on Fri Aug 28 2015 10:24:13