Hi,
I’m trying the example downloaded with aspose.OCR but it seems it doens’t work.
code:
Aspose.OCR.OcrEngine ocr = new Aspose.OCR.OcrEngine();
ocr.Image = Aspose.OCR.ImageStream.FromFile(@“D:\test\converter\Sampleocr.bmp”);
ocr.Languages.AddLanguage(Aspose.OCR.Language.Load(“english”));
using (StreamWriter sw = new StreamWriter(@“D:\test\converter\Converted\Sampleocr.txt”))
{
using (ocr.Resource = new FileStream(@“D:\svn\tools\ManualTest\bin\Debug\Aspose.OCR.Resources.zip”, FileMode.Open))
{
try
{
// Process the whole image
if (ocr.Process())
{
// Get the complete recognized text found from the image
sw.WriteLine(ocr.Text);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception: " + ex.Message);
}
}
}
result (in bold wrong character): abcdefghijklmnopmrstuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789
o ! ?-1 l I()