ImageMagick Align Lettes File in console

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
choyo
Posts: 1
Joined: 2016-11-12T16:01:04-07:00
Authentication code: 1151

ImageMagick Align Lettes File in console

Post by choyo »

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

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.
Post Reply