## OcrInput class

Container to collect all images / documents for preprocessing / recognition.

```csharp
public class OcrInput : IDisposable, IEnumerable<ImageData>
```

## Constructors

| Name | Description |
| --- | --- |
| [OcrInput](ocrinput)(InputType, PreprocessingFilter) | Constructor to create container and set the type of images/documents and filters for further preprocessing / recognition. |

## Properties

| Name | Description |
| --- | --- |
| [Item](../../aspose.ocr/ocrinput/item) { get; set; } | Returns information about processed / recognized image. |

## Methods

| Name | Description |
| --- | --- |
| [Add](../../aspose.ocr/ocrinput/add#add_2)(MemoryStream) | Add the memory stream containing the image for recognition / processing. The type of the image must correspond to the type specified in the constructor. |
| [Add](../../aspose.ocr/ocrinput/add#add_4)(string) | Add the path or URI containing the image for recognition / processing. The type of the image must correspond to the type specified in the constructor. |
| [Add](../../aspose.ocr/ocrinput/add#add)(Color[], int, int) | Add the decoded image to the list for recognition / processing. The type of the image must correspond to the type specified in the constructor (SingleImage). |
| [Add](../../aspose.ocr/ocrinput/add#add_3)(MemoryStream, int, int) | Add the memory stream containing the multipage image for recognition / processing. The type of the image must correspond to the type specified in the constructor. |
| [Add](../../aspose.ocr/ocrinput/add#add_5)(string, int, int) | Add the multipage images / documents for recognition / processing. The type of the image must correspond to the type specified in the constructor. |
| [Add](../../aspose.ocr/ocrinput/add#add_1)(byte[], int, int, PixelType) | Add the decoded image to the list for recognition / processing. The type of the image must correspond to the type specified in the constructor (SingleImage). |
| [AddBase64](../../aspose.ocr/ocrinput/addbase64)(string) | Add the base64 string containing the image for recognition / processing. The type of the image must correspond to the type specified in the constructor. |
| [Clear](../../aspose.ocr/ocrinput/clear)() | Set the amount of items for processing / recognition as 0. Clear the collection. |
| [ClearFilters](../../aspose.ocr/ocrinput/clearfilters)() | Remove all filters. |
| [Count](../../aspose.ocr/ocrinput/count)() | Amount of items for processing / recognition. |
| [Dispose](../../aspose.ocr/ocrinput/dispose)() | Set the amount of items for processing / recognition as 0. Clear the collection. |
| [GetEnumerator](../../aspose.ocr/ocrinput/getenumerator)() | Returns collection enumerator. |
| [GetInputType](../../aspose.ocr/ocrinput/getinputtype)() | Type of allowed images for recognition. |
| [ReplaceFilters](../../aspose.ocr/ocrinput/replacefilters)(PreprocessingFilter) | Remove old filters and set new. |

### See Also

* class [ImageData](../imagedata)
* namespace [Aspose.OCR](../../aspose.ocr)
* assembly [Aspose.OCR](../../)

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