I am using Xamarin Forms trying to integrate ABBYY Mobile OCR Engine.
I am working with the Android Wrapper and following these procedures,
1.Load the library:
Load the license file into an asset and create an AssetDataSource object initialized with the corresponding AssetManager. Create a FileLicense object, passing to the constructor the data source object, the license file name and the application ID string. If you do not know your application ID, contact your sales manager.
Create an instance of the Engine class with the help of the createInstance method. Pass the license object you created to this method. It also requires a list of DataSource objects which specify the location of resource files. If you load the resource files with ".mp3" extension as described above, you do not need to specify the dataFilesExtensions parameter.
2.Specify recognition settings:
Create a RecognitionConfiguration object. Set recognition languages with the help of the setRecognitionLanguages method. Before the call to this method, make sure that the resources of an application have files of the specified languages; otherwise, IOException will be thrown. The isLanguageAvailableForOcr and isLanguageAvailableForBcr methods of the Engine class can be used to check if the language you need is available.
Create a RecognitionManager object using the getRecognitionManager method of the Engine class, passing the configured RecognitionConfiguration as the input parameter.
3.Recognize the image:
Load the image into memory (android.graphics.Bitmap) or configure the input stream (java.io.InputStream) with the image.
Call the recognizeText method of the RecognitionManager class.
I have followed the steps but little confused on how/what to assign for input parameters.
Please provide me with native code for the above steps and also for the implementation(code) for business card method, so that I could use that in Xamarin.
In the Android wrapper of the library, business card recognition is implemented by the recognizeBusinessCard method of the RecognitionManager class.