Skip to content

Captcha Generator is a Python file that generates image with a simple Tkinter GUI. It displays image CAPTCHAs directly and saves image CAPTCHA files locally for later use, providing an effective solution for bot protection and user verification.

Notifications You must be signed in to change notification settings

chandrakantapanda/captcha-using-python-tkinter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CAPTCHA Using Python Tkinter

This project is a CAPTCHA verification system developed using Python and Tkinter.
It demonstrates GUI programming, CAPTCHA generation, and user input validation.

The application generates a random numeric CAPTCHA image, verifies user input, and provides visual feedback for correct and incorrect entries.


🎯 Objective

The objective of this project is to:

  • Learn GUI programming using Tkinter
  • Implement image-based CAPTCHA verification
  • Improve user interaction using animations and feedback

πŸ›  Technologies Used

  • Python
  • Tkinter
  • captcha library
  • Pillow (PIL)
  • Random and Time modules

✨ Features

  • Random 6-digit numeric CAPTCHA
  • CAPTCHA displayed as an image
  • CAPTCHA verification system
  • Refresh CAPTCHA option
  • Window shake animation for incorrect input
  • Loading spinner animation
  • Simple and user-friendly GUI

πŸ“‚ Project Structure

captcha-using-python-tkinter/
β”‚
β”œβ”€β”€ Captcha_Genrator.py
β”œβ”€β”€ out.png
β”œβ”€β”€ fonts/
β”‚   └── arial.ttf
└── README.md

βš™οΈ Installation and Execution

Step 1: Clone the Repository

git clone https://github.com/your-username/captcha-using-python-tkinter.git
cd captcha-using-python-tkinter

Step 2: Install Required Libraries

pip install captcha pillow

Step 3: Run the Application

python Captcha_Genrator.py

🧠 Working Principle

  • A random 6-digit CAPTCHA is generated.
  • The CAPTCHA image is displayed in the GUI.
  • The user enters the CAPTCHA text.
  • Correct input shows a success message.
  • Incorrect input shakes the window and displays an error.
  • CAPTCHA refreshes automatically after each attempt.

πŸš€ Future Enhancements

  • Alphanumeric CAPTCHA
  • CAPTCHA expiration timer
  • Improved UI design
  • Dark mode support

πŸ“œ License

This project is developed for educational purposes and is free to use and modify.


πŸ‘€ Author

Chandrakanta panda
Developer | Python Developer
GitHub: https://github.com/chandrakantapanda

About

Captcha Generator is a Python file that generates image with a simple Tkinter GUI. It displays image CAPTCHAs directly and saves image CAPTCHA files locally for later use, providing an effective solution for bot protection and user verification.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages