ContourData

data class ContourData(val boundingRect: Rect, val area: Double, val areaPercent: Double, val aspectRatio: Double, val centerX: Double, val centerY: Double, val yaw: Double, val pitch: Double) : VisionData

Data class for storing contour data.

Since

1.0.0-pre

Constructors

Link copied to clipboard
constructor(cameraResolution: Size, boundingRect: Rect)
constructor(boundingRect: Rect, area: Double, areaPercent: Double, aspectRatio: Double, centerX: Double, centerY: Double, yaw: Double, pitch: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The area of the contour.

Link copied to clipboard

The percentage of the screen the contour takes up.

Link copied to clipboard

The aspect ratio of the contour.

Link copied to clipboard
val boundingRect: Rect

The bounding rectangle of the contour.

Link copied to clipboard

The x coordinate of the center of the contour.

Link copied to clipboard

The y coordinate of the center of the contour.

Link copied to clipboard

The pitch of the contour in degrees.

Link copied to clipboard
val yaw: Double

The yaw of the contour in degrees.