Skip to main content

Detection on the Image | Flutter Document Scanner

Detection on the Image

Flutter Document Scanner sdk allows to import images and run document detection on them. For this there are two ways:

  • Create Scanbot page entity with document detection on it:

ScanbotSdk._createPage(page, true)

  Future<void> _createPage(Uri uri) async {
if (!await checkLicenseStatus(context)) {
return;
}

try {
var page = await ScanbotSdk.createPage(uri, true);
} catch (e) {
Logger.root.severe(e);
}
}
  • Create Scanbot page entity and then run document detection later with:

ScanbotSdk.detectDocument(page)

  Future<void> _createPage(Uri uri) async {
if (!await checkLicenseStatus(context)) {
return;
}

try {
var page = await ScanbotSdk.createPage(uri, false);
page = await ScanbotSdk.detectDocument(page);
} catch (e) {
Logger.root.severe(e);
}
}

Want to scan longer than one minute?

Generate your free "no-strings-attached" Trial License and properly test the Scanbot SDK.

Get your free Trial License

What do you think of this documentation?


On this page

Scroll to top