Hi,
Here I will be attaching an image from which i am trying to read text using aspose OCR.
I have been using Aspose OCR 22.8.0 version.
using (Aspose.Imaging.RasterImage image = (RasterImage)Aspose.Imaging.Image.Load(@“D:\Aspose OCR\OCRTestApp\OCRTestApp\source.png”))
{
Aspose.Imaging.Color[] c = image.LoadPixels(image.Bounds);
byte[] arr = new byte[c.Length * 3];
for (int i = 0; i < c.Length; i++)
{
arr[i] = (byte)((c[i].R + c[i].G + c[i].B) / 3);
}
Aspose.OCR.RecognitionResult recognitionResult = recognitionEngine.RecognizeImage(arr, image.Width, image.Height, Aspose.OCR.PixelType.BYTE);
Console.WriteLine(recognitionResult.RecognitionText);
Console.ReadLine();
}
this is the code i tried.
But the outpout I am getting is “eërëeVorld! I can read this tey” seems the reading has been not successfull.
source.png (2.5 KB)
Please help me on what changes I can make on this to get the reading successfull.