OfficeIMO.Reader.Ocr
3.4.2
Prefix Reserved
dotnet add package OfficeIMO.Reader.Ocr --version 3.4.2
NuGet\Install-Package OfficeIMO.Reader.Ocr -Version 3.4.2
<PackageReference Include="OfficeIMO.Reader.Ocr" Version="3.4.2" />
<PackageVersion Include="OfficeIMO.Reader.Ocr" Version="3.4.2" />
<PackageReference Include="OfficeIMO.Reader.Ocr" />
paket add OfficeIMO.Reader.Ocr --version 3.4.2
#r "nuget: OfficeIMO.Reader.Ocr, 3.4.2"
#:package OfficeIMO.Reader.Ocr@3.4.2
#addin nuget:?package=OfficeIMO.Reader.Ocr&version=3.4.2
#tool nuget:?package=OfficeIMO.Reader.Ocr&version=3.4.2
OfficeIMO.Reader.Ocr - OCR enrichment for Reader
OfficeIMO.Reader.Ocr applies any OfficeIMO.Ocr.IOcrEngine to image candidates emitted by modular OfficeIMO readers. It adds recognized content to OfficeDocumentReadResult while preserving native text, source locations, assets, diagnostics, and provider evidence.
Install
Install the integration, the required Reader format adapter, and one provider. For example, Word plus Tesseract:
dotnet add package OfficeIMO.Reader.Ocr
dotnet add package OfficeIMO.Reader.Word
dotnet add package OfficeIMO.Ocr.Tesseract
OfficeIMO.Reader.All does not include OCR providers or the OCR integration.
Recognize embedded document images
using OfficeIMO.Ocr.Tesseract;
using OfficeIMO.Reader;
using OfficeIMO.Reader.Word;
OfficeDocumentReader reader = new OfficeDocumentReaderBuilder()
.AddWordHandler()
.Build();
OfficeDocumentReadResult document = await reader.ReadDocumentAsync("scanned-notes.docx");
var engine = TesseractOcrEngine.CreateDefault();
OfficeDocumentOcrExecutionResult result = await document.ApplyOcrAsync(
engine,
new OfficeDocumentOcrExecutionOptions {
Language = "eng+pol",
MaxCandidates = 50,
MaxDegreeOfParallelism = 2,
CandidateTimeout = TimeSpan.FromMinutes(1)
});
Console.WriteLine(result.Document.Markdown);
Console.WriteLine($"Recognized: {result.Report.RecognizedCandidateCount}");
Reader adapters can emit OCR candidates for raster images in Word, Excel, PowerPoint, OneNote, EPUB, email, PDF, standalone image files, and future formats. Candidate metadata stays in OfficeIMO.Reader.Core; no OCR runs during ordinary parsing.
This package owns candidate-to-asset validation, payload and hash checks, per-candidate timeout configuration, deterministic scheduling, aggregate result/span/diagnostic limits, diagnostic mapping, and normalized-document enrichment. Shared engine serialization and timeout supervision come from OfficeIMO.Ocr.OcrEngineRunner, so a non-concurrent instance is protected even when Reader and PDF use it simultaneously. OfficeDocumentOcrExecutionResult.Recognitions retains each bounded neutral OcrResult, including detailed geometry and provider provenance.
Use the same engine instance with OfficeIMO.Pdf.Ocr when PDF page rendering and searchable output are required. Use DelegateOcrEngine or another IOcrEngine implementation for hosted, native, or application-specific providers.
Targets and dependency footprint
- Targets:
netstandard2.0,net8.0,net10.0(net472is also included on Windows builds). - OfficeIMO dependencies:
OfficeIMO.OcrandOfficeIMO.Reader.Core. - Not dependencies: PDF, Tesseract, process execution, cloud SDKs, native runtimes, or other Reader format packages.
- License: MIT.
See the Reader Core README for reader construction and result contracts.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- OfficeIMO.Ocr (>= 3.4.2)
- OfficeIMO.Reader.Core (>= 3.4.2)
-
.NETStandard 2.0
- OfficeIMO.Ocr (>= 3.4.2)
- OfficeIMO.Reader.Core (>= 3.4.2)
-
net10.0
- OfficeIMO.Ocr (>= 3.4.2)
- OfficeIMO.Reader.Core (>= 3.4.2)
-
net8.0
- OfficeIMO.Ocr (>= 3.4.2)
- OfficeIMO.Reader.Core (>= 3.4.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on OfficeIMO.Reader.Ocr:
| Package | Downloads |
|---|---|
|
OfficeIMO.Workflows
Typed local document workflows that compose first-party OfficeIMO conversion, PDF, and provenance capabilities. |
GitHub repositories
This package is not used by any popular GitHub repositories.