TemplateProcessor class

Class for processing templates and images. Each instance of this class works with a single OMR template. It is able to recognize images of the template specified in the constructor.

public class TemplateProcessor


Name Description
Recalculate(RecognitionResult, int) Updates recognition result using fine tuned parameters.
RecognizeFolder(string, int) Recognizes images from folder
RecognizeImage(MemoryStream, int) Recognizing image from memory stream
RecognizeImage(string, int) Recognizes image
RecognizeMultiPageTemplate(string[], int) Recognizes multi-page template


OmrEngine engine = new OmrEngine();
TemplateProcessor templateProcessor = engine.GetTemplateProcessor(templatePath);
RecognitionResult result = templateProcessor.RecognizeImage(imagePath);
string csvResult = result.GetCsv();

See Also