I have found a way to bypass this issue:
BufferedImage croppedImage = vnc.capture().getImage().getSubimage(xAxis, yAxis, width, height); ImageIO.write(croppedImage, "png", new File("tempRead.png")); String text = TextRecognizer.getInstance().recognize(ImageIO.read(new File("tempRead.png")));
I have found a way to bypass this issue:
BufferedImage croppedImage = vnc.capture( ).getImage( ).getSubimage( xAxis, yAxis, width, height); write(croppedIm age, "png", new File("tempRead. png")); getInstance( ).recognize( ImageIO. read(new File("tempRead. png"))) ;
ImageIO.
String text = TextRecognizer.