Perform Optical Mark Recognition(OMR) in the Cloud

Use the SDK for Ruby to accurately recognize human-handled data from a number of image formats in your applications.

  Start Free Trial
Aspose.OMR Cloud SDK for Ruby

Aspose.OMR Cloud SDK for Ruby

 
 

Get started quickly using Aspose.OMR Cloud API with the Aspose.OMR Cloud SDK for Ruby. The SDK is a modern, easy to customize Ruby library that makes it easy to integrate your Ruby application with the features of the cloud OMR REST API including recognition of scanned images and photos, ability to process rotated and perspective (side viewed) images, exporting the results to CSV file format, and more. 

 

Advanced OMR REST API Features

 

 

Supports most commonly used image formats

 

Supports common markers such as Check Boxes & Grid

 

Export OMR results in CSV format

 

High accuracy rate

 

Add or delete OMR elements from template

 

Process rotated images

 

Barcodes and QR-codes recognition

 

Capture human-marked data from PDF documents

Quickly Get Started with Optical Mark Recognition REST API

It is easy to get started with Aspose.OMR Cloud because there is nothing to install. Simply create an account at Aspose for Cloud and get your application information. Once you have acquired the app key & SID, you are ready to use the Aspose.OMR Cloud REST API with any language, on any platform. For further ease of our users who want to work in Ruby, we have developed the SDK for it which supports all the features of the API and is readily available to get you started with our OMR API in no time.

OMR Demo Application for Learning

Aspose.OMR Cloud SDK for Ruby comes with a Ruby demo project, which is provided for demonstration and as a jump start for the developers. The project allows you to create template markup & save it for later processing or manipulate existing templates. You can also perform basic OMR recognition tasks, and learn how to work with Aspose.OMR Cloud in the process using Ruby.

Recognize Marks from Scans or Photos

Aspose.OMR Cloud is equally good for scanned documents as well as photos of the documents because it can process rotated and perspective corrupted images with high accuracy.

Generate Template - Ruby


template_name = File.basename(template_file_path)
response = @omr_api.post_run_omr_task(template_name, 'GenerateTemplate',
{:param => AsposeOmrCloud::OMRFunctionParam.new({:FunctionParam => JSON({:ExtraStoragePath => @logos_folder_name})}) })
# call OMR API with specified parameters
check_omr_response(response, 'GenerateTemplate')

Correct Template - Ruby


image_name = File.basename(image_file_path)
# call OMR API with specified parameters
response = @omr_api.post_run_omr_task(image_name, 'CorrectTemplate', {:param => AsposeOmrCloud::OMRFunctionParam.new({:FunctionParam => serialize_files([template_file_path])}) })
check_omr_response(response, 'CorrectTemplate')

Finalize Template - Ruby


corrected_template_file_name = File.basename(corrected_template_file_path)
# call OMR API with specified parameters
response = @omr_api.post_run_omr_task(corrected_template_file_name, 'FinalizeTemplate', {:param => AsposeOmrCloud::OMRFunctionParam.new({:FunctionParam => template_id}) })

Recognize Image - Ruby


image_name = File.basename(image_path)
# call OMR API with specified parameters
response = @omr_api.post_run_omr_task(image_name, 'RecognizeImage', {:param => AsposeOmrCloud::OMRFunctionParam.new({:FunctionParam => template_id}) })

Highly Accuracy Rate

Using the SDK, you can utilize all the features of the OMR REST API, which is capable of capturing human-marked data from documents like surveys, questionnaires, examination paper etc. and can also recognize scanned images and photos with high accuracy.

Easy Template Generation

Aspose template generation API allows you to generate surveys and test sheets through simple text markup. Just prepare the survey text and you have a template ready to work with. Alternatively, you can write a header text, specify the number of questions and answers and get your personal test sheet.

Export Results in CSV Format

Along with JSON based responses, Aspose.OMR Cloud also offers to export the results in CSV format. You can set the API to export the results in a CSV file while saving it in your downloads folder.

 

Support and Learning Resources