We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

OCr not showing current english text

Hi


i am using the Apose ocr .net dll with resources.zip.
I am tryig to extract the text from image.
I can get the text but the text is not showing the correct english text but getting as
ocr.Text = {nm the xmientab, vhe gailm–es xmciude xtems vhat ale designed to kooldinate %?vh vhe ounlail iouk oq
voul document vou kan use these gaile-res to xmientables headmis 400tels I?sts kounl mages and
othel document building blocks when vou k-eate m?mules, kha}

but the orginal text is different .

Please suggest what i need to change the property to cget the correct english text.

const string resourceFileName = @“Aspose.OCR.Resources.zip”;
string imageFile = “SampleImage.jpg”;

Console.WriteLine("Performing OCR on " + imageFile + “…”);

// Initialize OcrEngine
OcrEngine ocr = new OcrEngine();
// Set the image
ocr.Image = ImageStream.FromFile(imageFile);
// Add language
ocr.Languages.AddLanguage(Language.Load(“English”));
ocr.Config.UseDefaultDictionaries = true;
// Load the resource file
using (ocr.Resource = new FileStream(resourceFileName, FileMode.Open))
{
try
{
// Process the whole image
if (ocr.Process())
{
// Get the complete recognized text found from the image
Console.WriteLine(“Text recognized./n” + ocr.Text);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception: " + ex.Message);
}
}

Hi Satish,


Thank you for contacting Aspose support.

Please provide us the high resolution image so we may evaluate your presented scenario on our end to suggest you a solution. Please note, Aspose.OCR APIs work well with high resolution images having 300 DPI at least.