OpenCV for Unity 2.6.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.TrackingModule.legacy_MultiTracker Class Reference

This class is used to track multiple objects using the specified tracker algorithm. More...

Public Member Functions

 legacy_MultiTracker ()
 Constructor.
 
bool add (legacy_Tracker newTracker, Mat image, in Vec4d boundingBox)
 Add a new object to be tracked.
 
bool add (legacy_Tracker newTracker, Mat image, in(double x, double y, double width, double height) boundingBox)
 Add a new object to be tracked.
 
bool add (legacy_Tracker newTracker, Mat image, Rect2d boundingBox)
 Add a new object to be tracked.
 
MatOfRect2d getObjects ()
 Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm.
 
bool update (Mat image, MatOfRect2d boundingBox)
 Update the current tracking status.
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual string getDefaultName ()
 
IntPtr getNativeObjAddr ()
 
void save (string filename)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new legacy_MultiTracker __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

This class is used to track multiple objects using the specified tracker algorithm.

The MultiTracker is naive implementation of multiple object tracking. It process the tracked objects independently without any optimization accross the tracked objects.

Constructor & Destructor Documentation

◆ legacy_MultiTracker()

OpenCVForUnity.TrackingModule.legacy_MultiTracker.legacy_MultiTracker ( )

Constructor.

Member Function Documentation

◆ __fromPtr__()

static new legacy_MultiTracker OpenCVForUnity.TrackingModule.legacy_MultiTracker.__fromPtr__ ( IntPtr addr)
static

◆ add() [1/3]

bool OpenCVForUnity.TrackingModule.legacy_MultiTracker.add ( legacy_Tracker newTracker,
Mat image,
in Vec4d boundingBox )

Add a new object to be tracked.

Parameters
newTrackertracking algorithm to be used
imageinput image
boundingBoxa rectangle represents ROI of the tracked object

◆ add() [2/3]

bool OpenCVForUnity.TrackingModule.legacy_MultiTracker.add ( legacy_Tracker newTracker,
Mat image,
in(double x, double y, double width, double height) boundingBox )

Add a new object to be tracked.

Parameters
newTrackertracking algorithm to be used
imageinput image
boundingBoxa rectangle represents ROI of the tracked object

◆ add() [3/3]

bool OpenCVForUnity.TrackingModule.legacy_MultiTracker.add ( legacy_Tracker newTracker,
Mat image,
Rect2d boundingBox )

Add a new object to be tracked.

Parameters
newTrackertracking algorithm to be used
imageinput image
boundingBoxa rectangle represents ROI of the tracked object

◆ Dispose()

override void OpenCVForUnity.TrackingModule.legacy_MultiTracker.Dispose ( bool disposing)
protectedvirtual

◆ getObjects()

MatOfRect2d OpenCVForUnity.TrackingModule.legacy_MultiTracker.getObjects ( )

Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm.

◆ update()

bool OpenCVForUnity.TrackingModule.legacy_MultiTracker.update ( Mat image,
MatOfRect2d boundingBox )

Update the current tracking status.

Parameters
imageinput image
boundingBoxthe tracking result, represent a list of ROIs of the tracked objects.

The documentation for this class was generated from the following files: