Performing OCR for Android in Xamarin using Computer Vision API

Xamarin Logo

Performing OCR for Android in Xamarin using Computer Vision API

Step 1.  Obtain an API Key by going to the following page and registering
https://www.microsoft.com/cognitive-services/en-us/computer-vision-api
for Starters, the free edition is sufficient enough. It allows you to transact 5000 transactions a month.

Step 2. In your Xamarin project add Microsoft.ProjectOxford.Vision to your packages.

Step 3. Create a method that makes the API call and stores the converted text into a variable like so:

Step 4: Call the method from onCreate() like so:

As easy as that!

 

 

Leave a Reply