detect
Detect document region from an image
Return
A FormXDocumentDetectorResult object containing the detected region
Parameters
image
The input image
fun detect(image: ImageProxy, bitmap: Bitmap?, onCompleteListener: (result: FormXDocumentDetectorResult) -> Unit, onFailureListener: (e: Throwable) -> Unit? = null)