Quickstart
1. Import the scanner flow
Section titled “1. Import the scanner flow”import { DocumentScannerFlow } from '@korsolutions/vision';2. Render it in a screen
Section titled “2. Render it in a screen”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.
4. Run the flow
Section titled “4. Run the flow”The default flow includes:
scan: camera preview + real-time contour detection.edit: crop handle adjustments + filter previews.share: result preview + share action.ocr: on-device text extraction from the processed image.
5. Customize behavior
Section titled “5. Customize behavior”Use exported screens, context, and processing helpers to build custom UX while keeping the detection/processing pipeline.