Open Detection
1.0
|
The common class for detectors. More...
#include <ObjectDetector.h>
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_ |
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.
Definition at line 60 of file ObjectDetector.h.
|
inline |
Definition at line 64 of file ObjectDetector.h.
References TRAINED_DATA_ID_, and TRAINED_LOCATION_DENTIFIER_.
|
inline |
Definition at line 114 of file ObjectDetector.h.
References getSpecificTrainingDataLocation(), and TRAINED_DATA_ID_.
|
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().
|
inline |
Definition at line 119 of file ObjectDetector.h.
References TRAINED_DATA_ID_.
|
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_.
|
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_.
|
pure virtual |
Implemented in od::l2d::ODCADRecognizer2DLocal, od::g2d::ODHOGTrainer, od::ODDetectorMultiAlgo, od::g3d::ODCADDetectTrainer3DGlobal, od::g2d::ODHOGDetector, od::g3d::ODCADDetector3DGlobal< PointT >, od::g3d::ODCADDetector3DGlobal< pcl::PointXYZ >, od::l2d::ODCADRecogTrainerSnapshotBased, od::g2d::ODCascadeDetector, and od::ODDetectorMultiAlgo2D.
|
inline |
Definition at line 124 of file ObjectDetector.h.
References TRAINED_DATA_ID_.
|
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_.
|
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 84 of file ObjectDetector.h.
References training_input_location_.
|
protected |
Definition at line 131 of file ObjectDetector.h.
Referenced by getSpecificTrainingData(), getTrainedDataID(), od::g2d::ODCascadeDetector::init(), od::g2d::ODHOGDetector::OD_DEFINE_ENUM_WITH_STRING_CONVERSIONS(), od::g2d::ODCascadeDetector::ODCascadeDetector(), ODDetectorCommon(), od::g2d::ODHOGTrainer::ODHOGTrainer(), od::l2d::ODImageLocalMatchingDetector::ODImageLocalMatchingDetector(), od::l2d::ODImageLocalMatchingTrainer::ODImageLocalMatchingTrainer(), and setTrainedDataID().
|
protected |
Definition at line 130 of file ObjectDetector.h.
Referenced by getSpecificTrainingDataLocation(), getTrainedDataLocation(), od::g2d::ODHOGTrainer::ODHOGTrainer(), od::g2d::ODHOGDetector::setTrainedDataLocation(), and setTrainedDataLocation().
|
protected |
Definition at line 131 of file ObjectDetector.h.
Referenced by getSpecificTrainingDataLocation(), od::g2d::ODHOGDetector::OD_DEFINE_ENUM_WITH_STRING_CONVERSIONS(), od::g3d::ODCADDetector3DGlobal< pcl::PointXYZ >::ODCADDetector3DGlobal(), od::g3d::ODCADDetectTrainer3DGlobal::ODCADDetectTrainer3DGlobal(), od::g2d::ODCascadeDetector::ODCascadeDetector(), ODDetectorCommon(), od::g2d::ODHOGTrainer::ODHOGTrainer(), od::l2d::ODImageLocalMatchingDetector::ODImageLocalMatchingDetector(), and od::l2d::ODImageLocalMatchingTrainer::ODImageLocalMatchingTrainer().
|
protected |
Definition at line 130 of file ObjectDetector.h.
Referenced by getTrainingInputLocation(), od::g3d::ODCADDetector3DGlobal< pcl::PointXYZ >::ODCADDetector3DGlobal(), od::g2d::ODHOGTrainer::ODHOGTrainer(), od::ODTrainer::ODTrainer(), and setTrainingInputLocation().