## AsposeOcr.RecognizeFormula method

Recognizes mathematical formulas from the provided input images.

```csharp
public OcrOutput RecognizeFormula(OcrInput images, bool detectAreas = true)
```

| Parameter | Type | Description |
| --- | --- | --- |
| images | OcrInput | The input images containing one or more mathematical expressions to be recognized. Supports multi-page or multi-frame OCR input. |
| detectAreas | Boolean | If set to `true`, automatically detects and isolates formula regions before performing recognition. If `false`, processes the entire image as a formula. |

### Return Value

An [`OcrOutput`](../../ocroutput) object containing recognized formula text, detection confidence scores, and positional information.

### See Also

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

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