A Cloud SDK to Extract OCR or HOCR Text from Images in Android Using Powerful Aspose.OCR Cloud APIs

Share on FacebookTweet about this on TwitterShare on LinkedIn

Aspose.OCR Cloud

Aspose.OCR CloudAspose.OCR Cloud’s platform independent character recognition API is a true REST API that can be used with any language: .NET, Java, PHP, Ruby, Rails, Python, jQuery and many more. You can use it with any platform — web, desktop, mobile, and cloud.

Aspose.OCR Cloud is a cloud-based REST API for optical character recognition and document scanning. It allows you to scan documents and recognize characters. Recognize text in English and other languages, and recognize text in only part of an image. Aspose.OCR Cloud supports a variety of fonts in different styles, like regular, bold, and italic, and different image formats. You can use Aspose.OCR Cloud in many scenarios, for example, extracting text and saving to a database. Learn More

What’s new in the latest release

This is a major revamp release for Aspose.OCR Cloud SDK for Android. It covers all the Aspose.OCR Cloud APIs. This SDK provides a complete solution for character recognition in Android using powerful Aspose.OCRs Cloud APIs, so you can add OCR functionality in your applications seamlessly.

Source Code Repository

Complete source code of this release of Aspose.OCR Cloud SDK for Android is freely available on your favorite GitHub repository.

Setup

Aspose.Ocr Cloud SDK for Android is also available as released artifacts in the Bintray Maven Repository. You can bypass GitHub source code repository and depend directly on the released artifacts from Bintray Maven Repository. Aspose.Ocr Cloud SDK for Android is also available on JCenter which is default for Android Studio. For Setup details please check the documentation.

Gradle Dependency – Aspose.Ocr Cloud SDK for Android

compile 'com.aspose:aspose-cloud-ocr-android:1.0.0'

Data

In order to manipulate any files, you first need to upload them to the Aspose cloud storage or 3rd party cloud storage using Aspose.Storage Cloud SDK for Android.

Gradle Dependency – Aspose Cloud Storage SDK for Android

compile 'com.aspose:aspose-cloud-storage-android:1.0.0'

Quick SDK Tutorial


try{
 //Instantiate Aspose Storage Cloud API SDK 
 StorageApi storageApi = new StorageApi(apiKey, appSID,true);

//Instantiate Aspose OCR Cloud API SDK
OcrApi ocrApi = new OcrApi(apiKey, appSID,true);

//set input file name
String fileName = "Sampleocr.bmp";
String language = "";
Integer rectX = 0;
Integer rectY = 0;
Integer rectWidth = 0;
Integer rectHeight = 0;
Boolean useDefaultDictionaries = true;
String storage = "";
String folder = "";

//upload files to aspose cloud storage
storageApi.PutCreate(fileName, "", storage, new File(this.getClass().getResource("/" + fileName).toURI()));

//invoke Aspose.OCR Cloud SDK API to extract text and partsinfo from an image           
OCRResponse apiResponse = ocrApi.GetRecognizeDocument(fileName, language, rectX, rectY, rectWidth, rectHeight, useDefaultDictionaries, storage, folder);   

     }catch(Exception e){
             e.printStackTrace();
     }

Aspose.OCR Cloud API Documentation

Aspose.OCR Cloud Documentation is available to guide developers to get familiar with the specific resources and operations within the Aspose.OCR Cloud REST API.

Aspose.OCR Cloud SDK for Android Examples

Aspose.OCR Cloud SDK for Android Examples are also available to guide developers to get familiar with SDK and its usage to invoke resources and operations using the Aspose.OCR Cloud REST API. Please see the SDK examples of following categories.

Start a Free Trial Today

Start a free trial today – all you need is to sign up with the Aspose Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by Aspose Cloud.