scanFromImageRef method

Future<Result<DocumentScanningResult>> scanFromImageRef(
  1. ImageRef image,
  2. DocumentScannerConfiguration configuration
)

Scans a document from the provided image.

image - The image to be scanned. configuration - The configuration to be used for scanning.

Returns a Future that completes with result of the scanning process.

Implementation

Future<Result<DocumentScanningResult>> scanFromImageRef(
    ImageRef image, DocumentScannerConfiguration configuration) {
  return ScanbotDocumentImpl.scanFromImageRef(image, configuration);
}