Developer's Documentation for free mobile OCR SDK

Documentation Menu

Getting Started: Android OCR SDK

Exploring your distribution

In the download package of the Android OCR SDK you can find:

  • the Android OCR library itself (libs/abbyy-rtr-sdk-1.0.aar)
  • the resource files:
    • assets/dictionaries — dictionary support for some of the recognition languages; using a dictionary improves the result quality
    • assets/patterns — recognition databases
  • License — your license file and license agreement
  • sample-textcapture — a code sample illustrating the use of the Android OCR library for capturing the text from the camera preview

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

Building your application

android ocr library

Try out our code sample to see how the technology works, or use some of the code in your own application to get up and running. The sample can be open and built directly from the folder where it is. You need to do only a little configuring first:

  1. Please change the application ID before modifying or otherwise using the sample.
  2. Copy the license file from the License folder to the assets folder.
  3. Check that the license file name is correctly specified in the sample code (note that your license may have a different name):
public class MainActivity extends Activity {
    // Licensing
    private static final String licenseFileName = "AbbyyRtrSdk.license";
  1. Copy the assets folder into app/src/main in the sample folder.
  2. [optional] To save space, you may also want to remove any dictionaries for recognition languages not needed by your application from the assets/dictionaries folder.