C# ironOCR to recognize single number

Viewed 45

I am trying to use IronOCR to recognize japanese.

When it comes to single numbers like 1, 3 , and 7 it does not work. Numbers like 5,920 or any longer numbers than single digit will show correctly.

I have read some related articles here.

Suggestions like Ocr.Configuration.PageSegmentationMode=TesseractPageSegmentationMode.SingleChar; are not available.

I can not be sure there is always single or not single digit.

Here is my code and what should i do ?

using (var Input = new OcrInput(croppedImage))
{
    Input.DeNoise();
    Input.Invert();
    //Input.DeepCleanBackgroundNoise();
    var Result = Ocr.Read(Input);
    textBox1.Text = Result.Text;
    //Result.SaveAsTextFile("JapaneseText.txt");
}

Working number

Image showing the text "29,600"

Not working number

Image showing the text "2"

0 Answers
Related