过滤向导
如果不知道应该对图像应用哪种过滤器,OcrInputFilterWizard提供了适合ocrInput的过滤器列表。
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
如果不知道应该对图像应用哪种过滤器,OcrInputFilterWizard提供了适合ocrInput的过滤器列表。