Open Detection  1.0
od::ObjectDetector Class Referenceabstract

This is the main class for object detection and recognition. More...

#include <ObjectDetector.h>

Inheritance diagram for od::ObjectDetector:

Public Member Functions

 ObjectDetector ()
 
DetectionMethod const & getMethod () const
 
void setDetectionMethod (DetectionMethod const &detection_method_)
 
bool getAlwaysTrain () const
 
void setAlwaysTrain (bool always_train_)
 
std::string getTrainingInputLocation () const
 
void setTrainingInputLocation (std::string training_input_location_)
 
std::string getTrainingDataLocation () const
 
void setTrainingDataLocation (std::string training_data_location_)
 
std::string getSpecificTrainingDataLocation ()
 
virtual void init ()=0
 
virtual void initDetector ()
 
virtual void initTrainer ()
 
virtual int train ()=0
 
virtual int detect (ODScene *scene, std::vector< ODDetection * > detections)
 
virtual ODDetectiondetect (ODScene *scene)
 
virtual ODDetectionsdetectOmni (ODScene *scene)
 

Protected Attributes

DetectionMethod method_
 
bool always_train_
 
bool trained_
 
std::string training_input_location_
 
std::string training_data_location_
 
std::string TRAINED_DATA_EXT_
 
std::string TRAINED_DATA_IDENTIFIER_
 

Detailed Description

This is the main class for object detection and recognition.

Author
Kripasindhu Sarkar

Definition at line 140 of file ObjectDetector.h.

Constructor & Destructor Documentation

od::ObjectDetector::ObjectDetector ( )
inline

Definition at line 144 of file ObjectDetector.h.

Member Function Documentation

virtual int od::ObjectDetector::detect ( ODScene scene,
std::vector< ODDetection * >  detections 
)
inlinevirtual

Reimplemented in od::l2d::ODImageLocalMatching.

Definition at line 200 of file ObjectDetector.h.

virtual ODDetection* od::ObjectDetector::detect ( ODScene scene)
inlinevirtual

Definition at line 202 of file ObjectDetector.h.

virtual ODDetections* od::ObjectDetector::detectOmni ( ODScene scene)
inlinevirtual

Definition at line 203 of file ObjectDetector.h.

bool od::ObjectDetector::getAlwaysTrain ( ) const
inline

Definition at line 157 of file ObjectDetector.h.

References always_train_.

DetectionMethod const& od::ObjectDetector::getMethod ( ) const
inline

Definition at line 147 of file ObjectDetector.h.

References method_.

std::string od::ObjectDetector::getSpecificTrainingDataLocation ( )
inline

Definition at line 187 of file ObjectDetector.h.

References TRAINED_DATA_IDENTIFIER_, and training_data_location_.

std::string od::ObjectDetector::getTrainingDataLocation ( ) const
inline

Definition at line 177 of file ObjectDetector.h.

References training_data_location_.

std::string od::ObjectDetector::getTrainingInputLocation ( ) const
inline

Definition at line 167 of file ObjectDetector.h.

References training_input_location_.

virtual void od::ObjectDetector::init ( )
pure virtual
virtual void od::ObjectDetector::initDetector ( )
inlinevirtual

Reimplemented in od::g2d::ODFaceRecognizer.

Definition at line 194 of file ObjectDetector.h.

virtual void od::ObjectDetector::initTrainer ( )
inlinevirtual

Reimplemented in od::g2d::ODFaceRecognizer.

Definition at line 195 of file ObjectDetector.h.

void od::ObjectDetector::setAlwaysTrain ( bool  always_train_)
inline

Definition at line 162 of file ObjectDetector.h.

References always_train_.

void od::ObjectDetector::setDetectionMethod ( DetectionMethod const &  detection_method_)
inline

Definition at line 152 of file ObjectDetector.h.

References method_.

void od::ObjectDetector::setTrainingDataLocation ( std::string  training_data_location_)
inline
Examples:
objectdetector/od_image_facerecog.cpp.

Definition at line 182 of file ObjectDetector.h.

References training_data_location_.

void od::ObjectDetector::setTrainingInputLocation ( std::string  training_input_location_)
inline
Examples:
objectdetector/od_image_facerecog.cpp.

Definition at line 172 of file ObjectDetector.h.

References training_input_location_.

virtual int od::ObjectDetector::train ( )
pure virtual

Member Data Documentation

bool od::ObjectDetector::always_train_
protected

Definition at line 207 of file ObjectDetector.h.

Referenced by getAlwaysTrain(), and setAlwaysTrain().

DetectionMethod od::ObjectDetector::method_
protected

Definition at line 206 of file ObjectDetector.h.

Referenced by getMethod(), and setDetectionMethod().

bool od::ObjectDetector::trained_
protected

Definition at line 208 of file ObjectDetector.h.

std::string od::ObjectDetector::TRAINED_DATA_EXT_
protected
std::string od::ObjectDetector::TRAINED_DATA_IDENTIFIER_
protected

Definition at line 211 of file ObjectDetector.h.

Referenced by getSpecificTrainingDataLocation().

std::string od::ObjectDetector::training_data_location_
protected
std::string od::ObjectDetector::training_input_location_
protected

Definition at line 209 of file ObjectDetector.h.

Referenced by getTrainingInputLocation(), and setTrainingInputLocation().


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