## DetectRectangles(OcrInput) {#detectrectangles}

Detects text areas on images. Supports GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, folder, arrays, archives.

```csharp
public List<RectangleOutput> DetectRectangles(OcrInput images)
```

| Parameter | Type | Description |
| --- | --- | --- |
| images | OcrInput | The container with sources.[`OcrInput`](../../ocrinput) |

### Return Value

List of [`RectangleOutput`](../../rectangleoutput) with detected text areas or lines.

### See Also

* class [RectangleOutput](../../rectangleoutput)
* class [OcrInput](../../ocrinput)
* class [AsposeOcr](../../asposeocr)
* namespace [Aspose.OCR](../../asposeocr)
* assembly [Aspose.OCR](../../../)

---

## DetectRectangles(OcrInput, AreasType, bool) {#detectrectangles_1}

Detects text areas on images. Supports GIF, PNG, JPEG, BMP, TIFF, JFIF, stream, folder, arrays, archives.

```csharp
public List<RectangleOutput> DetectRectangles(OcrInput images, AreasType areasType, 
    bool detectAreas = true)
```

| Parameter | Type | Description |
| --- | --- | --- |
| images | OcrInput | The container with sources.[`OcrInput`](../../ocrinput) |
| areasType | AreasType | Determinates wich rectangles to return - line or paragraphs. |
| detectAreas | Boolean | Enable automatic text areas detection. |

### Return Value

List of [`RectangleOutput`](../../rectangleoutput) with detected text areas or lines.

### See Also

* class [RectangleOutput](../../rectangleoutput)
* class [OcrInput](../../ocrinput)
* enum [AreasType](../../areastype)
* class [AsposeOcr](../../asposeocr)
* namespace [Aspose.OCR](../../asposeocr)
* assembly [Aspose.OCR](../../../)

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