I am trying to convert a bitmap to an uncompressed tif file for use with the Tesseract OCR engine.
I can use this method to create a compressed tif file ...
final BufferedImage bmp = ImageIO.read(new File("input.bmp")); ImageIO.write(bmp, "jpg", new File("output.tif"));
This creates an empty tif file when "jpg" is changed to tif, as these files are considered in Java Advanced Imaging (JAI).
How to create an uncompressed tif image? Should I unzip the tif image obtained from the above code, or is there another way to handle the conversion process?
Any examples submitted would be appreciated.
thanks
kingh32
source share