GetRectangles
Contents
[
Hide
]GetRectangles(string, AreasType, bool)
Detects text areas on image. Automatic image skew correction is not applied. Supports GIF, PNG, JPEG, BMP, TIFF, JFIF.
public List<Rectangle> GetRectangles(string fullPath, AreasType areasType = AreasType.PARAGRAPHS,
bool detectAreas = true)
| Parameter | Type | Description |
|---|---|---|
| fullPath | String | Path to the image. |
| areasType | AreasType | Determinates wich rectangles to return - line or paragraphs. |
| detectAreas | Boolean | Enable automatic text areas detection. |
Return Value
List of detected text areas or lines.
See Also
- enum AreasType
- class AsposeOcr
- namespace Aspose.OCR
- assembly Aspose.OCR
GetRectangles(MemoryStream, AreasType, bool)
Detects text areas on image. Automatic image skew correction is not applied. Supports GIF, PNG, JPEG, BMP, TIFF, JFIF.
public List<Rectangle> GetRectangles(MemoryStream image,
AreasType areasType = AreasType.PARAGRAPHS, bool detectAreas = true)
| Parameter | Type | Description |
|---|---|---|
| image | MemoryStream | Memory stream containing the image. |
| areasType | AreasType | Determinates wich rectangles to return - line or paragraphs. |
| detectAreas | Boolean | Enable automatic text areas detection. |
Return Value
List of detected text areas or lines.
See Also
- enum AreasType
- class AsposeOcr
- namespace Aspose.OCR
- assembly Aspose.OCR