
Public Member Functions | |
| str | string_value (self) |
| Return the string_value for this metadata key. | |
| Type[Any] | type (self) |
| Return the expected Python type for this metadata key. | |
| str | __str__ (self) |
| Return a human-readable string of the MetadataKey object. | |
| str | __repr__ (self) |
| Return an unambiguous string of the MetadataKey object. | |
Static Public Attributes | |
| DEVICE_TIMESTAMP = _MetadataKeyInfo("DeviceTimestamp", int) | |
| DEVICE_FRAME_ID = _MetadataKeyInfo("DeviceFrameID", int) | |
| BINNING_HORIZONTAL = _MetadataKeyInfo("BinningHorizontal", int) | |
| BINNING_VERTICAL = _MetadataKeyInfo("BinningVertical", int) | |
| ROI = _MetadataKeyInfo("Roi", Rectangle) | |
| DEVICE_EXPOSURE_TIME = _MetadataKeyInfo("DeviceExposureTime", float) | |
| SYSTEM_TIMESTAMP = _MetadataKeyInfo("SystemTimestamp", int) | |
| DEVICE_EXPOSURE_TIME_SEQUENCE = _MetadataKeyInfo("DeviceExposureTimeSequence", list[float]) | |
| DEVICE_GAIN = _MetadataKeyInfo("DeviceGain", float) | |
| DEVICE_GAIN_SEQUENCE = _MetadataKeyInfo("DeviceGainSequence", list[float]) | |
Enumerates all compile-time known metadata keys.
Each enum value carries both:
This makes it easy to use type-safe keys without an extra trait class.
Example::
key = MetadataKey.DEVICE_TIMESTAMP print(key.string_value) # outputs: device_timestamp print(key.type) # outputs: <class 'int'>
Definition at line 14 of file metadata_key.py.
| str __repr__ | ( | self | ) |
Return an unambiguous string of the MetadataKey object.
Definition at line 158 of file metadata_key.py.
| str __str__ | ( | self | ) |
Return a human-readable string of the MetadataKey object.
Definition at line 151 of file metadata_key.py.
| str string_value | ( | self | ) |
Return the string_value for this metadata key.
Definition at line 140 of file metadata_key.py.
| Type[Any] type | ( | self | ) |
Return the expected Python type for this metadata key.
Definition at line 146 of file metadata_key.py.
|
static |
Definition at line 58 of file metadata_key.py.
|
static |
Definition at line 66 of file metadata_key.py.
|
static |
Definition at line 84 of file metadata_key.py.
|
static |
Definition at line 107 of file metadata_key.py.
|
static |
Definition at line 46 of file metadata_key.py.
|
static |
Definition at line 122 of file metadata_key.py.
|
static |
Definition at line 128 of file metadata_key.py.
|
static |
Definition at line 34 of file metadata_key.py.
|
static |
Definition at line 74 of file metadata_key.py.
|
static |
Definition at line 92 of file metadata_key.py.