Schnelle OCR-Konfiguration
using IronOcr;
using System;

var ocrTesseract = new IronTesseract();

// Fast Dictionary
ocrTesseract.Language = OcrLanguage.EnglishFast;

// Turn off unneeded options
ocrTesseract.Configuration.ReadBarCodes = false;

// Assume text is laid out neatly in an orthogonal document
ocrTesseract.Configuration.PageSegmentationMode = TesseractPageSegmentationMode.Auto;

using var ocrInput = new OcrInput();
ocrInput.LoadImage(@"images\image.png");

var ocrResult = ocrTesseract.Read(ocrInput);
Console.WriteLine(ocrResult.Text);
Imports IronOcr
Imports System

Dim ocrTesseract = New IronTesseract()

' Fast Dictionary
ocrTesseract.Language = OcrLanguage.EnglishFast

' Turn off unneeded options
ocrTesseract.Configuration.ReadBarCodes = False

' Assume text is laid out neatly in an orthogonal document
ocrTesseract.Configuration.PageSegmentationMode = TesseractPageSegmentationMode.Auto

Using ocrInput = New OcrInput()
    ocrInput.LoadImage("images\image.png")

    Dim ocrResult = ocrTesseract.Read(ocrInput)
    Console.WriteLine(ocrResult.Text)
End Using
NuGet Download
PM > Install-Package IronOcr
Schnelle OCR-Konfiguration

Schnelle OCR-Konfiguration

Dieses Beispiel bietet eine Geschwindigkeitsverbesserung von über 35% gegenüber der Standardeinstellung bei Kosten von 0.2% Genauigkeit.

Vielleicht interessiert es Sie auch, wie man einen bestimmten Bereich in einem Bild OCR-en kann, was auch die Geschwindigkeit erheblich verbessern kann.

Sie können IronOCR von NuGet herunterladen oder direkt als DLL.

Explore IronTesseract for Enhanced OCR in .NET
Auf GitHub ansehen

Bereit anzufangen?

Nuget Downloads 6,279,416Version:2026.10gerade veröffentlicht