Source code for labelbox.schema.asset_attachment

from enum import Enum

from labelbox.orm.db_object import DbObject
from labelbox.orm.model import Field


[docs]class AssetAttachment(DbObject): """ Asset attachment provides extra context about an asset while labeling. Attributes: attachment_type (str): IMAGE, VIDEO, TEXT, or IMAGE_OVERLAY attachment_value (str): URL to an external file or a string of text """
[docs] class AttachmentType(Enum): VIDEO = "VIDEO" IMAGE = "IMAGE" TEXT = "TEXT" IMAGE_OVERLAY = "IMAGE_OVERLAY"
for topic in AttachmentType: vars()[topic.name] = topic.value attachment_type = Field.String("attachment_type", "type") attachment_value = Field.String("attachment_value", "value")