Type alias DocumentStraighteningMode

DocumentStraighteningMode: "NONE" | "STRAIGHTEN"

Type of document straightening to apply.

  • NONE: Assume that the document is already straight and crop it based on the estimated perspective distortion. Very fast.
  • STRAIGHTEN: In addition to perspective correction, remove paper deformations such as creases, curl, folds and crinkles. This does not apply any filtering to enhance the image, such as shadow removal or contrast enhancement - it only straightens the geometry of the document. Requires the docstraighten asset to be present at runtime (on platforms where assets can be optional). Will fail if the asset is not available.