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.Extensions.MOT.BBox Struct Reference

Bounding box data for multi-object tracking. More...

Public Member Functions

 BBox (CoreModule.Rect rect, float score, int classId=0)
 Initializes a new bounding box from an OpenCV Rect.
 
 BBox (CoreModule.Rect2d rect, float score, int classId=0)
 Initializes a new bounding box from an OpenCV Rect2d.
 
 BBox (float x, float y, float width, float height, float score, int classId=0)
 Initializes a new bounding box with explicit coordinates and metadata.
 
 BBox (in Worker.DataStruct.ObjectDetectionData data)
 Initializes a new bounding box from object detection data.
 
 BBox (Rect rect, float score, int classId=0)
 Initializes a new bounding box from a Unity Rect.
 
override readonly string ToString ()
 Returns a string representation of the bounding box.
 

Public Attributes

readonly int ClassId
 
readonly float Height
 
readonly float Score
 
readonly float Width
 
readonly float X
 
readonly float Y
 

Static Public Attributes

const int DATA_SIZE = ELEMENT_COUNT * 4
 
const int ELEMENT_COUNT = 6
 

Detailed Description

Bounding box data for multi-object tracking.

Constructor & Destructor Documentation

◆ BBox() [1/5]

OpenCVForUnity.Extensions.MOT.BBox.BBox ( float x,
float y,
float width,
float height,
float score,
int classId = 0 )

Initializes a new bounding box with explicit coordinates and metadata.

Parameters
xLeft coordinate.
yTop coordinate.
widthBox width.
heightBox height.
scoreDetection confidence score.
classIdClass identifier.

◆ BBox() [2/5]

OpenCVForUnity.Extensions.MOT.BBox.BBox ( CoreModule.Rect rect,
float score,
int classId = 0 )

Initializes a new bounding box from an OpenCV Rect.

Parameters
rectSource rectangle.
scoreDetection confidence score.
classIdClass identifier.

◆ BBox() [3/5]

OpenCVForUnity.Extensions.MOT.BBox.BBox ( CoreModule.Rect2d rect,
float score,
int classId = 0 )

Initializes a new bounding box from an OpenCV Rect2d.

Parameters
rectSource rectangle.
scoreDetection confidence score.
classIdClass identifier.

◆ BBox() [4/5]

OpenCVForUnity.Extensions.MOT.BBox.BBox ( in Worker.DataStruct.ObjectDetectionData data)

Initializes a new bounding box from object detection data.

Parameters
dataObject detection result.

◆ BBox() [5/5]

OpenCVForUnity.Extensions.MOT.BBox.BBox ( Rect rect,
float score,
int classId = 0 )

Initializes a new bounding box from a Unity Rect.

Parameters
rectSource rectangle.
scoreDetection confidence score.
classIdClass identifier.

Member Function Documentation

◆ ToString()

override readonly string OpenCVForUnity.Extensions.MOT.BBox.ToString ( )

Returns a string representation of the bounding box.

Member Data Documentation

◆ ClassId

readonly int OpenCVForUnity.Extensions.MOT.BBox.ClassId

◆ DATA_SIZE

const int OpenCVForUnity.Extensions.MOT.BBox.DATA_SIZE = ELEMENT_COUNT * 4
static

◆ ELEMENT_COUNT

const int OpenCVForUnity.Extensions.MOT.BBox.ELEMENT_COUNT = 6
static

◆ Height

readonly float OpenCVForUnity.Extensions.MOT.BBox.Height

◆ Score

readonly float OpenCVForUnity.Extensions.MOT.BBox.Score

◆ Width

readonly float OpenCVForUnity.Extensions.MOT.BBox.Width

◆ X

readonly float OpenCVForUnity.Extensions.MOT.BBox.X

◆ Y

readonly float OpenCVForUnity.Extensions.MOT.BBox.Y

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