default predict collector that trace minimal distance with treshhold checking (that is default behavior for most predict logic)
More...
#include "predict_collector.hpp"
default predict collector that trace minimal distance with treshhold checking (that is default behavior for most predict logic)
cv::face::MinDistancePredictCollector::MinDistancePredictCollector |
( |
double |
threshhold = DBL_MAX | ) |
|
|
inline |
bool cv::face::MinDistancePredictCollector::emit |
( |
const int |
label, |
|
|
const double |
dist, |
|
|
const int |
state = 0 |
|
) |
| |
|
virtual |
called with every recognition result
- Parameters
-
label | current prediction label |
dist | current prediction distance (confidence) |
state | user defined send-to-back optional value to allow multi-thread, multi-session or aggregation scenarios |
- Returns
- true if recognizer should proceed prediction , false - if recognizer should terminate prediction
Reimplemented from cv::face::PredictCollector.
double cv::face::MinDistancePredictCollector::getDist |
( |
| ) |
const |
result distance (confidence) DBL_MAX if not found
int cv::face::MinDistancePredictCollector::getLabel |
( |
| ) |
const |
result label, 0 if not found
The documentation for this class was generated from the following file: