Tesseract Detailed Configuration
The IronTesseract.Configuration
object provides access to the underlying Tesseract API in C# / .NET to configure setup for advanced users.
using IronOcr; using System; var ocrTesseract = new IronTesseract() { Language = OcrLanguage.EnglishBest, Configuration = new TesseractConfiguration() { ReadBarCodes = false, RenderHocr = true, BlackListCharacters = "`ë|^", PageSegmentationMode = TesseractPageSegmentationMode.AutoOsd, } }; using var ocrInput = new OcrInput(); ocrInput.LoadImage(@"images\image.png"); var ocrResult = ocrTesseract.Read(ocrInput); Console.WriteLine(ocrResult.Text);
Imports IronOcr Imports System Private ocrTesseract = New IronTesseract() With { .Language = OcrLanguage.EnglishBest, .Configuration = New TesseractConfiguration() With { .ReadBarCodes = False, .RenderHocr = True, .BlackListCharacters = "`ë|^", .PageSegmentationMode = TesseractPageSegmentationMode.AutoOsd } } Private ocrInput = New OcrInput() ocrInput.LoadImage("images\image.png") Dim ocrResult = ocrTesseract.Read(ocrInput) Console.WriteLine(ocrResult.Text)
Install-Package IronOcr
The IronTesseract.Configuration
object provides access to the underlying Tesseract API in C# / .NET to configure setup for advanced users.
9 .NET API products for your office documents