A simple project to play with Pillow
an image manipulation library
by generating a random code, then drawing it using Pillow
then adding an effects ( random opacity, rotation, noise, stetching the image, and random lines ) to make it harder for robots to read AKA captcha
with simple Web interface using FastAPI
to verify/generate new images.
- install the packages:
pip install -r requirements.txt
you may need to use venv git clone https://github.com/sohyp3/Simple-Captcha
cd Simple-Captcha
uvicorn app:app --reload