detectDocument
Detect document in an image.
Return
the detected quadrangle.
Parameters
the image input
Throws
if something wrong happened during detection
if the license is not valid or has expired
Deprecated
Use detectDocument(DocumentDetectionInput) with FileInput and read the quadrangle from the result.
Replace with
detectDocument(FileInput(image)).quadrangleDetect document in an image file.
Return
the quadrangle if a document is detected, an empty quadrangle otherwise.
Parameters
the image file
Throws
if something wrong happened during detection
if the license is not valid or has expired
Deprecated
Use detectDocument(DocumentDetectionInput) with BitmapInput and read the quadrangle from the result.
Replace with
detectDocument(BitmapInput(bitmap)).quadrangleDetect document in an image bitmap.
Return
the quadrangle if a document is detected, an empty quadrangle otherwise.
Parameters
the image bitmap
See also
.detectDocument
Deprecated
Use detectDocument(DocumentDetectionInput) with BufferInput and read the quadrangle from the result.
Replace with
detectDocument(BufferInput(imageBuffer, previewWidth, previewHeight, previewStride)).quadrangleDetect document on a YUV buffer.
Return
the quadrangle if a document is detected, an empty quadrangle otherwise.
Parameters
an image buffer with format NV21
the width of the image
the height of the image
See also
.detectDocument