This software allows you to generate captcha images effortlessly. It offers an easy-to-use interface and lets you customize the settings to suit your needs, ensuring efficient and secure protection against automated spam attacks.
The glyph outlines are loaded as Bezier curves using the Freetype library. After being loaded, they are then randomly rotated and scaled before being distorted by adding Perlin noise to each point of the curve. Finally, the glyph is rendered into a bitmap image.
Python-captchaimage is capable of producing approximately 950 images per second when running on a computer with an 1800 MHz Intel Celeron processor. The installation process is simple, with the library requiring Freetype 2 as an external dependency.
To build and install the library, users can execute the following commands: "./setup.py build" and "./setup.py install". These operations are performed using distutils, making the software highly approachable for a broad audience of developers.
An example code block is provided that demonstrates how to get a string containing an image in JPEG format. The code is presented in a few short lines and can be copy-pasted into a project. The font face can be changed as desired, but this is the only customization needed for generating the captcha images.
Version 1.2: N/A