pixano.features.schemas.views.sequence_frame
SequenceFrame(created_at=None, updated_at=None, **data)
Bases: Image
Sequence Frame view.
Attributes:
Name | Type | Description |
---|---|---|
timestamp |
float
|
The timestamp of the frame. |
frame_index |
int
|
The index of the frame in the sequence. |
Source code in pixano/features/schemas/base_schema.py
create_sequence_frame(url, timestamp, frame_index, id='', item_ref=ItemRef.none(), parent_ref=ViewRef.none(), width=None, height=None, format=None, url_relative_path=None)
Create a SequenceFrame
instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url
|
Path
|
The frame URL. If not relative, the URL is converted to a relative path using |
required |
timestamp
|
float
|
The timestamp of the frame. |
required |
frame_index
|
int
|
The index of the frame in the sequence. |
required |
id
|
str
|
Point cloud ID. |
''
|
item_ref
|
ItemRef
|
Item reference. |
none()
|
parent_ref
|
ViewRef
|
Parent view reference. |
none()
|
width
|
int | None
|
The frame width. If None, the width is extracted from the frame file. |
None
|
height
|
int | None
|
The frame height. If None, the height is extracted from the frame file. |
None
|
format
|
str | None
|
The frame format. If None, the format is extracted from the frame file. |
None
|
url_relative_path
|
Path | None
|
The path to convert the URL to a relative path. |
None
|
Returns:
Type | Description |
---|---|
SequenceFrame
|
The created |
Source code in pixano/features/schemas/views/sequence_frame.py
is_sequence_frame(cls, strict=False)
Check if the given class is a subclass of SequenceFrame
.