Skip to main content

iOS Text Pattern Scanner Module

Scanning a serial number with the iOS Text Pattern Scanner

Overview

The Scanbot SDK comes with separate scanners for many specific use cases. Use cases that are not covered by any of these specialized scanners can be tackled with the Text Pattern Scanner Module.

The Text Pattern Scanner uses OCR to scan text within a user-defined rectangular area of interest, in consecutive video frames. A customizable block lets you clean up the raw string by filtering it against unwanted characters and OCR noise. Additionally, you can validate the result using pattern-matching or another block.

Use cases for the Text Pattern Scanner Module include scanning single-line text like IBAN numbers, insurance numbers, dates and other textual data fields that can be easily validated, i.e. pattern-matched.

The Text Pattern Scanner is more reliable and robust than using OCR by itself, since it accumulates the results of multiple video frames as well as your input from the raw text clean-up block.

Integration

There are two ways to integrate the UI components into your application:

warning

On iOS, processing very large images can lead to out-of-memory crashes!

Since this limit is highly dynamic and untransparent in iOS (depending on the device, your app's current memory usage, other apps running in the background, the iOS version, the system configuration, and many other factors), we did not add a hard limit for image sizes.

As a rule of thumb, it is safe to assume that processing images with resolutions that match the camera's resolution will not crash your app. On most modern iOS devices, this translates to 12 megapixels. But even much larger images may work without crashing.

Therefore, we cannot take responsibility for out-of-memory crashes when dealing with very high-resolution images. You as the developer need to properly manage the handling of large images and keep the memory footprint of your app as small as possible.

If you have any questions on this topic, please reach out to our support team.

caution

Please do not use multiple scanners at the same time. For example, do not combine Document Data Extractor, Health Insurance Scanner, Text Pattern Scanner, etc. at the same time! Each scanner instance requires a lot of memory, GPU, and processor resources. Using multiple scanners will lead to performance issues for the entire application.

Take a look at our example apps to see how to integrate the Text Pattern Scanner:

Want to scan longer than one minute?

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

Get your free Trial License

On this page