Getting ready

The preparation for this recipe consists of installing a number of packages in pip. The instructions are as follows:

pip install opencv-python imutils

In addition, a collection of CAPTCHAs has been included for your convenience in captcha_images.7z. To use these, simply extract the archive into a captcha_images folder.

Get Machine Learning for Cybersecurity Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.