DetectedObject

data class DetectedObject(classLabel: String, probability: Float, xMax: Float, xMin: Float, yMax: Float, yMin: Float)

This data class represents the detected object on the given image.

Constructors

DetectedObject
Link copied to clipboard
fun DetectedObject(classLabel: String, probability: Float, xMax: Float, xMin: Float, yMax: Float, yMin: Float)

Properties

classLabel
Link copied to clipboard
val classLabel: String

The predicted class's name

probability
Link copied to clipboard
val probability: Float

The probability of the predicted class.

xMax
Link copied to clipboard
val xMax: Float

The maximum X coordinate for the bounding box containing the predicted object.

xMin
Link copied to clipboard
val xMin: Float

The minimum X coordinate for the bounding box containing the predicted object.

yMax
Link copied to clipboard
val yMax: Float

The maximum Y coordinate for the bounding box containing the predicted object.

yMin
Link copied to clipboard
val yMin: Float

The minimum Y coordinate for the bounding box containing the predicted object.