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

the VIT tracker is a super lightweight dnn-based general object tracking. More...

Static Public Member Functions

static new TrackerVit __fromPtr__ (IntPtr addr)
 
static TrackerVit create ()
 Constructor.
 
static TrackerVit create (Net model)
 Constructor.
 
static TrackerVit create (Net model, in Vec4d meanvalue)
 Constructor.
 
static TrackerVit create (Net model, in Vec4d meanvalue, in Vec4d stdvalue)
 Constructor.
 
static TrackerVit create (Net model, in Vec4d meanvalue, in Vec4d stdvalue, float tracking_score_threshold)
 Constructor.
 
static TrackerVit create (Net model, in(double v0, double v1, double v2, double v3) meanvalue)
 Constructor.
 
static TrackerVit create (Net model, in(double v0, double v1, double v2, double v3) meanvalue, in(double v0, double v1, double v2, double v3) stdvalue)
 Constructor.
 
static TrackerVit create (Net model, in(double v0, double v1, double v2, double v3) meanvalue, in(double v0, double v1, double v2, double v3) stdvalue, float tracking_score_threshold)
 Constructor.
 
static TrackerVit create (Net model, Scalar meanvalue)
 Constructor.
 
static TrackerVit create (Net model, Scalar meanvalue, Scalar stdvalue)
 Constructor.
 
static TrackerVit create (Net model, Scalar meanvalue, Scalar stdvalue, float tracking_score_threshold)
 Constructor.
 
static TrackerVit create (TrackerVit_Params parameters)
 Constructor.
 
- Static Public Member Functions inherited from OpenCVForUnity.VideoModule.Tracker
static Tracker __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 Returns the native pointer, or throws CoreModule.CvException if it is zero.
 

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.VideoModule.Tracker
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 Initializes a new instance with a zero native pointer and dispose enabled.
 
 DisposableOpenCVObject (bool isEnabledDispose)
 Initializes a new instance with a zero native pointer.
 
 DisposableOpenCVObject (IntPtr ptr)
 Initializes a new instance with the specified native pointer and dispose enabled.
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 Initializes a new instance with the specified native pointer.
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 Initializes a new instance with dispose enabled.
 
 DisposableObject (bool isEnabledDispose)
 Initializes a new instance.
 

Additional Inherited Members

- Public Member Functions inherited from OpenCVForUnity.VideoModule.Tracker
IntPtr getNativeObjAddr ()
 
float getTrackingScore ()
 Return tracking score.
 
void init (Mat image, in Vec4i boundingBox)
 Initialize the tracker with a known bounding box that surrounded the target.
 
void init (Mat image, in(int x, int y, int width, int height) boundingBox)
 Initialize the tracker with a known bounding box that surrounded the target.
 
void init (Mat image, Rect boundingBox)
 Initialize the tracker with a known bounding box that surrounded the target.
 
bool update (Mat image, out Vec4i boundingBox)
 Update the tracker, find the new most likely bounding box for the target.
 
bool update (Mat image, out(int x, int y, int width, int height) boundingBox)
 Update the tracker, find the new most likely bounding box for the target.
 
bool update (Mat image, Rect boundingBox)
 Update the tracker, find the new most likely bounding box for the target.
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 Releases resources used by this object.
 
void ThrowIfDisposed ()
 Throws ObjectDisposedException if this object has been disposed.
 
- Package Functions inherited from OpenCVForUnity.VideoModule.Tracker
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

the VIT tracker is a super lightweight dnn-based general object tracking.

VIT tracker is much faster and extremely lightweight due to special model structure, the model file is about 767KB. Model download link: https://github.com/opencv/opencv_zoo/tree/main/models/object_tracking_vittrack Author: PengyuLiu, 18729.nosp@m.1850.nosp@m.7@qq..nosp@m.com

Member Function Documentation

◆ __fromPtr__()

static new TrackerVit OpenCVForUnity.VideoModule.TrackerVit.__fromPtr__ ( IntPtr addr)
static

◆ create() [1/12]

static TrackerVit OpenCVForUnity.VideoModule.TrackerVit.create ( )
static

Constructor.

Parameters
parametersvit tracker parameters TrackerVit::Params

◆ create() [2/12]

static TrackerVit OpenCVForUnity.VideoModule.TrackerVit.create ( Net model)
static

Constructor.

Parameters
modelpre-loaded DNN model
meanvaluemean value for image preprocessing
stdvaluestd value for image preprocessing
tracking_score_thresholdthreshold for tracking score

◆ create() [3/12]

static TrackerVit OpenCVForUnity.VideoModule.TrackerVit.create ( Net model,
in Vec4d meanvalue )
static

Constructor.

Parameters
modelpre-loaded DNN model
meanvaluemean value for image preprocessing
stdvaluestd value for image preprocessing
tracking_score_thresholdthreshold for tracking score

◆ create() [4/12]

static TrackerVit OpenCVForUnity.VideoModule.TrackerVit.create ( Net model,
in Vec4d meanvalue,
in Vec4d stdvalue )
static

Constructor.

Parameters
modelpre-loaded DNN model
meanvaluemean value for image preprocessing
stdvaluestd value for image preprocessing
tracking_score_thresholdthreshold for tracking score

◆ create() [5/12]

static TrackerVit OpenCVForUnity.VideoModule.TrackerVit.create ( Net model,
in Vec4d meanvalue,
in Vec4d stdvalue,
float tracking_score_threshold )
static

Constructor.

Parameters
modelpre-loaded DNN model
meanvaluemean value for image preprocessing
stdvaluestd value for image preprocessing
tracking_score_thresholdthreshold for tracking score

◆ create() [6/12]

static TrackerVit OpenCVForUnity.VideoModule.TrackerVit.create ( Net model,
in(double v0, double v1, double v2, double v3) meanvalue )
static

Constructor.

Parameters
modelpre-loaded DNN model
meanvaluemean value for image preprocessing
stdvaluestd value for image preprocessing
tracking_score_thresholdthreshold for tracking score

◆ create() [7/12]

static TrackerVit OpenCVForUnity.VideoModule.TrackerVit.create ( Net model,
in(double v0, double v1, double v2, double v3) meanvalue,
in(double v0, double v1, double v2, double v3) stdvalue )
static

Constructor.

Parameters
modelpre-loaded DNN model
meanvaluemean value for image preprocessing
stdvaluestd value for image preprocessing
tracking_score_thresholdthreshold for tracking score

◆ create() [8/12]

static TrackerVit OpenCVForUnity.VideoModule.TrackerVit.create ( Net model,
in(double v0, double v1, double v2, double v3) meanvalue,
in(double v0, double v1, double v2, double v3) stdvalue,
float tracking_score_threshold )
static

Constructor.

Parameters
modelpre-loaded DNN model
meanvaluemean value for image preprocessing
stdvaluestd value for image preprocessing
tracking_score_thresholdthreshold for tracking score

◆ create() [9/12]

static TrackerVit OpenCVForUnity.VideoModule.TrackerVit.create ( Net model,
Scalar meanvalue )
static

Constructor.

Parameters
modelpre-loaded DNN model
meanvaluemean value for image preprocessing
stdvaluestd value for image preprocessing
tracking_score_thresholdthreshold for tracking score

◆ create() [10/12]

static TrackerVit OpenCVForUnity.VideoModule.TrackerVit.create ( Net model,
Scalar meanvalue,
Scalar stdvalue )
static

Constructor.

Parameters
modelpre-loaded DNN model
meanvaluemean value for image preprocessing
stdvaluestd value for image preprocessing
tracking_score_thresholdthreshold for tracking score

◆ create() [11/12]

static TrackerVit OpenCVForUnity.VideoModule.TrackerVit.create ( Net model,
Scalar meanvalue,
Scalar stdvalue,
float tracking_score_threshold )
static

Constructor.

Parameters
modelpre-loaded DNN model
meanvaluemean value for image preprocessing
stdvaluestd value for image preprocessing
tracking_score_thresholdthreshold for tracking score

◆ create() [12/12]

static TrackerVit OpenCVForUnity.VideoModule.TrackerVit.create ( TrackerVit_Params parameters)
static

Constructor.

Parameters
parametersvit tracker parameters TrackerVit::Params

◆ Dispose()

override void OpenCVForUnity.VideoModule.TrackerVit.Dispose ( bool disposing)
protectedvirtual

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