update documentation for softcascade module
This commit is contained in:
@@ -197,7 +197,7 @@ namespace {
|
||||
using namespace sft;
|
||||
void glob(const string& refRoot, const string& refExt, svector &refvecFiles)
|
||||
{
|
||||
std::string strFilePath; // Filepath
|
||||
std::string strFilePath; // File path
|
||||
std::string strExtension; // Extension
|
||||
|
||||
std::string strPattern = refRoot + "\\*.*";
|
||||
@@ -240,14 +240,14 @@ void glob(const string& refRoot, const string& refExt, svector &refvecFiles)
|
||||
|
||||
#endif
|
||||
|
||||
// in the default case data folders should be alligned as following:
|
||||
// in the default case data folders should be aligned as following:
|
||||
// 1. positives: <train or test path>/octave_<octave number>/pos/*.png
|
||||
// 2. negatives: <train or test path>/octave_<octave number>/neg/*.png
|
||||
ScaledDataset::ScaledDataset(const string& path, const int oct)
|
||||
{
|
||||
dprintf("%s\n", "get dataset file names...");
|
||||
|
||||
dprintf("%s\n", "Positives globbing...");
|
||||
dprintf("%s\n", "Positives globing...");
|
||||
|
||||
#if !defined (_WIN32) && ! defined(__MINGW32__)
|
||||
glob(path + "/pos/octave_" + itoa(oct) + "/*.png", pos);
|
||||
@@ -255,7 +255,7 @@ ScaledDataset::ScaledDataset(const string& path, const int oct)
|
||||
glob(path + "/pos/octave_" + itoa(oct), "png", pos);
|
||||
#endif
|
||||
|
||||
dprintf("%s\n", "Negatives globbing...");
|
||||
dprintf("%s\n", "Negatives globing...");
|
||||
#if !defined (_WIN32) && ! defined(__MINGW32__)
|
||||
glob(path + "/neg/octave_" + itoa(oct) + "/*.png", neg);
|
||||
#else
|
||||
|
||||
@@ -93,7 +93,7 @@ struct Config
|
||||
// List of octaves for which have to be trained cascades (a list of powers of two)
|
||||
ivector octaves;
|
||||
|
||||
// Maximum number of positives that should be ised during training
|
||||
// Maximum number of positives that should be used during training
|
||||
int positives;
|
||||
|
||||
// Initial number of negatives used during training.
|
||||
@@ -102,10 +102,10 @@ struct Config
|
||||
// Number of weak negatives to add each bootstrapping step.
|
||||
int btpNegatives;
|
||||
|
||||
// Inverse of scale for feature resazing
|
||||
// Inverse of scale for feature resizing
|
||||
int shrinkage;
|
||||
|
||||
// Depth on weak classifier's desition tree
|
||||
// Depth on weak classifier's decision tree
|
||||
int treeDepth;
|
||||
|
||||
// Weak classifiers number in resulted cascade
|
||||
@@ -120,10 +120,10 @@ struct Config
|
||||
// path to resulting cascade
|
||||
string outXmlPath;
|
||||
|
||||
// seed for fandom generation
|
||||
// seed for random generation
|
||||
int seed;
|
||||
|
||||
// // bounding retangle for actual exemple into example window
|
||||
// // bounding rectangle for actual example into example window
|
||||
// cv::Rect exampleWindow;
|
||||
};
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
//
|
||||
//M*/
|
||||
|
||||
// Trating application for Soft Cascades.
|
||||
// Training application for Soft Cascades.
|
||||
|
||||
#include <sft/common.hpp>
|
||||
#include <iostream>
|
||||
@@ -114,7 +114,7 @@ int main(int argc, char** argv)
|
||||
// 3. Train all octaves
|
||||
for (ivector::const_iterator it = cfg.octaves.begin(); it != cfg.octaves.end(); ++it)
|
||||
{
|
||||
// a. create rangom feature pool
|
||||
// a. create random feature pool
|
||||
int nfeatures = cfg.poolSize;
|
||||
cv::Size model = cfg.model(it);
|
||||
std::cout << "Model " << model << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user