straightenImage
abstract fun straightenImage(image: ImageRef, straighteningParameters: DocumentStraighteningParameters, priorCornersNormalized: List<PointF>? = null): Result<DocumentStraighteningResult>
Straightens the document effectively straightening its edges and text.
Return
The result of the straightening operation.
Parameters
image
The image of the document to straighten.
straighteningParameters
The parameters to use for straightening.
priorCornersNormalized
If the corners are already known (for example, from a prior detection), they can be provided here. The enhancer may take them into account to locate the document more accurately.