Companion Object
object Companion
The observation flags, and the combinations worth testing.
Properties
CUTOUT_CAPTURED
const val CUTOUT_CAPTURED: Int
Every check needed to take the shot has passed.
CUTOUT_READY
const val CUTOUT_READY: Int
The shot conditions have held steady long enough to capture automatically.
CUTOUT_STABLE
const val CUTOUT_STABLE: Int = 16
Document cutout is stable.
DEFINED
const val DEFINED: Int = 2
A document outline was found in the frame.
DEVICE_READY
const val DEVICE_READY: Int = 4096
The device is steady enough to shoot.
DISTORTION_CHECKED
const val DISTORTION_CHECKED: Int = 8
The document is square-on enough to capture: perspective distortion is within tolerance.
FULLNESS_CHECKED
const val FULLNESS_CHECKED: Int = 4
Also document cutout is ….
GEOMETRY_CHECKED
const val GEOMETRY_CHECKED: Int
Both geometry checks passed: the document fills enough of the frame and is square-on enough. Test this when deciding whether to take the shot.
PAUSED
const val PAUSED: Int = 1
Detection is paused, so the other flags carry no meaning for this frame.