Closed adiamante closed 1 year ago
Hi, Check if setting DefaultSegmentationMode property in TessEngine helps. Are you trying to only detect single digit numbers or do you have numbers that might be single digit in some cases?
using TessEngine engine = new("eng", "path/to/tessdatadir");
engine.DefaultSegmentationMode = PageSegmentationMode.SingleChar;
Does the problem appear also with png images?
I can find couple questions about the same problem
https://stackoverflow.com/questions/9632044/tesseract-does-not-recognize-single-characters
@henrivain
PageSegmentationMode.SingleChar worked but PageSegmentationMode.SingleLine worked better for my use case.
Thanks
Hi,
The following jpeg images are not able to be read:
The following does work so I'm guessing it's unable to read single digits.
I tested in windows TesseractOcrMauiTestApp project along with an android app. For android, I do know Xamarin.Tesseract package is able to read them properly but I am attempting to phase it out.