warp
abstract fun warp(bgraRawImage: BgraRawImage, detectionPosition: DetectionPosition, targetImageSize: ImageSize): BgraRawImage
Perspective warp of an image according to the position of the document. This operation should be called on a background thread.
Return
Warped image.
Parameters
bgraRawImage
BGRA raw image.
detectionPosition
Position of the document.
targetImageSize
Size of the warped image.