Aspose OCR error 19.9.3

I am trying to run this sample code

AsposeOcr api = new AsposeOcr();

        // Recognize image
        string result = api.RecognizeImage(dataDir + "Sampleocr.bmp");

        // Display the recognized text
        Console.WriteLine(result);

I am getting the follow error. Is this example compatible with this version of aspose ocr? if not can you point me to the correctly location for this version?

Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name ‘AsposeOcr’ could not be found (are you missing a using directive or an assembly reference?) OCRText C:\Users\612630008\source\repos\OCRText\Program.cs 24 Active

@smooney1234

Would you kindly try using Aspose.OCR for .NET 20.8 which is latest and more stable. In case you still face any issue, please feel free to let us know. Please make sure to use the latest version with 4.7 .NET Framework or Higher targeting x86 mode of debugging.

Ok i am using the latest version and the issue is resolved.

1 Like