Public Member Functions | Private Types | Private Member Functions | Private Attributes
opencv_apps::FaceRecognitionNodelet Class Reference
Inheritance diagram for opencv_apps::FaceRecognitionNodelet:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void onInit ()
 Initialize nodehandles nh_ and pnh_. Subclass should call this method in its onInit method.

Private Types

typedef
message_filters::sync_policies::ApproximateTime
< sensor_msgs::Image,
opencv_apps::FaceArrayStamped > 
ApproximateSyncPolicy
typedef
opencv_apps::FaceRecognitionConfig 
Config
typedef
dynamic_reconfigure::Server
< Config
Server
typedef
message_filters::sync_policies::ExactTime
< sensor_msgs::Image,
opencv_apps::FaceArrayStamped > 
SyncPolicy

Private Member Functions

void configCallback (Config &config, uint32_t level)
void drawFace (cv::Mat &img, const opencv_apps::Face &face)
void extractImage (const cv::Mat &img, const opencv_apps::Rect &rect, cv::Mat &ret, double padding=0.0)
void extractImage (const cv::Mat &img, const opencv_apps::Face &face, cv::Mat &ret, double padding=0.0)
void faceImageCallback (const sensor_msgs::Image::ConstPtr &image, const opencv_apps::FaceArrayStamped::ConstPtr &faces)
void predict (const cv::Mat &img, int &label, double &confidence)
void retrain ()
void subscribe ()
 This method is called when publisher is subscribed by other nodes. Set up subscribers in this method.
void train (std::vector< cv::Mat > &images, std::vector< std::string > &labels)
bool trainCallback (opencv_apps::FaceRecognitionTrain::Request &req, opencv_apps::FaceRecognitionTrain::Response &res)
void unsubscribe ()
 This method is called when publisher is unsubscribed by other nodes. Shut down subscribers in this method.

Private Attributes

boost::shared_ptr
< message_filters::Synchronizer
< ApproximateSyncPolicy > > 
async_
boost::shared_ptr< Servercfg_srv_
Config config_
std::string data_dir_
ros::Publisher debug_img_pub_
cv::Size face_model_size_
double face_padding_
ros::Publisher face_pub_
message_filters::Subscriber
< opencv_apps::FaceArrayStamped > 
face_sub_
image_transport::SubscriberFilter img_sub_
boost::shared_ptr
< image_transport::ImageTransport
it_
boost::shared_ptr< LabelMapperlabel_mapper_
cv::Ptr< face::FaceRecognizer > model_
boost::mutex mutex_
int queue_size_
bool save_train_data_
boost::shared_ptr< Storagestorage_
boost::shared_ptr
< message_filters::Synchronizer
< SyncPolicy > > 
sync_
ros::ServiceServer train_srv_
bool use_async_
bool use_saved_data_

Detailed Description

Definition at line 290 of file face_recognition_nodelet.cpp.


Member Typedef Documentation

typedef message_filters::sync_policies::ApproximateTime<sensor_msgs::Image, opencv_apps::FaceArrayStamped> opencv_apps::FaceRecognitionNodelet::ApproximateSyncPolicy [private]

Definition at line 296 of file face_recognition_nodelet.cpp.

typedef opencv_apps::FaceRecognitionConfig opencv_apps::FaceRecognitionNodelet::Config [private]

Definition at line 292 of file face_recognition_nodelet.cpp.

typedef dynamic_reconfigure::Server<Config> opencv_apps::FaceRecognitionNodelet::Server [private]

Definition at line 293 of file face_recognition_nodelet.cpp.

typedef message_filters::sync_policies::ExactTime<sensor_msgs::Image, opencv_apps::FaceArrayStamped> opencv_apps::FaceRecognitionNodelet::SyncPolicy [private]

Definition at line 294 of file face_recognition_nodelet.cpp.


Member Function Documentation

void opencv_apps::FaceRecognitionNodelet::configCallback ( Config config,
uint32_t  level 
) [inline, private]

Definition at line 497 of file face_recognition_nodelet.cpp.

void opencv_apps::FaceRecognitionNodelet::drawFace ( cv::Mat &  img,
const opencv_apps::Face &  face 
) [inline, private]

Definition at line 322 of file face_recognition_nodelet.cpp.

void opencv_apps::FaceRecognitionNodelet::extractImage ( const cv::Mat &  img,
const opencv_apps::Rect &  rect,
cv::Mat &  ret,
double  padding = 0.0 
) [inline, private]

Definition at line 344 of file face_recognition_nodelet.cpp.

void opencv_apps::FaceRecognitionNodelet::extractImage ( const cv::Mat &  img,
const opencv_apps::Face &  face,
cv::Mat &  ret,
double  padding = 0.0 
) [inline, private]

Definition at line 353 of file face_recognition_nodelet.cpp.

void opencv_apps::FaceRecognitionNodelet::faceImageCallback ( const sensor_msgs::Image::ConstPtr &  image,
const opencv_apps::FaceArrayStamped::ConstPtr &  faces 
) [inline, private]

Definition at line 407 of file face_recognition_nodelet.cpp.

virtual void opencv_apps::FaceRecognitionNodelet::onInit ( ) [inline, virtual]

Initialize nodehandles nh_ and pnh_. Subclass should call this method in its onInit method.

Reimplemented from opencv_apps::Nodelet.

Reimplemented in face_recognition::FaceRecognitionNodelet.

Definition at line 647 of file face_recognition_nodelet.cpp.

void opencv_apps::FaceRecognitionNodelet::predict ( const cv::Mat &  img,
int &  label,
double &  confidence 
) [inline, private]

Definition at line 399 of file face_recognition_nodelet.cpp.

Definition at line 358 of file face_recognition_nodelet.cpp.

void opencv_apps::FaceRecognitionNodelet::subscribe ( ) [inline, private, virtual]

This method is called when publisher is subscribed by other nodes. Set up subscribers in this method.

Implements opencv_apps::Nodelet.

Definition at line 620 of file face_recognition_nodelet.cpp.

void opencv_apps::FaceRecognitionNodelet::train ( std::vector< cv::Mat > &  images,
std::vector< std::string > &  labels 
) [inline, private]

Definition at line 366 of file face_recognition_nodelet.cpp.

bool opencv_apps::FaceRecognitionNodelet::trainCallback ( opencv_apps::FaceRecognitionTrain::Request &  req,
opencv_apps::FaceRecognitionTrain::Response &  res 
) [inline, private]

Definition at line 458 of file face_recognition_nodelet.cpp.

void opencv_apps::FaceRecognitionNodelet::unsubscribe ( ) [inline, private, virtual]

This method is called when publisher is unsubscribed by other nodes. Shut down subscribers in this method.

Implements opencv_apps::Nodelet.

Definition at line 639 of file face_recognition_nodelet.cpp.


Member Data Documentation

Definition at line 302 of file face_recognition_nodelet.cpp.

Definition at line 299 of file face_recognition_nodelet.cpp.

Definition at line 298 of file face_recognition_nodelet.cpp.

Definition at line 314 of file face_recognition_nodelet.cpp.

Definition at line 305 of file face_recognition_nodelet.cpp.

Definition at line 319 of file face_recognition_nodelet.cpp.

Definition at line 312 of file face_recognition_nodelet.cpp.

Definition at line 306 of file face_recognition_nodelet.cpp.

Definition at line 304 of file face_recognition_nodelet.cpp.

Definition at line 303 of file face_recognition_nodelet.cpp.

Definition at line 300 of file face_recognition_nodelet.cpp.

Definition at line 317 of file face_recognition_nodelet.cpp.

cv::Ptr<face::FaceRecognizer> opencv_apps::FaceRecognitionNodelet::model_ [private]

Definition at line 320 of file face_recognition_nodelet.cpp.

Definition at line 315 of file face_recognition_nodelet.cpp.

Definition at line 313 of file face_recognition_nodelet.cpp.

Definition at line 309 of file face_recognition_nodelet.cpp.

Definition at line 318 of file face_recognition_nodelet.cpp.

Definition at line 301 of file face_recognition_nodelet.cpp.

Definition at line 307 of file face_recognition_nodelet.cpp.

Definition at line 310 of file face_recognition_nodelet.cpp.

Definition at line 311 of file face_recognition_nodelet.cpp.


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


opencv_apps
Author(s): Kei Okada
autogenerated on Mon Apr 22 2019 02:18:26