OpenCV for Unity
2.6.3
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.
|
This class is used to track multiple objects using the specified tracker algorithm. More...
Public Member Functions | |
legacy_MultiTracker () | |
Constructor. More... | |
bool | add (legacy_Tracker newTracker, Mat image, Rect2d boundingBox) |
Add a new object to be tracked. More... | |
bool | update (Mat image, MatOfRect2d boundingBox) |
Update the current tracking status. More... | |
MatOfRect2d | getObjects () |
Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm. More... | |
Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm | |
IntPtr | getNativeObjAddr () |
virtual void | clear () |
Clears the algorithm state. More... | |
virtual bool | empty () |
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More... | |
void | save (string filename) |
virtual string | getDefaultName () |
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.DisposableOpenCVObject | |
DisposableOpenCVObject () | |
DisposableOpenCVObject (IntPtr ptr) | |
DisposableOpenCVObject (bool isEnabledDispose) | |
DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose) | |
Protected Member Functions inherited from OpenCVForUnity.DisposableObject | |
DisposableObject () | |
DisposableObject (bool isEnabledDispose) | |
Additional Inherited Members | |
Properties inherited from OpenCVForUnity.DisposableObject | |
bool | IsDisposed [get, protected set] |
bool | IsEnabledDispose [get, set] |
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.
OpenCVForUnity.TrackingModule.legacy_MultiTracker.legacy_MultiTracker | ( | ) |
Constructor.
|
static |
bool OpenCVForUnity.TrackingModule.legacy_MultiTracker.add | ( | legacy_Tracker | newTracker, |
Mat | image, | ||
Rect2d | boundingBox | ||
) |
Add a new object to be tracked.
newTracker | tracking algorithm to be used |
image | input image |
boundingBox | a rectangle represents ROI of the tracked object |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.CoreModule.Algorithm.
MatOfRect2d OpenCVForUnity.TrackingModule.legacy_MultiTracker.getObjects | ( | ) |
Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm.
bool OpenCVForUnity.TrackingModule.legacy_MultiTracker.update | ( | Mat | image, |
MatOfRect2d | boundingBox | ||
) |
Update the current tracking status.
image | input image |
boundingBox | the tracking result, represent a list of ROIs of the tracked objects. |