TesseractOcrNet 0.1.19

dotnet add package TesseractOcrNet --version 0.1.19
                    
NuGet\Install-Package TesseractOcrNet -Version 0.1.19
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TesseractOcrNet" Version="0.1.19" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TesseractOcrNet" Version="0.1.19" />
                    
Directory.Packages.props
<PackageReference Include="TesseractOcrNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TesseractOcrNet --version 0.1.19
                    
#r "nuget: TesseractOcrNet, 0.1.19"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TesseractOcrNet@0.1.19
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TesseractOcrNet&version=0.1.19
                    
Install as a Cake Addin
#tool nuget:?package=TesseractOcrNet&version=0.1.19
                    
Install as a Cake Tool

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-x64
  • linux-x64
  • osx-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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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