50 #include <opencv/cv.hpp> 51 #include <opencv/cxcore.hpp> 52 #include <opencv/cvaux.hpp> 57 #include <boost/thread/mutex.hpp> 58 #include <boost/bind.hpp> 59 #include <boost/thread/thread.hpp> 60 #include <boost/thread/condition.hpp> 65 #define FACE_SIZE_MIN_M 0.1 66 #define FACE_SIZE_MAX_M 0.5 67 #define MAX_FACE_Z_M 8.0 68 // Default thresholds for face tracking. 69 #define FACE_SEP_DIST_M 1.0 163 void initFaceDetectionDisparity(uint num_cascades,
string haar_classifier_filename,
double face_size_min_m,
double face_size_max_m,
double max_face_z_m,
double face_sep_dist_m);
174 void initFaceDetectionDepth(uint num_cascades,
string haar_classifier_filename,
double face_size_min_m,
double face_size_max_m,
double max_face_z_m,
double face_sep_dist_m);
187 boost::mutex face_mutex_, face_done_mutex_,
t_mutex_;
197 void faceDetectionThreadDisparity(uint i);
198 void faceDetectionThreadDepth(uint i);
boost::condition face_detection_ready_cond_
A structure for holding information about boxes in 2d and 3d.
int num_threads_to_wait_for_
cv::Mat const * disparity_image_
cv::Mat const * depth_image_
image_geometry::StereoCameraModel * cam_model_
boost::thread_group threads_
boost::mutex * face_go_mutex_
A structure containing the person's identifying data.
Contains a list of faces and functions that can be performed on that list. This includes utility task...
cv::CascadeClassifier cascade_