Struct YoloPrediction
Represents a prediction made by a Yolo model for object detection and segmentation tasks. It includes the confidence score, bounding rectangle, label, and optionally a mask for segmentation.
Implements
Inherited Members
Namespace: EyeAuras.OpenCVAuras.ML.Yolo
Assembly: EyeAuras.OpenCVAuras.Shared.dll
Syntax
public readonly struct YoloPrediction : IEquatable<YoloPrediction>
Properties
Name | Description |
---|---|
ClassIdx | The index of the class in the Yolo model that corresponds to this prediction. |
Label | The label of the detected object, providing information about the type or class of the object. |
Mask | The mask associated with this prediction, used in segmentation tasks. The mask delineates the exact shape of the object. This field is relevant only for segmentation tasks and can be null for object detection tasks. |
Rectangle | The bounding rectangle of the detected object in the image. |
SampleIdx | The index of the sample (image or frame) in which this prediction was made. |
Score | The confidence score of the prediction, indicating the likelihood that the prediction is correct. |
Methods
Name | Description |
---|---|
Equals(YoloPrediction) | |
Equals(object) | |
GetHashCode() | |
ToString() |
Operators
Name | Description |
---|---|
operator ==(YoloPrediction, YoloPrediction) | |
operator !=(YoloPrediction, YoloPrediction) |