class ttt { static String str; static BufferedImage image; public static void main(String[] args) throws IOException, TesseractException { File imageFile = new File("1.png"); Tesseract instance = Tesseract.getInstance(); instance.setDatapath("C:/Program Files (x86)/Java"); String result = instance.doOCR(imageFile); } }
result
System.out.println(result)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)