Skip to content

Quickstart

import { DocumentScannerFlow } from '@korsolutions/vision';
export function ScanScreen() {
return <DocumentScannerFlow initialRoute="scan" />;
}

3. Ensure camera permissions are configured

Section titled “3. Ensure camera permissions are configured”

The SDK requests runtime camera access, but your app still needs platform permission setup in iOS and Android manifests.

The default flow includes:

  1. scan: camera preview + real-time contour detection.
  2. edit: crop handle adjustments + filter previews.
  3. share: result preview + share action.
  4. ocr: on-device text extraction from the processed image.

Use exported screens, context, and processing helpers to build custom UX while keeping the detection/processing pipeline.