| |
- __builtin__.object
-
- FrameGenerator
- exceptions.Exception(exceptions.BaseException)
-
- FrameReadError
class FrameGenerator(__builtin__.object) |
|
Defines an interface for reading input frames.
Attributes:
_generator: A reference to the created generator. |
|
Methods defined here:
- __init__(self)
- Initializes the FrameGenerator object.
Data descriptors defined here:
- CurrentFrameNumber
- Returns:
int, The frame index of the current frame.
- CurrentTimestamp
- Returns:
float, The timestamp of the current frame in milliseconds.
- Dimensions
- Returns:
The dimensions of the frame sequence as a tuple int (width, height).
This value should be constant across frames.
- Generator
- Returns:
A reference to the created generator.
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- __abstractmethods__ = frozenset(['CurrentFrameNumber', 'CurrentTimestamp', 'Dimensions', '_CreateGenerator'])
- __metaclass__ = <class 'abc.ABCMeta'>
- Metaclass for defining Abstract Base Classes (ABCs).
Use this metaclass to create an ABC. An ABC can be subclassed
directly, and then acts as a mix-in class. You can also register
unrelated concrete classes (even built-in classes) and unrelated
ABCs as 'virtual subclasses' -- these and their descendants will
be considered subclasses of the registering ABC by the built-in
issubclass() function, but the registering ABC won't show up in
their MRO (Method Resolution Order) nor will method
implementations defined by the registering ABC be callable (not
even via super()).
|
|