Aspose.OMR-Cloud 23.1.0

dotnet add package Aspose.OMR-Cloud --version 23.1.0                
NuGet\Install-Package Aspose.OMR-Cloud -Version 23.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Aspose.OMR-Cloud" Version="23.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.OMR-Cloud --version 23.1.0                
#r "nuget: Aspose.OMR-Cloud, 23.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Aspose.OMR-Cloud as a Cake Addin
#addin nuget:?package=Aspose.OMR-Cloud&version=23.1.0

// Install Aspose.OMR-Cloud as a Cake Tool
#tool nuget:?package=Aspose.OMR-Cloud&version=23.1.0                

Perform OMR Operations with Cloud .NET SDK

Version 23.1.0 NuGet .NET

banner


Docs Swagger Examples Blog Release Notes Support Dashboard


Aspose.OMR Cloud SDK for .NET allows developers to integrate Optical Mark Recognition (OMR) functionality into their cloud-based applications with ease. It supports the creation of machine-readable forms using customizable text or JSON markup, enabling developers to generate and recognize forms without manual intervention. The SDK supports multiple formats such as PDF, JPG, and PNG for both input and output, and it returns recognition results in popular formats like JSON, XML, and CSV. The OMR Cloud SDK simplifies form generation, personalization, and recognition for various use cases, including surveys, exams, and ballots, ensuring high recognition accuracy even with smartphone photos.

OMR Form Creation

Machine-Readable Form Generation

Generate machine-readable forms using customizable text or JSON markup languages.

Form Personalization

Add logos, barcodes, QR codes, and images to personalize OMR forms.

OMR Processing and Recognition

Automated Form Recognition

Recognize filled OMR forms through API calls without the need for manual processing.

High-Accuracy Recognition

Achieve high recognition accuracy for various types of images, including smartphone photos.

Multi-Page Form Support

Process multi-page forms with consistent recognition results across all pages.

File Format Support

Supported Image Formats

Recognize a variety of image formats, including PDF, JPG, PNG, TIFF, and GIF.

Recognition Result Formats

Return recognition results in formats such as JSON, XML, and CSV for easy integration into databases.

Designing machine-readable forms

Text markup

Lightweight text markup language specifically tailored for Aspose.OMR Cloud.

JSON markup

Describe forms as nested data structures using JSON, the most popular data exchange format.

Text markup

Layout

Arrange other elements and define the appearance and design of machine-readable forms.

Questionnaires

Build surveys, ballots, checklists, and similar forms that are OMR-ready.

Answer sheets

Populate a form with a grid of bubbles representing answers to an exam, test, or assessment.

Barcodes and QR codes

Add barcodes and QR codes to personalize or uniquely identify a form.

Write-ins

Provide a blank field in which the respondent can handwrite some text or draw a picture.

JSON markup

Template Structure

The top-level element of the Aspose.OMR template source must always be an object with a specific structure, including pages and children elements.

Elements

JSON markup includes a wide range of elements like Layout, Questionnaires, and Barcodes, similar to text markup.

Generating machine-readable forms

Form generation

Aspose.OMR Cloud generates a printable OMR form in 3 API calls: get access token, send form source code for rendering, and fetch the form and recognition pattern.

Recognizing machine-readable forms

Recognition Process

Recognize a filled form in 3 API calls: get access token, send the form's image for recognition, and fetch the recognition results.

Appendices

Color codes

Provides a list of color codes that can be used for form customization.

Font families

Lists supported font families for form generation.

SDK Support

Multi-Language SDKs

Access open-source SDKs for .NET, Java, Python, Node.js, and other languages to simplify API integration.

Cross-Platform Compatibility

Use OMR Cloud SDKs in web-based and on-premise applications across multiple platforms.

Supported File Formats

Template Sources

Format Details
JSON A popular open standard file format for describing nested data structures.
text Lightweight text markup specifically tailored for Aspose.OMR forms.

Printable Forms

Extension Details
.PDF Portable Document Format, the de facto industry standard for printed documents.
.JPG JPEG, a widely used format for digital images. Small file size, but image quality may be slightly reduced due to lossy compression.
.PNG Portable Network Graphics, an open, extensible image format with lossless compression.
.TIFF or .TIF Tag Image File Format, abbreviated as TIFF or TIF. Popular high-quality graphics format among artists, photographers, and the publishing industry.
.GIF Small-sized image files limited to 256 colors. Best suited for websites and slow networks.
.BMP Bitmap image file. Supported by almost any device, but the file size can be very large.

Filled Forms

Extension Details
.PDF Portable Document Format (see the note below).
.JPG JPEG, the most popular format for smartphone photos.
.PNG Portable Network Graphics.
.TIFF or .TIF Tag Image File Format, commonly used for high-quality scanning (see the note below).
.GIF Graphics Interchange Format. Limited to 256 colors.
.BMP Bitmap image file.

Multi-page PDF and TIFF recognition is not supported as yet; scan each page separately.

Recognition Results

Format Details
JSON A popular open standard format for describing nested data structures. Best for NoSQL databases or web.
XML Extensible Markup Language, a universal format for most systems.
CSV A lightweight text format using commas to separate values. Ideal for spreadsheet applications and simple relational database tables.

Supported Color Codes

Code Code Code Code
Aqua Aquamarine Black Blue
BlueViolet Crimson DarkBlue DarkGreen
DarkOrange DarkSalmon Fuchsia Gray
Indigo LightGray Lime Red
Teal White

Supported Font Families

Font Family Font Family Font Family Font Family
Arial Arial Black Bahnschrift Calibri
Cambria Cambria Math Candara Comic Sans MS
Consolas Constantia Corbel Courier New
Ebrima Franklin Gothic Medium Gabriola Gadugi
Georgia HoloLens MDL2 Assets Impact Ink Free
Javanese Text Leelawadee UI Lucida Console Lucida Sans Unicode
Malgun Gothic Marlett Microsoft Himalaya Microsoft JhengHei
Microsoft New Tai Lue Microsoft PhagsPa Microsoft Sans Serif Microsoft Tai Le
Microsoft YaHei Microsoft Yi Baiti MingLiU-ExtB Mongolian Baiti
MS Gothic MV Boli Myanmar Text Nirmala UI
Palatino Linotype Segoe MDL2 Assets Segoe Print Segoe Script
Segoe UI Segoe UI Emoji Segoe UI Historic Segoe UI Symbol
SimSun Sitka Sylfaen Symbol
Tahoma Times New Roman Trebuchet MS Verdana
Webdings Wingdings Yu Gothic

System Requirements

Requirement Details
Device/OS Requirements No specific device or OS requirements; compatible with any programming language that supports HTTPS requests.
Supported Programming Languages .NET, Java, JavaScript (Node.js and AJAX), Python, and more.
Device Types Can run on servers, desktops, thin clients, smartphones, and tablets.
Software Installation No installation needed; can use cURL commands, scripts, or third-party REST API tools like Postman.
Internet Access Device must have internet access and should not be blocked by a firewall.

Quick Start

1. Sign in and Obtain Credentials

  • Log in to the GroupDocs Cloud API Dashboard.
  • Go to the Applications page, create cloud storage, and save your application.
  • Copy the Client ID and Client Secret for your application.

2. Install Aspose.OMR Cloud SDK for .NET

  • You do not need any separate installation. Create an account at Aspose for Cloud and get your application information.

  • In Visual Studio, open the Package Manager Console and run:

    Install-Package Aspose.OMR-Cloud
    
  • If you want to upgrade to the latest version of the SDK, execute:

    Update-Package Aspose.OMR-Cloud
    

3. Request Access Token

  • Use Client ID and Client Secret to request an access token by sending a POST request to https://api.aspose.cloud/connect/token.
  • Ensure the parameters grant_type, client_id, and client_secret are correctly filled.

4. Authorize REST API Requests

  • Include the access token in the Authorization header for each API request using Bearer authentication.

5. Authorize SDK Requests

  • Pass Client ID and Client Secret when initializing the SDK to handle all token and API requests:

    Configuration conf = new Configuration();
    conf.AppSid = "CLIENT-ID-VALUE";
    conf.AppKey = "CLIENT-SECRET-VALUE";
    OmrApi api = new OmrApi(conf);
    

Resizing an OMR Form Template with Aspose.OMR Cloud .NET SDK

Learn how to resize a machine-readable OMR form template using Aspose.OMR Cloud SDK for .NET and fetch high-precision recognition results.

using System;
using Aspose.OMR.Cloud.Sdk.Model.Requests;

public class ResizeTemplateExample
{
    public void ResizeTemplate()
    {
        // Define template name and format
        string templateName = "SampleTemplate.omr";
        string folder = "OMR_Templates"; // Folder where the template is stored

        // Create a request to resize the OMR form
        var request = new ResizeTemplateRequest(templateName, 210, 297, folder); // Resize to A4 dimensions

        // Call the OMR Cloud API to resize the template
        var response = OmrApi.ResizeTemplate(request);

        // Print out success message with new template size
        Console.WriteLine("Template resized successfully. New size: A4");
    }
}

Convert OMR Form Results to CSV Using Aspose.OMR Cloud SDK

Easily convert OMR form recognition results to CSV format with Aspose.OMR Cloud SDK for .NET. Process and export data effortlessly.

using System;
using Aspose.OMR.Cloud.Sdk.Model.Requests;

public class ConvertOMRResultsToCSV
{
    public void ConvertToCSV()
    {
        // Define recognized form image name and format
        string imageName = "FilledForm.jpg"; 
        string folder = "OMR_Results"; // Folder where results are stored

        // Create a request to convert the recognized form results to CSV
        var request = new ConvertOMRResultsRequest(imageName, "CSV", folder);

        // Execute the conversion using OMR Cloud API
        var response = OmrApi.ConvertOMRResults(request);

        // Output the success message
        Console.WriteLine("Recognition results converted to CSV successfully.");
    }
}

Generate Printable OMR Form with Aspose.OMR REST API

Generate high-quality printable OMR forms using Aspose.OMR Cloud SDK for .NET and automate form creation with simple API calls.

using System;
using Aspose.OMR.Cloud.Sdk.Model.Requests;

public class GeneratePrintableOMRForm
{
    public void GenerateForm()
    {
        // Define template source code and the output format
        string templateSource = "SampleTemplate.omr"; 
        string outputFormat = "PDF"; // Output format for the generated form

        // Create a request to generate a printable OMR form
        var request = new GenerateOMRFormRequest(templateSource, outputFormat);

        // Execute the request using the OMR Cloud API
        var response = OmrApi.GenerateOMRForm(request);

        // Save the generated form to cloud storage
        Console.WriteLine("Printable OMR form generated successfully in PDF format.");
    }
}

Docs Swagger Examples Blog Release Notes Support Dashboard


Tags

OMR Processing API | .NET Cloud API | Aspose.OMR Cloud | REST API | OMR Form Generation | Form Recognition | JSON Markup | Text Markup | CSV Export | PDF Output | Multi-Language SDKs | High-Accuracy Recognition | Cross-Platform Compatibility | Barcode Support | QR Code Support | GitHub Repository | NoSQL Databases | Postman API | Form Personalization | JSON Responses | XML Responses | CSV Responses | Secure API Access | Client ID and Secret | Scalable Infrastructure | Fast Processing | Machine-Readable Forms | Multi-Page Form Support

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
23.1.0 851 1/25/2023
20.12.0 3,072 12/10/2020
20.2.0 1,127 2/18/2020
19.7.0 1,154 7/7/2019
1.0.3 1,749 5/31/2018
1.0.2 1,613 2/28/2018

Minor metadata updates