Hello,
I am using Aspose.OCR for .Net in version 17.11.0 with the resource “French language resource file for Aspose.OCR for .NET 3.2.0”.
I have two image files :
- 1st image contains “kevinc” and the result of OCR Engine is “kevînc”.
- 2nd image contains “2m Interactive Sàrl” and the result is “2rr lnteractîve Sarl”.
kevinc.png (10.8 KB)
2mInteractive.png (12.8 KB)
Can you tell me if there is a solution ? Thank you !
Here is my configuration :
ocrEngine.ClearNotifies();
CorrectionFilters filters = new CorrectionFilters();
filters.Add(new Aspose.OCR.Filters.RemoveNoiseFilter());
filters.Add(new Aspose.OCR.Filters.MedianFilter());
ocrEngine.Config.CorrectionFilters = filters;
ocrEngine.LanguageContainer.Clear();
ocrEngine.LanguageContainer.AddLanguage(LanguageFactory.Load("French_language_resource_file_for_Aspose.OCR_for_.NET_3.2.0.zip"));
ocrEngine.Image = ImageStream.FromFile("test.png");
ocrEngine.Config.RecognitionBlocks.Clear();
ocrEngine.Config.RemoveNonText = true;
ocrEngine.Config.SavePreprocessedImages = true;
ocrEngine.Config.DeleteTableLines = true;
ocrEngine.Config.DoSpellingCorrection = true;
ocrEngine.Config.AdjustRotation = AdjustRotationMode.Disabled;
ocrEngine.Config.AdjustUpsideDownRotation = AdjustUpsideDownRotationMode.None;
IRecognitionBlock block = RecognitionBlock.CreateTextBlock(0, 0, region.Width, region.Height);
ocrEngine.Config.AddRecognitionBlock(block);
ocrEngine.Config.DetectTextRegions = false;