Scanning documents from still images
In addition to detecting documents from a live camera stream, the Document Scanner SDK can scan documents from still images imported from the gallery or any other source.
Initializing the SDK
Before using the Scanbot SDK, it must be initialized.
Processing the image
Obtaining the image
Image picking is platform-specific in KMP. Implement platform-specific logic for Android and iOS, then convert the result to ImageRef.
Scanning documents
Call ScanbotSDK.document.scanFromImage() with the source image and a scanner configuration.
loading...
Handling the result
ScanbotSDK.document.scanFromImage() returns a sealed Result type with two implementations:
Result.Success— contains theDocumentScanningResultwith the detection result and cropped document image.Result.Failure— contains the error if the scan could not be completed.
For all available methods, see the Result API reference.
loading...
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get free trial licenseScanbot SDK is part of the Apryse SDK product family
A mobile scan is just the start. With Apryse SDKs, you can expand mobile workflows into full cross‑platform document processing. Whether you need to edit PDFs, add secure digital signatures, or use a fast, customizable document viewer and editor, Apryse gives you the tools to build powerful features quickly.
Learn more
