Default predict collector.
More...
#include <opencv2/face/predict_collector.hpp>
Default predict collector.
Trace minimal distance with treshhold checking (that is default behavior for most predict logic)
◆ StandardCollector()
| cv::face::StandardCollector::StandardCollector |
( |
double |
threshold_ = DBL_MAX | ) |
|
◆ collect()
| bool cv::face::StandardCollector::collect |
( |
int |
label, |
|
|
double |
dist |
|
) |
| |
|
virtual |
◆ create()
| Python: |
|---|
| cv.face.StandardCollector.create( | [, threshold] | ) -> | retval |
| cv.face.StandardCollector_create( | [, threshold] | ) -> | retval |
Static constructor.
- Parameters
-
◆ getMinDist()
| double cv::face::StandardCollector::getMinDist |
( |
| ) |
const |
| Python: |
|---|
| cv.face.StandardCollector.getMinDist( | | ) -> | retval |
Returns minimal distance value.
◆ getMinLabel()
| int cv::face::StandardCollector::getMinLabel |
( |
| ) |
const |
| Python: |
|---|
| cv.face.StandardCollector.getMinLabel( | | ) -> | retval |
Returns label with minimal distance.
◆ getResults()
| std::vector< std::pair<int, double> > cv::face::StandardCollector::getResults |
( |
bool |
sorted = false | ) |
const |
| Python: |
|---|
| cv.face.StandardCollector.getResults( | [, sorted] | ) -> | retval |
Return results as vector.
- Parameters
-
| sorted | If set, results will be sorted by distance Each values is a pair of label and distance. |
◆ getResultsMap()
| std::map<int, double> cv::face::StandardCollector::getResultsMap |
( |
| ) |
const |
Return results as map Labels are keys, values are minimal distances.
◆ init()
| void cv::face::StandardCollector::init |
( |
size_t |
size | ) |
|
|
virtual |
◆ data
◆ minRes
◆ threshold
| double cv::face::StandardCollector::threshold |
|
protected |
The documentation for this class was generated from the following file: