Making CAPTCHA
Create and transform a CAPTCHA image.
Question
How can mathematical transformations distort text while keeping it readable to a person?
Goals
- Represent image positions with coordinates, vectors, and matrices.
- Create a CAPTCHA image by transforming and recombining pixels.
Method
Begin with a clear text image and change the coordinates of its pixels.
- Store the image as a grid and identify the foreground pixels.
- Apply rotations, shears, stretches, or other coordinate transformations.
- Add controlled noise and check that the result remains readable.