public static void Run()
{
// ExStart:SettingMarkThreshold
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_OCR();
// Load template file
OmrTemplate template = OmrTemplate.Load(dataDir + "questions.amr");
// Load the image to be analyzed
OmrImage image = OmrImage.Load(dataDir + "answers.jpg");
// Create an instance of OmrEngine and pass object of OmrTemplate as parameter
OmrEngine engine = new OmrEngine(template);
// Get the configurations of OmrEngine
OmrConfig config = engine.Configuration;
// Set fill threshold
config.FillThreshold = 0.12;
// Extract the data
OmrProcessingResult result = engine.ExtractData(new OmrImage[] { image });
// ExEnd:SettingMarkThreshold
}
}