detect

abstract fun detect(image: Image, 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 an empty list when no documents are detected.

Parameters

limit

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

Throws

If DOT Document library is not activated.