Aspose.OMR for .NET 24.6 (MSI installer) brings groundbreaking capabilities for bulk generating and recognizing personalized Optical Mark Recognition (OMR) forms within your C# and VB.NET applications. This release streamlines the creation and processing of large volumes of OMR forms with custom data and enhances productivity.
In this version of the C# OMR API, we have introduced personalization to your OMR forms with the new BatchOmrEngine class. Generate forms with placeholders that are automatically filled with data from your dataset, as highlighted in the following C# sample code:
// Initialize Aspose.OMR API
BatchOmrEngine batchEngine = new BatchOmrEngine();
// Define the type, size and position of the form identifier barcode
GlobalPageSettings settings = new GlobalPageSettings();
BarcodeConfig batchBarcode = new BarcodeConfig();
batchBarcode.BarcodeType = BarcodeType.QR;
batchBarcode.X = 500;
batchBarcode.Y = 500;
settings.BatchBarcode = batchBarcode;
// Bulk generate forms
BatchGenerationResult generationResult = batchEngine.Generate(dataSet, "source.txt", settings);
generationResult.Save("generated-templates", "recognition_pattern.domr");
Source*
Streamlined Bulk Recognition
You can now leverage the BatchTemplateProcessor class for seamless bulk recognition of OMR forms from a specific folder. This class efficiently handles various image file formats. Please refer to the following code example to learn how to use the bulk form recognition functionality in C#:
// Initialize Aspose.OMR API
BatchOmrEngine batchEngine = new BatchOmrEngine();
// Initialize the recognition engine
BatchTemplateProcessor processor = batchEngine.GetTemplateProcessor("recognition_pattern.domr");
// Recognize all forms from the folder
BatchRecognitionResult results = processor.Recognize("exam\\scans");
results.SaveAsJson("results.json");
Source*
Easily generate forms using text and JSON markup formats within your .NET OMR apps through the improved form generation functionality in the latest library release. Given below is a sample JSON markup for form creation using Aspose.OMR for .NET 24.6:
{
"element_type": "Template",
"children": [
{
"element_type": "Page",
"children": [
{
"element_type": "Text",
"name": "${student_name}",
"font_style": "bold"
},
{
"element_type": "EmptyLine"
},
{
"element_type": "AnswerSheet",
"name": "Answers",
"elements_count": 15,
"columns_count": 3,
"answers_count": 5,
}
]
}
]
}
Source*
Advanced Bulk Generation with Iteration
Utilize the TemplateExporter class for advanced form generation scenarios. This class allows you to iterate through generated form pages, ideal for handling large batches of forms.
Clear Barcode Placement and Management
A new BatchBarcode parameter in version 24.6 of the .NET OMR library defines the position and size of a mandatory barcode element for proper form processing.
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.OMR for .NET 24.6 Release Notes.