Skip to content
Tesseract OCR wrapper for Xamarin
C# Other
  1. C# 99.2%
  2. Other 0.8%
Branch: master
Clone or download


Xamarin.Tesseract is a wrapper for Tesseract OCR library. For Android tess-two is used and for iOS implementation from gali8 (v.4.0.0) is used.


Blog post


Best way to use Xamarin.Tesseract is to add Nuget package to your project.

TesseractApi api = new TesseractApi (context, AssetsDeployment.OncePerVersion);
TesseractApi api = new TesseractApi ();
await api.Init ("eng");
await api.SetImage("image_path");
string text = api.Text;

You will also need tessdata files for the languges you need. In Android application tessdata folder should be in your assets directory and files should be marked as AndroidAssets. In iOS project testate should be in Resources and files should be marked as BundleResource. You can add more than one language in the same folder. In this case use "+"-separated list of languages to initialise TesseractApi.


Tesseract.Xamarin is distributed under the MIT license (see LICENSE). Tesseract, maintained by Google (, is distributed under the Apache 2.0 license (see Tesseract OCR iOS is distributed under MIT license ( tess-two is distributed under Apache 2.0 license (

You can’t perform that action at this time.