## Recognize(string, int) {#recognize_2}

Recognize Folder or File

```csharp
public BatchRecognitionResult Recognize(string path, int recognitionThreshold = -100)
```

| Parameter | Type | Description |
| --- | --- | --- |
| path | String | path to a folder or file |
| recognitionThreshold | Int32 | (Optional) The recognition threshold in range (0..100). Only elements filled above threshold will be counted as filled. |

### Return Value

Result of batch recognition of a file or all files within folder

### Exceptions

| exception | condition |
| --- | --- |
| FileNotFoundException | If path is not valid for folder and file |

### See Also

* class [BatchRecognitionResult](../../batchrecognitionresult)
* class [BatchTemplateProcessor](../../batchtemplateprocessor)
* namespace [Aspose.OMR.BatchProcessings](../../batchtemplateprocessor)
* assembly [Aspose.OMR](../../../)

---

## Recognize(Stream, int) {#recognize_1}

Recognize one template from stream

```csharp
public BatchRecognitionResult Recognize(Stream stream, int recognitionThreshold = -100)
```

| Parameter | Type | Description |
| --- | --- | --- |
| stream | Stream | Readable stream with one template |
| recognitionThreshold | Int32 | (Optional) The recognition threshold in range (0..100). Only elements filled above threshold will be counted as filled. |

### Return Value

Result of batch recognition of one template form

### See Also

* class [BatchRecognitionResult](../../batchrecognitionresult)
* class [BatchTemplateProcessor](../../batchtemplateprocessor)
* namespace [Aspose.OMR.BatchProcessings](../../batchtemplateprocessor)
* assembly [Aspose.OMR](../../../)

---

## Recognize(IEnumerable&lt;string&gt;, int) {#recognize}

Recognize multiple files

```csharp
public BatchRecognitionResult Recognize(IEnumerable<string> files, int recognitionThreshold = -100)
```

| Parameter | Type | Description |
| --- | --- | --- |
| files | IEnumerable`1 | Collection of full paths to files |
| recognitionThreshold | Int32 | (Optional) The recognition threshold in range (0..100). Only elements filled above threshold will be counted as filled. |

### Return Value

Result of batch recognition of multiple forms

### See Also

* class [BatchRecognitionResult](../../batchrecognitionresult)
* class [BatchTemplateProcessor](../../batchtemplateprocessor)
* namespace [Aspose.OMR.BatchProcessings](../../batchtemplateprocessor)
* assembly [Aspose.OMR](../../../)

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