DetectedObject

data class DetectedObject(xMin: Float, xMax: Float, yMin: Float, yMax: Float, probability: Float, label: String?) : FlatShape<DetectedObject>

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

Constructors

DetectedObject
Link copied to clipboard
fun DetectedObject(xMin: Float, xMax: Float, yMin: Float, yMax: Float, probability: Float, label: String? = null)

Functions

map
Link copied to clipboard
open override fun map(mapping: (Float, Float) -> Pair<Float, Float>): DetectedObject

Creates a new geometric shape of the same type by applying the provided mapping to the coordinates of the current shape.

Properties

label
Link copied to clipboard
val label: String? = null

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.