Browse our Products

Aspose.OMR for .NET 25.6.0 - Release Notes

What was changed

KeySummaryCategory
OMRNET‑1120Added new optional mechanism to detect soft pencil marks.New feature

Public API changes and backwards compatibility

This section lists all public API changes introduced in Aspose.OMR for .NET 25.6.0 that may affect the code of existing applications.

Added public APIs:

The following public APIs have been added to Aspose.OMR for .NET 25.6.0:

Aspose.OMR.Api.TemplateProcessor.ApplyLightShadeProcessing property

Boolean flag, disabled by default(false). When true will detect lightly shaded pencil marks.

Updated public APIs:

No changes.

Removed public APIs:

No changes.

Usage examples

See the examples below to learn more about the changes introduced in this release:

C# code for recognizing math test with full pencil support

OmrEngine engine = new OmrEngine();
string templatePath = @"C:\Users\User\Desktop\Math01.omr";
TemplateProcessor processor = engine.GetTemplateProcessor(templatePath);
processor.ApplyLightShadeProcessing = true;

string scan = @"C:\Users\User\Desktop\scans\A001-20250709-001.png";
RecognitionResult result = processor.Recognize(scan);

string csv = result.GetCsv();
File.WriteAllText(@"C:\Users\User\Desktop\results\A001-20250709-001.csv", csv);

Example of recognition results without pencil support

pencil-marks

no pencil support

Element Name,Value,
MainQuestions10,"A,D"
MainQuestions11,""
MainQuestions12,""
MainQuestions13,"B"
MainQuestions14,"C"
MainQuestions15,""
MainQuestions16,""
MainQuestions17,"B,D"
MainQuestions18,""
MainQuestions19,"D"
MainQuestions20,"D"
MainQuestions21,""
MainQuestions22,""
MainQuestions23,""

Example of recognition results with pencil support

pencil-marks

enabled pencil support

Element Name,Value,
MainQuestions10,"A,D"
MainQuestions11,"C"
MainQuestions12,"C"
MainQuestions13,"B"
MainQuestions14,"C"
MainQuestions15,"A"
MainQuestions16,"C"
MainQuestions17,"B,D"
MainQuestions18,""
MainQuestions19,"B,D"
MainQuestions20,"B,D"
MainQuestions21,"C"
MainQuestions22,"C"
MainQuestions23,""