FaceDetector - A wrapper around OpenCV's face detection, plus some usage of depth from stereo to restrict the results based on plausible face size.
Definition at line 83 of file face_detection.cpp.
typedef message_filters::sync_policies::ApproximateTime<sensor_msgs::Image, sensor_msgs::Image, sensor_msgs::CameraInfo, sensor_msgs::CameraInfo> people::FaceDetector::ApproximateDepthPolicy |
Sync policy for approx time with depth.
Definition at line 127 of file face_detection.cpp.
typedef message_filters::Synchronizer<ApproximateDepthPolicy> people::FaceDetector::ApproximateDepthSync |
Definition at line 129 of file face_detection.cpp.
typedef message_filters::sync_policies::ApproximateTime<sensor_msgs::Image, stereo_msgs::DisparityImage, sensor_msgs::CameraInfo, sensor_msgs::CameraInfo> people::FaceDetector::ApproximateDispPolicy |
Sync policy for approx time with disparity.
Definition at line 119 of file face_detection.cpp.
typedef message_filters::Synchronizer<ApproximateDispPolicy> people::FaceDetector::ApproximateDispSync |
Definition at line 121 of file face_detection.cpp.
typedef message_filters::sync_policies::ExactTime<sensor_msgs::Image, sensor_msgs::Image, sensor_msgs::CameraInfo, sensor_msgs::CameraInfo> people::FaceDetector::ExactDepthPolicy |
Sync policy for exact time with depth.
Definition at line 126 of file face_detection.cpp.
Definition at line 128 of file face_detection.cpp.
typedef message_filters::sync_policies::ExactTime<sensor_msgs::Image, stereo_msgs::DisparityImage, sensor_msgs::CameraInfo, sensor_msgs::CameraInfo> people::FaceDetector::ExactDispPolicy |
Sync policy for exact time with disparity.
Definition at line 118 of file face_detection.cpp.
Definition at line 120 of file face_detection.cpp.
people::FaceDetector::FaceDetector | ( | std::string | name | ) | [inline] |
Definition at line 186 of file face_detection.cpp.
people::FaceDetector::~FaceDetector | ( | ) | [inline] |
Definition at line 309 of file face_detection.cpp.
void people::FaceDetector::connectCb | ( | ) | [inline] |
Definition at line 322 of file face_detection.cpp.
void people::FaceDetector::displayFacesOnImage | ( | vector< Box2D3D > | faces_vector | ) | [inline, private] |
Definition at line 689 of file face_detection.cpp.
void people::FaceDetector::goalCB | ( | ) | [inline] |
Definition at line 374 of file face_detection.cpp.
void people::FaceDetector::imageCBAllDepth | ( | const sensor_msgs::Image::ConstPtr & | image, |
const sensor_msgs::Image::ConstPtr & | depth_image, | ||
const sensor_msgs::CameraInfo::ConstPtr & | c1_info, | ||
const sensor_msgs::CameraInfo::ConstPtr & | c2_info | ||
) | [inline] |
Image callback for synced messages.
For each new image: convert it to OpenCV format, perform face detection using OpenCV's haar filter cascade classifier, and (if requested) draw rectangles around the found faces. Can also compute which faces are associated (by proximity, currently) with faces it already has in its list of people.
Definition at line 426 of file face_detection.cpp.
void people::FaceDetector::imageCBAllDisp | ( | const sensor_msgs::Image::ConstPtr & | image, |
const stereo_msgs::DisparityImage::ConstPtr & | disp_image, | ||
const sensor_msgs::CameraInfo::ConstPtr & | c1_info, | ||
const sensor_msgs::CameraInfo::ConstPtr & | c2_info | ||
) | [inline] |
Image callback for synced messages.
For each new image: convert it to OpenCV format, perform face detection using OpenCV's haar filter cascade classifier, and (if requested) draw rectangles around the found faces. Can also compute which faces are associated (by proximity, currently) with faces it already has in its list of people.
Definition at line 471 of file face_detection.cpp.
void people::FaceDetector::matchAndDisplay | ( | vector< Box2D3D > | faces_vector, |
std_msgs::Header | header | ||
) | [inline, private] |
Definition at line 512 of file face_detection.cpp.
void people::FaceDetector::preemptCB | ( | ) | [inline] |
Definition at line 378 of file face_detection.cpp.
boost::shared_ptr<ApproximateDepthSync> people::FaceDetector::approximate_depth_sync_ |
Definition at line 131 of file face_detection.cpp.
boost::shared_ptr<ApproximateDispSync> people::FaceDetector::approximate_disp_sync_ |
Definition at line 123 of file face_detection.cpp.
Definition at line 134 of file face_detection.cpp.
const double people::FaceDetector::BIGDIST_M |
Definition at line 86 of file face_detection.cpp.
message_filters::Subscriber<sensor_msgs::CameraInfo> people::FaceDetector::c1_info_sub_ |
Left/rgb camera info msg.
Definition at line 114 of file face_detection.cpp.
message_filters::Subscriber<sensor_msgs::CameraInfo> people::FaceDetector::c2_info_sub_ |
Right/depth camera info msg.
Definition at line 115 of file face_detection.cpp.
ROS->OpenCV image_geometry conversion.
Definition at line 157 of file face_detection.cpp.
Definition at line 103 of file face_detection.cpp.
Definition at line 106 of file face_detection.cpp.
Definition at line 104 of file face_detection.cpp.
Definition at line 148 of file face_detection.cpp.
boost::mutex people::FaceDetector::connect_mutex_ |
Definition at line 91 of file face_detection.cpp.
Display image.
Definition at line 153 of file face_detection.cpp.
boost::mutex people::FaceDetector::cv_mutex_ |
Definition at line 180 of file face_detection.cpp.
Definition at line 112 of file face_detection.cpp.
Definition at line 107 of file face_detection.cpp.
Definition at line 105 of file face_detection.cpp.
boost::mutex people::FaceDetector::dimage_mutex_ |
Definition at line 180 of file face_detection.cpp.
message_filters::Subscriber<stereo_msgs::DisparityImage> people::FaceDetector::disp_image_sub_ |
Depth image msg. Disparity image msg.
Definition at line 113 of file face_detection.cpp.
Definition at line 99 of file face_detection.cpp.
True = run as a normal node, searching for faces continuously, False = run as an action, wait for action call to start detection.
Definition at line 182 of file face_detection.cpp.
True/false display images with bounding boxes locally.
Definition at line 152 of file face_detection.cpp.
Publish faces even if they have unknown depth/size. Will just use the image x,y in the pos field of the published position_measurement.
Definition at line 184 of file face_detection.cpp.
boost::shared_ptr<ExactDepthSync> people::FaceDetector::exact_depth_sync_ |
Definition at line 130 of file face_detection.cpp.
boost::shared_ptr<ExactDispSync> people::FaceDetector::exact_disp_sync_ |
Definition at line 122 of file face_detection.cpp.
Definition at line 141 of file face_detection.cpp.
List of faces and associated fcns.
Definition at line 160 of file face_detection.cpp.
Definition at line 135 of file face_detection.cpp.
std::string people::FaceDetector::fixed_frame_ |
Definition at line 178 of file face_detection.cpp.
Training file for the haar cascade classifier.
Definition at line 162 of file face_detection.cpp.
Left/rgb image msg.
Definition at line 111 of file face_detection.cpp.
Definition at line 95 of file face_detection.cpp.
Definition at line 110 of file face_detection.cpp.
Definition at line 100 of file face_detection.cpp.
Definition at line 98 of file face_detection.cpp.
boost::mutex people::FaceDetector::limage_mutex_ |
Definition at line 180 of file face_detection.cpp.
Definition at line 172 of file face_detection.cpp.
string people::FaceDetector::name_ |
Name of the detector. Ie frontalface, profileface. These will be the names in the published face location msgs.
Definition at line 161 of file face_detection.cpp.
Definition at line 89 of file face_detection.cpp.
Definition at line 149 of file face_detection.cpp.
Queue of updated face positions from the filter.
Definition at line 170 of file face_detection.cpp.
boost::mutex people::FaceDetector::pos_mutex_ |
Definition at line 180 of file face_detection.cpp.
Definition at line 140 of file face_detection.cpp.
Definition at line 174 of file face_detection.cpp.
Reliability of the predictions. This should depend on the training file used.
Definition at line 163 of file face_detection.cpp.
Definition at line 136 of file face_detection.cpp.
Definition at line 101 of file face_detection.cpp.
Definition at line 97 of file face_detection.cpp.
Definition at line 176 of file face_detection.cpp.
True/false use depth information.
Definition at line 156 of file face_detection.cpp.
Definition at line 92 of file face_detection.cpp.