load method of the Engine class

Documentation Menu

Loads the ABBYY Real-Time Recognition SDK engine.

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.


Throws java.io.IOException if a required library or resource is not found or could not be loaded.

Throws Engine.LicenseException if the specified license is invalid.