Aspose.OCR Cloud SDK for Ruby - v1.0.0

Rating: No reviews yet
Downloads: 20
Released: Jan 30, 2016
Updated: Jan 30, 2016 by asposeocr
Dev status: Stable Help Icon

Recommended Download

Application Aspose.OCR_Cloud_SDK_for_Ruby_v1.0.0.zip
application, 66K, uploaded Jan 30, 2016 - 20 downloads

Release Notes

Aspose.OCR Cloud SDK For Ruby
This SDK lets you use Aspose Cloud OCR APIs in your Ruby web apps.

Installing
You can simply install Aspose OCR Cloud SDK with gem:

gem install aspose_ocr_cloud


Usage
APIs of this SDK can be called as follows:

require 'aspose_ocr_cloud'

class OCRUsage
  
  include AsposeOCRCloud
  include AsposeStorageCloud
	
  def initialize
    #Get App key and App SID from https://cloud.aspose.com
    AsposeApp.app_key_and_sid("APP_KEY", "APP_SID")
    @ocr_api = OcrApi.new  
  end

  def upload_file(file_name)
    @storage_api = StorageApi.new
    response = @storage_api.put_create(file_name, File.open("data/" << file_name,"r") { |io| io.read } )
  end
  
  def get_recognize_document
    #Recognize image text, language and text region can be selected, default dictionaries can be used for correction.
    file_name = "Sampleocr.bmp"
    upload_file(file_name)
    
    response = @ocr_api.get_recognize_document(file_name)
  end
  
end


Unit Tests
Aspose OCR SDK includes a suite of unit tests within the test subdirectory. These Unit Tests also serves as examples of how to use the Aspose OCR SDK.

For more details, please visit our documentation website.

Reviews for this release

No reviews yet for this release.