ScanProcessor

class ScanProcessor(documentDetector: DocumentDetector, orientationDetector: OrientationDetector)

This class is used to apply a sequence of image operations on a picture: perspective correction, curvature correction and image enhancement. Each of these operations can be configured using a configuration object.

Constructors

Link copied to clipboard
constructor(context: Context)
constructor(documentDetector: DocumentDetector, orientationDetector: OrientationDetector)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Parameters of the processing.

Link copied to clipboard

Configuration for curvature correction.

Link copied to clipboard

Configuration for image enhancement.

Link copied to clipboard

Style for the magic filter

Link copied to clipboard
Link copied to clipboard

Configuration for perspective correction. When this configuration is enabled, perspective correction will be applied to the image, either using the result of the document detection, or the Quadrangle provided in this configuration.

Link copied to clipboard
class Result<T>(val appliedQuadrangle: Quadrangle, val appliedFilter: FilterType?, val appliedFilterConfiguration: FilterConfiguration, val appliedRotation: RotationAngle, val output: T)

Result of the processing.

Link copied to clipboard
class Rotation

Functions

Link copied to clipboard

Process image file using the given configuration.