TrackInfoVisualizerBase A base class that provides common visualization functionality for tracking information.
More...
TrackInfoVisualizerBase A base class that provides common visualization functionality for tracking information.
◆ TrackInfoVisualizerBase()
OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase.TrackInfoVisualizerBase |
( |
string | classesFilepath = null | ) |
|
|
protected |
Initializes a new instance of the TrackInfoVisualizerBase class.
- Parameters
-
classesFilepath | Path to the text file containing class names. |
◆ 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
-
- 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
-
filename | Path to the text file containing class names. |
- Returns
- List of class names.
◆ ThrowIfDisposed()
void OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase.ThrowIfDisposed |
( |
| ) |
|
|
protected |
◆ _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: