OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::face::StandardCollector 類參考

預設預測收集器。 更多...

#include <opencv2/face/predict_collector.hpp>

cv::face::StandardCollector 的協作圖

結構體  PredictResult
 

公共成員函式

 StandardCollector (double threshold_=DBL_MAX)
 建構函式。
 
bool collect (int label, double dist) CV_OVERRIDE
 過載介面方法
 
double getMinDist () const
 返回最小距離值。
 
int getMinLabel () const
 返回具有最小距離的標籤。
 
std::vector< std::pair< int, double > > getResults (bool sorted=false) const
 以向量形式返回結果。
 
std::map< int, double > getResultsMap () const
 以 map 形式返回結果。 標籤是鍵,值是最小距離。
 
void init (size_t size) CV_OVERRIDE
 過載介面方法
 
- 從 cv::face::PredictCollector 繼承的公共成員函式
virtual ~PredictCollector ()
 

靜態公共成員函式

static Ptr< StandardCollectorcreate (double threshold=DBL_MAX)
 靜態建構函式。
 

保護屬性

std::vector< PredictResultdata
 
PredictResult minRes
 
double RANSAC引數。它是點到畫素中對極線的最大距離,超過此距離的點將被視為異常值,不用於計算最終的基本矩陣。它可以設定為1-3左右,具體取決於點定位的精度、影像解析度和影像噪聲。
 

詳細描述

預設預測收集器。

跟蹤具有閾值檢查的最小距離(這是大多數預測邏輯的預設行為)

建構函式 & 解構函式文件

◆ StandardCollector()

cv::face::StandardCollector::StandardCollector ( double threshold_ = DBL_MAX)

建構函式。

引數
threshold_設定閾值

成員函式文件

◆ collect()

bool cv::face::StandardCollector::collect ( int label,
double dist )
virtual

過載介面方法

實現 cv::face::PredictCollector

◆ create()

static Ptr< StandardCollector > cv::face::StandardCollector::create ( double threshold = DBL_MAX)
static
Python
cv.face.StandardCollector.create([, threshold]) -> retval
cv.face.StandardCollector_create([, threshold]) -> retval

靜態建構函式。

引數
RANSAC引數。它是點到畫素中對極線的最大距離,超過此距離的點將被視為異常值,不用於計算最終的基本矩陣。它可以設定為1-3左右,具體取決於點定位的精度、影像解析度和影像噪聲。設定閾值

◆ getMinDist()

double cv::face::StandardCollector::getMinDist ( ) const
Python
cv.face.StandardCollector.getMinDist() -> retval

返回最小距離值。

◆ getMinLabel()

int cv::face::StandardCollector::getMinLabel ( ) const
Python
cv.face.StandardCollector.getMinLabel() -> retval

返回具有最小距離的標籤。

◆ getResults()

std::vector< std::pair< int, double > > cv::face::StandardCollector::getResults ( bool sorted = false) const
Python
cv.face.StandardCollector.getResults([, sorted]) -> retval

以向量形式返回結果。

引數
sorted如果設定,結果將按距離排序。 每個值都是標籤和距離的對。

◆ getResultsMap()

std::map< int, double > cv::face::StandardCollector::getResultsMap ( ) const

以 map 形式返回結果。 標籤是鍵,值是最小距離。

◆ init()

void cv::face::StandardCollector::init ( size_t size)
virtual

過載介面方法

cv::face::PredictCollector 重新實現。

成員資料文件

◆ data

std::vector<PredictResult> cv::face::StandardCollector::data
保護

◆ minRes

PredictResult cv::face::StandardCollector::minRes
保護

◆ threshold

double cv::face::StandardCollector::threshold
保護

此類的文件由以下檔案生成