Handling Slashed Zeros in IronOCR
Slashed zeros are not recognized correctly, identified as g, 6 or 8?
This can be an issue with the Tesseract language packs.
The following language pack may help to address this issue with slashed zeros:
https://github.com/yusufuyanik1/SlashedZeroOCR
This can then be used with the IronOCR feature to load custom language packs:
https://ironsoftware.com/csharp/ocr/languages/#custom-language-example
using IronOcr; var Ocr = new IronTesseract();
Ocr.UseCustomTesseractLanguageFile("custom_tesseract_files/custom.traineddata");
using (var Input = new OcrInput(@"images\image.png"))
{
var Result = Ocr.Read(Input);
Console.WriteLine(Result.Text);
}
using IronOcr; var Ocr = new IronTesseract();
Ocr.UseCustomTesseractLanguageFile("custom_tesseract_files/custom.traineddata");
using (var Input = new OcrInput(@"images\image.png"))
{
var Result = Ocr.Read(Input);
Console.WriteLine(Result.Text);
}
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.UseCustomTesseractLanguageFile("custom_tesseract_files/custom.traineddata")
Using Input = New OcrInput("images\image.png")
Dim Result = Ocr.Read(Input)
Console.WriteLine(Result.Text)
End Using