---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/ocrengine
---

# OCREngine

## Overview

`OCREngine` is a type in Aspose.PDF FOSS for Go.

OCREngine recognizes text on one page image.

This type declares 1 method for OCREngine objects in Go programs.
Available methods include: `Recognize`.
Public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package.

## Methods

| Signature | Description |
|-----------|-------------|
| `Recognize(ctx: context.Context, img: image.Image)` → `(*OCRResult, error)` | Processes a page image and returns an `OCRResult` containing the extracted text and layout information |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)