BitmapToolkit Scol plugin
|
#include <NeuralNetwork.h>
Public Types | |
enum | TrainingState { NOT_TRAINED , TRAINING , TRAINED } |
enum | MlType { KNN , Bayes , SVM , DT , ANN , Boost , RT , NONE , NUMTYPES } |
enum | MlMode { ML_POSE , ML_MOTION } |
typedef std::map< unsigned int, std::vector< std::vector< MlFeature > > > | SamplesMap |
Public Member Functions | |
NeuralNetwork (int featurePerSample, float sensibility, MlMode mode=ML_POSE, MlType type=KNN) | |
~NeuralNetwork () | |
void | SetType (MlType type) |
MlType | GetType () |
void | SetCategories (const std::vector< std::string > &names) |
std::vector< std::string > | GetCategories () |
std::string | GetCategory (unsigned int pos) |
int | GetCategoryPos (std::string name) |
void | Train () |
void | Load (std::string filename) |
void | Save (std::string saveFile) |
void | AddTrainingData (std::vector< cv::Point3d > input, std::string label) |
void | Reconize (cv::Mat reconizeIn, cv::Mat reconizeOut) |
void | AddDetectionData (std::vector< cv::Point3d >) |
TrainingState | GetTrainingState () |
Definition at line 120 of file NeuralNetwork.h.
typedef std::map<unsigned int, std::vector<std::vector<MlFeature> > > NeuralNetwork::SamplesMap |
Definition at line 149 of file NeuralNetwork.h.
Enumerator | |
---|---|
ML_POSE | |
ML_MOTION |
Definition at line 143 of file NeuralNetwork.h.
Enumerator | |
---|---|
KNN | |
Bayes | |
SVM | |
DT | |
ANN | |
Boost | |
RT | |
NONE | |
NUMTYPES |
Definition at line 130 of file NeuralNetwork.h.
Enumerator | |
---|---|
NOT_TRAINED | |
TRAINING | |
TRAINED |
Definition at line 123 of file NeuralNetwork.h.
NeuralNetwork::NeuralNetwork | ( | int | featurePerSample, |
float | sensibility, | ||
MlMode | mode = ML_POSE , |
||
MlType | type = KNN |
||
) |
Definition at line 38 of file NeuralNetwork.cpp.
NeuralNetwork::~NeuralNetwork | ( | ) |
Definition at line 87 of file NeuralNetwork.cpp.
void NeuralNetwork::AddDetectionData | ( | std::vector< cv::Point3d > | input | ) |
Definition at line 871 of file NeuralNetwork.cpp.
void NeuralNetwork::AddTrainingData | ( | std::vector< cv::Point3d > | input, |
std::string | label | ||
) |
Definition at line 157 of file NeuralNetwork.cpp.
std::vector< std::string > NeuralNetwork::GetCategories | ( | ) |
Definition at line 145 of file NeuralNetwork.cpp.
std::string NeuralNetwork::GetCategory | ( | unsigned int | pos | ) |
Definition at line 135 of file NeuralNetwork.cpp.
int NeuralNetwork::GetCategoryPos | ( | std::string | name | ) |
Definition at line 124 of file NeuralNetwork.cpp.
NeuralNetwork::TrainingState NeuralNetwork::GetTrainingState | ( | ) |
Definition at line 112 of file NeuralNetwork.cpp.
|
inline |
Definition at line 208 of file NeuralNetwork.h.
void NeuralNetwork::Load | ( | std::string | filename | ) |
Definition at line 702 of file NeuralNetwork.cpp.
void NeuralNetwork::Reconize | ( | cv::Mat | reconizeIn, |
cv::Mat | reconizeOut | ||
) |
Definition at line 768 of file NeuralNetwork.cpp.
void NeuralNetwork::Save | ( | std::string | saveFile | ) |
Definition at line 660 of file NeuralNetwork.cpp.
|
inline |
Definition at line 216 of file NeuralNetwork.h.
|
inline |
Definition at line 200 of file NeuralNetwork.h.
void NeuralNetwork::Train | ( | ) |
Definition at line 391 of file NeuralNetwork.cpp.