Skip to main content

Using the Android Document Scanner SDK's Document Enhancer

Overview

Documents captured with mobile devices often suffer from warping or perspective distortion, especially when photographed at an angle, on uneven surfaces, or when physically deformed (e.g., folded or crumpled).

These issues reduce readability and negatively impact OCR accuracy.

The Scanbot Document Scanner SDK provides image enhancement (document straightening) to correct such distortions, producing flat, high-quality images optimized for OCR and data extraction.

This helps deliver professional scanning experiences, improves processing reliability, and is especially important in industries like finance, healthcare, logistics, and government, where document quality is critical.

Document straightening example 1

Document straightening example 2

Adding the Document Enhancer as a dependency

Add the following dependencies to your build.gradle.kts file:

implementation("io.scanbot:sdk-package-1:$latestSdkVersion")
implementation("io.scanbot:sdk-document-enhancer-assets:$latestSdkVersion")
note

The sdk-document-enhancer-assets dependency is required for Document Enhancer features.

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get free trial license