ContourData

data class ContourData(val rect: RotatedRect, val points: List<Point>, val area: Double, val areaPercent: Double, val aspectRatio: Double, val centerX: Double, val centerY: Double, val yaw: Double, val pitch: Double, val angle: Measure<Angle>, var pnp: Optional<Pair<Mat, Mat>> = Optional.empty()) : VisionData

Data class for storing rectangular OpenCV contour information.

Since

1.0.0-pre

Constructors

Link copied to clipboard
constructor(cameraResolution: Size, points: Array<Point>, rect: RotatedRect, tvec: Mat? = null, rvec: Mat? = null)
constructor(rect: RotatedRect, points: List<Point>, area: Double, areaPercent: Double, aspectRatio: Double, centerX: Double, centerY: Double, yaw: Double, pitch: Double, angle: Measure<Angle>, pnp: Optional<Pair<Mat, Mat>> = Optional.empty())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The measured angle of the contour bounding box.

Link copied to clipboard

The area of the contour bounding box.

Link copied to clipboard

The percentage of the screen the contour bounding box takes up.

Link copied to clipboard

The aspect ratio of the contour bounding box.

Link copied to clipboard

The x coordinate of the center of the contour bounding box.

Link copied to clipboard

The y coordinate of the center of the contour bounding box.

Link copied to clipboard

The measured pitch of the contour bounding box.

Link copied to clipboard
var pnp: Optional<Pair<Mat, Mat>>

Optional PnP data (ordered as Translation Vector, Rotation Vector).

Link copied to clipboard
val points: List<Point>

The points that make up this contour.

Link copied to clipboard
val rect: RotatedRect

The rectangular bounding box representing this contour.

Link copied to clipboard
val yaw: Double

The measured yaw of the contour bounding box.