python captcha
from captcha.image import ImageCaptcha
import random, string
ran = ''.join(random.choices(string.ascii_letters + string.digits, k=5))
image = ImageCaptcha(width = 280, height = 90)
captcha_text = ran
data = image.generate(captcha_text)
image.write(captcha_text,"Captcha.png")