How to Solve NameError: name 'ImageSequence' is not defined -- PIL

Solution: Import the 'ImageSequence' module

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

from PIL import ImageSequence

 

For more information:
Python PIL ImageSequence