detect

abstract fun detect(bgraRawImage: BgraRawImage, limit: Int = 1): List<DocumentDetector.Document>

Detect documents in the image. This operation should be called on a background thread.

Return

Detected documents, or empty list if documents were not detected in the image.

Parameters

bgraRawImage

BGRA raw image.

limit

The number of documents to detect. Currently, only one document detection is supported.