TesseractOcrNet 0.1.19
dotnet add package TesseractOcrNet --version 0.1.19
NuGet\Install-Package TesseractOcrNet -Version 0.1.19
<PackageReference Include="TesseractOcrNet" Version="0.1.19" />
<PackageVersion Include="TesseractOcrNet" Version="0.1.19" />
<PackageReference Include="TesseractOcrNet" />
paket add TesseractOcrNet --version 0.1.19
#r "nuget: TesseractOcrNet, 0.1.19"
#:package TesseractOcrNet@0.1.19
#addin nuget:?package=TesseractOcrNet&version=0.1.19
#tool nuget:?package=TesseractOcrNet&version=0.1.19
Tesseract-Sharp
OCR SDK for .NET, powered by Tesseract, with native runtime packaging and a simple API.
Features
- Simple API: extract text from an image with one method call.
- Native runtime packaging: Windows, Linux, macOS binaries included in the NuGet package.
- Automatic tessdata handling: on-demand language download and local cache.
- Configurable OCR behavior via strongly-typed options (
Language,PageSegMode,EngineMode, custom tessdata path). - Built for modern .NET (
net10.0) with nullable reference types enabled.
NuGet
dotnet add package TesseractOcrNet
Usage
using tesseract_sharp;
using tesseract_sharp.Core;
string text = Ocr.ReadText("path/to/image.png", new OcrOptions
{
Language = "eng"
});
Tessdata Management
Missing *.traineddata files are downloaded on demand from the official tessdata
repository and cached locally. Language packs are stored under:
%LOCALAPPDATA%\YourTesseract\tessdata(Windows)~/.local/share/YourTesseract/tessdata(Linux)~/Library/Application Support/YourTesseract/tessdata(macOS)
You can also provide a custom directory via OcrOptions.TessdataPath.
Platform Support
win-x64linux-x64osx-arm64
Tests
Unit tests:
dotnet test tests/tesseract-sharp.UnitTests/tesseract-sharp.UnitTests.csproj
Integration tests (includes network download checks):
$env:TESSERACT_SHARP_RUN_NETWORK_TESTS="1"
dotnet test tests/tesseract-sharp.IntegrationTests/tesseract-sharp.IntegrationTests.csproj
Native Binaries
Native libraries are packaged per RID under runtimes/<rid>/native/. The loader
selects the folder based on the OS and process architecture (e.g. win-x64,
linux-x64, osx-arm64, osx-x64).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- tesseract_sharp.Core (>= 0.1.19)
- tesseract_sharp.Interop (>= 0.1.19)
- tesseract_sharp.Loader (>= 0.1.19)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.19 | 76 | 4/18/2026 |