(self, chars, format='png')
return out
Generate an Image Captcha of the given characters.

        :param chars: text to be generated.
        :param format: image file format
Generate an Image Captcha of the given characters.
Generate an Image Captcha of the given characters .
def generate(self, chars, format='png'):
        """Generate an Image Captcha of the given characters.

        :param chars: text to be generated.
        :param format: image file format
        """
        im = self.generate_image(chars)
        out = BytesIO()
        im.save(out, format=format)
        out.seek(0)
        return out
def generate ( self , chars , format = 'png' ) : im = self . generate_image ( chars ) out = BytesIO ( ) im . save ( out , format = format ) out . seek ( 0 ) return out