## AsposeOcr.RecognizeFormulaAI method

Recognizes mathematical formulas from the provided input images using AI.

```csharp
public List<AIResult> RecognizeFormulaAI(OcrInput images, bool allowAutoDownload, 
    string modelPath = null)
```

| 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. |
| allowAutoDownload | Boolean | Allow automatic AI model download if model files are not available locally. |
| modelPath | String | Optional local path to the main GGUF model file. If automatic download is disabled, this path must be specified. For this vision AI method, put the projector file in the same directory as the main model file. The default projector file name is "Gemma-3-Vision-Latex.mmproj-f16.gguf". |

### Return Value

An [`AIResult`](../../../aspose.ocr.ai/airesult) object containing recognized formula text.

### See Also

* class [AIResult](../../../aspose.ocr.ai/airesult)
* class [OcrInput](../../ocrinput)
* class [AsposeOcr](../../asposeocr)
* namespace [Aspose.OCR](../../asposeocr)
* assembly [Aspose.OCR](../../../)

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