Batch recognition

Contents
[ ]

Bulk recognition of personalized OMR forms is handled through Aspose.OMR.BatchProcessings.BatchTemplateProcessor class. It is initialized with the recognition pattern (a file with .DOMR extension), generated along with the printable forms.

Aspose.OMR.BatchProcessings.BatchRecognitionResult class contains the bulk recognition results and allows for saving them into different formats.

Example

// 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");