Package com.octo.captcha.image.gimpy

Examples of com.octo.captcha.image.gimpy.GimpyFactory


    ImageDeformation backDef = new ImageDeformationByFilters(new ImageFilter[] {});
    ImageDeformation textDef = new ImageDeformationByFilters(new ImageFilter[] {});

    WordToImage word2image = new DeformedComposedWordToImage(font, background, randomPaster, backDef,
        textDef, postDef);
    addFactory(new GimpyFactory(dictionnaryWords, word2image));
  }
View Full Code Here


                new ImageFilter[]{});

        WordToImage word2image = new DeformedComposedWordToImage(font,
                background, randomPaster, backDef, textDef, postDef);

        addFactory(new GimpyFactory(dictionnaryWords, word2image));
    }
View Full Code Here

    ImageDeformation backDef = new ImageDeformationByFilters(new ImageFilter[] {});
    ImageDeformation textDef = new ImageDeformationByFilters(new ImageFilter[] {});

    WordToImage word2image = new DeformedComposedWordToImage(font, background, randomPaster,
        backDef, textDef, postDef);
    addFactory(new GimpyFactory(dictionnaryWords, word2image));
  }
View Full Code Here

    TextPaster textPaster = new RandomTextPaster(acceptedWordLength,
        acceptedWordLength, textColor);
    WordToImage wordToImage = new ComposedWordToImage(fontGenerator,
        backgroundGenerator, textPaster);
    WordGenerator wordGenerator = new RandomWordGenerator(acceptedChars);
    factories = new ImageCaptchaFactory[] { new GimpyFactory(wordGenerator,
        wordToImage) };
  }
View Full Code Here

                new ImageFilter[]{});

        WordToImage word2image = new DeformedComposedWordToImage(font,
                background, randomPaster, backDef, textDef, postDef);

        addFactory(new GimpyFactory(dictionnaryWords, word2image));
    }
View Full Code Here

    ImageDeformation backDef = new ImageDeformationByFilters(new ImageFilter[] {});
    ImageDeformation textDef = new ImageDeformationByFilters(new ImageFilter[] {});

    WordToImage word2image = new DeformedComposedWordToImage(font, background, randomPaster, backDef, textDef,
        postDef);
    addFactory(new GimpyFactory(dictionnaryWords, word2image));
  }
View Full Code Here

                        for (Iterator backIter = backgroundGeneratorList.iterator(); backIter .hasNext();) {  
                            BackgroundGenerator back = (BackgroundGenerator) backIter.next();  
                            for (Iterator textIter = textPasterList.iterator(); textIter.hasNext();) {  
                                TextPaster parser = (TextPaster) textIter.next();  
                                WordToImage word2image = new ComposedWordToImage(font,back, parser);  
                                ImageCaptchaFactory factory = new GimpyFactory(words,word2image);  
                                addFactory(factory);  
                            }  
                        }  
                    }  
        } catch (Exception ex) {  
View Full Code Here

    ImageDeformation textDef = new ImageDeformationByFilters(
        new ImageFilter[] {});

    WordToImage word2image = new DeformedComposedWordToImage(font,
        background, randomPaster, backDef, textDef, postDef);
    addFactory(new GimpyFactory(dictionnaryWords, word2image));
  }
View Full Code Here

    ImageDeformation textDef = new ImageDeformationByFilters(new ImageFilter[0]);
    ImageDeformation postDef = new ImageDeformationByFilters(new ImageFilter[] { water });
    WordToImage word2image = new DeformedComposedWordToImage(shearedFont, back, randomPaster, backDef, textDef, postDef);

    WordGenerator dictionaryWords = new RandomWordGenerator(ERXProperties.stringForKeyWithDefault(WORD_GENERATOR, "BCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz2346789"));
    addFactory(new GimpyFactory(dictionaryWords, word2image));
  }
View Full Code Here

    ImageDeformation backDef = new ImageDeformationByFilters(new ImageFilter[] {});
    ImageDeformation textDef = new ImageDeformationByFilters(new ImageFilter[] {});

    WordToImage word2image = new DeformedComposedWordToImage(font, background, randomPaster, backDef, textDef,
        postDef);
    addFactory(new GimpyFactory(dictionnaryWords, word2image));
  }
View Full Code Here

TOP

Related Classes of com.octo.captcha.image.gimpy.GimpyFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.