Perform OCR on images anywhere, any language and any platform

Forget about platform, just send a REST API call to Read Characters from images in any type of application.

  Start Free Trial
Aspose.OCR for Cloud

Aspose.OCR for Cloud

 
 

Aspose.OCR for Cloud is a REST API for optical character recognition and documents scanning in the cloud. It supports reading and recognizing characters from most commonly used raster image formats. Just pass specific image name and its format to the Aspose.OCR for Cloud REST API and it will return response in XML or JSON format including recognized text, font name, font size, font style.

 

Get Started with Document Processing REST API

It is easy to get started with Aspose.OCR for Cloud and there is nothing to install. Simply create an account at Aspose for Cloud and get your application information. Once you have the App SID & key, you are ready to give a try to Aspose.OCR for Cloud REST API using any language - on any platform, which supports HTTP requests and responses. So in simple words, it enables you to add OCR functionality to any type of applications.

Scan Images via Cloud OCR API

Optical character recognition can be performed either on a whole image or on a specific portion of the image. If the required characters are all over the image then scanning the whole image is better option. If you want to scan partial image then specify a rectangular area containing the characters. Aspose.OCR for Cloud API allows passing X and Y coordinates from where the rectangle is supposed to be started as well as its width and height. Once the character recognition operation is initiated within specified rectangular area - The cloud OCR API will read the characters and font information from that area and return the response in XML or JSON format.

Extract OCR or HOCR Text from Images - C#


OcrV2Api target = new OcrV2Api(APIKEY, APPSID, BASEPATH);
storageApi.PutCreate("Sampleocr.bmp", "", "", System.IO.File.ReadAllBytes(Path.Combine(DataFolder, name)));
Com.Aspose.Ocr.Model.OCRResponse actual;
actual = target.OcrV2GetRecognizeDocument("Sampleocr.bmp", storage, folder);

Extract OCR or HOCR Text from Images - Java


// Instantiate Aspose OCR Cloud API SDK
OcrApi ocrApi = new OcrApi(apiKey, appSID, true);
//upload file to aspose cloud storage
storageApi.PutCreate("Sampleocr.bmp", "", "", new File(ExtractOCRorHOCRTextFromImage.class.getResource("/" + "Sampleocr.bmp").toURI()));
//invoke Aspose.OCR Cloud SDK API to extract text and partsinfo from an image           
OCRResponse apiResponse = ocrApi.GetRecognizeDocument("Sampleocr.bmp", "English", 0, 0, 0, 0, true, "", "");

Extract OCR or HOCR Text from Images - Objective-C


ASPOcrApi *ocrApi = [[ASPOcrApi alloc] init];
[Utils uploadFile:@"Sampleocr.bmp"];
[self.ocrApi getRecognizeDocumentWithCompletionBlock:fileName
    language:@"English"
    rectX:nil
    rectY:nil
    rectWidth:nil
    rectHeight:nil
    useDefaultDictionaries:nil
    storage:nil
    folder:nil
    completionHandler:^(ASPOCRResponse *output, NSError *error) {
    NSLog(@"%@", output);
    }];

Extract OCR or HOCR Text from Images - PHP


$this->ocrApi = new OcrApi();
// upload file to aspose cloud storage
Utils::uploadFile("Sampleocr.bmp");
//invoke Aspose.OCR Cloud SDK API to extract text and partsinfo from an image
$response = $this->ocrApi->GetRecognizeDocument("Sampleocr.bmp", "English", null, null, null, null, true, "", "");
print_r ( $response );

Extract OCR or HOCR Text from Images - Ruby


@ocr_api = OcrApi.new
@storage_api.put_create("Sampleocr.bmp", File.open("../../../../data/" << "Sampleocr.bmp","r") { |io| io.read } )
 # Recognize image text with default language. Default dictionaries can be used for correction.
@ocr_api.get_recognize_document("Sampleocr.bmp")

Extract OCR or HOCR Text from Images - Perl


# Instantiate Aspose.OCR API SDK
my $ocrApi = AsposeOcrCloud::OcrApi->new();
# Upload file to aspose cloud storage 
my $response = $storageApi->PutCreate(Path => 'Sampleocr.bmp', file => $data_path.'Sampleocr.bmp');
# Invoke Aspose.OCR Cloud SDK API to extract text and partsinfo from an image                         
$response = $ocrApi->GetRecognizeDocument(name=> 'Sampleocr.bmp', language=> 'English', useDefaultDictionaries=> 'true');

Extract OCR or HOCR Text from Images - Android


// Instantiate Aspose OCR Cloud API SDK
OcrApi ocrApi = new OcrApi(Configuration.apiKey, Configuration.appSID, true);
File input = Utils.stream2file("Sampleocr","bmp", context.getResources().openRawResource(R.raw.Sampleocr));
//upload file to aspose cloud storage
storageApi.PutCreate("Sampleocr.bmp", "", "", input);	  
//invoke Aspose.OCR Cloud SDK API to extract text and parts info from an image           
OCRResponse apiResponse = ocrApi.GetRecognizeDocument("Sampleocr.bmp", "English", 0, 0, 0, 0, true, "","");

Recognize Characters of Different Languages

The characters of different languages have different representations. If we combine the languages with the font types and styles - it makes a large set of characters to be recognized from an image. Aspose.OCR for Cloud handles this task very elegantly as it can recognize text in English, French and Spanish languages. When talking about specific fonts, this API is capable of extracting text in Arial, Times New Roman, Courier New, Verdana, Tahoma and Calibri fonts with regular, bold or italic styles from images.

Language, Platform & Storage Independence

Aspose.OCR for Cloud can be used with any language or platform which supports HTTP requests and responses. You can also use Aspose.OCR for Cloud with many third party storage providers including Amazon S3, Google Cloud, Google Drive and DropBox.

 

Support and Learning Resources