nhandled Exception: Aspose.OCR.OcrException: Error occurred during recognition. ---> System.Exception: Folder doesn't contains any suitable checkpoint.
at .(String , String )
at .(IEnumerable1 ) at ..ctor(IEnumerable
1 )
at …ctor()
at …ctor()
at …ctor? , Boolean )
at ? .? , Boolean )
at Aspose.OCR.OcrEngine.()
— End of inner exception stack trace —
at Aspose.OCR.OcrEngine.()
at Aspose.OCR.OcrEngine.Process()
at OCRText.Program.ReadText(String file) in
I am receiving this error when trying to read text from a tiff file.
Here is the sample code i am using.
// The path to the documents directory.
string dataDir = file;
// Initialize an instance of OcrEngine
OcrEngine ocrEngine = new OcrEngine();
// Set Image property by loading an image from file path
ocrEngine.Image = ImageStream.FromFile(dataDir);
// Run recognition process
if (ocrEngine.Process())
{
Console.WriteLine(ocrEngine.Text);
}