Source code for cr.vision.io.interfaces
'''
Interfaces for IO
'''
[docs]class FrameSequence:
'''Frame sequence interface'''
def __next__(self):
'''Returns next frame (along with its frame number)'''
raise NotImplementedError
def __iter__(self):
return self
[docs] def is_open(self):
'''Returns if the sequence is open for reading more frames'''
raise NotImplementedError