# OCRParams Class

> Parameters for configuring the OCR (Optical Character Recognition) engine.

- Product: Adobe PDF Library 18
- Language: .NET
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/OCRParams
- Version index: https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/llms.txt

```csharp
class OCRParams : SystemIDisposable
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** `SystemIDisposable`

## Description

Parameters for configuring the OCR (Optical Character Recognition) engine.

OCRParams controls settings such as the engine to use, the resolution of the input images, the language(s) to recognize, performance tuning, page segmentation mode, candidate font names for placing text, and image preprocessing options.

**Referenced by:** [`OCREngine`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/OCREngine.md), [`OCRParams`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/OCRParams.md)

**Uses types:** [`LanguageSetting`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/LanguageSetting.md), [`OCRParams`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/OCRParams.md), [`PageSegmentationMode`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/enum/PageSegmentationMode.md), [`Performance`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/enum/Performance.md)

## Constructors

### OCRParams

```csharp
Datalogics.PDFL.OCRParams.OCRParams()
```

*constructor*

Create an OCRParams structure with defaults.

## Properties

### CandidateFontNames

```csharp
System.Collections.Generic.IList<System.String> Datalogics.PDFL.OCRParams.CandidateFontNames { get; set; }
```

### ConfigurationParameters

```csharp
System.Collections.Generic.IDictionary<System.String, System.String> Datalogics.PDFL.OCRParams.ConfigurationParameters { get; set; }
```

### EnableImagePreprocessing

```csharp
bool Datalogics.PDFL.OCRParams.EnableImagePreprocessing { get; set; }
```

### Engine

```csharp
string Datalogics.PDFL.OCRParams.Engine { get; set; }
```

### Languages

```csharp
System.Collections.Generic.IList<LanguageSetting> Datalogics.PDFL.OCRParams.Languages { get; set; }
```

### PageSegmentationMode

```csharp
PageSegmentationMode Datalogics.PDFL.OCRParams.PageSegmentationMode { get; set; }
```

### Performance

```csharp
Performance Datalogics.PDFL.OCRParams.Performance { get; set; }
```

### Resolution

```csharp
double Datalogics.PDFL.OCRParams.Resolution { get; set; }
```

### Tesseract4Engine

```csharp
static string Datalogics.PDFL.OCRParams.Tesseract4Engine { get; }
```

*static*

## Methods

### Dispose

```csharp
void Datalogics.PDFL.OCRParams.Dispose()
```

**Returns:** `void`
