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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.