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

List of documents or empty list if no documents is detected.

Parameters

bgraRawImage

BGRA raw image.

limit

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

Throws

If DOT Document library is not activated.