| 17 | |
| 18 | |
| 19 | class ImageSequence: |
| 20 | |
| 21 | def __init__(self, im): |
| 22 | self.im = im |
| 23 | |
| 24 | def __getitem__(self, ix): |
| 25 | try: |
| 26 | if ix: |
| 27 | self.im.seek(ix) |
| 28 | return self.im |
| 29 | except EOFError: |
| 30 | raise IndexError # end of sequence |
| 31 | |
| 32 | |
| 33 | class CircleCaptcha(OCR): |