## 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.

```csharp
public class TemplateProcessor
```

## Methods

| Name | Description |
| --- | --- |
| [Recalculate](../../aspose.omr.api/templateprocessor/recalculate)(RecognitionResult, int) | Updates recognition result using fine tuned parameters. |
| [Recognize](../../aspose.omr.api/templateprocessor/recognize#recognize)(Stream, int) | Recognizing file from stream |
| [Recognize](../../aspose.omr.api/templateprocessor/recognize#recognize_1)(Stream[], int) | Recognizing collection of files from streams |
| [Recognize](../../aspose.omr.api/templateprocessor/recognize#recognize_2)(string, int) | Recognizes file |
| [Recognize](../../aspose.omr.api/templateprocessor/recognize#recognize_3)(string[], int) | Recognize multiple files as a single multipage file |
| [RecognizeFolder](../../aspose.omr.api/templateprocessor/recognizefolder)(string, int) | Recognizes images from folder |

## Fields

| Name | Description |
| --- | --- |
| [ApplyLightShadeProcessing](../../aspose.omr.api/templateprocessor/applylightshadeprocessing) | Optional recognition setting. When set to true all Recognize methods will include additional pre-processing. This preprocessing is useful for highlighting marks with a very light shade. e.g. faint pencil marks. |

### Examples

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

### See Also

* namespace [Aspose.OMR.Api](../../aspose.omr.api)
* assembly [Aspose.OMR](../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.OMR.dll -->
