RecognizeFormulaAI

AsposeOcr.RecognizeFormulaAI method

Recognizes mathematical formulas from the provided input images using AI.

public List<AIResult> RecognizeFormulaAI(OcrInput images, bool allowAutoDownload, 
    string modelPath = null)
ParameterTypeDescription
imagesOcrInputThe input images containing one or more mathematical expressions to be recognized. Supports multi-page or multi-frame OCR input.
allowAutoDownloadBooleanAllow automatic AI model download if model files are not available locally.
modelPathStringOptional 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 object containing recognized formula text.

See Also