detect Document
Detect document in an image file.
Return
the quadrangle if a document is detected, an empty quadrangle otherwise.
Parameters
image
the image file
Throws
if something wrong happened during detection
if the license is not valid or has expired
Detect document in an image bitmap.
Return
the quadrangle if a document is detected, an empty quadrangle otherwise.
Parameters
bitmap
the image bitmap
See also
open fun detectDocument(imageBuffer: Array<Byte>, previewWidth: Int, previewHeight: Int, previewStride: Int): Quadrangle
Detect document on a YUV buffer.
Return
the quadrangle if a document is detected, an empty quadrangle otherwise.
Parameters
image Buffer
an image buffer with format YUV420
preview Width
the width of the image
preview Height
the height of the image