Generate Captcha Using Python:
Captcha is very Helpful in Web applications to provide security. It used to avoid network attacks. Python Captcha module is used to create both audio and image captcha. In this project we create image captcha by using python captcha module.
Installation:
$ pip install captcha
Step-1:
importing modules
from captcha.image import ImageCaptcha
Step-2:
Create an image instance of given size
image= ImageCaptcha(width=280,height=90)
Step-3:
Image captcha text
captcha_text=input("Enter Captcha text\n")
Step-4:
Generate the image for given text
data=image.generate(captcha_text)
Step-5:
Write the image on the given file and save it
image.write(captcha_text,'caption.png')
Step-6:
Execution
$python captcha.py
$Enter captcha Text
>createcoder
Output:
To Download Overall Source Code for above Project Clickhere
Note:
Hello Guys, Don't Stop Learning keep Going..............