fiftyone.core.frame_utils¶
Frame utilities.
Functions:
|
Determines whether the provided value is a frame number. |
|
Validates that the provided value is a frame number. |
Exceptions:
Exception raised when an invalid frame number is encountered. |
-
fiftyone.core.frame_utils.
is_frame_number
(value)¶ Determines whether the provided value is a frame number.
Frame numbers are strictly positive integers.
- Parameters
value – a value
- Returns
True/False
- Raises
FrameError – if
value
is an integer but is not strictly positive
-
fiftyone.core.frame_utils.
validate_frame_number
(value)¶ Validates that the provided value is a frame number.
Frame numbers are strictly positive integers.
- Parameters
value – a value
- Raises
FrameError – if
value
is not a frame number