Text Recognition
After a successful scan or import of a document, you can get the detected text of the entire document or single pages.
Initialization
Initialize the Docutain Xamarin SDK as described here.
Get the detected text
In order to get the detected text of the entire document, call the following line of code:
- Xamarin.Forms
- Xamarin.Android
- Xamarin.iOS
using Docutain.SDK.Xamarin.Forms;
//...
//scan or import file
//...
var text = DocumentDataReader.GetText();
using Docutain.SDK.Xamarin.Android;
//...
//scan or import file
//...
var text = DocumentDataReader.GetText();
using Docutain.SDK.Xamarin.iOS;
//...
//scan or import file
//...
var text = DocumentDataReader.GetText();
In order to get the detected text of a specific page, specify the page number:
- Xamarin.Forms
- Xamarin.Android
- Xamarin.iOS
using Docutain.SDK.Xamarin.Forms;
//...
//scan or import file
//...
var text = DocumentDataReader.GetText(1);
using Docutain.SDK.Xamarin.Android;
//...
//scan or import file
//...
var text = DocumentDataReader.GetText(1);
using Docutain.SDK.Xamarin.iOS;
//...
//scan or import file
//...
var text = DocumentDataReader.GetText(1);