篩選精靈
如果不知道應該對圖像應用哪種濾鏡,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 的濾鏡列表。