Table of Contents

Class MultiTrackerAlt

Namespace
OpenCvSharp.Tracking.Legacy
Assembly
OpenCvSharp.dll

Base class for objects that own a single native OpenCV pointer through an OpenCvSafeHandle. The SafeHandle is the single source of truth for the native handle value and is responsible for releasing it (including from its own finalizer when the managed object is dropped without Dispose()).

public class MultiTrackerAlt : CvObject, IDisposable
Inheritance
MultiTrackerAlt
Implements
Derived
Inherited Members

Remarks

Unlike MultiTracker, cv::legacy::MultiTracker_Alt does not derive from cv::Algorithm and has no create() factory - it is a plain, directly-constructed C++ class with public fields, so this wrapper follows the direct-allocation (CvObject-based) pattern instead of the CvPtrObject/cv::Ptr factory pattern used elsewhere in this module.

Constructors

MultiTrackerAlt()

Constructor for Multitracker.

Properties

BoundingBoxes

Bounding boxes list for Multi-Object-Tracker.

TargetNum

Current number of targets in tracking-list.

Methods

AddTarget(Mat, Rect2d, LegacyTracker)

Add a new target to a tracking-list and initialize the tracker with a known bounding box that surrounded the target.

DisposeUnmanaged()

Releases unmanaged resources

Update(Mat)

Update all trackers from the tracking-list, find a new most likely bounding boxes for the targets.