FaceInfo

data class FaceInfo(val trackId: Int = -1, val x1: Float = 0.0f, val y1: Float = 0.0f, val x2: Float = 0.0f, val y2: Float = 0.0f, val confidence: Float = 0.0f, val firstSeenAt: Long = -1, val face: ImageAgent? = null, val landmarks: List<Pair<Float, Float>> = emptyList())

The FaceInfo data class is a representation of information related to a detected face within an image or video frame. It encapsulates essential details about the face, including its position, tracking information, confidence level, and associated visual features. This data class serves as a convenient and structured container for face-related data, facilitating the organization and retrieval of pertinent information.

Constructors

Link copied to clipboard
constructor(trackId: Int = -1, x1: Float = 0.0f, y1: Float = 0.0f, x2: Float = 0.0f, y2: Float = 0.0f, confidence: Float = 0.0f, firstSeenAt: Long = -1, face: ImageAgent? = null, landmarks: List<Pair<Float, Float>> = emptyList())

Properties

Link copied to clipboard
val confidence: Float = 0.0f

The confidence level associated with the face detection. It indicates the certainty of the detection result, with higher values suggesting a more reliable detection.

Link copied to clipboard
val face: ImageAgent? = null
Link copied to clipboard

Timestamp indicating when the face was first detected.

Link copied to clipboard

Landmarks

Link copied to clipboard
val rect: RectF

The RectF format of representing the bounding box of the detected face

Link copied to clipboard

A unique identifier assigned to the face track.

Link copied to clipboard
val x1: Float = 0.0f

The coordinates representing the bounding box of the detected face. The (x1, y1) coordinates denote the top-left corner, and (x2, y2) denote the bottom-right corner of the bounding box.

Link copied to clipboard
val x2: Float = 0.0f

The coordinates representing the bounding box of the detected face. The (x1, y1) coordinates denote the top-left corner, and (x2, y2) denote the bottom-right corner of the bounding box.

Link copied to clipboard
val y1: Float = 0.0f

The coordinates representing the bounding box of the detected face. The (x1, y1) coordinates denote the top-left corner, and (x2, y2) denote the bottom-right corner of the bounding box.

Link copied to clipboard
val y2: Float = 0.0f

The coordinates representing the bounding box of the detected face. The (x1, y1) coordinates denote the top-left corner, and (x2, y2) denote the bottom-right corner of the bounding box.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int