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

詳細説明

クラス

class  cv::SimilarRects
 このクラスは、カスケード分類器やHOGなどによって検出された物体候補をグループ化するために使用する。 続きを読む...
 

関数

void cv::groupRectangles (std::vector< Rect > &rectList, int groupThreshold, double eps, std::vector< int > *weights, std::vector< double > *levelWeights)
 
void cv::groupRectangles (std::vector< Rect > &rectList, int groupThreshold, double eps=0.2)
 オブジェクト候補の矩形をグループ化する。
 
void cv::groupRectangles (std::vector< Rect > &rectList, std::vector< int > &rejectLevels, std::vector< double > &levelWeights, int groupThreshold, double eps=0.2)
 
void cv::groupRectangles (std::vector< Rect > &rectList, std::vector< int > &weights, int groupThreshold, double eps=0.2)
 
void cv::groupRectangles_meanshift (std::vector< Rect > &rectList, std::vector< double > &foundWeights, std::vector< double > &foundScales, double detectThreshold=0.0, Size winDetSize=Size(64, 128))
 

関数詳解

◆ groupRectangles() [1/4]

void cv::groupRectangles ( std::vector< Rect > & rectList,
int groupThreshold,
double eps,
std::vector< int > * weights,
std::vector< double > * levelWeights )
Python:
cv.groupRectangles(rectList, groupThreshold[, eps]) -> rectList, weights

#include <opencv2/xobjdetect.hpp>

これは利便性のために提供されているオーバーロードされたメンバ関数である。上記の関数とは、受け取る引数のみが異なる。

◆ groupRectangles() [2/4]

void cv::groupRectangles ( std::vector< Rect > & rectList,
int groupThreshold,
double eps = 0.2 )
Python:
cv.groupRectangles(rectList, groupThreshold[, eps]) -> rectList, weights

#include <opencv2/xobjdetect.hpp>

物体候補の矩形をグループ化する。

引数
rectList矩形の入出力ベクトル。出力ベクトルには保持された矩形とグループ化された矩形が含まれる。(Pythonのリストはその場で変更されない。)
groupThreshold可能な矩形の最小数から 1 を引いた値。このしきい値は矩形のグループを保持するかどうかを判定するために使用される。
eps矩形をグループにまとめるための、矩形の辺どうしの相対的な差。

この関数は汎用関数 partition のラッパーである。矩形の等価判定基準を用いて、サイズと位置が似た矩形をまとめることで、すべての入力矩形をクラスタリングする。類似度は eps によって定義される。eps=0 の場合、クラスタリングは一切行われない。\(\texttt{eps}\rightarrow +\inf\) の場合、すべての矩形が1つのクラスタにまとめられる。続いて、含まれる矩形が groupThreshold 個以下の小さなクラスタは棄却される。それ以外の各クラスタでは、平均の矩形が計算され、出力矩形リストに格納される。

◆ groupRectangles() [3/4]

void cv::groupRectangles ( std::vector< Rect > & rectList,
std::vector< int > & rejectLevels,
std::vector< double > & levelWeights,
int groupThreshold,
double eps = 0.2 )
Python:
cv.groupRectangles(rectList, groupThreshold[, eps]) -> rectList, weights

#include <opencv2/xobjdetect.hpp>

これは利便性のために提供されているオーバーロードされたメンバ関数である。上記の関数とは、受け取る引数のみが異なる。

◆ groupRectangles() [4/4]

void cv::groupRectangles ( std::vector< Rect > & rectList,
std::vector< int > & weights,
int groupThreshold,
double eps = 0.2 )
Python:
cv.groupRectangles(rectList, groupThreshold[, eps]) -> rectList, weights

#include <opencv2/xobjdetect.hpp>

これは利便性のために提供されているオーバーロードされたメンバ関数である。上記の関数とは、受け取る引数のみが異なる。

◆ groupRectangles_meanshift()

void cv::groupRectangles_meanshift ( std::vector< Rect > & rectList,
std::vector< double > & foundWeights,
std::vector< double > & foundScales,
double detectThreshold = 0.0,
Size winDetSize = Size(64, 128) )

#include <opencv2/xobjdetect.hpp>

これは利便性のために提供されているオーバーロードされたメンバ関数である。上記の関数とは、受け取る引数のみが異なる。