public class ConvertImage
extends java.lang.Object
Convert an image in JPG, BMP, TIF, GIF, PNG or PNM.
Ensure JAI imageio has been installed on your machine before training
Without JAI imageio, only bmp and jpg are supported.
http://java.sun.com/products/java-media/jai/INSTALL-jai_imageio_1_0_01.html#Windows
https://jai-imageio.dev.java.net/binary-builds.html
Command line:
org.safs.tools.ocr.ConvertImage [-c color] [-z zoom]
: the image that needs to be converted, , suffixed with JPG, BMP, TIF, GIF, PNG or PNM.
: the image that it intends to be converted to, suffixed with JPG, BMP, TIF, GIF, PNG or PNM.
[-c color]: the color style for to use. color can be 1)gray or 2)blackwhite
uses the same color style in as default.
[-z zoom]: zoom value in converting to (default=1).
- Author:
- Junwu Ma
JAN 15, 2010 Original Release