public class aspire {
public static void main(
String[] args) throws IOException {
BufferedImage image = ImageIO.read(new File("Test22.jpg"));
String s = new OCR().recognizeEverything(image);
System.out.println("RESULTS: \n"+ s);
}
}
in above code"Exception in
thread "main" javax.imageio.IIOException: Can't read input file!
at javax.imageio.ImageIO.read(Unknown Source)
at aspire.main(aspire.java:14)
"
i am trying to pass all type of image(.png,.jpg) but error is getting please tell me where i am wrong