FormXStabilizer
class 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.