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.TrackInfoVisualizer Class Reference

TrackInfoVisualizer A class that provides visualization functionality for tracking information. More...

Public Member Functions

 TrackInfoVisualizer (string classesFilepath=null)
 Initializes a new instance of the TrackInfoVisualizer class.
 
virtual void Visualize (Mat image, ReadOnlySpan< TrackInfo > trackInfos, bool printResult=false, bool isRGB=false)
 Visualizes tracking information on the input image.
 
virtual void Visualize (Mat image, TrackInfo[] trackInfos, bool printResult=false, bool isRGB=false)
 Visualizes tracking information on the input image.
 
- Public Member Functions inherited from OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase
void Dispose ()
 
virtual string[] GetClassLabels ()
 Gets all class labels.
 
- Public Member Functions inherited from OpenCVForUnity.UnityIntegration.MOT.ITrackInfoVisualizer< TrackInfo >
void Visualize (Mat image, ReadOnlySpan< T > trackInfos, bool printResult=false, bool isRGB=false)
 
void Visualize (Mat image, T[] trackInfos, bool printResult=false, bool isRGB=false)
 

Additional Inherited Members

- Protected Member Functions inherited from OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase
 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 inherited from OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase
List< string > _classNames
 
bool _disposed = false
 
- Static Protected Attributes inherited from OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizerBase
static readonly Scalar[] SCALAR_PALETTE
 
static readonly Scalar SCALAR_WHITE = new Scalar(255, 255, 255, 255)
 

Detailed Description

TrackInfoVisualizer A class that provides visualization functionality for tracking information.

Constructor & Destructor Documentation

◆ TrackInfoVisualizer()

OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizer.TrackInfoVisualizer ( string classesFilepath = null)

Initializes a new instance of the TrackInfoVisualizer class.

Parameters
classesFilepathPath to the text file containing class names.

Member Function Documentation

◆ Visualize() [1/2]

virtual void OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizer.Visualize ( Mat image,
ReadOnlySpan< TrackInfo > trackInfos,
bool printResult = false,
bool isRGB = false )
virtual

Visualizes tracking information on the input image.

Parameters
imageThe input image to draw on.
trackInfosThe tracking information to visualize.
printResultWhether to print result to console.
isRGBWhether the input image is RGB or BGR.

◆ Visualize() [2/2]

virtual void OpenCVForUnity.UnityIntegration.MOT.TrackInfoVisualizer.Visualize ( Mat image,
TrackInfo[] trackInfos,
bool printResult = false,
bool isRGB = false )
virtual

Visualizes tracking information on the input image.

Parameters
imageThe input image to draw on.
trackInfosThe tracking information to visualize.
printResultWhether to print result to console.
isRGBWhether the input image is RGB or BGR.

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