ImageMagick Align Lettes File in console
Posted: 2016-11-12T16:15:42-07:00
Hello.I am from Brazil, and I have file captcha and no align letters. I need help.
Later and execute program JAVA to get letters
I need all letters output 123456 example align.
Thank you.
Later and execute program JAVA to get letters
Code: Select all
File imageFile = new File("/home/choyo/Downloads/TESS/ImageMagick-6.9.3/bin/parts-5.bmp");
ITesseract instance = new Tesseract();
instance.setTessVariable("LC_NUMERIC", "C");
//instance.setLanguage("por");
instance.setTessVariable("tessedit_char_whitelist", "1234567890ABCDEFGHIJKLMNOPQRSTUVXZ");
try {
//List<String> configs = Arrays.asList("digits");
//instance.setConfigs(configs);
String result = instance.doOCR(imageFile);
System.out.println(result); //Here output
} catch (Exception e) {
System.err.println(e.getMessage());
}
I need all letters output 123456 example align.
Thank you.