Cmdlet
Get-OfficeImageDocument
Recognizes an image as editable text, reading order and detected tables, with review evidence.
Syntax
Get-OfficeImageDocument [-Language <TesseractOcrLanguage[]>] [-MinimumConfidence <Double>] [-NoLanguageDownload] [-Options <TesseractOcrSessionOptions>] [-Path] <String> [-Provider <IOcrEngine>] [-RecognitionOptions <PdfOcrMergeOptions>] [-TessdataDirectory <String>] [-TesseractLanguageExpression <String>] [-TesseractPath <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Uses the original image resolution and the shared OfficeIMO layout engine. Animated and multi-page images are rejected.
Examples
Recognize a ledger once and export its reviewed table.
$image = Get-OfficeImageDocument -Path .\Ledger.png
$image | ConvertFrom-OfficeImage -OutputPath .\Ledger.xlsx -FirstRowIsHeaderInspect $image.Ocr.Document.Tables and $image.Ocr.Pages before confirming the first row as headers.
Parameters
- -Language TesseractOcrLanguage[]
- 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 - -MinimumConfidence Double
- Minimum normalized confidence accepted into the editable document.
- -NoLanguageDownload SwitchParameter
- Do not download checksum-pinned curated language data when a requested language is missing.
- -Options TesseractOcrSessionOptions
- Advanced OfficeIMO OCR options. Convenience parameters override matching values.
- -Path String
- Path to a supported single-frame raster image.
- -Provider IOcrEngine
- Optional engine-neutral OCR provider. When omitted, uses the configured local Tesseract session.
- -RecognitionOptions PdfOcrMergeOptions
- Advanced layout, confidence, orientation, scan preparation and resource limits.
- -TessdataDirectory String
- Explicit directory containing Tesseract trained-data files.
- -TesseractLanguageExpression String
- Advanced raw Tesseract expression for caller-installed custom trained-data models.
- -TesseractPath String
- 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.