DocumentStraighteningMode

Type of document straightening to apply.

Entries

Link copied to clipboard

Assume that the document is already straight and crop it based on the estimated perspective distortion. Very fast.

Link copied to clipboard

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.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard
fun toJson(): String
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.