Doxygen
|
|
main training routines for the Viola-Jones algorithm More...
#include <iostream>
#include <iomanip>
#include <vector>
#include <fstream>
#include <Eigen/Dense>
#include "TrainExamples.h"
#include "boostUtil.h"
#include "commonUtil.h"
Go to the source code of this file.
Macros | |
#define | POSITIVE 0 |
#define | NEGATIVE 1 |
#define | TWEAK_UNIT 1e-2 |
#define | MIN_TWEAK 1e-5 |
#define | GOAL 1e-7 |
Functions | |
void | train (trainParams const &target) |
train a cascade, see the definition of trainParams More... | |
void | recordRule (const char *toFile, vector< stumpRule > const &rule, bool firstLayer, bool lastLayer) |
record a strong learner to toFile More... | |
main training routines for the Viola-Jones algorithm
Definition in file boostUtil.cpp.
#define GOAL 1e-7 |
Definition at line 38 of file boostUtil.cpp.
#define MIN_TWEAK 1e-5 |
Definition at line 37 of file boostUtil.cpp.
#define NEGATIVE 1 |
Definition at line 35 of file boostUtil.cpp.
#define POSITIVE 0 |
Definition at line 34 of file boostUtil.cpp.
#define TWEAK_UNIT 1e-2 |
Definition at line 36 of file boostUtil.cpp.
void recordRule | ( | const char * | toFile, |
vector< stumpRule > const & | rule, | ||
bool | firstLayer, | ||
bool | lastLayer | ||
) |
record a strong learner to toFile
toFile | where |
rule | the strong learner |
firstLayer | is it a firstLayer in the cascade |
lastLayer | is it a last layer in the cascade |
Definition at line 259 of file boostUtil.cpp.
void train | ( | trainParams const & | target | ) |
train a cascade, see the definition of trainParams
Definition at line 44 of file boostUtil.cpp.