Classic UI for the Android Text Pattern Scanner Module
Overview
The Scanbot SDK comes with an essential camera view, additional views for extending the camera functionality, and a set of the frame handler and scanner classes that handle all the camera and scanning implementation details for you. It provides a UI for scanning guidance as well as a UI and functionality for manual and automatic shutter release.
The ScanbotCameraXView provides fully customizable camera controls and features.
Adding the feature as a dependency
TextPatternScanner is included in Scanbot SDK package 2. Therefore, add the dependency io.scanbot:sdk-package-2 or higher in your build.gradle along with the necessary assets:
implementation("io.scanbot:sdk-package-2:$latestSdkVersion")
implementation("io.scanbot:sdk-textpattern-assets:$latestSdkVersion")
Integration
ScanbotCameraXViewprovides fully customizable camera controls and features.TextPatternScannerFrameHandlergives control over how and when frames are analyzed.TextPatternScannerperforms scanning extraction and validation of text data.FinderOverlayViewselects a specific area of the camera preview to help the user pinpoint the text location and thus improve the detection rate.
Take a look at the text-pattern-scanner example app to see how to integrate the module.
To implement the Text Pattern Scanner using dedicated Android views, you need to implement an XML layout with ScanbotCameraXView and FinderOverlayView:
loading...
Then attach the scanner and configure the view's appearance and behavior:
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
