All samples require a license file. (Named AbbyyRtrSdk.license in case of free version of Real - Time Recognition SDK or XXXX-YYYY-YYYY-YYYY-YYYY.ABBYY.License where X is a letter and Y is a digit if the license file was provided by sales manager).
Copy your license to the assets folder located in the distribution package root and rename the file if necessary. You can also change the license file name in the sample code.
Android:
public class MainActivity extends Activity {
private static final String licenseFileName = "AbbyyRtrSdk.license";
engine = Engine.load( this, licenseFileName );
iOS:
NSString* licensePath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"AbbyyRtrSdk.license"];
_engine = [RTREngine sharedEngineWithLicenseData:[NSData dataWithContentsOfFile:licensePath]];
Comments
0 comments
Please sign in to leave a comment.