OpenCV for Unity 3.0.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.12.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase Class Referenceabstract

TrackInfoVisualizerBase A base class that provides common visualization functionality for tracking information. More...

Public Member Functions

void Dispose ()
 
virtual string[] GetClassLabels ()
 Gets all class labels.
 

Protected Member Functions

 TrackInfoVisualizerBase (string classesFilepath=null)
 Initializes a new instance of the TrackInfoVisualizerBase class.
 
virtual void Dispose (bool disposing)
 
virtual string GetClassLabel (float id)
 Gets the class label for the given class ID.
 
virtual List< string > ReadClassNames (string filename)
 Reads class names from a text file.
 
void ThrowIfDisposed ()
 

Protected Attributes

List< string > _classNames
 
bool _disposed = false
 

Static Protected Attributes

static readonly Scalar[] SCALAR_PALETTE
 
static readonly Scalar SCALAR_WHITE = new Scalar(255, 255, 255, 255)
 

Detailed Description

TrackInfoVisualizerBase A base class that provides common visualization functionality for tracking information.

Constructor & Destructor Documentation

◆ TrackInfoVisualizerBase()

OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase.TrackInfoVisualizerBase ( string classesFilepath = null)
protected

Initializes a new instance of the TrackInfoVisualizerBase class.

Parameters
classesFilepathPath to the text file containing class names.

Member Function Documentation

◆ Dispose() [1/2]

void OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase.Dispose ( )

◆ Dispose() [2/2]

virtual void OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase.Dispose ( bool disposing)
protectedvirtual

◆ GetClassLabel()

virtual string OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase.GetClassLabel ( float id)
protectedvirtual

Gets the class label for the given class ID.

Parameters
idClass ID.
Returns
Class label string. Returns the ID as string if no label is found.

◆ GetClassLabels()

virtual string[] OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase.GetClassLabels ( )
virtual

Gets all class labels.

Returns
Array of class label strings.

◆ ReadClassNames()

virtual List< string > OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase.ReadClassNames ( string filename)
protectedvirtual

Reads class names from a text file.

Parameters
filenamePath to the text file containing class names.
Returns
List of class names.

◆ ThrowIfDisposed()

void OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase.ThrowIfDisposed ( )
protected

Member Data Documentation

◆ _classNames

List<string> OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase._classNames
protected

◆ _disposed

bool OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase._disposed = false
protected

◆ SCALAR_PALETTE

readonly Scalar [] OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase.SCALAR_PALETTE
staticprotected
Initial value:
= new Scalar[]
{
new(255, 56, 56, 255),
new(255, 157, 151, 255),
new(255, 112, 31, 255),
new(255, 178, 29, 255),
new(207, 210, 49, 255),
new(72, 249, 10, 255),
new(146, 204, 23, 255),
new(61, 219, 134, 255),
new(26, 147, 52, 255),
new(0, 212, 187, 255),
new(44, 153, 168, 255),
new(0, 194, 255, 255),
new(52, 69, 147, 255),
new(100, 115, 255, 255),
new(0, 24, 236, 255),
new(132, 56, 255, 255),
new(82, 0, 133, 255),
new(203, 56, 255, 255),
new(255, 149, 200, 255),
new(255, 55, 199, 255)
}

◆ SCALAR_WHITE

readonly Scalar OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase.SCALAR_WHITE = new Scalar(255, 255, 255, 255)
staticprotected

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