Add
Add(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.
public void Add(string fullPath)
Parameter | Type | Description |
---|---|---|
fullPath | String | Path to the image/ document / folder / archive. |
See Also
- class OcrInput
- namespace Aspose.OCR
- assembly Aspose.OCR
Add(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.
public void Add(MemoryStream stream)
Parameter | Type | Description |
---|---|---|
stream | MemoryStream | Memory stream containing the image or document. |
See Also
- class OcrInput
- namespace Aspose.OCR
- assembly Aspose.OCR
Add(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.
public void Add(string fullPath, int startPage, int pagesCount)
Parameter | Type | Description |
---|---|---|
fullPath | String | Path to the image/ document / folder / archive. |
startPage | Int32 | The first page/image for processing / recognition. Use for documents, zip, folders. |
pagesCount | Int32 | The total amount of pages/images for processing / recognition. Use for documents, zip, folders. Default = 1. |
See Also
- class OcrInput
- namespace Aspose.OCR
- assembly Aspose.OCR
Add(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.
public void Add(MemoryStream stream, int startPage, int pagesCount)
Parameter | Type | Description |
---|---|---|
stream | MemoryStream | Memory stream containing the multipage document. |
startPage | Int32 | The first page/image for processing / recognition. Use for documents. |
pagesCount | Int32 | The total amount of pages/images for processing / recognition. Use for documents. Default = 1. |
See Also
- class OcrInput
- namespace Aspose.OCR
- assembly Aspose.OCR
Add(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).
public void Add(byte[] arr, int width, int height, PixelType pixelFormat)
Parameter | Type | Description |
---|---|---|
arr | Byte[] | Decoded image in Aspose.Drawing.Color array. |
width | Int32 | Image width. |
height | Int32 | Image height. |
pixelFormat | PixelType | Supports byte, rgb, bgr, rgba. |
See Also
- enum PixelType
- class OcrInput
- namespace Aspose.OCR
- assembly Aspose.OCR
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).
public void Add(Color[] imageData, int width, int height)
Parameter | Type | Description |
---|---|---|
imageData | Color[] | Decoded image in Aspose.Drawing.Color array. |
width | Int32 | Image width. |
height | Int32 | Image height. |
See Also
- class OcrInput
- namespace Aspose.OCR
- assembly Aspose.OCR