I am trying to integrate the Abbyyrtrsdk into my sample POC application just to see how i can get the text from the scanned image.
I tried to run the "sample-textcapture" objective-c application, there i am able to scan text successfully.
When i copied all resources and framework into my POC application and did the installation as per the installation guide and sample project setting reference i am facing issues when i am trying to fetch the text capture service from the engine. I am always getting nil as refrence due to that i am not able to use the text recognition service.
Here is the code that i am using to get the reference of the text capture service :
NSString* licensePath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"AbbyyRtrSdk.license"];
_engine = [RTREngine sharedEngineWithLicenseData:[NSData dataWithContentsOfFile:licensePath]];
_textCaptureService = [_engine createTextCaptureServiceWithDelegate:self];
[_textCaptureService setRecognitionLanguages:[NSSet setWithObject:@"English"]];
Comments
1 comment
Please sign in to leave a comment.