detectDocument 
            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
imageBuffer 
an image buffer with format YUV420
previewWidth 
the width of the image
previewHeight 
the height of the image