scan
open override fun scan(nv21: ByteArray, width: Int, height: Int, frameOrientation: Int): DocumentDetectionResult?
Tries to scan a polygon from the given image.
Return
A DocumentDetectionResult that holds information about the recognized document data.
Parameters
nv21
NV21 encoded camera image
width
Width of the image pixels
height
Height of the image in pixels