Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
/ capja Public archive

Capja is a lightweight and easy-to-use CAPTCHA image generation API made in Java. It uses Java's built-in Graphics2D API to create a BufferedImage in memory.

License

Notifications You must be signed in to change notification settings

jonesdevelopment/capja

Repository files navigation

🤖 capja

Easy-to-use Java CAPTCHA image generation API used by Sonar



Releases | Issues | Pull Requests | Discord | License

Examples

capja being used in Minecraft as a CAPTCHA

https://youtu.be/Aw1w-7S0GjA

capja being integrated in Sonar

CaptchaPreparer.java (using custom filters)

Usage

import java.awt.image.BufferedImage;

// Creates a CAPTCHA generator instance
simpleCaptchaGenerator = new SimpleCaptchaGenerator(width, height, null);

// You can also use a custom background image
simpleCaptchaGenerator = new SimpleCaptchaGenerator(width, height, new File("background.png"));

// Creates a BufferedImage with the code 69420
bufferedImage = simpleCaptchaGenerator.createImage(new char[]{'6', '9', '4', '2', '0'});

// You can also use custom effects and filters
bufferedImage = simpleCaptchaGenerator.createImage(/* ... */, new BumpFilter(), new SmearFilter());

License

capja is licensed under the GNU General Public License 3.0.

Credits

  • Special thanks to jhlabs for creating awesome image filters

About

Capja is a lightweight and easy-to-use CAPTCHA image generation API made in Java. It uses Java's built-in Graphics2D API to create a BufferedImage in memory.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages