Observation Class

data class Observation(val flags: Int, val delay: Float, val fullness: Float, val distortion: Float, val image: Bitmap?)

What the observer made of one camera frame.

Constructors

Observation

constructor(flags: Int, delay: Float, fullness: Float, distortion: Float, image: Bitmap?)

Types

Companion

object Companion

The observation flags, and the combinations worth testing.

Properties

delay

val delay: Float

how long to wait before capturing, in milliseconds.

distortion

val distortion: Float

how far from square-on the document is.

flags

val flags: Int

a bit set of the checks that passed; test it against the constants below.

fullness

val fullness: Float

how much of the frame the document fills, from 0 to 1.

image

val image: Bitmap?

the frame itself; populated only in debug builds.

Top