Open Detection  1.0
od::ODDetectorCommon Class Referenceabstract

The common class for detectors. More...

#include <ObjectDetector.h>

Inheritance diagram for od::ODDetectorCommon:

Public Member Functions

 ODDetectorCommon (std::string const &trained_data_location_="")
 
virtual void init ()=0
 
std::string getTrainingInputLocation () const
 Gets/Sets the directory containing the data for training. More...
 
void setTrainingInputLocation (std::string training_input_location_)
 Gets/Sets the directory containing the data for training. More...
 
std::string getTrainedDataLocation () const
 Gets/Sets the base directory for trained data. More...
 
virtual void setTrainedDataLocation (std::string trained_data_location_)
 The base directory for trained data. More...
 
std::string getSpecificTrainingDataLocation ()
 Gets the specific directory for a Trainer or a Detector inside trained_data_location_. More...
 
std::string getSpecificTrainingData ()
 
std::string const & getTrainedDataID () const
 
void setTrainedDataID (std::string const &trainedDataID)
 

Protected Attributes

std::string training_input_location_
 
std::string trained_data_location_
 
std::string TRAINED_DATA_ID_
 
std::string TRAINED_LOCATION_DENTIFIER_
 

Detailed Description

The common class for detectors.

Both Trainers and Detectors drerives from this and therefore, all the common data/functionalities of Trainers and Detectors should go here.

Author
Kripasindhu Sarkar

Definition at line 60 of file ObjectDetector.h.

Constructor & Destructor Documentation

od::ODDetectorCommon::ODDetectorCommon ( std::string const &  trained_data_location_ = "")
inline

Definition at line 64 of file ObjectDetector.h.

References TRAINED_DATA_ID_, and TRAINED_LOCATION_DENTIFIER_.

Member Function Documentation

std::string od::ODDetectorCommon::getSpecificTrainingData ( )
inline

Definition at line 114 of file ObjectDetector.h.

References getSpecificTrainingDataLocation(), and TRAINED_DATA_ID_.

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

Gets the specific directory for a Trainer or a Detector inside trained_data_location_.

Definition at line 109 of file ObjectDetector.h.

References trained_data_location_, and TRAINED_LOCATION_DENTIFIER_.

Referenced by getSpecificTrainingData(), od::g2d::ODCascadeDetector::init(), and od::g2d::ODHOGTrainer::ODHOGTrainer().

std::string const& od::ODDetectorCommon::getTrainedDataID ( ) const
inline

Definition at line 119 of file ObjectDetector.h.

References TRAINED_DATA_ID_.

std::string od::ODDetectorCommon::getTrainedDataLocation ( ) const
inline

Gets/Sets the base directory for trained data.

This should be same for all Trainers and Detectors and can be considered as the 'database' of trained data. Trainers uses one of its subdirectories based on its type to store algo specific trained data. The corresponding Detector would use the same directory to fetch the trained data for online detection.

Definition at line 92 of file ObjectDetector.h.

References trained_data_location_.

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

Gets/Sets the directory containing the data for training.

The trainer uses the data from directory for training. Detectors can use this location to get additional information in its detection algirhtms as well.

Definition at line 77 of file ObjectDetector.h.

References training_input_location_.

void od::ODDetectorCommon::setTrainedDataID ( std::string const &  trainedDataID)
inline

Definition at line 124 of file ObjectDetector.h.

References TRAINED_DATA_ID_.

virtual void od::ODDetectorCommon::setTrainedDataLocation ( std::string  trained_data_location_)
inlinevirtual

The base directory for trained data.

This should be same for all Trainers and Detectors and can be considered as the 'database' of trained data. Trainers uses one of its subdirectories based on its type to store algo specific trained data. The corresponding Detector would use the same directory to fetch the trained data for online detection.

Reimplemented in od::g2d::ODHOGDetector.

Definition at line 101 of file ObjectDetector.h.

References trained_data_location_.

void od::ODDetectorCommon::setTrainingInputLocation ( std::string  training_input_location_)
inline

Gets/Sets the directory containing the data for training.

The trainer uses the data from directory for training. Detectors can use this location to get additional information in its detection algirhtms as well.

Examples:
objectdetector/od_multialgo_pc.cpp.

Definition at line 84 of file ObjectDetector.h.

References training_input_location_.

Member Data Documentation

std::string od::ODDetectorCommon::trained_data_location_
protected

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