Skip to main content

Detection on the Image | Flutter Document Scanner

The Scanbot Document Scanner SDK allows you to import images and perform document detection on them. Depending on your requirements, you can either detect documents automatically during the image import process or handle detection later. This flexibility is provided through the createPage and detectDocument methods.

  1. Create a Scanbot Page Entity with Document Detection
  2. Create a Scanbot Page Entity and Perform Document Detection Later

Create Scanbot Page with Document Detection

In this scenario, document detection is performed immediately when the page is created. This is ideal for situations where you want the document to be automatically detected and cropped as soon as the image is imported.

lib/doc_code_sinppet/document_sdk/page_operations/create_page_snippet.dart
loading...

Create Scanbot Page and Perform Detection When Needed

This approach allows you to create the page entity without performing document detection immediately. You can then run document detection at a later stage, providing greater control over when and how the document is processed.

lib/doc_code_sinppet/document_sdk/page_operations/create_page_and_detect_snippet.dart
loading...

Want to scan longer than one minute?

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

Get your free Trial License

What do you think of this documentation?