class mmm
{
public static void main(String[] args) {
OcrEngine ocr = new OcrEngine();
ocr.setImage(ImageStream.fromFile("pp.tif"));
// ocr.setImage((IImageStream) new File("pp.tif"));
ocr.getLanguages().addLanguage(Language.load("engl ish"));
// ocr.setResource(new FolderStream(resourceFileName, FileMode.Open)));
{
if (ocr.process())
{
System.out.println(ocr.getText());
}
}
}
}
in above code giving error .
Exception in thread "main" com.aspose.ms.System.IO.FileNotFoundException: Can't find file: pp.tiff.
please tell me where i am wrong. i am trying to pass all formt(.png,.gif,.jpg) images.i am giving proper path