Aspose.OCR Cloud

extract text ios 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.

Adding Aspose.OCR Cloud to your project

• Cocoapods

CocoaPods is the recommended way to add AsposeOCRCloud to your project.

  1. Add a pod entry for AsposeOCRCloud to your Podfile
    pod 'AsposeOCRCloud'
    
  1. Install the pod(s) by running
    pod install
    
  1. Include AsposeOCRCloud wherever you need it with
    #import "ASPOcrApi.h"
    

• Source files

Alternatively you can directly add source files to your project.

  1. Download the latest code version from GitHub or CodePlex repository.
  2. Open your project in Xcode, then drag and drop ocr folder onto your project (use the “Product Navigator view”). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
  3. Include AsposeOCRCloud wherever you need it with
    #import "ASPOcrApi.h"
    

Usage

An example is given below to give you a quick preview of how APIs of this SDK can be called.

 /*Recognize image text from some url if provided or from the request body content, 
language can be selected, default dictionaries can be used for correction.*/

#import "ASPApiClient.h"
#import "ASPOcrApi.h"

//Get App key and App SID from https://cloud.aspose.com
[ASPApiClient setAppKey:@"" andAppSID:@""];

ASPOcrApi *ocrApi = [[ASPOcrApi alloc] init];

NSURL *pathToFile = [[NSBundle mainBundle] URLForResource:@"Sampleocr" withExtension:@"bmp"];

[ocrApi postOcrFromUrlOrContentWithCompletionBlock:nil
        language:@"English"
        useDefaultDictionaries:nil
        file:pathToFile
        completionHandler:^(ASPOCRResponse *output, NSError *error) {
            BOOL isFileExist = [[NSFileManager defaultManager] fileExistsAtPath:[output path]];
            XCTAssertTrue(isFileExist, @"Failed to recognize image text from some URL if provided or from the request body content.");                            
}]; 

Dependency

This SDK has dependency on following libraries.

  1. AFNetworking
  2. JSONModel
  3. ISO8601

Aspose.OCR Cloud SDK Examples

Programmer’s Guide, a complete manual on programming with Aspose.OCR Cloud APIs. It holds the wealth of features with sample codes and capabilities.

Unit Tests

To help you get started we also provided unit test coverage to Aspose.OCR APIs.

Start a Free Trial Today

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

Related Post:

Improved Text Recognition Module and Released Skew Correction