How to Solve NameError: name 'ImageCaptcha' is not defined -- captcha

Solution: Import the 'ImageCaptcha' module

To Solve the error, add the following line to the top of your code.

from captcha.image import ImageCaptcha

 

For more information:
Python captcha ImageCaptcha