(self, chars)
return im
Generate the image of the given characters.

        :param chars: text to be generated.
Generate the image of the given characters.
Generate the image of the given characters .
def generate_image(self, chars):
        """Generate the image of the given characters.

        :param chars: text to be generated.
        """
        background = random_color(238, 255)
        color = random_color(10, 200, random.randint(220, 255))
        im = self.create_captcha_image(chars, color, background)
        self.create_noise_dots(im, color)
        self.create_noise_curve(im, color)
        im = im.filter(ImageFilter.SMOOTH)
        return im
def generate_image ( self , chars ) : background = random_color ( 238 , 255 ) color = random_color ( 10 , 200 , random . randint ( 220 , 255 ) ) im = self . create_captcha_image ( chars , color , background ) self . create_noise_dots ( im , color ) self . create_noise_curve ( im , color ) im = im . filter ( ImageFilter . SMOOTH ) return im