Skip to content

Commit 0331600

Browse files
author
Kevin Kim
committed
Adding segment_index
1 parent 8f6d530 commit 0331600

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

labelbox/data/annotation_types/annotation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import abc
2-
from typing import Any, Dict, List, Union
2+
from typing import Any, Dict, List, Optional, Union
33

44
from .classification import Checklist, Dropdown, Radio, Text
55
from .feature import FeatureSchema
@@ -72,11 +72,13 @@ class VideoObjectAnnotation(ObjectAnnotation):
7272
value (Geometry)
7373
frame (Int): The frame index that this annotation corresponds to
7474
keyframe (bool): Whether or not this annotation was a human generated or interpolated annotation
75+
segment_id (Optional[Int]): Index of video segment this annotation belongs to
7576
classifications (List[ClassificationAnnotation]) = []
7677
extra (Dict[str, Any])
7778
"""
7879
frame: int
7980
keyframe: bool
81+
segment_index: Optional[int] = None
8082

8183

8284
class VideoClassificationAnnotation(ClassificationAnnotation):

0 commit comments

Comments
 (0)