Skip to main content

Scanning text from an image file with the iOS OCR Module

There are two different OCR-based actions that can be executed on any image:

  • Optical character recognition: use the class SBSDKOCREngine
  • Creation of searchable PDF documents with selectable text (HOCR): use the class SBSDKPDFGenerator

Performing optical character recognition

The optical character recognition takes a single image or a collection of images (SBSDKImageStoring) and recognizes the text on each image.

The result contain information about the found text, where the text was found (polygon), and what kind of text it is (word, line, paragraph).

Example code for performing OCR on an image

OCR Example
loading...

Want to scan longer than one minute?

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

Get your free Trial License