See also

Please visit our docs for more information on Segments.ai and visit the setup page to learn how to install and setup the Segments.ai Python SDK.

Types#

Datasets#

class Dataset[source]#
Fields
Validators
field category: str#
Validated by
field cloned_from: Optional[str]#
field collaborators_count: Optional[int]#
field created_at: str#
field description: str#
field embeddings_enabled: Optional[bool]#
field enable_interpolation: bool#
field enable_ratings: bool#
field enable_same_dimensions_track_constraint: bool#
field enable_save_button: bool#
field enable_skip_labeling: bool#
field enable_skip_reviewing: bool#
field full_name: str#
field label_stats: segments.typing.LabelStats#
field labelsets: Optional[List[segments.typing.Labelset]]#
field name: str#
field noncollaborator_can_label: Optional[bool]#
field noncollaborator_can_review: Optional[bool]#
field owner: segments.typing.Owner#
field public: bool#
field readme: Optional[str]#
field role: Optional[str]#
field samples_count: Optional[Union[str, int]]#
field task_attributes: Optional[segments.typing.TaskAttributes]#
field task_type: typing_extensions.Literal[segmentation-bitmap, segmentation-bitmap-highres, image-vector-sequence, bboxes, vector, pointcloud-cuboid, pointcloud-cuboid-sequence, pointcloud-segmentation, pointcloud-segmentation-sequence, text-named-entities, text-span-categorization, ]#
validator check_category  »  category[source]#
Return type

str

class Collaborator[source]#
Fields
field role: typing_extensions.Literal[labeler, reviewer, admin]#
field user: segments.typing.User#
class User[source]#
Fields
field created_at: str#
field username: str#

Samples#

class Sample[source]#
Fields
field attributes: Union[segments.typing.ImageSampleAttributes, segments.typing.ImageSequenceSampleAttributes, segments.typing.PointcloudSampleAttributes, segments.typing.PointcloudSequenceSampleAttributes, segments.typing.TextSampleAttributes]#
field comments: Optional[List[str]]#
field created_at: str#
field created_by: str#
field dataset_full_name: Optional[str]#
field has_embedding: Optional[bool]#
field issues: Optional[List[segments.typing.Issue]]#
field label: Optional[segments.typing.Label]#
field metadata: Dict[str, Any]#
field name: str#
field priority: float#
field uuid: str#

Image#

class ImageSampleAttributes[source]#
Fields
field image: segments.typing.URL#

Image sequence#

class ImageSequenceSampleAttributes[source]#
Fields
field frames: List[segments.typing.ImageFrame]#
class ImageFrame[source]#

Bases: ImageSampleAttributes

Fields
field name: Optional[str]#

Point cloud#

class PointcloudSampleAttributes[source]#
Fields
field default_z: Optional[float]#
field ego_pose: Optional[segments.typing.EgoPose]#
field images: Optional[List[segments.typing.CalibratedImage]]#
field name: Optional[str]#
field pcd: segments.typing.PCD#
field timestamp: Optional[int]#

Point cloud sequence#

class PointcloudSequenceSampleAttributes[source]#
Fields
field frames: List[segments.typing.PointcloudSampleAttributes]#

Text#

class TextSampleAttributes[source]#
Fields
field text: str#

Labels#

class Label[source]#
Fields
field attributes: Union[segments.typing.ImageSegmentationLabelAttributes, segments.typing.ImageVectorLabelAttributes, segments.typing.ImageSequenceVectorLabelAttributes, segments.typing.PointcloudSegmentationLabelAttributes, segments.typing.PointcloudCuboidLabelAttributes, segments.typing.PointcloudSequenceSegmentationLabelAttributes, segments.typing.PointcloudSequenceCuboidLabelAttributes, segments.typing.TextLabelAttributes]#
field created_at: str#
field created_by: str#
field label_status: typing_extensions.Literal[REVIEWED, REVIEWING_IN_PROGRESS, LABELED, LABELING_IN_PROGRESS, REJECTED, PRELABELED, SKIPPED, UNLABELED]#
field label_type: typing_extensions.Literal[segmentation-bitmap, segmentation-bitmap-highres, image-vector-sequence, bboxes, vector, pointcloud-cuboid, pointcloud-cuboid-sequence, pointcloud-segmentation, pointcloud-segmentation-sequence, text-named-entities, text-span-categorization, ]#
field rating: Optional[float]#
field reviewed_at: Optional[str]#
field reviewed_by: Optional[str]#
field sample_uuid: str#
field score: Optional[float]#
field updated_at: str#

Image segmentation#

class ImageSegmentationLabelAttributes[source]#
Fields
field annotations: List[segments.typing.Annotation]#
field format_version: Optional[Union[float, str]]#
field image_attributes: Optional[Dict[str, Union[str, bool]]]#
field segmentation_bitmap: segments.typing.URL#
class Annotation[source]#
Fields
field attributes: Optional[Dict[str, Union[str, bool]]]#
field category_id: int#
field id: int#

Image vector#

class ImageVectorLabelAttributes[source]#
Fields
field annotations: List[segments.typing.ImageVectorAnnotation]#
field format_version: Optional[Union[float, str]]#
field image_attributes: Optional[Dict[str, Union[str, bool]]]#
class ImageVectorAnnotation[source]#
Fields
field attributes: Optional[Dict[str, Union[str, bool]]]#
field category_id: int#
field id: int#
field points: List[List[float]]#
field type: typing_extensions.Literal[bbox, polygon, polyline, point]#

Image sequence vector#

class ImageSequenceVectorLabelAttributes[source]#
Fields
field format_version: Optional[Union[float, str]]#
field frames: List[segments.typing.ImageVectorFrame]#
class ImageVectorFrame[source]#
Fields
field annotations: List[segments.typing.ImageSequenceVectorAnnotation]#
field format_version: Optional[Union[float, str]]#
field image_attributes: Optional[Dict[str, Union[str, bool]]]#
field timestamp: Optional[int]#
class ImageSequenceVectorAnnotation[source]#

Bases: ImageVectorAnnotation

Fields
field is_keyframe: bool#
field track_id: int#

Point cloud segmentation#

class PointcloudSegmentationLabelAttributes[source]#
Fields
field annotations: List[segments.typing.Annotation]#
field format_version: Optional[Union[float, str]]#
field point_annotations: List[int]#

Point cloud cuboid#

class PointcloudCuboidLabelAttributes[source]#
Fields
field annotations: List[segments.typing.PointcloudCuboidAnnotation]#
field format_version: Optional[Union[float, str]]#
class PointcloudCuboidAnnotation[source]#
Fields
field attributes: Optional[Dict[str, Union[str, bool]]]#
field category_id: int#
field dimensions: segments.typing.XYZ#
field id: int#
field position: segments.typing.XYZ#
field type: typing_extensions.Literal[cuboid]#
field yaw: float#

Point cloud sequence segmentation#

class PointcloudSequenceSegmentationLabelAttributes[source]#
Fields
field format_version: Optional[Union[float, str]]#
field frames: List[segments.typing.PointcloudSegmentationFrame]#
class PointcloudSegmentationFrame[source]#
Fields
field annotations: List[segments.typing.PointcloudSequenceSegmentationAnnotation]#
field format_version: Optional[Union[float, str]]#
field point_annotations: Optional[List[int]]#
class PointcloudSequenceSegmentationAnnotation[source]#
Fields
field attributes: Optional[Dict[str, Union[str, bool]]]#
field category_id: int#
field id: int#
field is_keyframe: bool#
field track_id: int#

Point cloud sequence cuboid#

class PointcloudSequenceCuboidLabelAttributes[source]#
Fields
field format_version: Optional[Union[float, str]]#
field frames: List[segments.typing.PointcloudSequenceCuboidFrame]#
class PointcloudSequenceCuboidFrame[source]#
Fields
field annotations: List[segments.typing.PointcloudSequenceCuboidAnnotation]#
field format_version: Optional[Union[float, str]]#
field timestamp: int#
class PointcloudSequenceCuboidAnnotation[source]#

Bases: PointcloudCuboidAnnotation

Fields
field is_keyframe: bool#
field track_id: int#

Text#

class TextLabelAttributes[source]#
Fields
field annotations: List[segments.typing.TextAnnotation]#
field format_version: Optional[Union[float, str]]#
class TextAnnotation[source]#
Fields
field category_id: int#
field end: int#
field start: int#

Labelsets#

class Labelset[source]#
Fields
field created_at: Optional[str]#
field description: str#
field is_groundtruth: Optional[bool]#
field name: str#

Releases#

class Release[source]#
Fields
field attributes: segments.typing.URL#
field created_at: str#
field description: str#
field name: str#
field release_type: typing_extensions.Literal[JSON]#
field samples_count: int#
field status: typing_extensions.Literal[PENDING, SUCCEEDED, FAILED]#
field uuid: str#

Files#

class File[source]#
Fields
field created_at: str#
field filename: str#
field presignedPostFields: segments.typing.PresignedPostFields#
field url: str#
field uuid: str#

Helper classes#

class URL[source]#
Fields
field url: Optional[str]#
class Owner[source]#
Fields
field created_at: str#
field email: Optional[str]#
field username: str#
class TaskAttributes[source]#
Config
  • extra: Extra = allow

Fields
field categories: Optional[List[segments.typing.TaskAttributeCategory]]#
field format_version: Optional[Union[float, str]]#
class TaskAttributeCategory[source]#
Fields
field attributes: Optional[List[Union[segments.typing.SelectTaskAttribute, segments.typing.TextTaskAttribute, segments.typing.NumberTaskAttribute, segments.typing.CheckboxTaskAttribute]]]#
field color: Optional[Union[Tuple[int, int, int], Tuple[int, int, int, int]]]#
field dimensions: Optional[segments.typing.XYZ]#
field id: int#
field name: str#
class LabelStats[source]#
Fields
field LABELED: Optional[int]#
field PRELABELED: Optional[int]#
field TOTAL: Optional[int]#
field UNLABELED: Optional[int]#
class Statistics[source]#
Fields
field labeled_count: int#
field prelabeled_count: int#
field rejected_count: int#
field reviewed_count: int#
field samples_count: int#
field skipped_count: int#
class XYZ[source]#
Fields
field x: float#
field y: float#
field z: float#
class XYZW[source]#
Fields
field qw: float#
field qx: float#
field qy: float#
field qz: float#
class EgoPose[source]#
Fields
field heading: segments.typing.XYZW#
field position: segments.typing.XYZ#
class PCD[source]#
Fields
field type: typing_extensions.Literal[pcd, kitti, nuscenes]#
field url: str#
class CalibratedImage[source]#
Fields
field col: int#
field extrinsics: Optional[segments.typing.CameraExtrinsics]#
field intrinsics: Optional[segments.typing.CameraIntrinsics]#
field row: int#
class CameraIntrinsics[source]#
Fields
field intrinsic_matrix: List[List[float]]#
class CameraExtrinsics[source]#
Fields
field rotation: segments.typing.XYZW#
field translation: segments.typing.XYZ#