detect

suspend fun detect(image: ImageProxy, bitmap: Bitmap? = null): FormXDocumentDetectorResult

Detect document region from an image

Return

A FormXDocumentDetectorResult object containing the detected region

Parameters

image

The input image


fun detect(image: ImageProxy, onCompleteListener: (result: FormXDocumentDetectorResult) -> Unit)
fun detect(image: ImageProxy, bitmap: Bitmap?, onCompleteListener: (result: FormXDocumentDetectorResult) -> Unit, onFailureListener: (e: Throwable) -> Unit? = null)