Tronnx.Ocr 1.2.4

dotnet add package Tronnx.Ocr --version 1.2.4
                    
NuGet\Install-Package Tronnx.Ocr -Version 1.2.4
                    
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="Tronnx.Ocr" Version="1.2.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tronnx.Ocr" Version="1.2.4" />
                    
Directory.Packages.props
<PackageReference Include="Tronnx.Ocr" />
                    
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 Tronnx.Ocr --version 1.2.4
                    
#r "nuget: Tronnx.Ocr, 1.2.4"
                    
#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 Tronnx.Ocr@1.2.4
                    
#: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=Tronnx.Ocr&version=1.2.4
                    
Install as a Cake Addin
#tool nuget:?package=Tronnx.Ocr&version=1.2.4
                    
Install as a Cake Tool

Tronnx.Ocr is a lightweight, open-source, fully offline OCR engine built on ONNX Runtime.
It provides an end-to-end text detection + text recognition pipeline using two open-source ONNX models:

• linknet_resnet18.onnx – text detection (Apache 2.0 License)
• crnn_vgg16_bn_dynW.onnx – text recognition (Apache 2.0 License)

Both models originate from open-source research projects and are redistributed here in compliance with their Apache 2.0 licenses.
This NuGet package performs all inference locally — no network activity, no telemetry, and your images never leave your device.

Key features:
• 100% offline OCR pipeline
• Fast ONNX Runtime inference
• OpenCV-based preprocessing and detection geometry
• Simple, developer-friendly API
• Automatic model caching for repeated runs
• Embedded ONNX models, no downloads required
• Generate fully searchable PDFs from images
• Highlight specific words in output PDFs

Dependencies:
• Microsoft.ML.OnnxRuntime (MIT License)
• OpenCvSharp4 + OpenCvSharp4.runtime.win (MIT License)
• PdfSharpCore (MIT License)
• SkiaSharp (MIT License)

Current limitations:
• English-only OCR recognition (initial version)
• Multi-language support coming in future releases (extended vocabularies, new recognition models, language packs)

This is an initial, early version of the library and will continue to evolve.
Suggestions, ideas, and contributions are welcome on the GitHub repository.

Product Compatible and additional computed target framework versions.
.NET 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 was computed.  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
1.2.4 719 12/1/2025
1.2.3 155 11/29/2025
1.2.2 128 11/28/2025
1.2.1 128 11/28/2025
1.2.0 131 11/28/2025
1.1.0 211 11/26/2025
1.0.1 313 11/16/2025
1.0.0 314 11/16/2025