## GetRectangles(string, AreasType, bool) {#getrectangles_1}

Detects text areas on image.  Automatic image skew correction is not applied. Supports GIF, PNG, JPEG, BMP, TIFF, JFIF.

```csharp
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](../../areastype)
* class [AsposeOcr](../../asposeocr)
* namespace [Aspose.OCR](../../asposeocr)
* assembly [Aspose.OCR](../../../)

---

## GetRectangles(MemoryStream, AreasType, bool) {#getrectangles}

Detects text areas on image.  Automatic image skew correction is not applied. Supports GIF, PNG, JPEG, BMP, TIFF, JFIF.

```csharp
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](../../areastype)
* class [AsposeOcr](../../asposeocr)
* namespace [Aspose.OCR](../../asposeocr)
* assembly [Aspose.OCR](../../../)

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