OpenCV 4.11.0
开源计算机视觉库
加载中…
搜索中…
无匹配项
cv::DetectionBasedTracker 类参考

#include <opencv2/objdetect/detection_based_tracker.hpp>

cv::DetectionBasedTracker 的协作图

结构体 ExtObject
 
类 IDetector
 
结构体 InnerParameters
 
结构体 Parameters
 
结构体 TrackedObject
 

公有类型

typedef std::pair< cv::Rect, int > Object
 
枚举 ObjectStatus {
  DETECTED_NOT_SHOWN_YET ,
  DETECTED ,
  DETECTED_TEMPORARY_LOST ,
  WRONG_OBJECT
}
 

公有成员函数

 DetectionBasedTracker (cv::Ptr< IDetector > mainDetector, cv::Ptr< IDetector > trackingDetector, const Parameters &params)
 
虚函数 ~DetectionBasedTracker ()
 
虚函数 int addObject (const cv::Rect &location)
 
虚函数 void getObjects (std::vector< cv::Rect > &result) const
 
虚函数 void getObjects (std::vector< ExtObject > &result) const
 
虚函数 void getObjects (std::vector< Object > &result) const
 
const ParametersgetParameters () const
 
虚函数 void process (const cv::Mat &imageGray)
 
虚函数 void resetTracking ()
 
虚函数 bool run ()
 
bool setParameters (const Parameters &params)
 
虚函数 void stop ()
 

保护成员函数

cv::Rect calcTrackedObjectPositionToShow (int i) const
 
cv::Rect calcTrackedObjectPositionToShow (int i, ObjectStatus &status) const
 
void detectInRegion (const cv::Mat &img, const cv::Rect &r, std::vector< cv::Rect > &detectedObjectsInRegions)
 
void updateTrackedObjects (const std::vector< cv::Rect > &detectedObjects)
 

保护属性

cv::Ptr< IDetectorcascadeForTracking
 
InnerParameters innerParameters
 
int numTrackedSteps
 
Parameters parameters
 
cv::Ptr< SeparateDetectionWork > separateDetectionWork
 
std::vector< TrackedObjecttrackedObjects
 
std::vector< float > weightsPositionsSmoothing
 
std::vector< float > weightsSizesSmoothing
 

友元

void * workcycleObjectDetectorFunction (void *p)
 

成员类型定义文档

◆ Object

成员枚举文档

◆ ObjectStatus

枚举值
DETECTED_NOT_SHOWN_YET 
DETECTED 
DETECTED_TEMPORARY_LOST 
WRONG_OBJECT 

构造函数和析构函数文档

◆ DetectionBasedTracker()

cv::DetectionBasedTracker::DetectionBasedTracker ( cv::Ptr< IDetector > mainDetector,
cv::Ptr< IDetector > trackingDetector,
const Parameters & params )

◆ ~DetectionBasedTracker()

virtual cv::DetectionBasedTracker::~DetectionBasedTracker ( )
虚函数

成员函数文档

◆ addObject()

virtual int cv::DetectionBasedTracker::addObject ( const cv::Rect & location)
虚函数

◆ calcTrackedObjectPositionToShow() [1/2]

cv::Rect cv::DetectionBasedTracker::calcTrackedObjectPositionToShow ( int i) const
protected

◆ calcTrackedObjectPositionToShow() [2/2]

cv::Rect cv::DetectionBasedTracker::calcTrackedObjectPositionToShow ( int i,
ObjectStatus & status ) const
protected

◆ detectInRegion()

void cv::DetectionBasedTracker::detectInRegion ( const cv::Mat & img,
const cv::Rect & r,
std::vector< cv::Rect > & detectedObjectsInRegions )
protected

◆ getObjects() [1/3]

virtual void cv::DetectionBasedTracker::getObjects ( std::vector< cv::Rect > & result) const
虚函数

◆ getObjects() [2/3]

virtual void cv::DetectionBasedTracker::getObjects ( std::vector< ExtObject > & result) const
虚函数

◆ getObjects() [3/3]

virtual void cv::DetectionBasedTracker::getObjects ( std::vector< Object > & result) const
虚函数

◆ getParameters()

const Parameters & cv::DetectionBasedTracker::getParameters ( ) const

◆ process()

virtual void cv::DetectionBasedTracker::process ( const cv::Mat & imageGray)
虚函数

◆ resetTracking()

virtual void cv::DetectionBasedTracker::resetTracking ( )
虚函数

◆ run()

virtual bool cv::DetectionBasedTracker::run ( )
虚函数

◆ setParameters()

bool cv::DetectionBasedTracker::setParameters ( const Parameters & params)

◆ stop()

virtual void cv::DetectionBasedTracker::stop ( )
虚函数

◆ updateTrackedObjects()

void cv::DetectionBasedTracker::updateTrackedObjects ( const std::vector< cv::Rect > & detectedObjects)
protected

友元和相关符号文档

◆ workcycleObjectDetectorFunction

void * workcycleObjectDetectorFunction ( void * p)
友元

成员数据文档

◆ cascadeForTracking

cv::Ptr<IDetector> cv::DetectionBasedTracker::cascadeForTracking
protected

◆ innerParameters

InnerParameters cv::DetectionBasedTracker::innerParameters
protected

◆ numTrackedSteps

int cv::DetectionBasedTracker::numTrackedSteps
protected

◆ parameters

Parameters cv::DetectionBasedTracker::parameters
protected

◆ separateDetectionWork

cv::Ptr<SeparateDetectionWork> cv::DetectionBasedTracker::separateDetectionWork
protected

◆ trackedObjects

std::vector<TrackedObject> cv::DetectionBasedTracker::trackedObjects
protected

◆ weightsPositionsSmoothing

std::vector<float> cv::DetectionBasedTracker::weightsPositionsSmoothing
protected

◆ weightsSizesSmoothing

std::vector<float> cv::DetectionBasedTracker::weightsSizesSmoothing
protected

此类的文档是从以下文件生成的: