Table of Contents

Class LegacyTracker

Namespace
OpenCvSharp.Tracking.Legacy
Assembly
OpenCvSharp.dll

Base abstract class for the long-term tracker, mirroring cv::legacy::Tracker.

public abstract class LegacyTracker : Algorithm, IDisposable
Inheritance
LegacyTracker
Implements
Derived
Inherited Members

Remarks

This is a distinct type from Tracker (the modern, video-module tracker base): cv::legacy::Tracker::init/update return bool (not void) and operate on Rect2d (not Rect), so the two hierarchies cannot share a common managed base class.

Constructors

LegacyTracker(nint, nint, Action<nint>)

Constructor for the factory pattern (cv::Ptr<T>* + raw T*).

Methods

Init(Mat, Rect2d)

Initialize the tracker with a known bounding box that surrounded the target.

Update(Mat, ref Rect2d)

Update the tracker, find the new most likely bounding box for the target.