OpenCV 4.13.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
cv::face::StandardCollector クラス

デフォルトの予測コレクタ。 続き...

#include <opencv2/face/predict_collector.hpp>

Collaboration diagram for cv::face::StandardCollector:

クラス

struct  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
 結果をマップとして返す。ラベルがキー、値が最小距離である。
 
void init (size_t size) CV_OVERRIDE
 オーバーロードされたインターフェイスメソッド
 
- Public Member Functions inherited from cv::face::PredictCollector
virtual ~PredictCollector ()
 

静的公開メンバ関数

static Ptr< StandardCollectorcreate (double threshold=DBL_MAX)
 静的コンストラクタ。
 

限定公開変数類

std::vector< PredictResultdata
 
PredictResult minRes
 
double threshold
 

詳細説明

デフォルトの予測コレクタ。

しきい値チェックを伴って最小距離をトレースする(これはほとんどの予測ロジックにおけるデフォルトの動作である)

構築子と解体子の詳解

◆ 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

静的コンストラクタ。

引数
thresholdしきい値を設定する

◆ 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

結果をマップとして返す。ラベルがキー、値が最小距離である。

◆ init()

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

オーバーロードされたインターフェイスメソッド

cv::face::PredictCollector から再実装されている。

メンバ変数詳解

◆ data

std::vector<PredictResult> cv::face::StandardCollector::data
protected

◆ minRes

PredictResult cv::face::StandardCollector::minRes
protected

◆ threshold

double cv::face::StandardCollector::threshold
protected

このクラス詳解は次のファイルから抽出されました: