Aspose.OMR for .NET is an Optical Mark Recognition API to recognize optical marks from multiple image formats including JPG, BMP, GIF, TIF, TIFF. After performing OMR operation on these images, API saves the output in CSV format. Moreover, OMR reader API allows capturing human-marked data from documents of different sources like questionnaires, surveys, MCQ papers and more. API recognizes scanned images and even photos from all these sources with high accuracy.
The repository contains sample applications that demonstrate how to perform common OMR tasks with Aspose.OMR for .NET. Our demos run out of the box.
Directory | Description |
---|---|
Aspose.OMR.ConsoleDemo | A collection of .NET examples that help you learn and explore the API features |
Aspose.OMR.GuiDemo | A demonstration of Aspose.OMR graphical control. |
TestData | The test files used in the examples. |
Demos | Source code for the live demos hosted at https://products.aspose.app/omr/family. |
- Extract human marked data from images.
- Process rotated and perspective (side viewed) images.
- Recognize data from tests, exams, questionnaires, surveys etc.
- High accuracy rate & ability to export the results in CSV format.
- Create OMR templates from text markup.
CSV, XML, JSON
JPEG, PNG, GIF, TIFF, BMP
Aspose.OMR for .NET API is written in C# and can be used to build 32-bit and 64-bit applications targeting .NET Framework 4.0 and higher.
Are you ready to give Aspose.OMR for .NET a try? Simply execute Install-Package Aspose.OMR
from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.OMR for .NET and want to upgrade the version, please execute Update-Package Aspose.OMR
to get the latest version.
string TemplateName = "Sheet.omr";
string[] UserImages =
new string[] { "Sheet1.jpg", "Sheet2.jpg" };
// input and output preparation
string testFolderPath = RunExamples.GetSourceDir();
string templatePath = Path.Combine(testFolderPath, TemplateName);
string outputPath = RunExamples.GetResultDir();
// actual OMR API calls
OmrEngine engine = new OmrEngine();
TemplateProcessor templateProcessor = engine.GetTemplateProcessor(templatePath);
Console.WriteLine("Template loaded.");
for (int i = 0; i < UserImages.Length; i++)
{
string imagePath = Path.Combine(testFolderPath, UserImages[i]);
string csvResult = templateProcessor.RecognizeImage(imagePath).GetCsv();
File.WriteAllText(Path.Combine(outputPath, UserImages[i] + ".csv"), csvResult);
Console.WriteLine("Result exported. Path: " + Path.Combine(outputPath, UserImages[i] + ".csv"));
}
Console.WriteLine("PerformOMROnImages executed successfully.\n\r");
Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License