Socket
Book a DemoInstallSign in
Socket

aspose_ocr_cloud

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aspose_ocr_cloud

1.0.2
bundlerRubygems
Version published
Maintainers
1
Created
Source

Aspose.OCR Cloud SDK For Ruby

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

How to use the SDK?

The complete source code is available in this repository folder, you can either directly use it in your project or use RubyGems. For more details, please visit our documentation.

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.

##Contact Us Your feedback is very important to us. Please feel free to contact us using our Support Forums.

FAQs

Package last updated on 06 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.