This module contains a wrapper class that makes it easy to loop over all frames in an image sequence.
Iterator(image). Creates an Iterator instance that lets you loop over all frames in a sequence.
The Iterator class implements the following method:
You can call this operator with integer values from 0 and upwards. It raises an IndexError exception when there are no more frames.