Filter-Assistent
Falls unklar ist, welcher Filter auf das Bild angewendet werden soll, bietet OcrInputFilterWizard eine Liste von Filtern an, die für ocrInput geeignet sind.
using IronOcr;
using System;
var ocrTesseract = new IronTesseract();
// WIZARD - If you are unsure which filters to use,
// use the debug-wizard to test all combinations:
string codeToRun = OcrInputFilterWizard.Run(@"images\image.png", out double confidence, ocrTesseract);
Console.WriteLine($"Confidence: {confidence}");
Console.WriteLine(codeToRun);Imports IronOcr
Imports System
Private ocrTesseract = New IronTesseract()
' WIZARD - If you are unsure which filters to use,
' use the debug-wizard to test all combinations:
Private codeToRun As String = OcrInputFilterWizard.Run("images\image.png", Double confidence, ocrTesseract)
Console.WriteLine($"Confidence: {confidence}")
Console.WriteLine(codeToRun)Install-Package IronOcr
Falls unklar ist, welcher Filter auf das Bild angewendet werden soll, bietet OcrInputFilterWizard eine Liste von Filtern an, die für ocrInput geeignet sind.