# Get-OfficeImageText

Recognizes text in an image with automatic local OCR runtime discovery.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`System.String`

**Outputs**

`System.String` `OfficeIMO.Ocr.OcrResult`

**Source**

[GetOfficeImageTextCommand.cs:25](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Ocr/GetOfficeImageTextCommand.cs#L25) 

Recognizes text in an image with automatic local OCR runtime discovery.

## Syntax

```
Get-OfficeImageText
[-Language <TesseractOcrLanguage[]>]
[-NoLanguageDownload]
[-Options <TesseractOcrSessionOptions>]
[-PassThru]
[-Path] <String>
[-TessdataDirectory <String>]
[-TesseractLanguageExpression <String>]
[-TesseractPath <String>]
[<CommonParameters>]
```

[#](#method-get-officeimagetext-tesseractocrlanguage-switchparameter-tesseractocrsessionoptions-switchparameter-string-string-string-string)

Parameter set: `All Parameter Sets`

## Examples

### Read English text from an image.

```powershell
Get-OfficeImageText -Path .\Scan.png
```

Returns recognized text and automatically uses an installed Tesseract runtime.

### Read English and Polish text with recognition evidence.

```powershell
Get-OfficeImageText -Path .\Scan.png -Language English, Polish -PassThru
```

Returns the full OCR result, including confidence, word geometry, provider, model, and diagnostics.

## Parameters

**-Language TesseractOcrLanguage[] optional**

Friendly OCR languages. Supply more than one value to recognize multilingual content.

Possible values: `English`, `Polish`, `Arabic`, `ChineseSimplified`, `ChineseTraditional`, `Czech`, `Danish`, `Dutch`, `Finnish`, `French`, `German`, `Greek`, `Hebrew`, `Hindi`, `Hungarian`, `Italian`, `Japanese`, `Korean`, `Norwegian`, `Portuguese`, `Romanian`, `Russian`, `Slovak`, `Spanish`, `Swedish`, `Turkish`, `Ukrainian`, `Vietnamese`

**-NoLanguageDownload SwitchParameter optional**

Do not download checksum-pinned curated language data when a requested language is missing.

**-Options TesseractOcrSessionOptions optional**

Advanced OfficeIMO OCR options. Convenience parameters override matching values.

**-PassThru SwitchParameter optional**

Return the complete OCR result instead of recognized text only.

**-Path String requiredposition: 0pipeline: True (ByValue)aliases: FilePath**

PNG, JPEG, TIFF, BMP, GIF, WebP, or JPEG 2000 image path.

**-TessdataDirectory String optional**

Explicit directory containing Tesseract trained-data files.

**-TesseractLanguageExpression String optional**

Advanced raw Tesseract expression for caller-installed custom trained-data models.

**-TesseractPath String optional**

Explicit Tesseract executable path. By default OfficeIMO securely discovers an installed runtime.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:8A9CCB3A8EE5B7416BFB436A09092C11460BC32AB9A2D872FA6FC99D87BECC4C -->
