crop
abstract fun crop(image: ImageRef, polygon: List<PointF>, documentCropOptimization: DocumentCropOptimization = DocumentCropOptimization.OPTIMIZE_QUAD): Result<ImageRef>
Crops the provided image using the specified polygon.
Return
The result containing the cropped image.
Parameters
image
The image to be cropped.
polygon
The polygon defining the crop area.
documentCropOptimization
The optimization to apply when cropping a document. The method doesn't actually check if the input is a document photo, so it relies entirely on the caller's intent. Default is OPTIMIZE_QUAD