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.
|
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] |
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, | ||
in Vec4d | 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 |
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.
newTracker | tracking algorithm to be used |
image | input image |
boundingBox | a rectangle represents ROI of the tracked object |
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. |