Getting Started: Android

Exploring your distribution

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

  • the Android OCR library itself
  • 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 CJK 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):
  4. Copy the assets folder into app/src/main in the sample folder.
  5. To save space, you may also want to remove any dictionaries for recognition languages not needed by your application from the assets/dictionaries folder.