Developer's Documentation for free mobile OCR SDK

Documentation Menu

load method of the Engine class

Loads the ABBYY Real-Time Recognition SDK engine. Repeated calls to this method will result in the same object instance.

Creating the Engine and initializing the library may take up a lot of time, because all the resources need to be loaded. Therefore you should call this method only once, when initializing the main activity of your application, and reuse the Engine object every time you need to start a new recognition operation.

public static Engine load( Context context, String licenseFilePath ) throws IOException, LicenseException



The application context.


The path to the license file relative to the assets directory.

Return values

The method returns an instance of the Engine object.

Exceptions is thrown if a required library or resource is not found or could not be loaded.

Engine.LicenseException is thrown if the specified license is invalid.