Developer's Documentation for free mobile OCR SDK

Documentation Menu

Getting Started: iOS OCR SDK

Explore your iOS OCR library distribution

In the download package with our OCR library for iOS you can find:

  • the iOS OCR library itself (libs/AbbyyRtrSDK.framework)
  • the resource files:
    • assets/dictionaries — dictionary support for some of the recognition languages; using a dictionary improves recognition quality
    • assets/patterns — recognition databases
  • License — your license file and license agreement for our iOS OCR SDK
  • sample-textcapture, sample-textcapture-swift — code samples illustrating the use of the iOS OCR library for capturing the text from the camera preview
  • sample-datacapture — a code sample illustrating the use of the iOS OCR library for capturing data that matches a regular expression

Note that you'll need some additional files for translation functionality or recognizing Chinese, Japanese, and Korean languages. Contact sales to get them.

Try code samples

Try out our code samples to see how the technology works, or use some of the code in your own application to get up and running. The samples should be open and built from the same folder where they are located in the distribution package.

Please change the bundle ID before building, modifying or otherwise using any of the samples.

Build your application with the OCR library for iOS

To create an application which uses ABBYY Real-Time Recognition SDK to capture text from the camera preview, you will need to add the library to your project and copy the necessary resource files. This is required for new projects only — packaged examples work out of the box.

  1. Add AbbyyRtrSDK.framework to your Xcode project.
  2. Add the license file to your Xcode project (simply drag and drop it into your project window).
  3. Select your Xcode project in the Target group and open the Build Phases tab. In the Link Binary With Libraries section, click "+" and add the libc++.tbd library.
  4. Now you need to add the resource files and set up the copying rules. There are three types of resources used by the library: dictionaries, patterns, and translation dictionaries. (See Minimize Your Memory Footprint for a short description of the necessary resources). For each type of resources:
    1. Go to Build Phases and add a new Copy Files phase.
    2. In the Destination field, specify Resources.
    3. In the Subpath field, specify Dictionaries (or Patterns, Translation respectively).
    4. Add the dictionary files (patterns, translation dictionaries) for the languages you need.

warningImportant! With common licenses, your application needs an Internet connection to gather the information about the current state of the library. If the application was unable to connect to the Internet for 90 days, the library will not be available until the connection is restored. To remove this limitation, please contact sales.