FormXStabilizer

FormXStabilizer stabilizes the FormXDocumentRegion returned from FormXDocumentDetector to prevent shaking. It also filters out the invalid FormXDocumentRegion.

When the detected region is stable, it will change its state to ReadyToCapture to inform the caller that it is ready to capture the image.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun reset()

Reset the stabilizer to initialize state

Link copied to clipboard
fun update(bitmap: Bitmap, region: FormXDocumentRegion?)

Fetch a new FormXDocumentRegion and update the state of the stabilizer

Properties

Link copied to clipboard
Link copied to clipboard

the size of the sliding window

Link copied to clipboard

the smoothed region

Link copied to clipboard

the state of the stabilizer

Link copied to clipboard
Link copied to clipboard