Open Detection
1.0
|
A class for detection using Cascade classifiers. More...
#include <ODCascadeDetector.h>
Public Member Functions | |
ODCascadeDetector (std::string const &trained_data_location="", double scaleFactor=1.1, int minNeighbors=3, int flags=0, cv::Size minSize=cv::Size(), cv::Size maxSize=cv::Size()) | |
void | init () |
ODDetections2D * | detectOmni (ODSceneImage *scene) |
Function for performing detection on an entire scene. More... | |
ODDetections * | detect (ODSceneImage *scene) |
Function for performing detection on a segmented scene. More... | |
![]() | |
ODDetector2D (std::string const &trained_data_location_) | |
ODDetections * | detect (ODScene *scene) |
![]() | |
ODDetector (std::string const &training_data_location_) | |
virtual ODDetections * | detectOmni (ODScene *scene) |
![]() | |
ODDetectorCommon (std::string const &trained_data_location_="") | |
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) |
Additional Inherited Members | |
![]() | |
bool | metainfo_ |
![]() | |
std::string | training_input_location_ |
std::string | trained_data_location_ |
std::string | TRAINED_DATA_ID_ |
std::string | TRAINED_LOCATION_DENTIFIER_ |
A class for detection using Cascade classifiers.
Given a scene and a cascade classifier, this class performs a classification and returns detections. The training is not supported in OD currently but is compatible to the cascade training of OpenCV. Train your cascade classifiers using OpenCV's opencv_traincascade utility (http://docs.opencv.org/master/dc/d88/tutorial_traincascade.html#gsc.tab=0). It is a great tool for traning your cascade. Paste the generated xml in trained_data_location_/TD_CASCADE/*.cascade.xml to use your trained cascade.
Definition at line 54 of file ODCascadeDetector.h.
|
inline |
Definition at line 58 of file ODCascadeDetector.h.
References od::ODDetector::metainfo_, od::ODDetectorCommon::TRAINED_DATA_ID_, and od::ODDetectorCommon::TRAINED_LOCATION_DENTIFIER_.
|
virtual |
Function for performing detection on a segmented scene.
The purpose of this function is to perform detection on a segmented scene or an 'object candidate'. i.e. the entire scene is considered as an 'object' or an detection. It is possible for a scene to trigger multiple detections.
[in] | scene | An instance of 2D scene |
Implements od::ODDetector2D.
|
virtual |
Function for performing detection on an entire scene.
The purpose of this function is to detect an object in an entire scene. Thus, other than the type of detection we also have information about the location of the detection w.r.t. the scene.
[in] | scene | An instance of 2D scene |
Implements od::ODDetector2D.
|
inlinevirtual |
Implements od::ODDetectorCommon.
Definition at line 66 of file ODCascadeDetector.h.
References od::FileUtils::getFirstFile(), od::ODDetectorCommon::getSpecificTrainingDataLocation(), and od::ODDetectorCommon::TRAINED_DATA_ID_.