Class cv::face::StandardCollector#
Default predict collector. View details
#include <opencv2/face/predict_collector.hpp>Collaboration diagram for cv::face::StandardCollector:
Public Member Functions#
Public Member Functions inherited from cv::face::PredictCollector
Return |
Name |
Description |
|---|---|---|
|
Interface method called by face recognizer for each result. |
|
|
Interface method called by face recognizer before results processing. |
Detailed Description#
Default predict collector.
Trace minimal distance with treshhold checking (that is default behavior for most predict logic)
Constructor & Destructor Documentation#
StandardCollector()#
cv::face::StandardCollector::StandardCollector(double threshold_ = DBL_MAX)
Constructor.
Parameters
threshold_— set threshold
Member Function Documentation#
collect()#
bool cv::face::StandardCollector::collect(
int label,
double dist )
overloaded interface method
getMinDist()#
double cv::face::StandardCollector::getMinDist()
Returns minimal distance value.
getMinLabel()#
int cv::face::StandardCollector::getMinLabel()
Returns label with minimal distance.
getResults()#
std::vector< std::pair< int, double > > cv::face::StandardCollector::getResults(bool sorted = false)
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()
Return results as map Labels are keys, values are minimal distances.
init()#
void cv::face::StandardCollector::init(size_t size)
overloaded interface method
create()#
static Ptr< StandardCollector > cv::face::StandardCollector::create(double threshold = DBL_MAX)
Static constructor.
Parameters
threshold— set threshold
Member Data Documentation#
data#
std::vector< PredictResult > cv::face::StandardCollector::data
minRes#
PredictResult cv::face::StandardCollector::minRes
threshold#
double cv::face::StandardCollector::threshold
Source file#
The documentation for this class was generated from the following file:
opencv2/face/predict_collector.hpp