DefaultDocumentScanner

Constructors

Link copied to clipboard
constructor(initialConfig: DocumentScannerConfiguration)

Functions

Link copied to clipboard

Returns a copy of the current configuration.

Link copied to clipboard
open override fun resetPolygonHistory()

Calling this method will reset the polygon smoothing history.

Link copied to clipboard
open override fun scan(nv21: ByteArray, width: Int, height: Int, frameOrientation: Int): DocumentDetectionResult?

Tries to scan a polygon from the given image.

Link copied to clipboard

Tries to scan a polygon from the given image.

Link copied to clipboard

Tries to scan a polygon from the given file.

Link copied to clipboard

Tries to scan a polygon from the given image.

Link copied to clipboard
open override fun scanInArea(nv21: ByteArray, width: Int, height: Int, frameOrientation: Int, areaRect: Rect?): DocumentDetectionResult?

Decode the nv21 within the finder rectangle, and time how long it took.

Link copied to clipboard

Sets the configuration for the document scanner.

Link copied to clipboard
open override fun setParameters(scanningParameters: DocumentScannerParameters)

Set the scanning parameters to use.