DocumentScanner

Functions

Link copied to clipboard

Returns a copy of the current configuration.

Link copied to clipboard
abstract fun resetPolygonHistory()

Calling this method will reset the polygon smoothing history.

Link copied to clipboard
abstract 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
abstract fun scanFromFile(filePath: String): DocumentDetectionResult?

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
abstract fun scanInArea(nv21: ByteArray, width: Int, height: Int, frameOrientation: Int = 0, areaRect: Rect? = null): DocumentDetectionResult?

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

Link copied to clipboard
abstract fun setConfiguration(configuration: DocumentScannerConfiguration)

Sets the configuration for the document scanner.

Link copied to clipboard
abstract fun setParameters(scanningParameters: DocumentScannerParameters)

Set the scanning parameters to use.